meshpro / pygalmesh

:spider_web: A Python interface to CGAL's meshing tools
GNU General Public License v3.0
580 stars 57 forks source link

Maximum boundary size? #178

Closed lucascbarbosa closed 2 years ago

lucascbarbosa commented 2 years ago

I'm using generate_2d to convert an array to a geometry where every element of the array is a "pixel" square, but I'm having a problem: where the element is "0" there should be a square void. However, as this void is surrounded by a closed square boundary, the algorithm fills this space. Is it possible to set a maximum size to the boundary to the algorithm to fill? I can set it to be smaller than the square edge and then this group of void squares will remain void. I don't know if I managed to make myself clear...

nschloe commented 2 years ago

Nope, not possible. You might want to look at pygmsh and holes, but in any case you'll have to specify them as such.