Incorrectly oriented (rotated) section views

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Incorrectly oriented (rotated) section views

Post by NewJoker »

Hi,

I've noticed that section views are incorrectly oriented (rotated) with respect to their corresponding views in 0.21 dev version.

Here's what it looks like in 0.20.1 stable:

section example 2.JPG
section example 2.JPG (17.6 KiB) Viewed 1675 times

And here's what it looks like in 0.21 dev:

section example 1.JPG
section example 1.JPG (18.88 KiB) Viewed 1675 times

I guess that this behavior is caused by changes introduced with the new Complex Section tool. I know that section views can be rotated but would it be possible to make their default orientation consistent with FreeCAD 0.20 ?

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31155 (Git)
Build type: Release
Branch: master
Hash: 6f1b29769b33676edca2bd883b80bed25a0758c8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Polish/Poland (pl_PL)
User avatar
wandererfan
Veteran
Posts: 6308
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Incorrectly oriented (rotated) section views

Post by wandererfan »

NewJoker wrote: Wed Dec 07, 2022 7:54 pm I guess that this behavior is caused by changes introduced with the new Complex Section tool. I know that section views can be rotated but would it be possible to make their default orientation consistent with FreeCAD 0.20 ?
@FBXL5 is teaching me about correct orientation of section views - https://www.forum.freecadweb.org/viewto ... 52#p646152 - so there might be some changes in this area soon.

Please post a file that exhibits the problem, as it doesn't show up in this trivial test:
Attachments
simpleSection_v020.png
simpleSection_v020.png (50.4 KiB) Viewed 1648 times
simpleSection_v021.png
simpleSection_v021.png (39.57 KiB) Viewed 1648 times
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Incorrectly oriented (rotated) section views

Post by NewJoker »

wandererfan wrote: Wed Dec 07, 2022 9:05 pm Please post a file that exhibits the problem, as it doesn't show up in this trivial test:
Here's a file showing this problem:

section orientation.FCStd
(26.3 KiB) Downloaded 42 times
User avatar
wandererfan
Veteran
Posts: 6308
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Incorrectly oriented (rotated) section views

Post by wandererfan »

NewJoker wrote: Wed Dec 07, 2022 9:51 pm
I must be doing something wrong. I don't get any difference using your file with v.20 and v.21. My v0.20 is a snap version - I wonder if that is significant.

My versions:

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31223 (Git)
Build type: Unknown
Branch: master
Hash: 9869a2c3d7bdacdfac605db318c73e3b2d71245c
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/Canada (en_CA)
Installed mods: 
  * FreeCAD_Electric
  * Assembly4 0.12.4
  * A2plus 0.4.56a

Code: Select all

OS: Ubuntu Core 20 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29177 +233 (Git) Snap 245
Build type: Release
Branch: tag: 0.20.1
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/Canada (en_CA)
My results...
Attachments
section_orientation_v020.png
section_orientation_v020.png (31.21 KiB) Viewed 1538 times
section_orientation_v021master.png
section_orientation_v021master.png (28.53 KiB) Viewed 1538 times
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Incorrectly oriented (rotated) section views

Post by NewJoker »

wandererfan wrote: Fri Dec 09, 2022 12:25 am I must be doing something wrong. I don't get any difference using your file with v.20 and v.21. My v0.20 is a snap version - I wonder if that is significant.
Maybe it's because you are using Linux or a newer build. My colleague has the same issue with his model. He's also using the newest build available for Windows.
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Incorrectly oriented (rotated) section views

Post by jpg87 »

Hello and thank you @wandererfan for the important work done with TechDraw.

I also noticed the same problem with the orientation of the sections :
pb_orientation.png
pb_orientation.png (18.6 KiB) Viewed 1421 times

Here is my version:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31155 (Git)
Build type: Release
Branch: master
Hash: 6f1b29769b33676edca2bd883b80bed25a0758c8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * A2plusSavTraduc
  * Assembly3 0.11.4
  * BIM 2021.12.0
  * BOLTSFC
  * Curves 0.5.5
  * DynamicData 2.46.0
  * fasteners 0.4.2
  * fcgear 1.0.0
  * freecad.gears 1.0.0
  * IconThemes
  * PieMenu
  * QuickMeasure 2022.10.28
  * symbols_library
I tested the complex cuts: I must not have understood everything yet because my results are not always those expected!
I'll come back to the forum if I can't.
Attachments
roue.FCStd
(160.84 KiB) Downloaded 34 times
My website : http://help-freecad-jpg87.fr updated 2023/11/06
user1234
Veteran
Posts: 3475
Joined: Mon Jul 11, 2016 5:08 pm

Re: Incorrectly oriented (rotated) section views

Post by user1234 »

@NewJoker
@jpg87

see @wandererfan PR7972, https://github.com/FreeCAD/FreeCAD/pull/7972, seems to work, see https://forum.freecadweb.org/viewtopic. ... 40#p646576


Greetings
user1234
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Incorrectly oriented (rotated) section views

Post by jpg87 »

@user1234 Thanks for the info, but I'm only using the released updates, and the latest one, released yesterday, doesn't have the fix yet.
The same file produces the same error, but I noticed that the error does not occur if the section plane is horizontal.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31155 (Git)
Build type: Release
Branch: master
Hash: 6f1b29769b33676edca2bd883b80bed25a0758c8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * A2plusSavTraduc
  * Assembly3 0.11.4
  * BIM 2021.12.0
  * BOLTSFC
  * Curves 0.5.5
  * DynamicData 2.46.0
  * fasteners 0.4.2
  * fcgear 1.0.0
  * freecad.gears 1.0.0
  * IconThemes
  * PieMenu
  * QuickMeasure 2022.10.28
  * symbols_library
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Incorrectly oriented (rotated) section views

Post by NewJoker »

@user1234 Then I will tests it once this PR is merged and included in Windows build. But it’s for the new Complex Section tool so I’m not sure if it can also fix the behavior occuring with standard section.
Last edited by NewJoker on Sat Dec 10, 2022 6:59 pm, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6308
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Incorrectly oriented (rotated) section views

Post by wandererfan »

Well, I don't know what is going on. I tested 3 different versions on Windows and they all produced the same section view - the one with the section view "lying flat". :?

The PR version produces a new or edited view with the section view "lying upright", but the untouched view is still "lying flat".
I'll try downloading the current stable v0.20 and current Appimage v0.21 later today.
Your version:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31155 (Git)
Build type: Release
Branch: master
Hash: 6f1b29769b33676edca2bd883b80bed25a0758c8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Polish/Poland (pl_PL)
The 3 versions I tried...

Local build:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31284 (Git)
Build type: Release
Branch: invSectionRotation
Hash: b4bd8d9f6c2bde1e6b1d342671cee4c01d043c20
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk , OCC 7.6.3
Locale: English/Canada (en_CA)
Older AppImage for v021

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31097 (Git)
Build type: Release
Branch: master
Hash: ccf074008774f1bdfed8fec09ed60e2c0fe77cae
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/Canada (en_CA)
Older v0.20 downloads:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/Canada (en_CA)
Post Reply