Hi, it seems there is a bug to unfold this part:
The original thread:
https://forum.freecadweb.org/viewtopic. ... 80#p549380
Here linked is my attempt to this part, with 3DOffset workflow to get a normal cut in wedge area. It fails as well.
It fails to unfold on this system with SM 0.2.49:
OS: Debian GNU/Linux 10 (buster) (LXDE/LXDE-pi)
Word size of FreeCAD: 64-bit
Version: 0.20.26427 (Git)
Build type: Unknown
Branch: master
Hash: 751227402db14aad83f5aa87d63e514109bd438f
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
with this error:
Code: Select all
00:12:56 Engineering mode is not enabled.
00:12:59 Manual K-factor is being used: 0.50 (din)
00:12:59 exception at line 2865('NCollection_BaseList::PRemove',)
00:12:59 ('NCollection_BaseList::PRemove',)
00:12:59 Traceback (most recent call last):
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 1687, in unbendFace
theFace = Part.Face(myWire)
00:12:59 Part.OCCError: Failed to create face from wire
00:12:59
During handling of the above exception, another exception occurred:
00:12:59 Traceback (most recent call last):
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2865, in accept
s, foldComp, norm, thename, err_cd, fSel, obN = getUnfold(k_factor_lookup)
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2179, in getUnfold
theFaceList, foldLines = TheTree.unfold_tree2(TheTree.root) # traverses the tree-structure
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2048, in unfold_tree2
shell, foldLines = self.unfold_tree2(n_node)
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2048, in unfold_tree2
shell, foldLines = self.unfold_tree2(n_node)
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2061, in unfold_tree2
nodeShell, nodeFoldLines = self.generateBendShell2(node)
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 1937, in generateBendShell2
bFace = self.unbendFace(i, bend_node, nullVec)
00:12:59 File "/home/pi/.local/share/FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 1698, in unbendFace
theFace = Part.makeFilledFace(thirdWireList)
00:12:59 Part.OCCError: NCollection_BaseList::PRemove
Then it unfolds on this system with SM 0.2.49 as well, but leads to a weird unfold pattern:
OS: Debian GNU/Linux 11 (bullseye) (LXDE/LXDE-pi)
Word size of FreeCAD: 64-bit
Version: 0.20.26485 (Git)
Build type: Unknown
Branch: master
Hash: 36489487113f5b65be52279165b28150323748a3
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0
OCC version: 7.5.1
Locale: French/France (fr_FR)
- clamping_pipe.png (23.44 KiB) Viewed 2915 times
Code: Select all
00:38:05 Engineering mode is not enabled.
00:38:17 Manual K-factor is being used: 0.40 (din)
00:38:18 <Exception> Wire is not closed.
00:38:18 Exception at line 2916: Outline Sketch failed, re-trying after tidying up
00:38:18 check to sanitize
00:38:18 sanitizing Unfold_Sketch
00:38:19 <Exception> Wire is not closed.
00:38:19 tidying up Unfold_Sketch_Outline
00:38:19 check to sanitize
00:38:19 sanitizing Unfold_Sketch_Outline
Thanks for your kind attention, hope you can find a fix.