meshpro / pygalmesh

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

Issue with remesh #168

Closed lucascbarbosa closed 2 years ago

lucascbarbosa commented 2 years ago

Hello Nico, I'm having trouble trying to work with pygalmesh.remesh_surface. I have a dirty 2D .stl, which I want to remesh to clean it removing any non manifold and then export to a .vtk. The error and the file is below:

CGAL::Polyhedron_incremental_builder_3<HDS>::
lookup_halfedge(): input error: facet  38 shares a halfedge from vertex
CGAL::Polyhedron_incremental_builder_3<HDS>::44 to vertex
lookup_halfedge(): input error: facet 3873 with facet  shares a halfedge from vertex 36.
79 to vertex
58Polyhedron_scan_OFF<Traits>::
operator()(): input error: facet 39 has fewer than 3 vertices.
 with facet 71.

Polyhedron_scan_OFF<Traits>::
operator()(): input error: facet 74 has fewer than 3 vertices.

porosity_0.5273_theta_0.stl.zip

nschloe commented 2 years ago

Probably means CGAL can't work with this file?

lucascbarbosa commented 2 years ago

Ok, so I will focus on the mesh, thanks.