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).”)
Seems like a subtract function shouldnt result in a “mixed” mesh insofar as Materials are concerned. I was surprised to see a new Material in the sandbox inspector for each hole cut out.
At scale this could be a rich optimization opportunity.
I actually very much like the flexibility that it is given here. But then, I could agree that eventually (if no material is assigned to the substracted mesh) the material from the ‘master’ mesh would apply in the backgrond or automagically as per BJS standards (eventually through something like clone and auto-assign)? so you would still be able to tweak the cloned material to your liking……may be