bitpit icon indicating copy to clipboard operation
bitpit copied to clipboard

levelset: add support for evaluating the levelset on unstructured grids

Open andrea-iob opened this issue 2 years ago • 4 comments

It is now possible to evaluate the levelset on unstructured grids.

andrea-iob avatar Apr 24 '22 16:04 andrea-iob

I don't know the relationship with the pull request, but (at least) tests 1,2,3,4,6 of surfunstructured and tests 1,4 of sunrfunstructured parallel fail. On master branch all of them pass.

edoardolombardi avatar May 13 '22 12:05 edoardolombardi

There were some failures with the leveset tests that are now fixed. I don't see problems with the surfunstructured tests.

andrea-iob avatar May 17 '22 07:05 andrea-iob

Rebased on current master and added support for generic segmentation elements (before the change, only triangles were supported for three-dimensional segmentations).

andrea-iob avatar Jul 27 '22 08:07 andrea-iob

The new levelset test was failing because generalized barycentric coordinates cannot be evaluated for degenerate polygons (i.e. polygons with consecutive collinear edges). We may need to introduce some checks in the CG module to find out if a polygon is degenerate. For now, I slightly modified the geometry of the test case to avoid degenerate polygons.

andrea-iob avatar Jul 27 '22 10:07 andrea-iob