Subtract on extruded shape

Hello everyone,
i have an extruded shape and i try to subtract with a sphere to make an hole to the shape but i don’ t understand why but the sphere remain.

Thank for help, i ’ m new in Babylon

https://playground.babylonjs.com/#QUS1YR

Hey @neofita,

I found two small things. First, I think that there may be an issue with the extruded mesh that you created. I tried reversing the order of the points you pushed into myShape and it looks like it’s rendering correctly now. The other thing that I found was since you are using CSG, you should dispose of your old meshes rather than set their visibility to 0. Here’s an example of the fixes based off of your original PG: https://playground.babylonjs.com/#QUS1YR#3.

2 Likes

Very very thank you :slight_smile: