20 class GenericIndexedCloud;
26 static constexpr
int USE_ALL_POINTS = 0;
37 static bool Available();
49 bool passOwnership =
false);
57 virtual bool buildMesh(
const std::vector<CCVector2>& points2D,
58 std::size_t pointCountToUse,
59 std::string& outputErrorStr);
67 virtual bool buildMesh(
const std::vector<CCVector2>& points2D,
68 const std::vector<int>& segments2D,
69 std::string& outputErrorStr);
77 virtual bool removeOuterTriangles(
const std::vector<CCVector2>& vertices2D,
78 const std::vector<CCVector2>& polygon2D,
79 bool removeOutside =
true);
82 virtual unsigned size()
const override {
return m_numberOfTriangles; }
83 void forEach(genericTriangleAction action)
override;
85 void placeIteratorAtBeginning()
override;
89 VerticesIndexes* getTriangleVertIndexes(
unsigned triangleIndex)
override;
90 virtual void getTriangleVertices(
unsigned triangleIndex,
94 virtual void getTriangleVertices(
unsigned triangleIndex,
97 double C[3])
const override;
112 return m_associatedCloud;
118 const std::vector<CCVector2>& contourPoints);
float PointCoordinateType
Type of the coordinates of a (N-D) point.
A class to compute and handle a Delaunay 2D mesh on a subset of points.
int * m_globalIterator
Iterator on the list of triangle vertex indexes.
int * m_triIndexes
Triangle vertex indexes.
unsigned m_numberOfTriangles
The number of triangles.
virtual unsigned size() const override
Returns the number of triangles.
GenericIndexedCloud * m_associatedCloud
Associated point cloud.
int * m_globalIteratorEnd
End position of global iterator.
int * getTriangleVertIndexesArray()
Returns triangles indexes array (pointer to)
VerticesIndexes m_dumpTriangleIndexes
Dump triangle index structure to transmit temporary data.
bool m_cloudIsOwnedByMesh
GenericIndexedCloud * getAssociatedCloud()
Returns associated cloud.
SimpleTriangle m_dumpTriangle
Dump triangle structure to transmit temporary data.
A generic 3D point cloud with index-based and presistent access to points.
A generic 3D point cloud with index-based point access.
A generic mesh with index-based vertex access.
A generic triangle interface.
Generic file read and write utility for python interface.
Triangle described by the indexes of its 3 vertices.