HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_PrimRTree Class Reference

#include <GU_PrimRTree.h>

Classes

class  PrimBoundingBoxes
 

Public Member Functions

 GU_PrimRTree (const GEO_Detail &gdp, const GA_PrimitiveGroup *prim_grp=0, fpreal relative_padding=SYS_FTOLERANCE_D, fpreal absolute_padding=0)
 
 GU_PrimRTree (const GEO_Detail &gdp, const GA_Range &prim_range, fpreal relative_padding=SYS_FTOLERANCE_D, fpreal absolute_padding=0)
 
UT_Box boundingBox () const
 Returns the bounding box of this tree. More...
 
void getIntersectingPrimOffsetsUnsafe (const UT_Box &query_box, GA_OffsetArray &intersecting_prims) const
 
void getIntersectingPrimIndicesUnsafe (const UT_Box &query_box, GA_IndexArray &intersecting_prims) const
 
void getIntersectingPrimOffsets (const UT_Box &query_box, UT_IntArray &box_set, GA_OffsetArray &intersecting_prims) const
 
void getIntersectingPrimIndices (const UT_Box &query_box, UT_IntArray &box_set, GA_IndexArray &intersecting_prims) const
 
void getIntersectingBoxIndices (const UT_Box &query_box, UT_IntArray &box_set) const
 
const UT_RTreegetTree () const
 
const UT_RTreeBoxAssignmentgetBoxAssignment () const
 
const UT_Array< UT_Box > & getBoxArray () const
 
const GA_OffsetArraygetBoxOffsetMap () const
 
const UT_BoxgetBox (GA_Size i) const
 
GA_Offset boxOffset (GA_Size i) const
 
GA_Index boxIndex (GA_Size i) const
 

Static Public Member Functions

static UT_Box getPrimBoundingBox (const GEO_Detail &gdp, GA_Offset prim_off, fpreal relative_padding=SYS_FTOLERANCE_D, fpreal absolute_padding=0)
 
static UT_Box getSegmentBoundingBox (const UT_Vector3F &a, const UT_Vector3F &b, fpreal relative_padding=SYS_FTOLERANCE_D, fpreal absolute_padding=0)
 
static UT_Box getTriangleBoundingBox (const UT_Vector3F &a, const UT_Vector3F &b, const UT_Vector3F &c, fpreal relative_padding=SYS_FTOLERANCE_D, fpreal absolute_padding=0)
 

Detailed Description

Definition at line 20 of file GU_PrimRTree.h.

Constructor & Destructor Documentation

GU_PrimRTree::GU_PrimRTree ( const GEO_Detail gdp,
const GA_PrimitiveGroup prim_grp = 0,
fpreal  relative_padding = SYS_FTOLERANCE_D,
fpreal  absolute_padding = 0 
)
explicit

Construct an RTree of primiotives in the given group. padding is relative to the bounding box radius of each box in the rtree to ensure there is always enough precision to represent a non-zero padding even for large models

GU_PrimRTree::GU_PrimRTree ( const GEO_Detail gdp,
const GA_Range prim_range,
fpreal  relative_padding = SYS_FTOLERANCE_D,
fpreal  absolute_padding = 0 
)
explicit

Member Function Documentation

UT_Box GU_PrimRTree::boundingBox ( ) const

Returns the bounding box of this tree.

GA_Index GU_PrimRTree::boxIndex ( GA_Size  i) const
inline

Definition at line 94 of file GU_PrimRTree.h.

GA_Offset GU_PrimRTree::boxOffset ( GA_Size  i) const
inline

Definition at line 93 of file GU_PrimRTree.h.

const UT_Box& GU_PrimRTree::getBox ( GA_Size  i) const
inline

Definition at line 92 of file GU_PrimRTree.h.

const UT_Array<UT_Box>& GU_PrimRTree::getBoxArray ( ) const
inline

Definition at line 90 of file GU_PrimRTree.h.

const UT_RTreeBoxAssignment& GU_PrimRTree::getBoxAssignment ( ) const
inline

Definition at line 89 of file GU_PrimRTree.h.

const GA_OffsetArray& GU_PrimRTree::getBoxOffsetMap ( ) const
inline

Definition at line 91 of file GU_PrimRTree.h.

void GU_PrimRTree::getIntersectingBoxIndices ( const UT_Box query_box,
UT_IntArray box_set 
) const
void GU_PrimRTree::getIntersectingPrimIndices ( const UT_Box query_box,
UT_IntArray box_set,
GA_IndexArray intersecting_prims 
) const
void GU_PrimRTree::getIntersectingPrimIndicesUnsafe ( const UT_Box query_box,
GA_IndexArray intersecting_prims 
) const
void GU_PrimRTree::getIntersectingPrimOffsets ( const UT_Box query_box,
UT_IntArray box_set,
GA_OffsetArray intersecting_prims 
) const
void GU_PrimRTree::getIntersectingPrimOffsetsUnsafe ( const UT_Box query_box,
GA_OffsetArray intersecting_prims 
) const
static UT_Box GU_PrimRTree::getPrimBoundingBox ( const GEO_Detail gdp,
GA_Offset  prim_off,
fpreal  relative_padding = SYS_FTOLERANCE_D,
fpreal  absolute_padding = 0 
)
static
static UT_Box GU_PrimRTree::getSegmentBoundingBox ( const UT_Vector3F a,
const UT_Vector3F b,
fpreal  relative_padding = SYS_FTOLERANCE_D,
fpreal  absolute_padding = 0 
)
static

Returns the bounding box of a given segment with some padding. This method is exposed for convenience

const UT_RTree& GU_PrimRTree::getTree ( ) const
inline

Definition at line 88 of file GU_PrimRTree.h.

static UT_Box GU_PrimRTree::getTriangleBoundingBox ( const UT_Vector3F a,
const UT_Vector3F b,
const UT_Vector3F c,
fpreal  relative_padding = SYS_FTOLERANCE_D,
fpreal  absolute_padding = 0 
)
static

Returns the bounding box of a given segment with some padding. This method is exposed for convenience


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