My Project
|
Interprets meshes structured in the ".msh" format. More...
#include <MSHParser.h>
Public Member Functions | |
MSHParser (std::string fileName, std::vector< Element * > &elements, std::vector< Node > &nodes) | |
Constructor. More... | |
Static Public Attributes | |
static const int | THREE_NODED_TRIANGLE = 2 |
Integer for selecting element type based on the .msh format. | |
static const int | SIX_NODED_TRIANGLE = 9 |
Integer for selecting element type based on the .msh format. | |
static const int | FOUR_NODED_QUAD = 3 |
Integer for selecting element type based on the .msh format. | |
static const int | NINE_NODED_QUAD = 10 |
Integer for selecting element type based on the .msh format. | |
Interprets meshes structured in the ".msh" format.
MSHParser::MSHParser | ( | std::string | fileName, |
std::vector< Element * > & | elements, | ||
std::vector< Node > & | nodes | ||
) |
Constructor.
The constructor takes the filename, and the elements vector and nodes vector from Mesh as arguments. It opens the .msh file and loads the elements and nodes into the respective vector.