[FreeCAD 0.20] a beta release for Windows is available

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
larzon
Posts: 16
Joined: Wed May 04, 2022 6:37 am

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by larzon »

I think I found an issue with the step import. I isolated it to only have one part in the step-file, but I get the same behavior for several parts in the original step.

When you import this step file you get like a big cone drawn from the part. I tested the same step-file in inventor and in another software and then I don't get this behavior. Any idea why?
1-MU_Freecad.step
(465.27 KiB) Downloaded 43 times
About:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.28968 (Git)
Build type: Release
Branch: master
Hash: 03f38526172d8bc6274ddfb5cdd3ad6b691f5f56
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, OCC 7.6.2
Locale: Swedish/Sweden (sv_SE)
Installed mods: 
  * Defeaturing
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by adrianinsaval »

confirmed here:

Code: Select all

OS: KDE Flatpak runtime (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.14555 (Git shallow)
Build type: Release
Branch: (HEAD detached at 0.20beta1)
Hash: b02705d79f2e1adc7773f0c845e0acc5ae8fde4b
Python 3.9.9, Qt 5.15.4, Coin 4.0.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * CfdOF 1.16.7
  * AirPlaneDesign 0.4.0
but works fine here:

Code: Select all

OS: Linux 5.18.2-arch1-1 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28907 (Git)
Build type: None
Branch: master
Hash: 354c4e96358a9bd77152ab48fd378711b920d840
Python 3.10.4, Qt 5.15.4, Coin 4.0.1, OCC 7.5.3
Locale: C/Default (C) [ OS: English/United Kingdom (en_GB) ]
Installed mods:
We've got ourselfs into another occt step import regression it seems
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by wmayer »

I have a locally built OCC 7.6.1 (so a slightly bit older than 7.6.2) and there everything looks good to me.
larzon
Posts: 16
Joined: Wed May 04, 2022 6:37 am

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by larzon »

Thanks for testning. Is it possible for me to download a version that works? I have several step files almost the same that I could test with to verify if that is of interrest.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by Kunda1 »

So we have a regression in 0CC 7.6.2
Can we figure out a workaround before release?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by adrianinsaval »

should we change our target occt lib to 7.6.1?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by wmayer »

I have built version 7.6.2 now and there I can confirm the two gigantic cones. So, it's definitely an issue with that OCC version. For some reason the meshing algorithm tessellates the wrong part of the cone.

This creates part objects of the conical face and its boundary edges. After zooming in you can see that the face is outside the boundary edges.

Code: Select all

s=App.ActiveDocument.Part__Feature.Shape
for i in s.Face29.Edges:
  Part.show(i)

Part.show(s.Face29)
Lonfor
Posts: 133
Joined: Wed Mar 23, 2022 2:32 am

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by Lonfor »

uwestoehr wrote: Sun May 15, 2022 12:25 pm Please test if the different workbenches for for you as well as the different addons.
If you encounter any troubles, please report them in this thread.
Here I go.
Workbench Surface, command "Fill boundary curves" won't flip the edges' orientation.
By the way, this behavior is also found in v0.19.4 Flatpack.

Code: Select all

OS: Debian GNU/Linux 10 (buster) (KDE//usr/share/xsessions/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.28936 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 7b18e86)
Hash: 7b18e86bac28aa5103c50bed101eebdbd39f9659
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Attachments
104.FCStd
(59.31 KiB) Downloaded 36 times
Screenshot_20220611_044035.png
Screenshot_20220611_044035.png (140.17 KiB) Viewed 1435 times
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by wmayer »

wmayer wrote: Sat Jun 11, 2022 7:48 am I have built version 7.6.2 now and there I can confirm the two gigantic cones
OCC 7.6.2 is only partially to blame. What happens is that the meshing algorithm fails (insofar a regression in OCC) to create triangles for the two conical faces and FreeCAD incorrectly assumes that the two faces must be infinite and chooses the parameter range [-pi, pi] x [-50, 50]. This causes the huge cones.

git commit fbb5555f27 fixes the problem by first checking the real parameter whether it's infinite.

Result: the STEP file can be perfectly loaded and the user doesn't even notice the issue with OCC 7.6.2
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [FreeCAD 0.20] a beta release for Windows is available

Post by Kunda1 »

Thanks wmayer!!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply