hugoscurti / mesh-cutter

Simple mesh cutting algorithm that works on simple 3d manifold objects with genus 0
MIT License
590 stars 119 forks source link

Patch edge of hollow mesh #4

Open madsami opened 5 years ago

madsami commented 5 years ago

In the case where the to-be cut mesh is a hollow mesh with an inside, e.g. an egg with a outside AND inner shell is also existant, the cutter should patch up the spaces between the outer shell and the inner.

I've been trying to add this feature on my own by first collecting all vertices along the cut, then measuring distance and angle of a vertex[i] to its neighbor to determine the closest vertices to form a triangle with. Having some issues, so thought I would drop this idea down here as it would make for a powerful feature addition. Otherwise awesome and fast cutter.