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

Support texturing on the cut area #2

Open ArisTsevrenis opened 5 years ago

ArisTsevrenis commented 5 years ago

Cut a textured mesh and add a "wound" texture on the area of the cut

hugoscurti commented 5 years ago

That would be a cool feature!

I believe this could be done by adding small rectangles alongside the cut and add them to a submesh which could then be associated with a wound texture. The tricky part would be to figure out how to build those new rectangles on top of building new triangles on each side of the cut .

XaHDpE commented 4 years ago

@hugoscurti hello! is there any chances to implement option to pass the material for internal faces as optional parameter to the method? thanks!