[Bug] PartDesign Revolution runs into problems in new release, does fine in older ones

Report observations made with the new Toponaming branch.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
pathfinder
Posts: 315
Joined: Mon Oct 04, 2021 10:27 am

[Bug] PartDesign Revolution runs into problems in new release, does fine in older ones

Post by pathfinder »

Hello,

I just noticed this. If I try a simple revolution like the one in the sample file, it fails with the error message

gp_Dir::Crossed() - result vector has zero norm
I tried rotating around the sketch axis, Y-axis and (as I usually do) around the sketches edge itself, all of which failed.


The version in question:

Code: Select all

OS: Arch Linux (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 2022.704.26244 +4971 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: a87320cc64699a8e4226bad2e9b37ac3a1296ab9
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
An earlier version I happened to still have has no issue whatsoever to do the rotation:

Code: Select all

OS: Arch Linux (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 2022.430.26244 +4758 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: b024b876480a533018fdc702145e9e38f8c54ba6
Python version: 3.9.12
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
I tried the newest* version of vanilla FC and it worked with it, which is why I'm posting it here and not in the main forum.

*haven't checked whether there's a newer one out, but I downloaded it two days ago
Attachments
for_forum.FCStd
(10.35 KiB) Downloaded 34 times
Last edited by pathfinder on Sun Jul 24, 2022 9:38 pm, edited 1 time in total.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [Bug?] PartDesign Revolution runs into problems in new release, does fine in older ones

Post by wmayer »

With the official FreeCAD version it works without problems for every axis but Z axis.
Branch: LinkDaily
Might be a bug in this branch.
User avatar
pathfinder
Posts: 315
Joined: Mon Oct 04, 2021 10:27 am

Re: [Bug?] PartDesign Revolution runs into problems in new release, does fine in older ones

Post by pathfinder »

wmayer wrote: Sun Jul 24, 2022 6:14 am With the official FreeCAD version it works without problems for every axis but Z axis.
Branch: LinkDaily
Might be a bug in this branch.
Yeah, I have the same results here.

It won't rotate around the Z-axis because the sketch is on the XY plane, so a rotation around the Z-axis would rotate the sketch along its plane; so this is expected/desired behavior.

Seems to be a bug indeed. I'm not good with Github, but if someone else is and feels like it, it would be great if someone made a bug report.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [Bug] PartDesign Revolution runs into problems in new release, does fine in older ones

Post by wmayer »

pathfinder wrote: Sun Jul 24, 2022 9:38 pm It won't rotate around the Z-axis because the sketch is on the XY plane, so a rotation around the Z-axis would rotate the sketch along its plane; so this is expected/desired behavior.
Of course.
pathfinder wrote: Sun Jul 24, 2022 9:38 pm Seems to be a bug indeed. I'm not good with Github, but if someone else is and feels like it, it would be great if someone made a bug report.
As said this seems to be a bug in the Link branch and an error report should be created at https://github.com/realthunder/FreeCAD
Post Reply