marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.03k stars 265 forks source link

mesh.split() is not sorted correctly for boundary lines #1078

Closed JeffreyWardman closed 6 months ago

JeffreyWardman commented 6 months ago

mesh.boundaries().split() does not sort the submeshes by area as expected.

In this case, it could be done by total edge length.

marcomusy commented 6 months ago

True but it would be a bit tricky to implement.. You can try with https://vedo.embl.es/autodocs/content/vedo/vedo/mesh.html#Mesh.join_segments and summing up the segnents distances?