BRL-CAD
|
#include <brnode.h>
Public Member Functions | |
BRNode (const ON_BoundingBox &node) | |
BRNode (const ON_Curve *curve, int trim_index, int adj_face_index, const ON_BoundingBox &node, const ON_BrepFace *face, const ON_Interval &t, bool innerTrim, bool checkTrim, bool trimmed) | |
~BRNode () | |
BRNode (Deserializer &deserializer, const ON_Brep &brep) | |
void | serialize (Serializer &serializer) const |
void | addChild (BRNode *child) |
void | getLeaves (std::list< const BRNode * > &out_leaves) const |
int | depth () const |
void | GetBBox (fastf_t *min, fastf_t *max) const |
bool | isTrimmed (const ON_2dPoint &uv, double &trimdist) const |
ON_2dPoint | getClosestPointEstimate (const ON_3dPoint &pt) const |
ON_2dPoint | getClosestPointEstimate (const ON_3dPoint &pt, ON_Interval &u, ON_Interval &v) const |
fastf_t | getCurveEstimateOfV (fastf_t u, fastf_t tol) const |
fastf_t | getCurveEstimateOfU (fastf_t v, fastf_t tol) const |
Data Fields | |
ON_BoundingBox | m_node |
ON_Interval | m_v |
int | m_adj_face_index |
bool | m_XIncreasing |
bool | m_Horizontal |
bool | m_Vertical |
bool | m_innerTrim |
Additional Inherited Members | |
Static Public Member Functions inherited from PooledObject< BRNode > | |
static void * | operator new (std::size_t size) |
static void | operator delete (void *pointer) |
|
explicit |
BRNode | ( | const ON_Curve * | curve, |
int | trim_index, | ||
int | adj_face_index, | ||
const ON_BoundingBox & | node, | ||
const ON_BrepFace * | face, | ||
const ON_Interval & | t, | ||
bool | innerTrim, | ||
bool | checkTrim, | ||
bool | trimmed | ||
) |
~BRNode | ( | ) |
BRNode | ( | Deserializer & | deserializer, |
const ON_Brep & | brep | ||
) |
void serialize | ( | Serializer & | serializer | ) | const |
|
inline |
void getLeaves | ( | std::list< const BRNode * > & | out_leaves | ) | const |
Return a list of all nodes below this node that are leaf nodes
int depth | ( | ) | const |
Report the depth of this node in the hierarchy
bool isTrimmed | ( | const ON_2dPoint & | uv, |
double & | trimdist | ||
) | const |
ON_2dPoint getClosestPointEstimate | ( | const ON_3dPoint & | pt | ) | const |
ON_2dPoint getClosestPointEstimate | ( | const ON_3dPoint & | pt, |
ON_Interval & | u, | ||
ON_Interval & | v | ||
) | const |