11#ifndef EBGEOMETRY_VTK_HPP
12#define EBGEOMETRY_VTK_HPP
35 static_assert(std::is_floating_point_v<T>,
"VTK<T>: T must be a floating-point type");
114 [[
nodiscard]] std::vector<std::vector<
size_t>>&
216#include "EBGeometry_VTKImplem.hpp"
Declaration of 2D and 3D point/vector classes with templated precision. Used with DCEL tools.
Class for storing VTK Polydata meshes.
Definition EBGeometry_VTK.hpp:34
std::map< std::string, std::vector< T > > m_cellDataScalars
Cell data scalar arrays.
Definition EBGeometry_VTK.hpp:211
std::string m_id
VTK object ID.
Definition EBGeometry_VTK.hpp:191
std::string & getID() noexcept
Get the identifier for this object.
std::vector< T > & getPointDataScalars(const std::string a_name)
Get the point data scalars.
VTK() noexcept=default
Default constructor. Initializes empty member data holder.
std::vector< std::vector< size_t > > & getFacets() noexcept
Get the face indices.
std::shared_ptr< EBGeometry::DCEL::MeshT< T, Meta > > convertToDCEL() const noexcept
Turn the VTK mesh into a DCEL mesh.
void setPointDataScalars(const std::string a_name, std::vector< T > a_data)
Set point data scalars.
std::map< std::string, std::vector< T > > m_pointDataScalars
Point data scalar arrays.
Definition EBGeometry_VTK.hpp:206
std::vector< Vec3T< T > > m_vertexCoordinates
Vertex coordinates.
Definition EBGeometry_VTK.hpp:196
std::vector< std::vector< size_t > > m_facets
Faces – each entry in the outer vector contains the indices defining one face.
Definition EBGeometry_VTK.hpp:201
std::vector< Vec3T< T > > & getVertexCoordinates() noexcept
Get the vertex coordinates.
void setCellDataScalars(const std::string a_name, std::vector< T > a_data)
Set cell data scalars.
std::vector< T > & getCellDataScalars(const std::string a_name)
Get the cell data scalars.
Three-dimensional vector class with arithmetic operators.
Definition EBGeometry_Vec.hpp:225
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_AnalyticDistanceFunctions.hpp:31