Extrude w/o cap + CSG = Artifacts

So I’ve found that if I extrude a shape w/o end caps, then apply a CSG operation to it, I get artifacts.

In the demo provided I use a simple box to subtract from my extruded shape, and it seems as if the absence of the cap gets projected to the other side of the box. Though I’m not sure why this happens since it doesn’t intersect on the cap.

@Evgeni_Popov will have a look tomorrow he is usually amazing with those kind of issues :slight_smile:

1 Like

Awesome, thanks!

Unfortunately I think that’s the algorithm which expects closed shapes to work as expected…

It’s the cap ended up in the box which is the problem: if you add cap: BABYLON.Mesh.CAP_END to the extrusion it does work as expected.

1 Like