Hermes2D
3.0
|
#include <mesh_reader_h2d_xml.h>
Public Member Functions | |
virtual void | load (const char *filename, MeshSharedPtr mesh) |
This method loads a single mesh from a file. | |
virtual void | load (std::auto_ptr< XMLMesh::mesh > &parsed_xml_mesh, MeshSharedPtr mesh) |
This method loads a single mesh from a XML structure. | |
void | save (const char *filename, MeshSharedPtr mesh) |
This method saves a single mesh to a file. | |
void | load (const char *filename, std::vector< MeshSharedPtr > meshes) |
void | load (std::auto_ptr< XMLSubdomains::domain > &parsed_xml_domain, std::vector< MeshSharedPtr > meshes) |
void | save (const char *filename, std::vector< MeshSharedPtr > meshes) |
This method saves multiple meshes according to subdomains in the vector meshes. | |
![]() | |
XMLParsing () | |
Constructor. | |
void | set_validation (bool to_set) |
Set to validate / not to validate. | |
Protected Member Functions | |
void | load (std::auto_ptr< XMLMesh::mesh > &parsed_xml_mesh, MeshSharedPtr mesh, std::map< unsigned int, unsigned int > &vertex_is) |
Internal method loading contents of parsed_xml_mesh into mesh. | |
void | load (std::auto_ptr< XMLSubdomains::domain > &parsed_xml_domain, MeshSharedPtr mesh, std::map< int, int > &vertex_is, std::map< int, int > &element_is, std::map< int, int > &edge_is) |
Internal method loading contents of parsed_xml_domain's domain into mesh. | |
template<typename T > | |
Nurbs * | load_nurbs (MeshSharedPtr mesh, std::auto_ptr< T > &parsed_xml_entity, int id, Node **en, int p1, int p2, bool skip_check=false) |
void | save_arc (MeshSharedPtr mesh, int p1, int p2, Arc *curve, XMLMesh::curves_type &curves) |
Saves one circular arc. | |
void | save_nurbs (MeshSharedPtr mesh, int p1, int p2, Nurbs *curve, XMLMesh::curves_type &curves) |
Saves one general NURBS curve. | |
Additional Inherited Members | |
![]() | |
RefMap | ref_map |
Reference mapping for detecting the inverse reference mapping order. | |
![]() | |
bool | validate |
Internal. | |
Mesh reader from Hermes2D XML format
Typical usage: MeshSharedPtr mesh; Hermes::Hermes2D::MeshReaderH2DXML mloader; try { mloader.load("mesh.xml", &mesh); } catch(Exceptions::MeshLoadFailureException& e) { e.print_msg(); return -1; }
The format specification is in hermes2d/xml_schemas/mesh_h2d_xml.xsd
Definition at line 54 of file mesh_reader_h2d_xml.h.
void Hermes::Hermes2D::MeshReaderH2DXML::load | ( | const char * | filename, |
std::vector< MeshSharedPtr > | meshes | ||
) |
This method loads multiple meshes according to subdomains described in the meshfile.
[in] | meshes | Meshes to be loaded, the number must correspond to the subdomains described in the file. also the order is determined by the order in the file. |
Definition at line 153 of file mesh_reader_h2d_xml.cpp.
void Hermes::Hermes2D::MeshReaderH2DXML::load | ( | std::auto_ptr< XMLSubdomains::domain > & | parsed_xml_domain, |
std::vector< MeshSharedPtr > | meshes | ||
) |
This method loads multiple meshes according to subdomains described in the meshfile.
[in] | meshes | Meshes to be loaded, the number must correspond to the subdomains described in the provided XML structure. also the order is determined by the order in the file. |
Definition at line 172 of file mesh_reader_h2d_xml.cpp.
|
protected |
Loads one general NURBS curve.
[in] | parsed_xml_entity | Either XMLSubdomains::domain or XMLMesh::mesh. |
[in] | skip_check | Skip check that the edge exists, in case of subdomains. |
Definition at line 1185 of file mesh_reader_h2d_xml.cpp.