MmgTools / mmg

open source software for bidimensional and tridimensional remeshing
http://www.mmgtools.org
Other
361 stars 117 forks source link

Intersecting segment constraints for mmg2d #33

Open qnzhou opened 5 years ago

qnzhou commented 5 years ago

Hi there,

Thanks for the great library! I am testing the possibility of using mmg2d for mesh generating that conforms to a given set of segment constraints. I noticed that intersecting segments in the input may cause the function MMG2D_mmg2dmesh function to hang. I just want to double check that intersecting segments are considered as invalid input. What is the recommended way of resolving such invalid input? Are there other cases that are considered as invalid?

Algiane commented 5 years ago

Hi,

Thank you for using the Mmg platform.

For all the mmg software, the input must be a "conformal" mesh. Which means that crossings, and overlappings are forbidden. For the 2D mesh generation, an initial open boundary will fail too. Thus it is normal that Mmg2d fails on your input.

However, I have tried a very simple test case that must work but fails: a cube defined by a set of edges + one of the diagonal of the cube.

I will look at this bug as soon as possible.

Regards,

Algiane

qnzhou commented 5 years ago

@Algiane Thanks for the clarification!