optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

CG: fix in the triangulation of a polygon #359

Closed kgkara closed 1 year ago

kgkara commented 1 year ago

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

andrea-iob commented 1 year ago

I've updated the documentation, removed a warning and removed the usage of a couple of BITPIT_UNUSED on arguments that are now actually used.

I will merge after the tests finish.