public

Inheritance Graph

graph BT
	TriangleAccessor
	click TriangleAccessor "classMinSG_1_1TriangleTrees_1_1TriangleAccessor"

Description

Reference to a triangle inside a mesh.

Author: Benjamin Eikel

Date: 2011-07-25

Public Functions

   
   
  TriangleAccessor(const Rendering::Mesh * _mesh, uint32_t _triangleIndex)
   
float getMin(uint_fast8_t dim) const
   
float getMax(uint_fast8_t dim) const
   
const uint8_t * getVertexData(unsigned char num) const
   
const float * getVertexPosition(unsigned char num) const
   
Geometry::Triangle_f getTriangle() const
   
uint32_t getTriangleIndex() const

Documentation

function
MinSG::TriangleTrees::TriangleAccessor::TriangleAccessor

public
     
     
TriangleAccessor( const Rendering::Mesh * _mesh,
  uint32_t _triangleIndex
)    

Create a reference to the triangle specified by the given index inside the given mesh.

Parameters

_mesh
Mesh containing the referenced triangle.
_triangleIndex
Index of the triangle inside the given mesh.

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:43


function
MinSG::TriangleTrees::TriangleAccessor::getMin

public const inline
     
     
float getMin( uint_fast8_t dim ) const

Return the minimum coordinate of all three vertices in the requested dimension.

Parameters

dim
Dimension of coordinate.

Returns

Minimum coordinate value.

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:52


function
MinSG::TriangleTrees::TriangleAccessor::getMax

public const inline
     
     
float getMax( uint_fast8_t dim ) const

Return the maximum coordinate of all three vertices in the requested dimension.

Parameters

dim
Dimension of coordinate.

Returns

Maximum coordinate value.

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:63


function
MinSG::TriangleTrees::TriangleAccessor::getVertexData

public const
     
     
const uint8_t * getVertexData( unsigned char num ) const

Return the data pointer of the requested vertex.

Parameters

num
Number of vertex in {0, 1, 2}

Returns

Beginning of vertex data

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:73


function
MinSG::TriangleTrees::TriangleAccessor::getVertexPosition

public const inline
     
     
const float * getVertexPosition( unsigned char num ) const

Return the coordinates of the requested vertex.

Parameters

num
Number of vertex in {0, 1, 2}

Returns

Coordinates of vertex as three values

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:81


function
MinSG::TriangleTrees::TriangleAccessor::getTriangle

public const
   
   
Geometry::Triangle_f getTriangle( ) const

Return a triangle structure that can be used for calculations.

Returns

Geometric description of the triangle

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:90


function
MinSG::TriangleTrees::TriangleAccessor::getTriangleIndex

public const inline
   
   
uint32_t getTriangleIndex( ) const

Return the index of the triangle inside the mesh.

Returns

The index of the triangle inside the mesh.

Defined in MinSG/Ext/TriangleTrees/TriangleAccessor.h:97