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

Public Member Functions | |
| OBJ () noexcept=default | |
| Default constructor. Initializes empty member data holder. | |
| OBJ (const std::string &a_id) noexcept | |
| Constructor. Initializes empty vertices and facets but sets the OBJ ID (usually the file name. | |
| OBJ (const OBJ &a_other)=default | |
| Copy constructor. | |
| OBJ (OBJ &&a_other) noexcept=default | |
| Move constructor. | |
| OBJ & | operator= (const OBJ &a_other)=default |
| Copy assignment operator. | |
| OBJ & | operator= (OBJ &&a_other) noexcept=default |
| Move assignment operator. | |
| ~OBJ () 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 polygon facet indices. | |
| const std::vector< std::vector< size_t > > & | getFacets () const noexcept |
| Get the polygon facet indices. | |
| template<typename Meta > | |
| std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > | convertToDCEL () const noexcept |
| Turn the OBJ mesh into a DCEL mesh. | |
Protected Attributes | |
| std::string | m_id |
| OBJ object ID. | |
| std::vector< Vec3T< T > > | m_vertexCoordinates |
| Vertex coordinates. | |
| std::vector< std::vector< size_t > > | m_facets |
| Polygon facets. | |
Class for storing contents of Wavefront OBJ files.
This structure is simply used as conversion utility between OBJ files and various EBGeometry objects (triangle soups, DCEL meshes, etc). Only vertex ('v') and face ('f') records are retained; texture/normal indices, groups, and materials are ignored.
| T | Floating-point precision for vertex coordinates. |
|
noexcept |
|
default |
Copy constructor.
| [in] | a_other | Other OBJ object. |
|
defaultnoexcept |
Move constructor.
| [in,out] | a_other | Other OBJ object. |
|
noexcept |
|
noexcept |
Get the polygon facet indices.
|
noexcept |
Get the polygon 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 |