When working in Three.js, I encountered a situation with a 3D object where local clipping planes were used to render only a specific part of the object.
However, due to the nature of 3D objects being "hollow" (only rendering the outer surface), when something is clipped off that surface, it creates a perspective into the object's interior. Here is an example illustrating this concept: clipping a corner off a cube. You can observe how we are able to see the backside of the opposite corner.
To achieve the appearance of a solid object, it seems that creating a surface over the clipped region is the recommended approach based on this issue. This technique would essentially cap the hole and give the illusion that the object is not hollow.
The main query I have is regarding how to determine where to construct this surface. Is there a way in Three.js to obtain a list of vertices that intersect between a plane and any arbitrary surface? If such functionality doesn't exist, what could be a potential solution to address this challenge?
I came across this question, but the author did not provide details on solving the same problem I am encountering here.