I have an issue with CSG when I try to slice multiple extruded meshes build with an extrusion path generated with an angle.
When I try to use CSG intersect with some meshes and an extruded polygon, I facing “Maximum call stack size exceeded”.
During research to find why this happen, it seems that angle of extruded shapes influence crash of CSG because when I try reduce angle sometimes it work and without angle it always working.
Cases :
I’ve build a playground with some cases to reproduce that bug :
→ meshes with extrusion angle of PI/6 or PI/4
→ slice merged meshes or one by one
CSG is very sensitive to the geometry you provide. It seems that the CAP feature of the extrudeShape function does not work well with CSG. If you remove it, it works:
There is not much we can do about it, it is the way extrudeMesh generates the faces that makes CSG fail. When that happens, try to generate your objects with other means than extrudeShape.
Okay I thought it was an hidden property manage differently with CSG.
I’ve check my use cases and it won’t be a problem, the cap issue can be easily fix with alternative approach in my project.