Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::AdaptiveKDTree::Plane Struct Reference

Split plane. More...

#include <AdaptiveKDTree.hpp>

Public Member Functions

bool left_side (const double point[3])
bool right_side (const double point[3])
double distance (const double point[3]) const

Public Attributes

double coord
 Location of plane as coordinate on normal axis.
int norm
 The principal axis that is the normal of the plane;.

Detailed Description

Split plane.

Definition at line 156 of file AdaptiveKDTree.hpp.


Member Function Documentation

double moab::AdaptiveKDTree::Plane::distance ( const double  point[3]) const [inline]

return distance from point to plane

Definition at line 172 of file AdaptiveKDTree.hpp.

References coord, and norm.

        {
            return fabs( point[norm] - coord );
        }
bool moab::AdaptiveKDTree::Plane::left_side ( const double  point[3]) [inline]

return true if point is below/to the left of the split plane

Definition at line 162 of file AdaptiveKDTree.hpp.

References coord, and norm.

        {
            return point[norm] < coord;
        }
bool moab::AdaptiveKDTree::Plane::right_side ( const double  point[3]) [inline]

return true if point is above/to the right of the split plane

Definition at line 167 of file AdaptiveKDTree.hpp.

References coord, and norm.

Referenced by moab::AdaptiveKDTree::find_close_triangle().

        {
            return point[norm] > coord;
        }

Member Data Documentation

List of all members.


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