|
Public Member Functions |
| | treeLeaf (const treeBoundBox &bb, const label size) |
| | Construct with size.
|
| | treeLeaf (const treeBoundBox &bb, const labelList &indices) |
| | Construct from list.
|
| | treeLeaf (Istream &) |
| | Construct from Istream.
|
| | ~treeLeaf () |
| label | size () const |
| const labelList & | indices () const |
| void | insert (const label index) |
| void | trim () |
| treeLeaf< Type > * | redistribute (const label, octree< Type > &, const Type &) |
| | Take indices at refineLevel and distribute them to lower levels.
|
| label | setSubNodeType (const label level, octree< Type > &top, const Type &shapes) const |
| label | getSampleType (const label level, const octree< Type > &top, const Type &shapes, const point &sample) const |
| | Get type of sample.
|
| label | find (const Type &shapes, const point &sample) const |
| | Find index of shape containing sample.
|
| bool | findTightest (const Type &shapes, const point &sample, treeBoundBox &tightest) const |
| | Find tightest fitting bounding box in leaf.
|
| bool | findNearest (const Type &shapes, const point &sample, treeBoundBox &tightest, label &tightesti, scalar &tightestDist) const |
| | Find nearest point.
|
| bool | findNearest (const Type &shapes, const linePointRef &ln, treeBoundBox &tightest, label &tightesti, point &linePoint, point &shapePoint) const |
| | Find nearest shape to line.
|
| bool | findBox (const Type &shapes, const boundBox &bb, labelHashSet &elements) const |
| | Find shapes not outside box. Return true if anything found.
|
| void | printLeaf (Ostream &, const label) const |
| | Debug: print a leaf.
|
| void | writeOBJ (Ostream &os, const label level, label &vertNo) const |
| | Debug: Write bb in OBJ format.
|
| label | countLeaf (Ostream &, const label) const |
| | debug:
|
| template<> |
| label | find (const octreeDataPoint &shapes, const point &sample) const |
| template<> |
| bool | findNearest (const octreeDataPoint &shapes, const point &sample, treeBoundBox &tightest, label &tightesti, scalar &tightestDist) const |
| template<> |
| bool | findNearest (const octreeDataTriSurface &shapes, const point &sample, treeBoundBox &tightest, label &tightesti, scalar &tightestDist) const |
Friends |
| Istream & | operator>> (Istream &, treeLeaf< Type > &) |
| Ostream & | operator (Ostream &, const treeLeaf< Type > &) |