BRL-CAD
SurfaceTree Class Reference

#include <surfacetree.h>

Collaboration diagram for SurfaceTree:
[legend]

Public Member Functions

 SurfaceTree (const ON_BrepFace *face, bool removeTrimmed=true, int depthLimit=BREP_MAX_FT_DEPTH, double within_distance_tol=BREP_EDGE_MISS_TOLERANCE)
 
 ~SurfaceTree ()
 
bool Valid () const
 
BBNodegetRootNode () const
 
ON_2dPoint getClosestPointEstimate (const ON_3dPoint &pt) const
 
ON_2dPoint getClosestPointEstimate (const ON_3dPoint &pt, ON_Interval &u, ON_Interval &v) const
 
const ON_Surface * getSurface () const
 
int getSurfacePoint (const ON_3dPoint &pt, ON_2dPoint &uv, const ON_3dPoint &from, double tolerance=BREP_SAME_POINT_TOLERANCE) const
 
void getLeaves (std::list< const BBNode * > &out_leaves) const
 

Data Fields

const CurveTreem_ctree
 

Detailed Description

SurfaceTree declaration

Definition at line 56 of file surfacetree.h.

Constructor & Destructor Documentation

◆ SurfaceTree()

SurfaceTree ( const ON_BrepFace *  face,
bool  removeTrimmed = true,
int  depthLimit = BREP_MAX_FT_DEPTH,
double  within_distance_tol = BREP_EDGE_MISS_TOLERANCE 
)
explicit

◆ ~SurfaceTree()

Member Function Documentation

◆ Valid()

bool Valid ( ) const
inline

Definition at line 62 of file surfacetree.h.

◆ getRootNode()

BBNode* getRootNode ( ) const

◆ getClosestPointEstimate() [1/2]

ON_2dPoint getClosestPointEstimate ( const ON_3dPoint &  pt) const

Calculate, using the surface bounding volume hierarchy, a uv estimate for the closest point on the surface to the point in 3-space.

◆ getClosestPointEstimate() [2/2]

ON_2dPoint getClosestPointEstimate ( const ON_3dPoint &  pt,
ON_Interval &  u,
ON_Interval &  v 
) const

◆ getSurface()

const ON_Surface* getSurface ( ) const

Return surface

◆ getSurfacePoint()

int getSurfacePoint ( const ON_3dPoint &  pt,
ON_2dPoint &  uv,
const ON_3dPoint &  from,
double  tolerance = BREP_SAME_POINT_TOLERANCE 
) const

◆ getLeaves()

void getLeaves ( std::list< const BBNode * > &  out_leaves) const

Return just the leaves of the surface tree

Field Documentation

◆ m_ctree

const CurveTree* m_ctree

Definition at line 89 of file surfacetree.h.


The documentation for this class was generated from the following file: