SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Trixel< T > Class Template Reference

A triangular pixel of a hierarchical triangular mesh. More...

#include <trixel.h>

Inheritance diagram for Trixel< T >:
Inheritance graph
[legend]
Collaboration diagram for Trixel< T >:
Collaboration graph
[legend]

Public Member Functions

 Trixel ()
 Construct a new empty Trixel.
 
 Trixel (std::string id, vec3< T > x, vec3< T > y, vec3< T > z, uint32_t parent=NULL_ID, std::vector< uint32_t > children=std::vector< uint32_t >(4, NULL_ID))
 Construct a new Trixel.
 
std::string getID () const
 Return the Trixel's id.
 
void setParent (uint32_t &p)
 Set the Trixel's parent Trixel.
 
void setChildren (std::vector< uint32_t > &c)
 Set the Trixel's children.
 
const std::vector< uint32_t > & getChildren () const
 Get the Trixel's children.
 
- Public Member Functions inherited from Triangle< T >
 Triangle ()
 Construct a new empty Triangle.
 
 Triangle (vec3< T > v1, vec3< T > v2, vec3< T > v3)
 Construct a new Triangle with the given vertices.
 
std::array< vec3< T >, 3 > getVertices () const
 Get the Vertices of the Triangle.
 
void setVertices (std::array< vec3< T >, 3 > v)
 Set the Vertices of the Triangle.
 
vec3< Tnormal () const
 Calculate the Triangle's normal vector.
 

Additional Inherited Members

- Public Attributes inherited from Triangle< T >
vec3< Tx
 
vec3< Ty
 
vec3< Tz
 

Detailed Description

template<class T>
class Trixel< T >

A triangular pixel of a hierarchical triangular mesh.

Remarks
See also
HTM.
Template Parameters
Tnumeric type.

Constructor & Destructor Documentation

◆ Trixel() [1/2]

template<class T >
Trixel< T >::Trixel ( )
inline

Construct a new empty Trixel.

◆ Trixel() [2/2]

template<class T >
Trixel< T >::Trixel ( std::string  id,
vec3< T x,
vec3< T y,
vec3< T z,
uint32_t  parent = NULL_ID,
std::vector< uint32_t children = std::vector<uint32_t>(4,NULL_ID) 
)
inline

Construct a new Trixel.

Parameters
idthe identity.
xfirst vertex.
ysecond vertex.
zthird vertex.
parentthe parent Trixel.
childrenchild Trixels.

Member Function Documentation

◆ getChildren()

template<class T >
const std::vector< uint32_t > & Trixel< T >::getChildren ( ) const
inline

Get the Trixel's children.

Returns
const std::vector<uint32_t>& childrens' ids.

◆ getID()

template<class T >
std::string Trixel< T >::getID ( ) const
inline

Return the Trixel's id.

Returns
std::string the string id.

◆ setChildren()

template<class T >
void Trixel< T >::setChildren ( std::vector< uint32_t > &  c)
inline

Set the Trixel's children.

Parameters
cchildrens' ids.

◆ setParent()

template<class T >
void Trixel< T >::setParent ( uint32_t p)
inline

Set the Trixel's parent Trixel.

Parameters
pthe parent's id.

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