|
EBGeometry 1.0
|
Class for storing Stanford PLY meshes. More...
#include <EBGeometry_PLY.hpp>
Public Member Functions | |
| PLY () noexcept | |
| Default constructor. Initializes empty member data holder. | |
| PLY (const std::string a_id) noexcept | |
| Constructor. Initializes empty vertices and facets but sets the PLY ID (usually the file name. | |
| virtual | ~PLY () 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 face indices. | |
| const std::vector< std::vector< size_t > > & | getFacets () const noexcept |
| Get the face indices. | |
| std::vector< T > & | getVertexProperties (const std::string a_property) |
| Get the vertex properties. | |
| const std::vector< T > & | getVertexProperties (const std::string a_property) const |
| Get the vertex properties. | |
| std::vector< T > & | getFaceProperties (const std::string a_property) |
| Get the face properties. | |
| const std::vector< T > & | getFaceProperties (const std::string a_property) const |
| Get the vertex properties. | |
| void | setVertexProperties (const std::string a_property, const std::vector< T > &a_data) |
| Set vertex properties. | |
| void | setFaceProperties (const std::string a_property, const std::vector< T > &a_data) |
| Set face properties. | |
| template<typename Meta > | |
| std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > | convertToDCEL () const noexcept |
| Turn the PLY mesh into a DCEL mesh. | |
Public Attributes | |
| std::string | m_id |
| PLY object ID. | |
| std::vector< Vec3T< T > > | m_vertexCoordinates |
| Vertex coordinates. | |
| std::vector< std::vector< size_t > > | m_facets |
| Faces – each entry in the outer vector contains the indices defining one face. | |
| std::map< std::string, std::vector< T > > | m_vertexProperties |
| Vertex properties. | |
| std::map< std::string, std::vector< T > > | m_faceProperties |
| Face properties. | |
Class for storing Stanford PLY meshes.
Get the face properties.
| [in] | a_property | Which property to fetch |
Get the vertex properties.
| [in] | a_property | Which property to fetch |
Get the face indices.
Get the face indices.
Get the vertex coordinates.
Get the vertex coordinates.
Get the vertex properties.
| [in] | a_property | Which property to fetch |
Get the vertex properties.
| [in] | a_property | Which property to fetch |
Set face properties.
| [in] | a_property | Property name |
| [in] | a_data | Property data |
| void PLY< T >::setVertexProperties | ( | const std::string | a_property, |
| const std::vector< T > & | a_data | ||
| ) |
Set vertex properties.
| [in] | a_property | Property name |
| [in] | a_data | Property data |