|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Class for storing contents of STL files. More...
#include <EBGeometry_STL.hpp>

Public Member Functions | |
| STL () noexcept=default | |
| 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. | |
| STL (const STL &a_other)=default | |
| Copy constructor. | |
| STL (STL &&a_other) noexcept=default | |
| Move constructor. | |
| STL & | operator= (const STL &a_other)=default |
| Copy assignment operator. | |
| STL & | operator= (STL &&a_other) noexcept=default |
| Move assignment operator. | |
| ~STL () noexcept=default | |
| Destructor (does nothing). | |
| 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).
| T | Floating-point precision for vertex coordinates. |
|
noexcept |
|
default |
Copy constructor.
| [in] | a_other | Other STL object. |
|
defaultnoexcept |
Move constructor.
| [in,out] | a_other | Other STL object. |
|
noexcept |
|
noexcept |
Get the triangle facet indices.
|
noexcept |
Get the triangle facet indices.
|
noexcept |
Get the identifier for this object.
|
noexcept |
Get the identifier for this object.
|
noexcept |
Get the vertex coordinates.
|
noexcept |
Get the vertex coordinates.
|
default |
|
defaultnoexcept |