Sweep (Part WB) problem

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
JussyAD
Posts: 377
Joined: Tue Apr 20, 2021 4:30 pm

Re: Sweep (Part WB) problem

Post by JussyAD »

But I don't get ANY problems doing the sweep in the Part Design WB. Seamless every time regardless of radius length (be it 0.1, 0.2 etc)....so is it really my hardware or the Part WB tool? Although you got better results than me. I really think there is a bug. Maybe we can bring this to the attention of the developers? :?:
Attachments
helix 1mm D.FCStd
(55.67 KiB) Downloaded 14 times
helix 1mm D Part WB.FCStd
(11.55 KiB) Downloaded 14 times
1mm helix part design.PNG
1mm helix part design.PNG (210.94 KiB) Viewed 596 times
JussyAD
Posts: 377
Joined: Tue Apr 20, 2021 4:30 pm

Re: Sweep (Part WB) problem

Post by JussyAD »

I don't want to give up on this great software but I need an explanation and a solution. My graphics card can display the sweep nicely in PartD WB so why is Part WB giving trouble? Attaching the sketch to helix does nothing :cry:
I just want everything to work like it should.
Do I need to go to v0.18 or v0.17?
Attachments
Frenet on.PNG
Frenet on.PNG (45.13 KiB) Viewed 590 times
Disaster.PNG
Disaster.PNG (213.1 KiB) Viewed 590 times
Disaster.FCStd
(11.6 KiB) Downloaded 13 times
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: Sweep (Part WB) problem

Post by chrisb »

The developers are aware of this. Since years. The problems come from the third party geometric kernel. FreeCAD could indeed use the same kernel functions in Part and PartDesign, however, your case is an exception of the more frequent case that such sweeps work better in Part workbench, while the PartDesign sweep has more functions.
I guess it is something between the geometric kernel and OpenGL, the latter being dependent from your hardware.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: Sweep (Part WB) problem

Post by chrisb »

I opened your file and it looks here the same as in your screenshot.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24720 (Git)
Build type: Release
Branch: master
Hash: 8b0c58d1b45017ad42bf0fa8f827f1cf22a398e7
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Sweep (Part WB) problem

Post by jmaustpc »

JussyAD wrote: Thu Apr 22, 2021 8:10 pm so is it really my hardware or the Part WB tool?
No, I am suggesting that it is a mixture of the software and an optional setting in the software.

The first examples seemed to just be a visualisation issue that could be fixed by increasing the detail of the visualisation but the last seems to me to be a bug.

Regarding your last file, I tried changing various things but couldn't get the sweep to form a correct solid if the was less than about 0.39mm.

I have created a modified version of your last file to demonstrate the matter. Here is the file...
Sweep_fails_if_profile_is_less_than_0_39.FCStd
(21.47 KiB) Downloaded 16 times

and a screenshot
Screenshot_20210423_101845.png
Screenshot_20210423_101845.png (181.8 KiB) Viewed 558 times
I don't know what is going wrong, but I think this is okay to be written up as a bug.

Jim

OS: Ubuntu 20.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19. stable PPA
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Locale: English/Australia (en_AU)
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Sweep (Part WB) problem

Post by UR_ »

JussyAD wrote: Thu Apr 22, 2021 8:18 pm Do I need to go to v0.18 or v0.17?

Not really!

Just correct your helix settings to prevent subdivisions.

Example:

Screenshot 008.png
Screenshot 008.png (6.91 KiB) Viewed 541 times
Screenshot 009.png
Screenshot 009.png (53.9 KiB) Viewed 541 times

file:
NoDisaster.FCStd
(50.86 KiB) Downloaded 13 times

version:
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.24720 (Git)
Build type: Release
Branch: master
Hash: 8b0c58d1b45017ad42bf0fa8f827f1cf22a398e7
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: German/Germany (de_DE)
JussyAD
Posts: 377
Joined: Tue Apr 20, 2021 4:30 pm

Re: Sweep (Part WB) problem

Post by JussyAD »

JussyAD wrote: Thu Apr 22, 2021 8:18 pm something between the geometric kernel and OpenGL, the latter being dependent from your hardware.
Makes sense! Thank you for explaining.

~~~~~~~~~~
jmaustpc wrote: Fri Apr 23, 2021 12:26 am I don't know what is going wrong, but I think this is okay to be written up as a bug
I am glad to see you got the exact same result there with the incomplete sweep of the solid helix. Definitely should not be happening. Thank you for confirming and your input.

~~~~~~~~~~
UR_ wrote: Fri Apr 23, 2021 10:46 am Just correct your helix settings to prevent subdivisions
I would but I don't even see the option to edit the segment length. How did you get to that dialogue box? In my combo view I only have Pitch, Height, Radius and Angle.
If this is the solution please show me how you got that field...
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Sweep (Part WB) problem

Post by UR_ »

JussyAD wrote: Fri Apr 23, 2021 3:41 pm If this is the solution please show me how you got that field...
update FreeCAD to at least 0.20.24395

24395
Part primitives: add SegmentLength property to helix and spiral


git commit 97543396c5cf91af3a7911382aa78318765af983


https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
JussyAD
Posts: 377
Joined: Tue Apr 20, 2021 4:30 pm

Re: Sweep (Part WB) problem

Post by JussyAD »

UR_ wrote: Fri Apr 23, 2021 3:55 pm update FreeCAD to at least 0.20.24395
thank you for letting me know but from what I can see the latest update was yesterday and it is 0.19.2 (https://github.com/FreeCAD/FreeCAD/releases/tag/0.19.2).
please send me the link to that version.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Sweep (Part WB) problem

Post by UR_ »

Post Reply