12#ifndef __UCDUtilities_H
13#define __UCDUtilities_H
68 std::vector<UCDCell> CreatePointCells(
const Eigen::MatrixXd &
points,
const Eigen::VectorXi &
materials)
const;
69 std::vector<UCDCell> CreateLineCells(
const Eigen::MatrixXi &
lines,
const Eigen::VectorXi &
materials)
const;
70 std::vector<UCDCell> CreatePolygonCells(
const std::vector<std::vector<unsigned int>> &
polygons_vertices,
72 std::vector<UCDCell> CreatePolyhedraCells(
const std::vector<std::vector<unsigned int>> &
polyhedra_vertices,
75 void ExportUCDAscii(
const Eigen::MatrixXd &
points,
77 const std::vector<UCDCell> &
cells,
90 const Eigen::MatrixXd &
points,
92 const Eigen::VectorXi &materials = {})
const;
95 const Eigen::MatrixXd &points,
96 const Eigen::MatrixXi &segments,
97 const std::vector<UCDProperty<double>> &points_properties = {},
98 const std::vector<UCDProperty<double>> &segmnents_properties = {},
99 const Eigen::VectorXi &materials = {})
const;
102 const Eigen::MatrixXd &points,
103 const std::vector<std::vector<unsigned int>> &polygons_vertices,
104 const std::vector<UCDProperty<double>> &points_properties = {},
105 const std::vector<UCDProperty<double>> &polygons_properties = {},
106 const Eigen::VectorXi &materials = {})
const;
109 const Eigen::MatrixXd &points,
110 const std::vector<std::vector<unsigned int>> &polyhedra_vertices,
111 const std::vector<UCDProperty<double>> &points_properties = {},
112 const std::vector<UCDProperty<double>> &polyhedra_properties = {},
113 const Eigen::VectorXi &materials = {})
const;
Eigen column vector.
Definition Eigen_Array.hpp:23
Definition UCDUtilities.hpp:32
const Types Type
Definition UCDUtilities.hpp:47
const unsigned int MaterialId
Definition UCDUtilities.hpp:49
const std::string CellLabel(const UCDCell::Types type) const
Definition UCDUtilities.cpp:280
UCDCell(const Types type, const std::vector< unsigned int > pointIds, const unsigned int materialId)
Definition UCDUtilities.hpp:51
const std::vector< unsigned int > PointIds
Definition UCDUtilities.hpp:48
Types
Definition UCDUtilities.hpp:35
Definition UCDUtilities.hpp:60
void ExportPolygons(const std::string &filePath, const Eigen::MatrixXd &points, const std::vector< std::vector< unsigned int > > &polygons_vertices, const std::vector< UCDProperty< double > > &points_properties={}, const std::vector< UCDProperty< double > > &polygons_properties={}, const Eigen::VectorXi &materials={}) const
Definition UCDUtilities.cpp:56
void ExportPolyhedra(const std::string &filePath, const Eigen::MatrixXd &points, const std::vector< std::vector< unsigned int > > &polyhedra_vertices, const std::vector< UCDProperty< double > > &points_properties={}, const std::vector< UCDProperty< double > > &polyhedra_properties={}, const Eigen::VectorXi &materials={}) const
Definition UCDUtilities.cpp:75
void ExportSegments(const std::string &filePath, const Eigen::MatrixXd &points, const Eigen::MatrixXi &segments, const std::vector< UCDProperty< double > > &points_properties={}, const std::vector< UCDProperty< double > > &segmnents_properties={}, const Eigen::VectorXi &materials={}) const
Definition UCDUtilities.cpp:37
void ExportPoints(const std::string &filePath, const Eigen::MatrixXd &points, const std::vector< UCDProperty< double > > &points_properties={}, const Eigen::VectorXi &materials={}) const
Definition UCDUtilities.cpp:20
virtual ~UCDUtilities()
Definition UCDUtilities.hpp:85
ExportFormats
Definition UCDUtilities.hpp:63
@ Ascii
Definition UCDUtilities.hpp:64
UCDUtilities()
Definition UCDUtilities.hpp:82
Definition Eigen_Array.cpp:22
Definition UCDUtilities.hpp:22
std::string UnitLabel
Definition UCDUtilities.hpp:24
unsigned int Size
Definition UCDUtilities.hpp:26
unsigned int NumComponents
Definition UCDUtilities.hpp:27
std::string Label
Definition UCDUtilities.hpp:23
const T * Data
Definition UCDUtilities.hpp:28