Class for storing Stanford PLY meshes.
More...
#include <EBGeometry_PLY.hpp>
|
|
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.
- Note
- T is the precision used for storing the mesh.
◆ PLY()
Constructor. Initializes empty vertices and facets but sets the PLY ID (usually the file name.
- Parameters
-
| [in] | a_id | Identifier for PLY object |
◆ convertToDCEL()
| std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > PLY< T >::convertToDCEL |
( |
| ) |
const |
|
noexcept |
Turn the PLY mesh into a DCEL mesh.
This call does not populate any meta-data in the DCEL mesh structures. If you need to also populate the meta-data on vertices and faces, you should not use this function but supply your own constructor.
◆ getFaceProperties() [1/2]
| const std::vector< T > & PLY< T >::getFaceProperties |
( |
const std::string |
a_property | ) |
const |
|
noexcept |
Get the vertex properties.
- Parameters
-
| [in] | a_property | Which property to fetch |
- Note
- Function will fail if the property does not exist
- Returns
- m_vertexProperties at provided property
◆ getFaceProperties() [2/2]
| std::vector< T > & PLY< T >::getFaceProperties |
( |
const std::string |
a_property | ) |
|
|
noexcept |
Get the face properties.
- Parameters
-
| [in] | a_property | Which property to fetch |
- Note
- Function will fail if the property does not exist
- Returns
- m_faceProperties at provided property
◆ getFacets() [1/2]
Get the face indices.
- Returns
- m_facets
◆ getFacets() [2/2]
| std::vector< std::vector< size_t > > & PLY< T >::getFacets |
( |
| ) |
|
|
noexcept |
Get the face indices.
- Returns
- m_facets
◆ getVertexCoordinates() [1/2]
Get the vertex coordinates.
- Returns
- m_vertexCoordinates
◆ getVertexCoordinates() [2/2]
| std::vector< Vec3T< T > > & PLY< T >::getVertexCoordinates |
( |
| ) |
|
|
noexcept |
Get the vertex coordinates.
- Returns
- m_vertexCoordinates
◆ getVertexProperties() [1/2]
| const std::vector< T > & PLY< T >::getVertexProperties |
( |
const std::string |
a_property | ) |
const |
|
noexcept |
Get the vertex properties.
- Parameters
-
| [in] | a_property | Which property to fetch |
- Note
- Function will fail if the property does not exist
- Returns
- m_vertexProperties at provided property
◆ getVertexProperties() [2/2]
| std::vector< T > & PLY< T >::getVertexProperties |
( |
const std::string |
a_property | ) |
|
|
noexcept |
Get the vertex properties.
- Parameters
-
| [in] | a_property | Which property to fetch |
- Note
- Function will fail if the property does not exist
- Returns
- m_vertexProperties at provided property
◆ setFaceProperties()
| void PLY< T >::setFaceProperties |
( |
const std::string |
a_property, |
|
|
const std::vector< T > & |
a_data |
|
) |
| |
|
noexcept |
Set face properties.
- Parameters
-
| [in] | a_property | Property name |
| [in] | a_data | Property data |
◆ setVertexProperties()
| void PLY< T >::setVertexProperties |
( |
const std::string |
a_property, |
|
|
const std::vector< T > & |
a_data |
|
) |
| |
|
noexcept |
Set vertex properties.
- Parameters
-
| [in] | a_property | Property name |
| [in] | a_data | Property data |
The documentation for this class was generated from the following file: