MOAB: Mesh Oriented datABase  (version 5.2.1)
moab::FindVolumeIntRegCtxt Class Reference
+ Inheritance diagram for moab::FindVolumeIntRegCtxt:
+ Collaboration diagram for moab::FindVolumeIntRegCtxt:

Public Member Functions

 FindVolumeIntRegCtxt ()
ErrorCode register_intersection (EntityHandle set, EntityHandle tri, double dist, OrientedBoxTreeTool::IntersectSearchWindow &search_win, GeomUtil::intersection_type)

Public Attributes

double pos
double neg

Detailed Description

Definition at line 46 of file GeomQueryTool.cpp.

Constructor & Destructor Documentation

Definition at line 51 of file GeomQueryTool.cpp.

References moab::OrientedBoxTreeTool::IntRegCtxt::facets, moab::OrientedBoxTreeTool::IntRegCtxt::intersections, and moab::OrientedBoxTreeTool::IntRegCtxt::sets.

        // initialize return vectors
        // only one hit is returned in this context
        intersections.push_back( std::numeric_limits< double >::max() );
        sets.push_back( 0 );
        facets.push_back( 0 );

Member Function Documentation

Reimplemented from moab::OrientedBoxTreeTool::IntRegCtxt.

Definition at line 60 of file GeomQueryTool.cpp.

References dist(), moab::OrientedBoxTreeTool::IntRegCtxt::facets, moab::OrientedBoxTreeTool::IntRegCtxt::intersections, MB_SUCCESS, neg, pos, and moab::OrientedBoxTreeTool::IntRegCtxt::sets.

        // update dist, set, and triangle hit if
        // we found a new minimum distance
        double abs_dist = fabs( dist );
        if( abs_dist < fabs( intersections[0] ) )
            intersections[0] = dist;
            sets[0]          = set;
            facets[0]        = tri;

            // narrow search window based on the hit distance
            pos               = abs_dist;
            neg               = -abs_dist;
            search_win.first  = &pos;
            search_win.second = &neg;

        return MB_SUCCESS;

Member Data Documentation

Definition at line 85 of file GeomQueryTool.cpp.

Referenced by register_intersection().

Definition at line 84 of file GeomQueryTool.cpp.

Referenced by register_intersection().

List of all members.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines