TexGen
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TexGen::CMeshDomainPlane Class Reference

#include <MeshDomainPlane.h>

Inheritance diagram for TexGen::CMeshDomainPlane:
Inheritance graph
[legend]

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< CMeshm_DomainMeshes
 Vector of meshes used to store domain plane meshes. More...
 
vector< CMeshm_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...
 

Detailed Description

Definition at line 41 of file MeshDomainPlane.h.

Constructor & Destructor Documentation

◆ CMeshDomainPlane()

CMeshDomainPlane::CMeshDomainPlane ( double  Seed,
bool  bFillEnds = true 
)

Definition at line 33 of file MeshDomainPlane.cpp.

References m_bFillEnds, and m_Seed.

◆ ~CMeshDomainPlane()

CMeshDomainPlane::~CMeshDomainPlane ( void  )
virtual

Definition at line 39 of file MeshDomainPlane.cpp.

Member Function Documentation

◆ Convert2DTo3DCoordinates()

void CMeshDomainPlane::Convert2DTo3DCoordinates ( vector< XY > &  Points2D,
vector< XYZ > &  Points3D,
PLANEPARAMS ConvertRef 
)
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().

◆ Convert3DTo2DCoordinates()

void CMeshDomainPlane::Convert3DTo2DCoordinates ( vector< XYZ > &  Points3D,
PLANEPARAMS ConvertRef,
vector< XY > &  Points2D 
)
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().

◆ ConvertDomainPointsTo2D()

bool CMeshDomainPlane::ConvertDomainPointsTo2D ( const list< int > &  Indices,
CMesh DomainMesh,
int  numNodes,
vector< XY > &  Points2D,
PLANEPARAMS ConvertRef 
)
protected

◆ MeshDomainPlanes()

void CMeshDomainPlane::MeshDomainPlanes ( bool  bPeriodic)

◆ OffsetMeshPoints()

void CMeshDomainPlane::OffsetMeshPoints ( CMesh Mesh,
XYZ Normal,
double  dDist 
)
protected

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().

◆ SeedSides()

void CMeshDomainPlane::SeedSides ( vector< XY > &  Points)
protected

Calculates seed points along domain edge.

Definition at line 224 of file MeshDomainPlane.cpp.

References TexGen::GetLength(), and m_Seed.

Referenced by MeshDomainPlanes().

◆ Triangulate()

bool CMeshDomainPlane::Triangulate ( vector< vector< XY > > &  PolygonPoints,
vector< XY > &  HolePoints,
CMesh OutputMesh,
PLANEPARAMS ConvertRef 
)
protected

Member Data Documentation

◆ m_bFillEnds

bool TexGen::CMeshDomainPlane::m_bFillEnds
protected

True if yarn areas are to be removed from domain.

Definition at line 74 of file MeshDomainPlane.h.

Referenced by CMeshDomainPlane(), and Triangulate().

◆ m_DomainMeshes

vector<CMesh> TexGen::CMeshDomainPlane::m_DomainMeshes
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().

◆ m_PolygonNumVertices

vector<vector<int> > TexGen::CMeshDomainPlane::m_PolygonNumVertices
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().

◆ m_Seed

double TexGen::CMeshDomainPlane::m_Seed
protected

Seed used for calculating boundary edge points.

Definition at line 70 of file MeshDomainPlane.h.

Referenced by CMeshDomainPlane(), SeedSides(), and Triangulate().

◆ m_TriangulatedMeshes

vector<CMesh> TexGen::CMeshDomainPlane::m_TriangulatedMeshes
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().


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