The revolution of a face gives an unxepected result

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

The revolution of a face gives an unxepected result

Post by mwlandolsi »

Hello,
I found this bug, hope tha persons who confirm this answer this topic.
1- create new body (part design WB)
2- create a circle in a new sketch
3- pad this sketch, for example for 20 mm
4- select one of the tow circular faces of the cylinder
5- create a line sketch on that face (which will be used as a revolution axis) the line should not intersect the face of course.
6- select that face and create a revolution around that axis.

When the angular parameter is 360 you get no result or you get just the intersection of the tow create features (pad and revolution)

When you decrease the angular parameter, for example 300 you got a different result.
Screenshot from 2022-06-18 10-29-42.png
Screenshot from 2022-06-18 10-29-42.png (212.81 KiB) Viewed 1567 times

when you go back to the extruded cylinder and change the length, (try to use some extreame values) you got different results for the revolution.
Screenshot from 2022-06-18 10-29-48.png
Screenshot from 2022-06-18 10-29-48.png (187.54 KiB) Viewed 1567 times
Screenshot from 2022-06-18 10-30-20.png
Screenshot from 2022-06-18 10-30-20.png (203.1 KiB) Viewed 1567 times
Screenshot from 2022-06-18 10-30-32.png
Screenshot from 2022-06-18 10-30-32.png (165.28 KiB) Viewed 1567 times

Please see this video.
Untitled.webm
(865.98 KiB) Downloaded 37 times

Code: Select all

OS: Linux Mint 20.1 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 81be38ea8dcec49376b6ab8e08f4a85605639f8d
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.2
Locale: English/United States (en_US)
Installed mods: 
  * Design456 -1439242656.0.0
  * Silk -1439242656.0.0
  * Curves 0.4.2
  * sheetmetal 0.2.49
  * OpticsWorkbench 1.0.8
  * CurvedShapes 1.0.2
Last edited by mwlandolsi on Fri Jun 24, 2022 11:06 pm, edited 1 time in total.
chrisb
Veteran
Posts: 53929
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] the revolution of a face gives an unxepected result

Post by chrisb »

Please upload the FreeCAD file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

Re: [bug] the revolution of a face gives an unxepected result

Post by mwlandolsi »

revolution.FCStd
(63.12 KiB) Downloaded 40 times
chrisb
Veteran
Posts: 53929
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] the revolution of a face gives an unxepected result

Post by chrisb »

This seems to be one of the well known coplanar problems coming from the OCC geometric kernel. Everything works as it should for angles <360, here with 300° ...
SnipScreenshot-6ab1e9.png
SnipScreenshot-6ab1e9.png (20.27 KiB) Viewed 1533 times
... and even 359.99 works well:
Attachments
SnipScreenshot-ce3b32.png
SnipScreenshot-ce3b32.png (35.27 KiB) Viewed 1534 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53929
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] the revolution of a face gives an unxepected result

Post by chrisb »

If I attach a sketch and make a circle with the same diameter as the cylinder, I get - expectedly - the same result. If I increase or decrease the diameter by 0.01mm it works in both cases.

Edit it works even with ±0.001mm difference.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: [bug] the revolution of a face gives an unxepected result

Post by Shalmeneser »

I can do the same :
* with just one sketch
* no face support

Draw a construction line in the sketch and use it as axis.
Attachments
Capture du 2022-06-18 13-48-22.png
Capture du 2022-06-18 13-48-22.png (40.68 KiB) Viewed 1512 times
Velorution_SHALM.FCStd
(48.39 KiB) Downloaded 36 times
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

Re: [bug] the revolution of a face gives an unxepected result

Post by mwlandolsi »

Shalmeneser wrote: Sat Jun 18, 2022 11:49 am I can do the same :
* with just one sketch
* no face support

Draw a construction line in the sketch and use it as axis.
It is obvious that most cases and design problems have a workflow solution in FreeCAD. I wanted just to discuss this issue before reporting this, which looks related to one of the most remarkable characterizations of FreeCAD (pad and revolute a face and so on...).
Should this be reported on FreeCAD issues tracker ?
chrisb
Veteran
Posts: 53929
Joined: Tue Mar 17, 2015 9:14 am

Re: [bug] the revolution of a face gives an unxepected result

Post by chrisb »

mwlandolsi wrote: Sun Jun 19, 2022 7:58 am Should this be reported on FreeCAD issues tracker ?
No, I don't think so. FreeCAD can't do much about this, and I guess that there are already more than one ticket concerning the coplanar issues.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

Re: [bug] the revolution of a face gives an unxepected result

Post by mwlandolsi »

Shalmeneser wrote: Sat Jun 18, 2022 11:49 am I can do the same :
* with just one sketch
* no face support

Draw a construction line in the sketch and use it as axis.
I tried this method and I got some issue.

But when changing "Deviation" in "Objects Style" from 0,5 to 0,1 I got a result and the pad length is longer. But there are no sim lines for the revolution!
also with short pad there is a problem, the sim lines appeared, but the surface does not.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [bug] the revolution of a face gives an unxepected result

Post by openBrain »

The strange thing is that it fails with Pad first then Revolution, but works with Revolution first then Pad... :?
Post Reply