|
EBGeometry 1.0
|
Class for storing VTK Polydata meshes. More...
#include <EBGeometry_VTK.hpp>
Public Member Functions | |
| VTK () noexcept | |
| 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. | |
| virtual | ~VTK () 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 > & | getPointDataScalars (const std::string a_name) noexcept |
| Get the point data scalars. | |
| const std::vector< T > & | getPointDataScalars (const std::string a_name) const noexcept |
| Get the point data scalars. | |
| std::vector< T > & | getCellDataScalars (const std::string a_name) noexcept |
| Get the cell data scalars. | |
| const std::vector< T > & | getCellDataScalars (const std::string a_name) const noexcept |
| Get the cell data scalars. | |
| void | setPointDataScalars (const std::string a_name, const std::vector< T > &a_data) noexcept |
| Set point data scalars. | |
| void | setCellDataScalars (const std::string a_name, const std::vector< T > &a_data) noexcept |
| 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.
Get the cell data scalars.
| [in] | a_name | Scalar array name |
Get the cell data scalars.
| [in] | a_name | Scalar array name |
Get the face indices.
Get the face indices.
Get the point data scalars.
| [in] | a_name | Scalar array name |
Get the point data scalars.
| [in] | a_name | Scalar array name |
Get the vertex coordinates.
Get the vertex coordinates.
|
noexcept |
Set cell data scalars.
| [in] | a_name | Array name |
| [in] | a_data | Array data |
|
noexcept |
Set point data scalars.
| [in] | a_name | Array name |
| [in] | a_data | Array data |