rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
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.
This request was received from Stéphane Laurent:
This affects
clipMesh3d
,clipObj3d
,subdivision3d
.