33 virtual int GetID()
const override;
std::vector< int > VecInt
virtual int GetID() const override
Return the current point index (0-based).
double m_areaTol
tolerance for area to be greater than 0.0
virtual void ReceiveTriangle(int a_id1, int a_id2, int a_id3) override
Receive a triangle consisting of the 3 points.
virtual void PrepareToReceiveTriangles() override
Called just before triangles are created.
VecInt2d * m_trisAdjToPts
Triangles adjacent to points.
TrTriangulatorPoints(const VecPt3d &a_pts, VecInt &a_tris, VecInt2d *a_trisAdjToPts=nullptr)
Triangulate Pt3ds returning triangles in a single 1D vector.
int m_idx
Current point index.
Base class used to derive a class to triangulate points.
virtual Pt3d GetLocation() const override
Get location of current point.
std::vector< VecInt > VecInt2d
const VecPt3d & m_pts
The points.
virtual void FinalizeTriangulation() override
Called after all triangles have been received.
void UpdateAreaTolerance()
calculates the area tolerance
virtual void SetObserver(BSHP< Observer > a_)
Set the observer to use for feedback while processing.
VecInt & m_tris
The triangles as 0-based indices into m_pts.
virtual int GetNPoints() const override
Return the number of points to be triangulated.
virtual void IncrementPoint() override
Increment the current point index by 1.
Class to triangulate simple points.
std::vector< Pt3d > VecPt3d
BSHP< Observer > m_observer
Observer.