Page 10 of 11

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

Posted: Fri Jun 10, 2022 2:28 pm
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 45 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

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

Posted: Fri Jun 10, 2022 3:12 pm
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

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

Posted: Fri Jun 10, 2022 4:06 pm
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.

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

Posted: Fri Jun 10, 2022 5:37 pm
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.

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

Posted: Fri Jun 10, 2022 10:11 pm
by Kunda1
So we have a regression in 0CC 7.6.2
Can we figure out a workaround before release?

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

Posted: Fri Jun 10, 2022 11:56 pm
by adrianinsaval
should we change our target occt lib to 7.6.1?

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

Posted: Sat Jun 11, 2022 7:48 am
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)

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

Posted: Sat Jun 11, 2022 8:53 am
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)

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

Posted: Sat Jun 11, 2022 11:09 am
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

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

Posted: Sat Jun 11, 2022 11:15 am
by Kunda1
Thanks wmayer!!