neurolots  0.3.4
NeuroLOTs
nlgeometry::Facet Class Reference
+ Collaboration diagram for nlgeometry::Facet:

Public Types

enum  TFacetType { TRIANGLES = 0, PATCHES }
 

Public Member Functions

NLGEOMETRY_API Facet (VertexPtr vertex0_=nullptr, VertexPtr vertex1_=nullptr, VertexPtr vertex2_=nullptr, VertexPtr vertex3_=nullptr)
 Constructor. More...
 
NLGEOMETRY_API ~Facet (void)
 Default destructor.
 
NLGEOMETRY_API VertexPtrvertex0 (void)
 Method to get the first triangle/quad vertex pointer. More...
 
NLGEOMETRY_API const VertexPtrvertex0 (void) const
 
NLGEOMETRY_API VertexPtrvertex1 (void)
 Method to get the second triangle/quad vertex pointer. More...
 
NLGEOMETRY_API const VertexPtrvertex1 (void) const
 
NLGEOMETRY_API VertexPtrvertex2 (void)
 Method to get the third triangle/quad vertex pointer. More...
 
NLGEOMETRY_API const VertexPtrvertex2 (void) const
 
NLGEOMETRY_API VertexPtrvertex3 (void)
 Method to get the fourth triangle/quad vertex pointer. More...
 
NLGEOMETRY_API const VertexPtrvertex3 (void) const
 
NLGEOMETRY_API void store (Attribs &attribs_, const AttribsFormat format_)
 Method that store the facet vertices attribs and assigns the vertices ids. More...
 
NLGEOMETRY_API std::vector< unsigned int > getIndicesAs (TFacetType facetType_) const
 Method that returns the facet indices stored in a vector. More...
 
NLGEOMETRY_API void addIndicesAs (TFacetType facetType_, std::vector< unsigned int > &indices_) const
 Method that add the facet indices to the referenced vector. More...
 

Detailed Description

Definition at line 37 of file Facet.h.

Constructor & Destructor Documentation

NLGEOMETRY_API nlgeometry::Facet::Facet ( VertexPtr  vertex0_ = nullptr,
VertexPtr  vertex1_ = nullptr,
VertexPtr  vertex2_ = nullptr,
VertexPtr  vertex3_ = nullptr 
)

Constructor.

Parameters
vertex0_pointer to the first triangle/quad vertex
vertex1_pointer to the second triangle/quad vertex
vertex2_pointer to the third triangle/quad vertex
vertex3_pointer to the fourth quad vertex

Member Function Documentation

NLGEOMETRY_API void nlgeometry::Facet::addIndicesAs ( TFacetType  facetType_,
std::vector< unsigned int > &  indices_ 
) const

Method that add the facet indices to the referenced vector.

Parameters
facetType_format to the added indices
indices_indices vector where indices are added

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API std::vector< unsigned int > nlgeometry::Facet::getIndicesAs ( TFacetType  facetType_) const

Method that returns the facet indices stored in a vector.

Parameters
facetType_format to the returns indices
Returns
vector with the facet indices

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API void nlgeometry::Facet::store ( Attribs &  attribs_,
const AttribsFormat  format_ 
)

Method that store the facet vertices attribs and assigns the vertices ids.

Parameters
attribs_reference to the vertex attribs to return

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API VertexPtr& nlgeometry::Facet::vertex0 ( void  )

Method to get the first triangle/quad vertex pointer.

Returns
first triangle/quad vertex pointer

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API VertexPtr& nlgeometry::Facet::vertex1 ( void  )

Method to get the second triangle/quad vertex pointer.

Returns
second triangle/quad vertex pointer

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API VertexPtr& nlgeometry::Facet::vertex2 ( void  )

Method to get the third triangle/quad vertex pointer.

Returns
first triangle/quad vertex pointer

Referenced by ~Facet().

+ Here is the caller graph for this function:

NLGEOMETRY_API VertexPtr& nlgeometry::Facet::vertex3 ( void  )

Method to get the fourth triangle/quad vertex pointer.

Returns
fourth quad vertex pointer

Referenced by ~Facet().

+ Here is the caller graph for this function:


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