[Fixed][Bug#4285] Bevel/Chamfer invert surface normal

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!
fc_tofu
Posts: 653
Joined: Sun Jan 05, 2020 4:56 pm

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by fc_tofu »

openBrain wrote: Wed Mar 04, 2020 7:07 pm I don't have a faulty version here. Could you reproduce by simply chamfering an edge of a primitive box ?
bevel/chamfer on primitive box cause no error.
...extruded cube (plane+extrusion), no error.

...revolved tube, no error

...extruded tube (2 methods), no error.
fsc_2020-03-05_070022.jpg
fsc_2020-03-05_070022.jpg (98.54 KiB) Viewed 1403 times
fsc_2020-03-05_035347.jpg
fsc_2020-03-05_035347.jpg (121.71 KiB) Viewed 1411 times
Attachments
fc019pre_revolved_tube_chamfer.FCStd
(9.39 KiB) Downloaded 46 times
fc019pre_extruded_tube_chamfer.FCStd
(17.41 KiB) Downloaded 32 times
otoien
Posts: 87
Joined: Sun Aug 13, 2017 2:38 am

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by otoien »

I cannot reproduce in 0.19.19697 under Win10, only tried second case:
In Part WB created primitive cube,
applied thickness to top surface,
applied chamfer to one edge.

All screen shots above show draft workbench while description mention Part WB, not sure why, may be I missed something?

Chamfer-after-thickness-001.jpg
Chamfer-after-thickness-001.jpg (128.17 KiB) Viewed 1398 times

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19697 (Git)
Build type: Release
Branch: master
Hash: 8832356802011bf5d70e9d6f0efa89c47bc70a91
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by chrisb »

My tests were all made in Part workbench or - where mentioned - in PartDesign. Nothing from Draft workbench was used.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
fc_tofu
Posts: 653
Joined: Sun Jan 05, 2020 4:56 pm

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by fc_tofu »

otoien wrote: Thu Mar 05, 2020 6:16 am ...
All screen shots above show draft workbench while description mention Part WB, not sure why, may be I missed something?

...
I customize toolbars from PartWB to DraftWB. This doesnot affect test results.
fsc_2020-03-05_151134.jpg
fsc_2020-03-05_151134.jpg (184.45 KiB) Viewed 1381 times
My info:

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19697 (Git)
Build type: Release
Branch: master
Hash: 8832356802011bf5d70e9d6f0efa89c47bc70a91
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Chinese/China (zh_CN)
Your, chrisb's, and my info is different at:
Version/Python version/Qt version/Locale.
fc_tofu
Posts: 653
Joined: Sun Jan 05, 2020 4:56 pm

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by fc_tofu »

If no one disagree, I will open a ticket for this bug.
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] 0.19pre PartWB, Chamfer and Bevel invert surface normal

Post by chrisb »

fc_tofu wrote: Tue Mar 10, 2020 10:28 am I will open a ticket for this bug.
Yes please.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
MaurinoWeb
Posts: 221
Joined: Thu Jun 22, 2017 1:15 pm

Re: [Ticket#4285] 0.19pre PartWB, Bevel/Chamfer command invert surface normal

Post by MaurinoWeb »

fc_tofu wrote: Tue Mar 10, 2020 10:28 am If no one disagree, I will open a ticket for this bug.
Hello everybody...
Besides the mentioned problem that I also have...
I have the normals reversed in other situations with freecad 0.19:

When I draw a polyline clockwise

When I create shell from circle or polyline... EDIT: with all draftwb closed geometries, extruded in partwb (shell)

If I create solids no problem

Sorry my English
Thanks

OS: Ubuntu 18.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20310 (Git) AppImage
Build type: Release
Branch: master
Hash: 2cac4898d7d62276fbbaaef5b4cecb9bfdd29a33
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)

inverted-normal-2.jpg
inverted-normal-2.jpg (21.68 KiB) Viewed 1293 times
MaurinoWeb
Posts: 221
Joined: Thu Jun 22, 2017 1:15 pm

Re: [Ticket#4285] 0.19pre PartWB, Bevel/Chamfer command invert surface normal

Post by MaurinoWeb »

Same problem on faces built in partwb with "create shape" and activated planar...

Face from vertices: only if I make a selection clockwise

Face from edges: any selection order reproduces the problem

OS: Ubuntu 18.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20310 (Git) AppImage
Build type: Release
Branch: master
Hash: 2cac4898d7d62276fbbaaef5b4cecb9bfdd29a33
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Italian/Italy (it_IT)
Syres
Veteran
Posts: 2902
Joined: Thu Aug 09, 2018 11:14 am

Re: [Ticket#4285] 0.19pre PartWB, Bevel/Chamfer command invert surface normal

Post by Syres »

wmayer wrote: Ping
I think maybe git commit 8832356 is causing the incorrect rendering
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [Ticket#4285] 0.19pre PartWB, Bevel/Chamfer command invert surface normal

Post by wmayer »

Syres wrote: Sun Apr 05, 2020 12:20 pm
wmayer wrote: Ping
I think maybe git commit 8832356 is causing the incorrect rendering
It's not the rendering that causes the problem but the rendering reveals that the shape is broken because orientations of the sub-elements of the shape are inconsistent.
Post Reply