TexGen
|
A virtual base class which can be used to deform textiles. More...
#include <TextileDeformer.h>
Public Member Functions | |
CTextileDeformer (void) | |
virtual | ~CTextileDeformer (void) |
virtual void | DeformTextile (CTextile &Textile, bool bDeformDomain=true) |
CTextile * | GetDeformedCopyOfTextile (CTextile &Textile, bool bDeformDomain=true) |
const CLinearTransformation & | GetRepeatVectorDeformation () const |
void | SetRepeatVectorDeformation (CLinearTransformation RepeatDeformation) |
Protected Member Functions | |
virtual double | GetDisplacement (XYZ Pos, int iYarn, XYZ &Disp) const =0 |
Protected Attributes | |
CLinearTransformation | m_RepeatDeformation |
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.
CTextileDeformer::CTextileDeformer | ( | void | ) |
Definition at line 26 of file TextileDeformer.cpp.
References TexGen::CMatrix::InitialiseIdentity(), and m_RepeatDeformation.
|
virtual |
Definition at line 31 of file TextileDeformer.cpp.
|
virtual |
Definition at line 35 of file TextileDeformer.cpp.
References TexGen::CYarnSectionAdjusted::AddAdjustment(), TexGen::CInterpolationAdjusted::AddAdjustment(), TexGen::CYarn::AssignInterpolation(), TexGen::CYarn::AssignSection(), TexGen::CDomain::Deform(), TexGen::DotProduct(), GetDisplacement(), TexGen::CTextile::GetDomain(), TexGen::CYarn::GetInterpolation(), TexGen::CTextile::GetNumYarns(), TexGen::CYarn::GetRepeats(), TexGen::CYarn::GetSlaveNodes(), TexGen::CDomain::GetTranslations(), TexGen::CTextile::GetYarn(), TexGen::CYarn::GetYarnSection(), m_RepeatDeformation, TexGen::CYarn::SetRepeats(), TexGen::CYarn::SURFACE, TexGen::XY::x, and TexGen::XY::y.
Referenced by TexGen::CGeometrySolver::DeformTextile(), and GetDeformedCopyOfTextile().
CTextile * CTextileDeformer::GetDeformedCopyOfTextile | ( | CTextile & | Textile, |
bool | bDeformDomain = true |
||
) |
Definition at line 137 of file TextileDeformer.cpp.
References TexGen::CTextile::Copy(), DeformTextile(), and TEXGEN.
Referenced by TexGen::CGeometrySolver::GetDeformedCopyOfTextile().
|
protectedpure virtual |
Get the displacement of a given point
Pos | The position of which the displacement is requested |
iYarn | The 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 |
Disp | The displacement value should be filled in here by the function |
Implemented in TexGen::CGeometrySolver, and TexGen::CTextileDeformerVolumeMesh.
Referenced by DeformTextile().
|
inline |
Definition at line 46 of file TextileDeformer.h.
|
inline |
Definition at line 47 of file TextileDeformer.h.
|
protected |
Definition at line 67 of file TextileDeformer.h.
Referenced by CTextileDeformer(), and DeformTextile().