Skip to content
Discussion options

You must be logged in to vote

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):

  1. Plain groups (Ctrl+G, where groupOperation is undefined or "group") match isOpenableGroup(shape) as long as the group hasn't been baked (!shape.cadBrep and !shape.edgeTreatments?.length).
  2. buildScope() unpacks those plain groups back into their individual child shapes (parts.push(...inner...)) and runs brep.cutAll() to subtract overlapping holes from each solid—so a solid grouped with a hole exports as a single cut BrepSolid.
  3. However, buildScope()

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sprsong
Comment options

@henmedia
Comment options

Answer selected by sprsong
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@henmedia
Comment options

Comment options

You must be logged in to vote
1 reply
@henmedia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants