38 CSectionPolygon(
const vector<XY> &PolygonPoints,
bool bSingleQuadrant =
false,
bool bRetainPoints =
false);
45 void PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE OutputType)
const;
47 string GetType()
const {
return "CSectionPolygon"; }
48 string GetDefaultName()
const;
50 XY GetPoint(
double t)
const;
56 void Scale(
double dScale);
63 void CreateSection()
const;
Abstract base class respresenting a yarn cross-section.
Creates a polygonal section, where a list of points are given to form the closed polygon.
vector< XY > m_PolygonPoints
string GetType() const
Derived class should return the class name.
vector< double > m_t
The proportion of the distance around the total perimeter range from 0 to 1 for each point.
CSection * Copy() const
Create a copy of the derived section and return a pointer to the newly created instance.
bool m_bRetainPoints
Whether or not to use the polygon points to define the section edge points.
Namespace containing a series of customised math operations not found in the standard c++ library.
bool operator==(const XYZ &left, const XYZ &right)
Struct for representing points in 2D space.