TexGen
|
#include <MeshDomainPlane.h>
Public Member Functions | |
CMeshDomainPlane (double Seed, bool bFillEnds=true) | |
virtual | ~CMeshDomainPlane (void) |
void | MeshDomainPlanes (bool bPeriodic) |
Protected Member Functions | |
bool | Triangulate (vector< vector< XY > > &PolygonPoints, vector< XY > &HolePoints, CMesh &OutputMesh, PLANEPARAMS &ConvertRef) |
Triangulate the domain faces. More... | |
bool | ConvertDomainPointsTo2D (const list< int > &Indices, CMesh &DomainMesh, int numNodes, vector< XY > &Points2D, PLANEPARAMS &ConvertRef) |
Convert points on one domain surface to local 2D points. More... | |
void | Convert2DTo3DCoordinates (vector< XY > &Points2D, vector< XYZ > &Points3D, PLANEPARAMS &ConvertRef) |
Convert local 2D coordinates to global 3D coordinates. More... | |
void | Convert3DTo2DCoordinates (vector< XYZ > &Points3D, PLANEPARAMS &ConvertRef, vector< XY > &Points2D) |
Convert global 3D coordinates to local 2D coordinates. More... | |
void | SeedSides (vector< XY > &Points) |
Calculates seed points along domain edge. More... | |
void | OffsetMeshPoints (CMesh &Mesh, XYZ &Normal, double dDist) |
Offsets points in mesh by given distance in direction of normal. More... | |
Protected Attributes | |
vector< CMesh > | m_DomainMeshes |
Vector of meshes used to store domain plane meshes. More... | |
vector< CMesh > | m_TriangulatedMeshes |
Vector of triangulated domain plane meshes. More... | |
double | m_Seed |
Seed used for calculating boundary edge points. More... | |
vector< vector< int > > | m_PolygonNumVertices |
Number of polygon vertices on each face. Number of outer vector members = number of faces. More... | |
bool | m_bFillEnds |
True if yarn areas are to be removed from domain. More... | |
Definition at line 41 of file MeshDomainPlane.h.
CMeshDomainPlane::CMeshDomainPlane | ( | double | Seed, |
bool | bFillEnds = true |
||
) |
Definition at line 33 of file MeshDomainPlane.cpp.
References m_bFillEnds, and m_Seed.
|
virtual |
Definition at line 39 of file MeshDomainPlane.cpp.
|
protected |
Convert local 2D coordinates to global 3D coordinates.
Definition at line 403 of file MeshDomainPlane.cpp.
References TexGen::PLANEPARAMS::RefPoint, TexGen::XYZ::x, TexGen::PLANEPARAMS::XAxis, TexGen::XYZ::y, and TexGen::PLANEPARAMS::YAxis.
Referenced by Triangulate().
|
protected |
Convert global 3D coordinates to local 2D coordinates.
Definition at line 199 of file MeshDomainPlane.cpp.
References TexGen::DotProduct(), TexGen::PLANEPARAMS::RefPoint, TexGen::XY::x, TexGen::PLANEPARAMS::XAxis, TexGen::XY::y, and TexGen::PLANEPARAMS::YAxis.
Referenced by ConvertDomainPointsTo2D(), and MeshDomainPlanes().
|
protected |
Convert points on one domain surface to local 2D points.
Definition at line 172 of file MeshDomainPlane.cpp.
References Convert3DTo2DCoordinates(), TexGen::CrossProduct(), TexGen::CMesh::GetNode(), TexGen::PLANEPARAMS::Normal, TexGen::Normalise(), TexGen::PLANEPARAMS::RefPoint, TexGen::PLANEPARAMS::XAxis, and TexGen::PLANEPARAMS::YAxis.
Referenced by MeshDomainPlanes().
void CMeshDomainPlane::MeshDomainPlanes | ( | bool | bPeriodic | ) |
Definition at line 43 of file MeshDomainPlane.cpp.
References Convert3DTo2DCoordinates(), ConvertDomainPointsTo2D(), TexGen::DotProduct(), TexGen::CMesh::GetIndices(), TexGen::GetLength(), TexGen::CMesh::GetNumNodes(), m_DomainMeshes, m_PolygonNumVertices, m_TriangulatedMeshes, TexGen::PLANEPARAMS::Normal, OffsetMeshPoints(), TexGen::CMesh::POLYGON, TexGen::CMesh::QUAD, TexGen::PLANEPARAMS::RefPoint, SeedSides(), TGERROR, TexGen::CMesh::TRI, and Triangulate().
Referenced by TexGen::CSurfaceMesh::SaveSurfaceMesh(), and TexGen::CTetgenMesh::SaveTetgenMesh().
Offsets points in mesh by given distance in direction of normal.
Definition at line 213 of file MeshDomainPlane.cpp.
References TexGen::CMesh::GetNode(), TexGen::CMesh::GetNumNodes(), and TexGen::CMesh::SetNode().
Referenced by MeshDomainPlanes().
|
protected |
Calculates seed points along domain edge.
Definition at line 224 of file MeshDomainPlane.cpp.
References TexGen::GetLength(), and m_Seed.
Referenced by MeshDomainPlanes().
|
protected |
Triangulate the domain faces.
Definition at line 261 of file MeshDomainPlane.cpp.
References TexGen::CMesh::AddNode(), Convert2DTo3DCoordinates(), TexGen::CMesh::GetIndices(), m_bFillEnds, m_Seed, TexGen::CMesh::TRI, TexGen::XY::x, and TexGen::XY::y.
Referenced by MeshDomainPlanes().
|
protected |
True if yarn areas are to be removed from domain.
Definition at line 74 of file MeshDomainPlane.h.
Referenced by CMeshDomainPlane(), and Triangulate().
|
protected |
Vector of meshes used to store domain plane meshes.
Definition at line 66 of file MeshDomainPlane.h.
Referenced by MeshDomainPlanes(), TexGen::CSurfaceMesh::SaveSurfaceMesh(), and TexGen::CTetgenMesh::SaveTetgenMesh().
|
protected |
Number of polygon vertices on each face. Number of outer vector members = number of faces.
Definition at line 72 of file MeshDomainPlane.h.
Referenced by MeshDomainPlanes(), and TexGen::CTetgenMesh::SaveTetgenMesh().
|
protected |
Seed used for calculating boundary edge points.
Definition at line 70 of file MeshDomainPlane.h.
Referenced by CMeshDomainPlane(), SeedSides(), and Triangulate().
|
protected |
Vector of triangulated domain plane meshes.
Definition at line 68 of file MeshDomainPlane.h.
Referenced by MeshDomainPlanes(), TexGen::CSurfaceMesh::SaveSurfaceMesh(), and TexGen::CTetgenMesh::SaveTetgenMesh().