30 class CYarnSectionConstant;
31 class CYarnSectionInterpNode;
32 class CYarnSectionInterpPosition;
41 double GetYarnPosition()
const;
79 virtual void PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE OutputType)
const;
Defines the nodes and elements of a surface or volume mesh.
Object container to help handle memory management issues.
Creates a section which is constant all along the yarn.
Abstract base class used to define the sections along the length of a yarn.
bool m_bForceEqualMeshLayers
bool GetForceMeshLayers() const
virtual CYarnSection * Copy() const =0
This is a function to allow copying of derived classes correctly.
virtual void SetSectionMeshLayersEqual(int iNumPoints) const
Find max value for iNumLayers in section meshes and set iNumLayers to that value.
virtual string GetType() const =0
Derived class should return the class name.
virtual CMesh GetSectionMesh(const YARN_POSITION_INFORMATION PositionInfo, int iNumPoints, bool bEquiSpaced) const =0
This function must be implemented by derived classes.
virtual vector< XY > GetSection(const YARN_POSITION_INFORMATION PositionInfo, int iNumPoints, bool bEquiSpaced=false) const =0
This function must be implemented by derived classes.
Creates a section which is linearly interpolated between sections defined at the nodes.
Interpolate sections between arbritrary positions along the length of the yarn.
Namespace containing a series of customised math operations not found in the standard c++ library.
Structure used to represent the position along the length of a yarn.
YARN_POSITION_INFORMATION()
Constructor used to initialise all variables to zero on creation.
double dSectionPosition
This variables varies linearly with distance from 0 to 1 from the start to the end of the current lin...
int iSection
This variable represents the index of the current section (where a section is defined as the part bet...
vector< double > SectionLengths
This contains a list of lengths representing the length of each section.