3D object + 2D plane intersection

Zander Mackie's icon

Hey gang!

I'm trying to figure out a patch that allows me to get the shapes (polygons) resulting from the collision of a 3D object with a 2D plane. Illustrated below, I'm trying to retrieve the pink shape.
I'm planning on visualizing the shapes and also using them for synthesis parameters.
The object will be moving and the plane will be static. Any thoughts on how to approach such a patch? I'd love to hear your thoughts.

PS Yes, I'm trying to create flatland :)

Rob Ramirez's icon

i believe your best option is to create a raymarching shader loaded into a jit.gl.slab - http://jamie-wong.com/2016/07/15/ray-marching-signed-distance-functions/

Zander Mackie's icon

Thank you!