Go to the documentation of this file.
45 Info <<
"Checking inside/outside for vertex " <<
p <<
endl;
82 const edge&
e = sEdges[ce(ceI, i)];
104 findLeavesContainedInBox(bb, neighbours);
121 const label tI = ct(elI, i);
136 containedCubes.
clear();
138 initialCubePtr_->leavesInBox(rootBox_, bb, containedCubes);
148 findLeavesContainedInBox(bb, cb);
154 if( cb[cI]->isLeaf() )
156 containedCubes[i] = cb[cI]->cubeLabel();
171 findLeavesContainedInBox(bb, cb);
173 containedCubes.
clear();
177 if( cb[cI]->isLeaf() )
178 containedCubes.
append(cb[cI]->cubeLabel());
const point & max() const
Maximum describing the bounding box.
#define forAll(list, i)
Loop across all elements in list.
label containedEdges() const
const pointField & points() const
access to points
bool hasContainedElements() const
return true if the box contains some triangles
point nearestPointOnTheTriangle(const triangle< point, point > &tri, const point &)
find the nearest point on the triangle to the given point
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Ostream & endl(Ostream &os)
Add newline and flush stream.
void findEdgesInBox(const boundBox &, DynList< label > &) const
void findLeavesContainedInBox(const boundBox &, DynList< const meshOctreeCube *, 256 > &) const
find leaves contained in the box
bool hasContainedEdges() const
returns true if the box contains some edges
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
bool isLeaf() const
check if the cube is a leaf
#define forAllRow(graph, rowI, index)
const point & min() const
Minimum describing the bounding box.
point nearestPointOnTheEdgeExact(const point &edgePoint0, const point &edgePoint1, const point &p)
find the vertex on the edge nearest to the point p
const meshOctreeSlot * slotPtr() const
return the pointer to the slot containing the cube
bool isPointInside(const point &) const
checks if the point is inside or outside the surface
void findTrianglesInBox(const boundBox &, DynList< label > &) const
const double e
Elementary charge.
VRWGraph containedEdges_
feature edges contained in an octree cube
void setSize(const label)
Reset size of List.
VRWGraph containedTriangles_
surface triangles contained in an octree cube
dimensionedSymmTensor sqr(const dimensionedVector &dv)
label findLeafContainingVertex(const point &) const
find a cube containing the vertex
const triSurf & surface_
Reference to surface to work on.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const LongList< edge > & edges() const
return edges
A bounding box defined in terms of the points at its extremities.
const dimensionedScalar c
Speed of light in a vacuum.
label containedElements() const
const meshOctreeCubeBasic & returnLeaf(const label) const
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void clear()
Clear the list, i.e. set next free to zero.
void append(const T &e)
Append an element at the end of the list.