Definition at line 693 of file OrientedBoxTreeTool.cpp.
◆ RayIntersector()
moab::RayIntersector::RayIntersector |
( |
OrientedBoxTreeTool * |
tool_ptr, |
|
|
const double * |
ray_point, |
|
|
const double * |
unit_ray_dir, |
|
|
const double * |
ray_length, |
|
|
double |
tolerance, |
|
|
Range & |
leaf_boxes |
|
) |
| |
|
inline |
Definition at line 703 of file OrientedBoxTreeTool.cpp.
709 : tool( tool_ptr ), b( ray_point ), m( unit_ray_dir ), len( ray_length ), tol( tolerance ), boxes( leaf_boxes )
710 {
711 }
◆ leaf()
◆ visit()
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.
- Parameters
-
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 827 of file OrientedBoxTreeTool.cpp.
828 {
829 OrientedBox box;
830 ErrorCode rval = tool->box( node, box );
831 if( MB_SUCCESS != rval ) return rval;
832
833 descend = box.intersect_ray( b, m, tol, len );
834 return MB_SUCCESS;
835 }
References moab::OrientedBoxTreeTool::box(), ErrorCode, and MB_SUCCESS.
◆ boxes
Range& moab::RayIntersector::boxes |
|
private |
◆ len
const double* moab::RayIntersector::len |
|
private |
◆ tol
const double moab::RayIntersector::tol |
|
private |
◆ tool
The documentation for this class was generated from the following file: