Object triangulation methods.
typedef enum
{
SG_VERTEX_TRIANGULATION,
SG_DELAUNAY_TRIANGULATION
} SG_TRIANGULATION_TYPE;
SG_VERTEX_TRIANGULATION – triangulation which doesn't create any new vertexes, i.e. all the vertexes of triangles are the vertexes of initial contours. This type has one disadvantage – it can cause the creation of stretched triangles.
SG_DELAUNAY_TRIANGULATION - Delaunay triangulation.
Let's compare the triangulation methods on the following examples:
SG_VERTEX_TRIANGULATION |
SG_DELAUNAY_TRIANGULATION |
Definition in sg3D.h