Skip to content

Commit b5271ad

Browse files
fix: duplicate before shrink
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6849592 commit b5271ad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/gh/components/DF_build_assembly

‎src/gh/components/DF_build_assembly/code.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ def RunScript(self,
2828
i_allow_curved_joint_faces = False
2929

3030
for brep in i_breps:
31-
brep.Faces.ShrinkFaces()
32-
beam = DFBeam.from_brep_face(brep, i_is_roundwood, i_allow_curved_joint_faces)
31+
brep_copy = brep.DuplicateBrep()
32+
brep_copy.Faces.ShrinkFaces()
33+
beam = DFBeam.from_brep_face(brep_copy, i_is_roundwood, i_allow_curved_joint_faces)
3334
beams.append(beam)
3435

3536
o_assembly = DFAssembly(beams, i_assembly_name)

0 commit comments

Comments
 (0)