Degenerate 2D cells
Issue #5
resolved
Hello,
I use mshr to mesh a 2D square holed in a corner but there are degenerate cells around the hole. I see there is a command to remove degenerates in 3D. What is the solution in 2D ?
Thanks.
CS
Comments (3)
-
-
I have pushed an attempt to fix this now. Let me know if this does not work for you.
-
- changed status to resolved
- Log in to comment
Hello!
There is no direct equivalent i 2D (the underlying mesh generator engines are very different i 2D and 3D).
At an earlier stage in the development edges shorter than a given tolerance would be truncated in the PSLG (the input to the mesh generation engine). msh now takes a different approach for handling round off errors and I assumed incorrectly that was not needed anymore. I will reintroduce that.
As a workaround for now give a third argument when creating the Circle (that controls the number of segments when creating the polygon that approximates the circle. 25 works fine here.
geometry = Rectangle(Point(0,0),Point(2,2)) \ - Circle(Point(0,0),0.5, 25)
I'll be back soon :-)