Repository navigation
Grouped overlapping solids export as multiple bodies in STEP #2372
|
Hi Stefan, I’m a Layerling user. Thanks for building this great tool. I’ve encountered a repeatable issue with the Group function (boolean union) and STEP export: Issue: Interestingly, the opposite works perfectly: when I group a solid with a hollow body (to cut a hole), the resulting hollowed structure is correctly identified as a single part by JLC for CNC manufacturing. Expected: Could you confirm if this is a known limitation of the boolean engine, or if there’s a specific workflow/setting to ensure a proper union is written to the STEP topology? I’d be happy to provide the test STEP files or a screen recording if helpful. Thanks for your time! Best regards, |
Replies: 4 comments 4 replies
|
You're hitting a real gap in the current STEP exporter rather than doing anything wrong with grouping: Why solid + hole gives 1 body, while overlapping solids give multiple bodiesIn
Workflow / workaround right now
|
|
Also, I found a partial workaround for this issue: if I “”simplify mesh” first and then ”make exact” , the exported STEP file is finally recognized by JLC CNC as a single solid. However, after this double-conversion process, the geometry becomes so complex that JLC's platform processes it extremely slowly, making it almost impossible to get an automatic quotation. Furthermore, sometimes when trying to ”make exact“ solid, I receive an error saying the geometry is not a closed solid, and the conversion fails. Does Layerling have a built-in repair function to handle these non-closed geometries? |
|
That behavior makes total sense once you look at what Simplify → Make exact and the Print Check do under the hood:
|
|
Hi Stefan, Thank you so much for the incredibly quick response and for fixing this bug so fast! I am genuinely impressed by your efficiency and how deeply you care about the user experience. The fix makes perfect sense—I understand that the default groups will now fuse into one solid, and I'll be careful to avoid the "Multicolor" setting for my CNC parts. Also, thanks for the clarification on the "not closed" error; I'll stop using the Simplify detour and just wait for the next release. More importantly, I want to sincerely thank you for creating and maintaining such an excellent, accessible, and free tool for the community. As a user who has just transitioned from Tinkercad, Layerling has been a game-changer for my workflow, and it's amazing that we have developers like you building such great software. I will definitely keep all future feedback and reports here on GitHub. Thanks again for your hard work and dedication. Looking forward to the next release! Best regards, |
You're hitting a real gap in the current STEP exporter rather than doing anything wrong with grouping:
Why solid + hole gives 1 body, while overlapping solids give multiple bodies
In
apps/web/src/lib/stepExport.ts(exportShapesToStep→buildScope):Ctrl+G, wheregroupOperationisundefinedor"group") matchisOpenableGroup(shape)as long as the group hasn't been baked (!shape.cadBrepand!shape.edgeTreatments?.length).buildScope()unpacks those plain groups back into their individual child shapes (parts.push(...inner...)) and runsbrep.cutAll()to subtract overlapping holes from each solid—so a solid grouped with a hole exports as a single cutBrepSolid.buildScope()