|
Hermes2D
2.0
|
#include <mesh_reader_h2d_xml.h>
Inheritance diagram for Hermes::Hermes2D::MeshReaderH2DXML:Public Member Functions | |
| virtual bool | load (const char *filename, Mesh *mesh) |
| This method loads a single mesh from a file. | |
| bool | save (const char *filename, Mesh *mesh) |
| This method saves a single mesh to a file. | |
| bool | load (const char *filename, Hermes::vector< Mesh * > meshes) |
| bool | save (const char *filename, Hermes::vector< Mesh * > meshes) |
| This method saves multiple meshes according to subdomains in the vector meshes. | |
Public Member Functions inherited from Hermes::Hermes2D::Mixins::XMLParsing | |
| XMLParsing () | |
| Constructor. | |
| void | set_validation (bool to_set) |
| Set to validate / not to validate. | |
Protected Member Functions | |
| bool | load (std::auto_ptr< XMLMesh::mesh > &parsed_xml_mesh, Mesh *mesh, std::map< unsigned int, unsigned int > &vertex_is) |
| Internal method loading contents of parsed_xml_mesh into mesh. | |
| bool | load (std::auto_ptr< XMLSubdomains::domain > &parsed_xml_domain, Mesh *mesh, int *vertex_is, int *element_is, int *edge_is) |
| Internal method loading contents of parsed_xml_domain's domain into mesh. | |
| template<typename T > | |
| Nurbs * | load_arc (Mesh *mesh, std::auto_ptr< T > &parsed_xml_entity, int id, Node **en, int p1, int p2, bool skip_check=false) |
| template<typename T > | |
| Nurbs * | load_nurbs (Mesh *mesh, std::auto_ptr< T > &parsed_xml_entity, int id, Node **en, int p1, int p2, bool skip_check=false) |
| void | save_arc (Mesh *mesh, int p1, int p2, Nurbs *nurbs, XMLMesh::curves_type &curves) |
| Saves one circular arc. | |
| void | save_nurbs (Mesh *mesh, int p1, int p2, Nurbs *nurbs, XMLMesh::curves_type &curves) |
| Saves one general NURBS curve. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from Hermes::Hermes2D::MeshReader | |
| static bool | is_twin_nurbs (Element *e, int i) |
Protected Attributes inherited from Hermes::Hermes2D::Mixins::XMLParsing | |
| bool | validate |
| Internal. | |
Mesh reader from Hermes2D format
Typical usage: Hermes::Hermes2D::Mesh 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 55 of file mesh_reader_h2d_xml.h.
| bool Hermes::Hermes2D::MeshReaderH2DXML::load | ( | const char * | filename, |
| Hermes::vector< Mesh * > | 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 145 of file mesh_reader_h2d_xml.cpp.
|
protected |
Loads one circular arc.
| [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 1298 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 1354 of file mesh_reader_h2d_xml.cpp.