dmurdoch/rgl

Feature request: record original face indices after clipping a mesh with rgl

dmurdoch opened this issue · 1 comments

This request was received from Stéphane Laurent:

As I understand, when we clip a mesh with rgl::clipMesh3d, each face of the clipped mesh is either a face of the original mesh or a subface of a face of the original mesh. Therefore it makes sense to desire the mapping between the faces of the clipped mesh and the faces of the original mesh. This would have as an application the possibility of keeping the face colors. Imagine e.g. an icosahedron with colored faces and you clip this icosahedron. It remains a piece of the icosahedron and we could color its faces with the colors of the original faces.

This affects clipMesh3d, clipObj3d, subdivision3d.

Closed by #365