|
EBGeometry 1.0
|
Class for storing contents of STL files. More...
#include <EBGeometry_STL.hpp>
Public Member Functions | |
| STL () noexcept | |
| Default constructor. Initializes empty member data holder. | |
| STL (const std::string a_id) noexcept | |
| Constructor. Initializes empty vertices and facets but sets the STL ID (usually the file name. | |
| virtual | ~STL () noexcept |
| Destructor. Clears all data. | |
| std::string & | getID () noexcept |
| Get the identifier for this object. | |
| const std::string & | getID () const noexcept |
| Get the identifier for this object. | |
| std::vector< Vec3T< T > > & | getVertexCoordinates () noexcept |
| Get the vertex coordinates. | |
| const std::vector< Vec3T< T > > & | getVertexCoordinates () const noexcept |
| Get the vertex coordinates. | |
| std::vector< std::vector< size_t > > & | getFacets () noexcept |
| Get the triangle facet indices. | |
| const std::vector< std::vector< size_t > > & | getFacets () const noexcept |
| Get the triangle facet indices. | |
| template<typename Meta > | |
| std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > | convertToDCEL () const noexcept |
| Turn the STL mesh into a DCEL mesh. | |
Protected Attributes | |
| std::string | m_id |
| STL object ID. | |
| std::vector< Vec3T< T > > | m_vertexCoordinates |
| Vertex coordinates. | |
| std::vector< std::vector< size_t > > | m_facets |
| Triangle facets. | |
Class for storing contents of STL files.
This structure is simply used as conversion utility between STL files and various EBGeometry objects (triangle soups, DCEL meshes, etc).
Get the triangle facet indices.
Get the triangle facet indices.
Get the vertex coordinates.
Get the vertex coordinates.