64 std::string
const& ele_fname);
77 const std::string& file_name,
79 const std::string& geo_name,
80 const std::vector<GeoLib::Point>& attribute_points);
93 std::vector<MeshLib::Node>& attribute_points)
const;
110 std::vector<GeoLib::Surface*>& surfaces,
111 const std::vector<GeoLib::Point*>& points,
112 const std::vector<std::size_t>& pnt_id_map);
123 std::vector<MeshLib::Node*>& nodes);
136 std::size_t& n_nodes,
138 std::size_t& n_attributes,
139 bool& boundary_markers);
149 std::vector<MeshLib::Node*>& nodes,
165 std::vector<MeshLib::Element*>& elements,
166 std::vector<int>& materials,
167 const std::vector<MeshLib::Node*>& nodes)
const;
178 std::size_t& n_nodes_per_tet,
179 bool& region_attribute);
196 std::vector<MeshLib::Element*>& elements,
197 std::vector<int>& materials,
198 const std::vector<MeshLib::Node*>& nodes,
200 std::size_t n_nodes_per_tet,
201 bool region_attribute)
const;
220 std::vector<MeshLib::Node>& attribute_points)
const;
226 unsigned& element_count,
227 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)
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.