61 std::string
const& ele_fname);
72 const std::string& file_name,
74 const std::string& geo_name,
75 const std::vector<GeoLib::Point>& attribute_points);
86 std::vector<MeshLib::Node> &attribute_points)
const;
101 std::vector<GeoLib::Surface*> &surfaces,
102 const std::vector<GeoLib::Point*> &points,
103 const std::vector<std::size_t> &pnt_id_map);
114 std::vector<MeshLib::Node*>& nodes);
126 std::size_t& n_nodes,
128 std::size_t& n_attributes,
129 bool& boundary_markers);
139 std::vector<MeshLib::Node*> &nodes,
155 std::vector<MeshLib::Element*>& elements,
156 std::vector<int>& materials,
157 const std::vector<MeshLib::Node*>& nodes)
const;
168 std::size_t& n_nodes_per_tet,
169 bool& region_attribute);
182 std::vector<MeshLib::Element*> &elements,
183 std::vector<int> &materials,
184 const std::vector<MeshLib::Node*> &nodes,
186 std::size_t n_nodes_per_tet,
187 bool region_attribute)
const;
207 std::vector<MeshLib::Node> &attribute_points)
const;
212 unsigned& element_count,
213 std::string
const& matId);
Definition of the GEOObjects class.
Definition of the Point class.
bool readElementsFromStream(std::ifstream &ins, std::vector< MeshLib::Element * > &elements, std::vector< int > &materials, const std::vector< MeshLib::Node * > &nodes) const
bool _boundary_markers
true if boundary markers are set, false otherwise
MeshLib::Mesh * readTetGenMesh(std::string const &nodes_fname, std::string const &ele_fname)
bool parseNodes(std::ifstream &ins, std::vector< MeshLib::Node * > &nodes, std::size_t n_nodes, std::size_t dim)
static bool parseElementsFileHeader(std::string &line, std::size_t &n_tets, std::size_t &n_nodes_per_tet, bool ®ion_attribute)
void write3dElements(std::ofstream &out, const MeshLib::Mesh &mesh, std::vector< MeshLib::Node > &attribute_points) const
bool readNodesFromStream(std::ifstream &ins, std::vector< MeshLib::Node * > &nodes)
static bool parseNodesFileHeader(std::string const &line, std::size_t &n_nodes, std::size_t &dim, std::size_t &n_attributes, bool &boundary_markers)
bool _zero_based_idx
the value is true if the indexing is zero based, else false
bool readTetGenGeometry(std::string const &geo_fname, GeoLib::GEOObjects &geo_objects)
void write2dElements(std::ofstream &out, const MeshLib::Mesh &mesh) const
bool parseElements(std::ifstream &ins, std::vector< MeshLib::Element * > &elements, std::vector< int > &materials, const std::vector< MeshLib::Node * > &nodes, std::size_t n_tets, std::size_t n_nodes_per_tet, bool region_attribute) const
static bool writeTetGenSmesh(const std::string &file_name, const GeoLib::GEOObjects &geo_objects, const std::string &geo_name, const std::vector< GeoLib::Point > &attribute_points)
static void writeElementToFacets(std::ofstream &out, const MeshLib::Element &element, unsigned &element_count, std::string const &matId)
Writes facet information from a 2D element to the stream and increments the total element count accor...
bool parseSmeshFacets(std::ifstream &input, std::vector< GeoLib::Surface * > &surfaces, const std::vector< GeoLib::Point * > &points, const std::vector< std::size_t > &pnt_id_map)
std::size_t getNFacets(std::ifstream &input)
Returns the declared number of facets in the poly file.
Container class for geometric objects.