27CSurfaceMesh::CSurfaceMesh(
double Seed,
bool bFillEnds ) :
CMeshDomainPlane(Seed, bFillEnds)
41 TGERROR(
"Error creating surface mesh.");
56 vector<CMesh>::iterator itTriangulatedMeshes;
#define TGERROR(MESSAGE)
Macros used to report the file name and line number to the TexGenError and TexGenLog functions.
virtual string GetType() const =0
Derived class should return the class name.
void MeshDomainPlanes(bool bPeriodic)
vector< CMesh > m_DomainMeshes
Vector of meshes used to store domain plane meshes.
vector< CMesh > m_TriangulatedMeshes
Vector of triangulated domain plane meshes.
void InsertMesh(const CMesh &Mesh, XYZ Offset=XYZ(0, 0, 0))
Add the contents of Mesh to this mesh.
void ConvertQuadstoTriangles(bool bQuality=true)
Convert the quad elements to triangles.
bool SaveToVTK(string Filename, const vector< CMeshDataBase * > *pMeshData=NULL) const
Save the mesh to VTK unstructured grid file format (.vtu)
bool SaveToSCIRun(string Filename)
Save the mesh to SCIRun format.
bool SaveToSTL(string Filename, bool bBinary=true) const
Save the mesh to STL file.
void Clear()
Empty mesh nodes and indices.
void SaveToSCIRun(string Filename)
Save surface mesh data to SCIRun format.
void SaveSurfaceMesh(CTextile &Textile, bool bSaveYarns=true, bool bSaveDomain=false, bool bTrimToDomain=true)
Save a textile as a surface mesh with triangulated domain faces.
void SaveToSTL(string Filename, bool bBinary)
Save surface mesh data to STL file.
void SaveToVTK(string Filename)
Save surface mesh data to VTK file.
CMesh m_Mesh
Mesh used to store node points and elements.
virtual ~CSurfaceMesh(void)
Represents a textile cell containing yarns.
const CDomain * GetDomain() const
void AddSurfaceToMesh(CMesh &Mesh, bool bTrimToDomain=false)
Create surface mesh for this textile and add it to the mesh object.
Namespace containing a series of customised math operations not found in the standard c++ library.
Struct for representing points in 3D space.