TexGen
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TexGen::CTextileDeformer Class Referenceabstract

A virtual base class which can be used to deform textiles. More...

#include <TextileDeformer.h>

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

Public Member Functions

 CTextileDeformer (void)
 
virtual ~CTextileDeformer (void)
 
virtual void DeformTextile (CTextile &Textile, bool bDeformDomain=true)
 
CTextileGetDeformedCopyOfTextile (CTextile &Textile, bool bDeformDomain=true)
 
const CLinearTransformationGetRepeatVectorDeformation () const
 
void SetRepeatVectorDeformation (CLinearTransformation RepeatDeformation)
 

Protected Member Functions

virtual double GetDisplacement (XYZ Pos, int iYarn, XYZ &Disp) const =0
 

Protected Attributes

CLinearTransformation m_RepeatDeformation
 

Detailed Description

A virtual base class which can be used to deform textiles.

Given a displacement field, this class will modify the geometry of an existing textile. Classes deriving from this class should override the GetDisplacement function to define the displacement field.

Definition at line 37 of file TextileDeformer.h.

Constructor & Destructor Documentation

◆ CTextileDeformer()

CTextileDeformer::CTextileDeformer ( void  )

◆ ~CTextileDeformer()

CTextileDeformer::~CTextileDeformer ( void  )
virtual

Definition at line 31 of file TextileDeformer.cpp.

Member Function Documentation

◆ DeformTextile()

void CTextileDeformer::DeformTextile ( CTextile Textile,
bool  bDeformDomain = true 
)
virtual

◆ GetDeformedCopyOfTextile()

CTextile * CTextileDeformer::GetDeformedCopyOfTextile ( CTextile Textile,
bool  bDeformDomain = true 
)

◆ GetDisplacement()

virtual double TexGen::CTextileDeformer::GetDisplacement ( XYZ  Pos,
int  iYarn,
XYZ Disp 
) const
protectedpure virtual

Get the displacement of a given point

Parameters
PosThe position of which the displacement is requested
iYarnThe yarn number for which the displacement is requested this is necessary because sometimes yarns may overlap and the yarns may have different displacements at the same point in space
DispThe displacement value should be filled in here by the function
Returns
Should give an idea of how accurate the displacement value is, a value higher than 0 is considered to be very accurate if the value is less then it may represent an extrapolated estimate. This function may be called several times for the same point but offset by different repeat vectors and the displacement with highest value will be chosen.

Implemented in TexGen::CGeometrySolver, and TexGen::CTextileDeformerVolumeMesh.

Referenced by DeformTextile().

◆ GetRepeatVectorDeformation()

const CLinearTransformation & TexGen::CTextileDeformer::GetRepeatVectorDeformation ( ) const
inline

Definition at line 46 of file TextileDeformer.h.

◆ SetRepeatVectorDeformation()

void TexGen::CTextileDeformer::SetRepeatVectorDeformation ( CLinearTransformation  RepeatDeformation)
inline

Definition at line 47 of file TextileDeformer.h.

Member Data Documentation

◆ m_RepeatDeformation

CLinearTransformation TexGen::CTextileDeformer::m_RepeatDeformation
protected

Definition at line 67 of file TextileDeformer.h.

Referenced by CTextileDeformer(), and DeformTextile().


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