|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Class for storing VTK Polydata meshes. More...
#include <EBGeometry_VTK.hpp>

Public Member Functions | |
| VTK () noexcept=default | |
| Default constructor. Initializes empty member data holder. | |
| VTK (const std::string &a_id) noexcept | |
| Constructor. Initializes empty vertices and facets but sets the VTK ID (usually the file name. | |
| VTK (const VTK &a_other)=default | |
| Copy constructor. | |
| VTK (VTK &&a_other) noexcept=default | |
| Move constructor. | |
| VTK & | operator= (const VTK &a_other)=default |
| Copy assignment operator. | |
| VTK & | operator= (VTK &&a_other) noexcept=default |
| Move assignment operator. | |
| ~VTK () noexcept=default | |
| 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 > & | getPointDataScalars (const std::string a_name) |
| Get the point data scalars. | |
| const std::vector< T > & | getPointDataScalars (const std::string a_name) const |
| Get the point data scalars. | |
| std::vector< T > & | getCellDataScalars (const std::string a_name) |
| Get the cell data scalars. | |
| const std::vector< T > & | getCellDataScalars (const std::string a_name) const |
| Get the cell data scalars. | |
| void | setPointDataScalars (const std::string a_name, std::vector< T > a_data) |
| Set point data scalars. | |
| void | setCellDataScalars (const std::string a_name, std::vector< T > a_data) |
| Set cell data scalars. | |
| template<typename Meta > | |
| std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > | convertToDCEL () const noexcept |
| Turn the VTK mesh into a DCEL mesh. | |
Protected Attributes | |
| std::string | m_id |
| VTK 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_pointDataScalars |
| Point data scalar arrays. | |
| std::map< std::string, std::vector< T > > | m_cellDataScalars |
| Cell data scalar arrays. | |
Class for storing VTK Polydata meshes.
| T | Floating-point precision for vertex coordinates and scalar arrays. |
|
noexcept |
|
default |
Copy constructor.
| [in] | a_other | Other VTK object. |
|
defaultnoexcept |
Move constructor.
| [in,out] | a_other | Other VTK object. |
|
noexcept |
Turn the VTK 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.
| Meta | Metadata type attached to DCEL vertices, edges, and faces. |
| std::vector< T > & EBGeometry::VTK< T >::getCellDataScalars | ( | const std::string | a_name | ) |
Get the cell data scalars.
| [in] | a_name | Scalar array name |
| const std::vector< T > & EBGeometry::VTK< T >::getCellDataScalars | ( | const std::string | a_name | ) | const |
Get the cell data scalars.
| [in] | a_name | Scalar array name |
|
noexcept |
Get the face indices.
|
noexcept |
Get the face indices.
|
noexcept |
Get the identifier for this object.
|
noexcept |
Get the identifier for this object.
| std::vector< T > & EBGeometry::VTK< T >::getPointDataScalars | ( | const std::string | a_name | ) |
Get the point data scalars.
| [in] | a_name | Scalar array name |
| const std::vector< T > & EBGeometry::VTK< T >::getPointDataScalars | ( | const std::string | a_name | ) | const |
Get the point data scalars.
| [in] | a_name | Scalar array name |
|
noexcept |
Get the vertex coordinates.
|
noexcept |
Get the vertex coordinates.
|
default |
|
defaultnoexcept |
| void EBGeometry::VTK< T >::setCellDataScalars | ( | const std::string | a_name, |
| std::vector< T > | a_data | ||
| ) |
Set cell data scalars.
| [in] | a_name | Array name |
| [in] | a_data | Array data |
| void EBGeometry::VTK< T >::setPointDataScalars | ( | const std::string | a_name, |
| std::vector< T > | a_data | ||
| ) |
Set point data scalars.
| [in] | a_name | Array name |
| [in] | a_data | Array data |