Unfold option Issue
jaisekjames opened this issue · 12 comments
See Issue
https://forum.freecadweb.org/viewtopic.php?f=22&t=25281&start=150#p279502
please change from
unfoldLength = ( bendR + kfactor * thk / 2.0 ) * bendA * math.pi / 180
to
unfoldLength = ( bendR + kfactor * thk / 2.0 ) * bendA * math.pi / 180.0
Add decimal place to 180.
Thanks! I will take a look
Hi,
The 180.0 is not the problem. The problem is difference between European and American standard of k_facror (one of them is 1/2 the other). I have reverted it to the European standard, which is compatible with Ulrich's original unfolder script. Now both unfolding from your system, and Ulrich's system match.
Thank you
The k factor in the properties are total different system and works only on sheetmetal prefolded using the sheetmetal WB. If you make a sheetmetal model using another system, you can only unfold it using the unfold button. The unfold button uses its own K-factor, and its the same factor for all folds. The properties system can set a different k factor to each fold.
Ok. Here is what I'm doing.
- Create body and sketch.
- Draw a rectangle (82mmx90mm).
- Pad it (4mm).
- Create a bend.
- Change default properties:
- length: 82mm
- radius: 4mm
- kfactor: 0,86
- reliefd: 0mm
- reliefw: 0mm
- Select face and click "Flatten folded sheet metal object".
The unfolded length is 182,33mm (which is different than other two unfold cases).
Report view says:
up Face7 k-factor: 0.65
It does not use the 0,86 kfactor that I have set in the bend property.
Is it the intended behaviour (workflow) or am I doing something wrong?
Here is the example file: L-bracket-final.zip
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15703 (Git)
Build type: Debug
Branch: master
Hash: 80f82b59db1bae91115921d7da3190f855e1041f
Python version: 2.7.15+
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Polish/Poland (pl_PL)
Cheers,
Mateusz
Sorry if I wasn't clear,
The unfold button disregards ALL fold properties, and works with its own k-factor system.
The only way to use the k-factor in the the properties, is to set the unfold to true in the properties as well. This means, and I know its tedious, that if you want to unfold the entire object using the k-factor in the properties, you need to go fold by fold and set the unfold property to true as well.
Thanks for clarifying. I think this issue has been resolved.
Thank you again! :)
Cheers,
Mateusz
The unfold button disregards ALL fold properties, and works with its own k-factor system.
The only way to use the k-factor in the the properties, is to set the unfold to true in the properties as well. This means, and I know its tedious, that if you want to unfold the entire object using the k-factor in the properties, you need to go fold by fold and set the unfold property to true as well.
Wow! I was about to open an issue about "k-factor is not regarded while unfolding" and I just saw this explanation. What is the use case of this behavior? Why isn't the k-factor from the bend properties simply used while unfolding?
@jaisekjames I now think the issue is solved.
yes, I think it can be closed