Cutting a sphere with an ExtrudeShape. The white outline is the polygon used for the extruded shape. When the extruded shape has an angle < PI, I use intersect. When it is > PI, I use subtract. The min/max angles are moving every frame and all meshes and CSG objects are created and disposed every frame as well. There’s lot’s of opportunity for optimizing, but at first cut (pun intended), it’s working fast!
Forums don’t allow uploading the .webm video captured by the inspector (“Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, zip, mp4).”)
Here’s a static png:
After some optimizations, and instantiating BABYLON.VideoRecorder directly, so I can save an mp4:
Edit: Finally created a playground.