BV_CHTriangle Class Reference

#include <BV_OBBTree.h>

List of all members.

Public Member Functions

 BV_CHTriangle (BV_CHDataManager &parent_manager, uint point1_idx, uint point2_idx, uint point3_idx)
 ~BV_CHTriangle ()
void markDeleted (bool do_call_manager=true)
fpreal getSignedDistance (const uint point_index)
 Gets signed distance from the given point to the triangle.
bool canSee (const uint point_index)
 Checks whether this triangle can see the given point or not.
void associatePoints (TPointIndexArray &points_in, bool do_ignore_restart_flag)
bool getIsBad (void) const
 Returns true if this is a "bad" triangle, false otherwise.
void clearAssocPoints (void)
 Clears all points associated with this triangle.
bool findMostDistantAssocPoint (uint &point_idx_out)
 Find the most distant point associated with this triangle.
void getNormal (UT_Vector3 &normal)
 Gets triangle normal. Cached.
void getAssocPoints (TPointIndexArray &points_idx_out)
 Appends this triangle's associated points to rPointsOut array.
void printAssocPoints (void)
bool getIsDeleted (void) const
uint getVertex (int index) const


Detailed Description

Definition at line 156 of file BV_OBBTree.h.


Constructor & Destructor Documentation

BV_CHTriangle::BV_CHTriangle ( BV_CHDataManager parent_manager,
uint  point1_idx,
uint  point2_idx,
uint  point3_idx 
)

BV_CHTriangle::~BV_CHTriangle (  ) 


Member Function Documentation

void BV_CHTriangle::associatePoints ( TPointIndexArray points_in,
bool  do_ignore_restart_flag 
)

Associates all points that this triangle can see that are still not associated from the points_in array. If do_ignore_restart_flag is true, keeps on going even if a restart becomes necessary.

bool BV_CHTriangle::canSee ( const uint  point_index  ) 

Checks whether this triangle can see the given point or not.

void BV_CHTriangle::clearAssocPoints ( void   ) 

Clears all points associated with this triangle.

bool BV_CHTriangle::findMostDistantAssocPoint ( uint point_idx_out  ) 

Find the most distant point associated with this triangle.

void BV_CHTriangle::getAssocPoints ( TPointIndexArray points_idx_out  ) 

Appends this triangle's associated points to rPointsOut array.

bool BV_CHTriangle::getIsBad ( void   )  const

Returns true if this is a "bad" triangle, false otherwise.

bool BV_CHTriangle::getIsDeleted ( void   )  const [inline]

Definition at line 194 of file BV_OBBTree.h.

void BV_CHTriangle::getNormal ( UT_Vector3 normal  ) 

Gets triangle normal. Cached.

fpreal BV_CHTriangle::getSignedDistance ( const uint  point_index  )  [inline]

Gets signed distance from the given point to the triangle.

uint BV_CHTriangle::getVertex ( int  index  )  const [inline]

Definition at line 196 of file BV_OBBTree.h.

void BV_CHTriangle::markDeleted ( bool  do_call_manager = true  ) 

Marks the triangle as deleted. If bCallManager is true, calls CCHDataManager::onTriangleDeleted() to manage related edges.

void BV_CHTriangle::printAssocPoints ( void   ) 


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

Generated on Mon Jan 28 00:28:30 2013 for HDK by  doxygen 1.5.9