25 class CSectionPolygon;
40 CShearedTextileWeave2D(
int iWidth,
int iHeight,
double dSpacing,
double dThickness,
double ShearAngle,
bool bRefine =
true,
bool bInPlaneTangents =
true);
45 string GetType()
const {
return "CShearedTextileWeave2D"; }
46 void PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE OutputType);
50 CDomainPlanes GetDefaultDomain(
bool bSheared =
false,
bool bAddedDomainHeight =
true );
56 bool BuildTextile()
const;
58 void GetYSpacings()
const;
60 XY GetYRepeat()
const;
63 bool AdjustSectionsForRotation()
const;
64 double CalcSinAngle(
double R,
double Width,
double Height )
const;
73 void CorrectInterference(
bool bMaxCorrection =
false )
const;
77 void AdjustSections()
const;
79 void CreateTopAndBottomMeshes(
CMesh& TopMesh,
CMesh& BottomMesh )
const;
81 XY Get2DRefPoint(
XY& Point,
double dAngle )
const;
82 XY RotatePoint(
XY& Point,
double dAngle )
const;
84 double GetArea( vector<XY>& Points )
const;
85 void ReplaceSection( vector<XY>& Points,
CYarnSectionInterpNode* pYarnSection,
int iNodeIndex,
int iMidIndex )
const;
87 const vector<PATTERN2D> &GetCellDir(
int x,
int y,
int iDir )
const;
88 int ModifyPoints( vector<XY>& Points, vector<double>& Modifiers, vector<XY>& MaxHeight,
int iModCount,
double dy, vector<XY>& NewPoints )
const;
Domain implementation described using planes, the simplest of which would be a box.
Abstract base class for describing the yarn path interpolations.
Defines the nodes and elements of a surface or volume mesh.
Respresents a 2d woven textile with shear applied.
vector< XY > m_YSpacing
Vector containing the dx and dy components for spacings along y yarns.
bool GetShearedDomain() const
string GetType() const
Derived class should return the class name.
double GetShearAngle() const
Represents a textile cell containing yarns.
Respresents a 2d woven textile.
Creates a section which is linearly interpolated between sections defined at the nodes.
Namespace containing a series of customised math operations not found in the standard c++ library.
double GetArea(XYZ Points[], int iNumPoints)
Struct for representing points in 2D space.
Structure used to represent the position along the length of a yarn.