Public Member Functions | Public Attributes | List of all members
IndexedTriangle Class Reference

#include <IceIndexedTriangle.h>

Public Member Functions

float Angle (const IndexedTriangle &tri, const Point *verts) const
 
float Area (const Point *verts) const
 
bool BackfaceCulling (const Point *verts, const Point &source) const
 
void Center (const Point *verts, Point &center) const
 
void CenteredNormal (const Point *verts, Point &normal) const
 
float Compacity (const Point *verts) const
 
CubeIndex ComputeCubeIndex (const Point *verts) const
 
float ComputeOcclusionPotential (const Point *verts, const Point &view) const
 
void ComputePoint (const Point *verts, float u, float v, Point &pt, udword *nearvtx=null) const
 
void DenormalizedNormal (const Point *verts, Point &normal) const
 
bool Equal (const IndexedTriangle &tri) const
 
ubyte FindEdge (udword vref0, udword vref1) const
 
void Flip ()
 
void GetVRefs (ubyte edgenb, udword &vref0, udword &vref1, udword &vref2) const
 
bool HasVertex (udword ref) const
 
bool HasVertex (udword ref, udword *index) const
 
inline_ IndexedTriangle ()
 Constructor. More...
 
inline_ IndexedTriangle (udword r0, udword r1, udword r2)
 Constructor. More...
 
inline_ IndexedTriangle (const IndexedTriangle &triangle)
 Copy constructor. More...
 
bool IsDegenerate () const
 
bool IsVisible (const Point *verts, const Point &source) const
 
float MaxEdgeLength (const Point *verts) const
 
float MinEdgeLength (const Point *verts) const
 
void Normal (const Point *verts, Point &normal) const
 
udword OppositeVertex (udword vref0, udword vref1) const
 
inline_ udword OppositeVertex (ubyte edgenb) const
 
float Perimeter (const Point *verts) const
 
inline_ Plane PlaneEquation (const Point *verts) const
 
void RandomPoint (const Point *verts, Point &random) const
 
bool ReplaceVertex (udword oldref, udword newref)
 
inline_ ~IndexedTriangle ()
 Destructor. More...
 

Public Attributes

udword mVRef [3]
 Vertex-references. More...
 

Detailed Description

Definition at line 23 of file IceIndexedTriangle.h.

Constructor & Destructor Documentation

◆ IndexedTriangle() [1/3]

inline_ IndexedTriangle::IndexedTriangle ( )
inline

Constructor.

Definition at line 27 of file IceIndexedTriangle.h.

◆ IndexedTriangle() [2/3]

inline_ IndexedTriangle::IndexedTriangle ( udword  r0,
udword  r1,
udword  r2 
)
inline

Constructor.

Definition at line 29 of file IceIndexedTriangle.h.

◆ IndexedTriangle() [3/3]

inline_ IndexedTriangle::IndexedTriangle ( const IndexedTriangle triangle)
inline

Copy constructor.

Definition at line 31 of file IceIndexedTriangle.h.

◆ ~IndexedTriangle()

inline_ IndexedTriangle::~IndexedTriangle ( )
inline

Destructor.

Definition at line 38 of file IceIndexedTriangle.h.

Member Function Documentation

◆ Angle()

float IndexedTriangle::Angle ( const IndexedTriangle tri,
const Point verts 
) const

◆ Area()

float IndexedTriangle::Area ( const Point verts) const

◆ BackfaceCulling()

bool IndexedTriangle::BackfaceCulling ( const Point verts,
const Point source 
) const

◆ Center()

void IndexedTriangle::Center ( const Point verts,
Point center 
) const

◆ CenteredNormal()

void IndexedTriangle::CenteredNormal ( const Point verts,
Point normal 
) const

◆ Compacity()

float IndexedTriangle::Compacity ( const Point verts) const

◆ ComputeCubeIndex()

CubeIndex IndexedTriangle::ComputeCubeIndex ( const Point verts) const

◆ ComputeOcclusionPotential()

float IndexedTriangle::ComputeOcclusionPotential ( const Point verts,
const Point view 
) const

◆ ComputePoint()

void IndexedTriangle::ComputePoint ( const Point verts,
float  u,
float  v,
Point pt,
udword nearvtx = null 
) const

◆ DenormalizedNormal()

void IndexedTriangle::DenormalizedNormal ( const Point verts,
Point normal 
) const

◆ Equal()

bool IndexedTriangle::Equal ( const IndexedTriangle tri) const

◆ FindEdge()

ubyte IndexedTriangle::FindEdge ( udword  vref0,
udword  vref1 
) const

◆ Flip()

void IndexedTriangle::Flip ( )

◆ GetVRefs()

void IndexedTriangle::GetVRefs ( ubyte  edgenb,
udword vref0,
udword vref1,
udword vref2 
) const

◆ HasVertex() [1/2]

bool IndexedTriangle::HasVertex ( udword  ref) const

◆ HasVertex() [2/2]

bool IndexedTriangle::HasVertex ( udword  ref,
udword index 
) const

◆ IsDegenerate()

bool IndexedTriangle::IsDegenerate ( ) const

◆ IsVisible()

bool IndexedTriangle::IsVisible ( const Point verts,
const Point source 
) const

◆ MaxEdgeLength()

float IndexedTriangle::MaxEdgeLength ( const Point verts) const

◆ MinEdgeLength()

float IndexedTriangle::MinEdgeLength ( const Point verts) const

◆ Normal()

void IndexedTriangle::Normal ( const Point verts,
Point normal 
) const

◆ OppositeVertex() [1/2]

udword IndexedTriangle::OppositeVertex ( udword  vref0,
udword  vref1 
) const

◆ OppositeVertex() [2/2]

inline_ udword IndexedTriangle::OppositeVertex ( ubyte  edgenb) const
inline

Definition at line 61 of file IceIndexedTriangle.h.

◆ Perimeter()

float IndexedTriangle::Perimeter ( const Point verts) const

◆ PlaneEquation()

inline_ Plane IndexedTriangle::PlaneEquation ( const Point verts) const
inline

Definition at line 67 of file IceIndexedTriangle.h.

◆ RandomPoint()

void IndexedTriangle::RandomPoint ( const Point verts,
Point random 
) const

◆ ReplaceVertex()

bool IndexedTriangle::ReplaceVertex ( udword  oldref,
udword  newref 
)

Member Data Documentation

◆ mVRef

udword IndexedTriangle::mVRef[3]

Vertex-references.

Definition at line 40 of file IceIndexedTriangle.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:07