bitpit icon indicating copy to clipboard operation
bitpit copied to clipboard

CG:CG_elem.cpp: Fix in the triangulation of a polygon

Open kgkara opened this issue 3 years ago • 0 comments

So far, this took place by creating triangles with the 1st vertex of the polygon and two other vertices of the polygon. In case these 3 vertices are collinear, the debug mode does not complete its execution. Now, the approximate barycenter of the polygon is computed and is used along with two vertices of the polygon to create the triangles. Closes #355

kgkara avatar Oct 26 '22 16:10 kgkara