My Project
Public Member Functions | Static Public Attributes | List of all members
MSHParser Class Reference

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.
 

Detailed Description

Interprets meshes structured in the ".msh" format.

Constructor & Destructor Documentation

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.

Parameters
fileNameis the fileName of the .msh file.
elementsis a list of element pointers found in Mesh
nodesis a list of node pointers found in Mesh

The documentation for this class was generated from the following files: