MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
TriCounter (Interface *mbi_p, OrientedBoxTreeTool *tool_p, const CartVect &p) | |
virtual ErrorCode | visit (EntityHandle node, int, bool &descend) |
Visit a node in the tree during a traversal. | |
virtual ErrorCode | leaf (EntityHandle node) |
Process a leaf node during tree traversal. | |
Public Attributes | |
int | count |
Interface * | mbi |
OrientedBoxTreeTool * | tool |
const CartVect & | pt |
Definition at line 16 of file obb_analysis.cpp.
TriCounter::TriCounter | ( | Interface * | mbi_p, |
OrientedBoxTreeTool * | tool_p, | ||
const CartVect & | p | ||
) | [inline] |
Definition at line 25 of file obb_analysis.cpp.
: OrientedBoxTreeTool::Op(), count( 0 ), mbi( mbi_p ), tool( tool_p ), pt( p ) { }
virtual ErrorCode TriCounter::leaf | ( | EntityHandle | node | ) | [inline, virtual] |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 40 of file obb_analysis.cpp.
References ErrorCode, and MBTRI.
{ int numtris; ErrorCode rval = tool->get_moab_instance()->get_number_entities_by_type( node, MBTRI, numtris ); count += numtris; return rval; }
virtual ErrorCode TriCounter::visit | ( | EntityHandle | node, |
int | depth, | ||
bool & | descend | ||
) | [inline, virtual] |
Visit a node in the tree during a traversal.
This method is called for each node in the tree visited during a pre-order traversal.
node | The EntityHandle for the entity set for the tree node. |
depth | The current depth in the tree. |
descend | Output: if false, traversal will skip children of the current node, or if the current node is a leaf, the 'leaf' method will not be called. |
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 30 of file obb_analysis.cpp.
References box(), moab::OrientedBox::contained(), and ErrorCode.
Definition at line 20 of file obb_analysis.cpp.
Definition at line 21 of file obb_analysis.cpp.
const CartVect& TriCounter::pt |
Definition at line 23 of file obb_analysis.cpp.
Definition at line 22 of file obb_analysis.cpp.