27CSectionMesh::CSectionMesh(
void)
46 Element.SetAttribute(
"type",
GetType());
54 const string* pType = Element.Attribute(
string(
"type"));
57 if (*pType ==
"CSectionMeshTriangulate")
59 else if (*pType ==
"CSectionMeshRectangular")
61 else if (*pType ==
"CSectionMeshRectangleSection")
Defines the nodes and elements of a surface or volume mesh.
Object container to help handle memory management issues.
virtual string GetType() const =0
Derived class should return the class name.
bool CreateMeshIfNeeded(const vector< XY > &Section) const
Create the mesh if it has not already been created.
CMesh m_Mesh
Used to cache the result of the previous mesh for efficiency.
const CMesh & GetMesh(const vector< XY > &Section) const
Accessor methods.
virtual ~CSectionMesh(void)
virtual bool CreateMesh(const vector< XY > &Section) const =0
Create a mesh out of given list of points representing the edge of the section.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
static CObjectContainer< CSectionMesh > CreateSectionMesh(TiXmlElement &Element)
Create a section from TiXmlElement.
vector< XY > m_Section
Store the section used to request a mesh the last time.
Create a rectangular mesh, the number of layers can be specified or set as -1 for automatic determina...
Create a rectangular mesh, the number of layers can be specified or set as -1 for automatic determina...
Creates a mesh of a section using open source package triangle http://www.cs.cmu.edu/~quake/triangle....
Namespace containing a series of customised math operations not found in the standard c++ library.