mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.02k stars 583 forks source link

No cap or partial cap after using slice_mesh_plane with cap=True #2299

Open baptistelabat-syroco opened 1 month ago

baptistelabat-syroco commented 1 month ago

slice_mesh_plane.zip I

Trying to cap the attached mesh (in zip), I have no cap in the result (see python code to reproduce in zip). Moreover, when I encountered the problem in my code (just after saving the mesh before slicing), the behaviour was different as I got a partial cap (at the bow of the ship). image

baptistelabat-syroco commented 1 month ago

It seems the previous mesh was not well closed. Might be the reason ? Here is another version. KCS_mesh_closed.zip