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

#include <BV_OBBTree.h>

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. More...
 
bool canSee (const uint point_index)
 Checks whether this triangle can see the given point or not. More...
 
void associatePoints (TPointIndexArray &points_in, bool do_ignore_restart_flag)
 
bool getIsBad () const
 Returns true if this is a "bad" triangle, false otherwise. More...
 
void clearAssocPoints ()
 Clears all points associated with this triangle. More...
 
bool findMostDistantAssocPoint (uint &point_idx_out)
 Find the most distant point associated with this triangle. More...
 
void getNormal (UT_Vector3 &normal)
 Gets triangle normal. Cached. More...
 
void getAssocPoints (TPointIndexArray &points_idx_out)
 Appends this triangle's associated points to rPointsOut array. More...
 
void printAssocPoints ()
 
bool getIsDeleted () const
 
uint getVertex (int index) const
 

Detailed Description

Definition at line 151 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 ( )

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 ( ) const

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

bool BV_CHTriangle::getIsDeleted ( ) const
inline

Definition at line 189 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 191 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 ( )

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