shaise / FreeCAD_SheetMetal

A simple sheet metal workbench for FreeCAD
http://theseger.com/projects/2015/06/sheet-metal-addon-for-freecad/
GNU Lesser General Public License v2.1
204 stars 58 forks source link

[feature] Fold non parallel sheet #295

Open Anthony-Gaudino opened 10 months ago

Anthony-Gaudino commented 10 months ago

It seems that currently SheetMetal can only create bends on sheets with parallel surfaces.

Trying to create a bend where the bottom is not parallel results in a wrong bend:

Screenshot 2024-01-17 at 20 15 58

bad_bend.FCStd.zip

If both top and bottom are not parallel it gives an error:

SheetMetalFoldCmd.py", line 266, in execute
    s = smFold(bendR = fp.radius.Value, bendA = fp.angle.Value, flipped = fp.invert, unfold = fp.unfold, kfactor = fp.kfactor, bendlinesketch = fp.BendLine,
  SheetMetalFoldCmd.py", line 122, in smFold
    toolFaces = tool.extrude(normal * -thk)
<class 'Part.OCCError'>: BRepSweep_Translation::Constructor
20:19:20  Recompute failed!

broken_bend.FCStd.zip


Having the possibility of bending non parallel surfaces would be very useful in some instances.

shaise commented 10 months ago

Yes. This a sheet metal limitation. It was meant to be used with flat sheets of metals.