Extrude plane following a curve


I try to extrude two vertices to get a curved plane. That “works” with using a shape like:

[new Vector3(-5, 0, 0), new Vector3(5, 0, 0)]

I assumed setting y to 0 makes it a plane but it seems that it behaves like a cube when it comes to csg. I want to cut a box in two parts respectively I want to remove the part of the box which is above my curved plane. That works fine with a normal plane but not with my extruded one.

Do you have any suggestions for creating a curved plane?


I think CSG will only work with closed meshes. You should try to give a small thickness to your plane

CSG works perfectly with planes. While creating the playground I found the issue. I was setting cap all for the extruded mesh. That is obviously not very helpful in this case:

CSG with plane: https://playground.babylonjs.com/#C4B8QB#41

CSG with extruded plane: https://playground.babylonjs.com/#C4B8QB#42