open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | List of all members
iATriPrim Class Reference

Triangle primitive class. More...

#include <iAScene.h>

Collaboration diagram for iATriPrim:

Public Member Functions

int CenterInside (iAaabb &a_aabb) const
 
float & d ()
 
float GetAngleCos (iARay &a_Ray)
 
float getAxisBound (unsigned int axis_int, unsigned int maximum) const
 
unsigned int GetIndex ()
 
float getMaxX () const
 
float getMaxY () const
 
float getMaxZ () const
 
float getMinX () const
 
float getMinY () const
 
float getMinZ () const
 
const iAtrianglegetTri () const
 
iAVec3fgetVertex (int i)
 
iAwald_tri GetWaldTri ()
 
 iATriPrim (iAtriangle *a_Tri, unsigned int index=0)
 
 iATriPrim (iAVec3f *a_V1, iAVec3f *a_V2, iAVec3f *a_V3, unsigned int index=0)
 
virtual int Intersect (iAaabb &a_aabb, iAVec3f &a_BoxCentre, iAVec3f &a_BoxHalfsize) const
 
virtual int Intersect (iARay &a_Ray, float &a_Dist) const
 
iAVec3fnormal ()
 
void recalculateD (iAVec3f *translate)
 recalculate d coefficient when translation vector is given. More...
 
float & surface ()
 

Detailed Description

Triangle primitive class.

Constructor & Destructor Documentation

◆ iATriPrim() [1/2]

iATriPrim::iATriPrim ( iAVec3f a_V1,
iAVec3f a_V2,
iAVec3f a_V3,
unsigned int  index = 0 
)

◆ iATriPrim() [2/2]

iATriPrim::iATriPrim ( iAtriangle a_Tri,
unsigned int  index = 0 
)

Member Function Documentation

◆ CenterInside()

int iATriPrim::CenterInside ( iAaabb a_aabb) const

◆ d()

float& iATriPrim::d ( )
inline

◆ GetAngleCos()

float iATriPrim::GetAngleCos ( iARay a_Ray)
inline

◆ getAxisBound()

float iATriPrim::getAxisBound ( unsigned int  axis_int,
unsigned int  maximum 
) const
inline

◆ GetIndex()

unsigned int iATriPrim::GetIndex ( )
inline

◆ getMaxX()

float iATriPrim::getMaxX ( ) const
inline

◆ getMaxY()

float iATriPrim::getMaxY ( ) const
inline

◆ getMaxZ()

float iATriPrim::getMaxZ ( ) const
inline

◆ getMinX()

float iATriPrim::getMinX ( ) const
inline

◆ getMinY()

float iATriPrim::getMinY ( ) const
inline

◆ getMinZ()

float iATriPrim::getMinZ ( ) const
inline

◆ getTri()

const iAtriangle* iATriPrim::getTri ( ) const
inline

◆ getVertex()

iAVec3f* iATriPrim::getVertex ( int  i)
inline

◆ GetWaldTri()

iAwald_tri iATriPrim::GetWaldTri ( )
inline

◆ Intersect() [1/2]

int iATriPrim::Intersect ( iAaabb a_aabb,
iAVec3f a_BoxCentre,
iAVec3f a_BoxHalfsize 
) const
virtual

◆ Intersect() [2/2]

int iATriPrim::Intersect ( iARay a_Ray,
float &  a_Dist 
) const
virtual

◆ normal()

iAVec3f& iATriPrim::normal ( )
inline

◆ recalculateD()

void iATriPrim::recalculateD ( iAVec3f translate)

recalculate d coefficient when translation vector is given.

◆ surface()

float& iATriPrim::surface ( )
inline

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