![]() |
MoCSI API Reference
|
Managing class for all types of meshes. Provides the interface to all the needed data when working with a mesh in a pseudo 3D case. More...
#include <ShapeBase.h>

Public Member Functions | |
| const std::vector< std::vector< T > > & | getVertices () const |
| const std::vector< std::vector< int > > & | getFaces () const |
| const std::vector< std::vector< T > > & | getNormals () const |
| const std::vector< T > & | getAreas () const |
| int | getNumberOfFacets () const |
| void | setVertices (const std::vector< std::vector< T > > vertex_list) |
| void | setFaces (const std::vector< std::vector< int > > &face_list) |
| void | setNormals (const std::vector< std::vector< T > > face_normals) |
| void | setAreas (const std::vector< T > face_areas) |
| void | validityCheck () |
| Checks whether the mesh has at least one valid facet and whether all vectors of expected equal length are actually equal or not. | |
| ShapeBase () | |
| Constructor for an empty ShapeBase object. | |
| ShapeBase (std::vector< std::vector< T > > vertex_list, std::vector< std::vector< int > > face_list, std::vector< std::vector< T > > face_normals, std::vector< T > face_areas) | |
| Constructor for a filled ShapeBase object. | |
| ~ShapeBase ()=default | |
Protected Attributes | |
| std::vector< std::vector< T > > | m_vertex_list {} |
| std::vector< std::vector< int > > | m_face_list |
| std::vector< std::vector< T > > | m_face_normals {} |
| std::vector< T > | m_face_areas {} |
Managing class for all types of meshes. Provides the interface to all the needed data when working with a mesh in a pseudo 3D case.
| ShapeBase< T >::ShapeBase | ( | std::vector< std::vector< T > > | vertex_list, |
| std::vector< std::vector< int > > | face_list, | ||
| std::vector< std::vector< T > > | face_normals, | ||
| std::vector< T > | face_areas | ||
| ) |
Constructor for a filled ShapeBase object.
| vertex_list | List of the 3D coordinates of all vertices within a mesh. |
| face_list | List of the vertices belonging to all faces within a mesh. |
| face_normals | List of the 3D coordinates of all normal vectors of the faces within a mesh. |
| face_areas | List of the areas of all faces within a mesh. |
Checks whether the mesh has at least one valid facet and whether all vectors of expected equal length are actually equal or not.