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

Class which holds the information related to each intersection point, used for adjusting the mesh. More...

#include <AdjustMeshInterference.h>

Public Member Functions

 CMeshIntersectionData (void)
 
virtual ~CMeshIntersectionData (void)
 
void SetIndex (int index)
 
void SetDepth (double Depth)
 
void SetPoint (XYZ Point)
 
void SetYarn (int Yarn)
 
void SetBoundaryPairIndex (int index)
 
void SetStartPoint (XYZ Point)
 
void SetInterpIndex (int index)
 
int GetYarn ()
 
const vector< ELEMENT_INDICES > & GetElements () const
 
double GetDepth ()
 
XYZ GetPoint ()
 
XYZ GetInterpPoint ()
 
int GetIndex ()
 
XYZ GetDisplacement ()
 
int GetInterpIndex ()
 
bool FindInterpolationNode (CMesh &YarnMesh)
 Finds the appropriate node in the elements to interpolate towards. More...
 
void FindElements (vector< int > &IndexArray, CMesh::ELEMENT_TYPE ElementType)
 Given node index, find all elements containing that node. More...
 
bool MoveNode (CMesh &YarnMesh)
 Move node by 0.5 * intersection depth towards the interpolation node. More...
 
void AdjustInterpolationNode (CMesh &YarnMesh)
 Make final adjustments to interpolation nodes to even out elements. More...
 
void FindPolygonPoints (list< int > &Polygons)
 Find surface point in polygon & points on either side. More...
 

Protected Attributes

double m_Depth
 
XYZ m_StartPoint
 
XYZ m_Point
 
XYZ m_InterpPoint
 
int m_Yarn
 
int m_Index
 
int m_BoundaryPairIndex
 
int m_InterpIndex
 
bool m_Wedge
 
vector< ELEMENT_INDICESm_Elements
 
int m_PolygonPoints [3]
 

Detailed Description

Class which holds the information related to each intersection point, used for adjusting the mesh.

Definition at line 34 of file AdjustMeshInterference.h.

Constructor & Destructor Documentation

◆ CMeshIntersectionData()

CMeshIntersectionData::CMeshIntersectionData ( void  )

Definition at line 561 of file AdjustMeshInterference.cpp.

References m_InterpIndex, and m_Wedge.

◆ ~CMeshIntersectionData()

CMeshIntersectionData::~CMeshIntersectionData ( void  )
virtual

Definition at line 567 of file AdjustMeshInterference.cpp.

Member Function Documentation

◆ AdjustInterpolationNode()

void CMeshIntersectionData::AdjustInterpolationNode ( CMesh YarnMesh)

Make final adjustments to interpolation nodes to even out elements.

Definition at line 802 of file AdjustMeshInterference.cpp.

References TexGen::CMesh::GetNode(), m_InterpIndex, m_Point, m_StartPoint, and TexGen::CMesh::SetNode().

◆ FindElements()

void CMeshIntersectionData::FindElements ( vector< int > &  IndexArray,
CMesh::ELEMENT_TYPE  ElementType 
)

Given node index, find all elements containing that node.

Definition at line 743 of file AdjustMeshInterference.cpp.

References TexGen::ELEMENT_INDICES::ElementType, TexGen::CMesh::GetNumNodes(), TexGen::ELEMENT_INDICES::Index, m_Elements, m_Index, m_Wedge, and TexGen::CMesh::WEDGE.

◆ FindInterpolationNode()

bool CMeshIntersectionData::FindInterpolationNode ( CMesh YarnMesh)

Finds the appropriate node in the elements to interpolate towards.

Definition at line 571 of file AdjustMeshInterference.cpp.

References FIRST_HALF, TexGen::CMesh::GetNode(), TexGen::CMesh::GetNumNodes(), m_Elements, m_Index, m_InterpPoint, m_PolygonPoints, m_Wedge, SECOND_HALF, SetInterpIndex(), TGERROR, and TGLOG.

◆ FindPolygonPoints()

void CMeshIntersectionData::FindPolygonPoints ( list< int > &  Polygons)

Find surface point in polygon & points on either side.

Definition at line 768 of file AdjustMeshInterference.cpp.

References m_Index, and m_PolygonPoints.

◆ GetDepth()

double TexGen::CMeshIntersectionData::GetDepth ( )
inline

Definition at line 50 of file AdjustMeshInterference.h.

◆ GetDisplacement()

XYZ TexGen::CMeshIntersectionData::GetDisplacement ( )
inline

Definition at line 54 of file AdjustMeshInterference.h.

◆ GetElements()

const vector< ELEMENT_INDICES > & TexGen::CMeshIntersectionData::GetElements ( ) const
inline

Definition at line 49 of file AdjustMeshInterference.h.

◆ GetIndex()

int TexGen::CMeshIntersectionData::GetIndex ( )
inline

Definition at line 53 of file AdjustMeshInterference.h.

◆ GetInterpIndex()

int TexGen::CMeshIntersectionData::GetInterpIndex ( )
inline

Definition at line 55 of file AdjustMeshInterference.h.

◆ GetInterpPoint()

XYZ TexGen::CMeshIntersectionData::GetInterpPoint ( )
inline

Definition at line 52 of file AdjustMeshInterference.h.

◆ GetPoint()

XYZ TexGen::CMeshIntersectionData::GetPoint ( )
inline

Definition at line 51 of file AdjustMeshInterference.h.

◆ GetYarn()

int TexGen::CMeshIntersectionData::GetYarn ( )
inline

Definition at line 48 of file AdjustMeshInterference.h.

◆ MoveNode()

bool CMeshIntersectionData::MoveNode ( CMesh YarnMesh)

◆ SetBoundaryPairIndex()

void TexGen::CMeshIntersectionData::SetBoundaryPairIndex ( int  index)
inline

◆ SetDepth()

void TexGen::CMeshIntersectionData::SetDepth ( double  Depth)
inline

◆ SetIndex()

void TexGen::CMeshIntersectionData::SetIndex ( int  index)
inline

◆ SetInterpIndex()

void TexGen::CMeshIntersectionData::SetInterpIndex ( int  index)
inline

Definition at line 46 of file AdjustMeshInterference.h.

Referenced by FindInterpolationNode().

◆ SetPoint()

void TexGen::CMeshIntersectionData::SetPoint ( XYZ  Point)
inline

◆ SetStartPoint()

void TexGen::CMeshIntersectionData::SetStartPoint ( XYZ  Point)
inline

◆ SetYarn()

void TexGen::CMeshIntersectionData::SetYarn ( int  Yarn)
inline

Member Data Documentation

◆ m_BoundaryPairIndex

int TexGen::CMeshIntersectionData::m_BoundaryPairIndex
protected

Definition at line 80 of file AdjustMeshInterference.h.

Referenced by MoveNode().

◆ m_Depth

double TexGen::CMeshIntersectionData::m_Depth
protected

Definition at line 74 of file AdjustMeshInterference.h.

Referenced by MoveNode().

◆ m_Elements

vector<ELEMENT_INDICES> TexGen::CMeshIntersectionData::m_Elements
protected

Definition at line 83 of file AdjustMeshInterference.h.

Referenced by FindElements(), and FindInterpolationNode().

◆ m_Index

int TexGen::CMeshIntersectionData::m_Index
protected

◆ m_InterpIndex

int TexGen::CMeshIntersectionData::m_InterpIndex
protected

Definition at line 81 of file AdjustMeshInterference.h.

Referenced by AdjustInterpolationNode(), and CMeshIntersectionData().

◆ m_InterpPoint

XYZ TexGen::CMeshIntersectionData::m_InterpPoint
protected

Definition at line 77 of file AdjustMeshInterference.h.

Referenced by FindInterpolationNode(), and MoveNode().

◆ m_Point

XYZ TexGen::CMeshIntersectionData::m_Point
protected

Definition at line 76 of file AdjustMeshInterference.h.

Referenced by AdjustInterpolationNode(), and MoveNode().

◆ m_PolygonPoints

int TexGen::CMeshIntersectionData::m_PolygonPoints[3]
protected

Definition at line 84 of file AdjustMeshInterference.h.

Referenced by FindInterpolationNode(), and FindPolygonPoints().

◆ m_StartPoint

XYZ TexGen::CMeshIntersectionData::m_StartPoint
protected

Definition at line 75 of file AdjustMeshInterference.h.

Referenced by AdjustInterpolationNode(), and MoveNode().

◆ m_Wedge

bool TexGen::CMeshIntersectionData::m_Wedge
protected

◆ m_Yarn

int TexGen::CMeshIntersectionData::m_Yarn
protected

Definition at line 78 of file AdjustMeshInterference.h.

Referenced by MoveNode().


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