meshpro / pygalmesh

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

Help with Difference #177

Closed lucascbarbosa closed 2 years ago

lucascbarbosa commented 2 years ago

I'd like to apply a difference operation between two square meshes, but for that I need to extract the domain from these meshes? What is the best way to do this?

nschloe commented 2 years ago

I'd like to apply a difference operation between two square meshes, but for that I need to extract the domain from these meshes? What is the best way to do this?

Perhaps try and extract a polygon from the mesh, then remesh? Anyway, this a problem outside of meshing itself.

lucascbarbosa commented 2 years ago

I tried to apply difference with to polygons from pygalmesh.Polygon2D but it is not supported. It demands the domain object...

nschloe commented 2 years ago

Yeah 2D support is limited in CGAL, and hence pygalmesh.

lucascbarbosa commented 2 years ago

Understood, thank you very much! I managed to get it done via dmsh, but it takes much time. Anyway, thx!