Public Member Functions | |
FindVolumeIntRegCtxt () | |
ErrorCode | register_intersection (EntityHandle set, EntityHandle tri, double dist, OrientedBoxTreeTool::IntersectSearchWindow &search_win, GeomUtil::intersection_type) |
![]() | |
virtual ErrorCode | update_orient (EntityHandle, int *) |
virtual const int * | getDesiredOrient () |
std::vector< double > | get_intersections () |
std::vector< EntityHandle > | get_facets () |
std::vector< EntityHandle > | get_sets () |
Public Attributes | |
double | pos |
double | neg |
Additional Inherited Members | |
![]() | |
std::vector< double > | intersections |
std::vector< EntityHandle > | sets |
std::vector< EntityHandle > | facets |
Definition at line 45 of file GeomQueryTool.cpp.
|
inline |
Definition at line 50 of file GeomQueryTool.cpp.
51 {
52 // initialize return vectors
53 // only one hit is returned in this context
54 intersections.push_back( std::numeric_limits< double >::max() );
55 sets.push_back( 0 );
56 facets.push_back( 0 );
57 }
References moab::OrientedBoxTreeTool::IntRegCtxt::facets, moab::OrientedBoxTreeTool::IntRegCtxt::intersections, and moab::OrientedBoxTreeTool::IntRegCtxt::sets.
|
inlinevirtual |
Reimplemented from moab::OrientedBoxTreeTool::IntRegCtxt.
Definition at line 59 of file GeomQueryTool.cpp.
64 {
65 // update dist, set, and triangle hit if
66 // we found a new minimum distance
67 double abs_dist = fabs( dist );
68 if( abs_dist < fabs( intersections[0] ) )
69 {
70 intersections[0] = dist;
71 sets[0] = set;
72 facets[0] = tri;
73
74 // narrow search window based on the hit distance
75 pos = abs_dist;
76 neg = -abs_dist;
77 search_win.first = &pos;
78 search_win.second = &neg;
79 }
80
81 return MB_SUCCESS;
82 }
References moab::OrientedBoxTreeTool::IntRegCtxt::facets, moab::OrientedBoxTreeTool::IntRegCtxt::intersections, MB_SUCCESS, neg, pos, and moab::OrientedBoxTreeTool::IntRegCtxt::sets.
double moab::FindVolumeIntRegCtxt::neg |
Definition at line 86 of file GeomQueryTool.cpp.
Referenced by register_intersection().
double moab::FindVolumeIntRegCtxt::pos |
Definition at line 85 of file GeomQueryTool.cpp.
Referenced by register_intersection().