Anomaly in hatching

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Anomaly in hatching

Post by jpg87 »

Hello @wandererfan
I am testing simple and complex cuts.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31641 (Git)
Build type: Release
Branch: master
Hash: d28d63b87b60161419c6c0c532fbbfaed96926b8
Python 3.10.8, Qt 5.15.6, 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
  * Render 2022.3.0
  * symbols_library
Of course, a big thank you for the advances you regularly give us!
Here's the problem: In my preferences, geometric hatching is selected. When I create a section, no hatch appears. I just have to select the svg hatches so that the hatched area appears, then the geometric hatches, and everything is in order. Except ! In my E-E section, the hatched area becomes incorrect when I go back to geometric hatching!

pb_hachues.png
pb_hachues.png (65.16 KiB) Viewed 1372 times

For the moment I cannot put the file online: I send it to you in private.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Anomaly in hatching

Post by wandererfan »

jpg87 wrote: Wed Jan 25, 2023 11:30 am
This was really ugly to figure out. The section cut was creating a face with geometry errors.
funkySectionFace.png
funkySectionFace.png (23.47 KiB) Viewed 1171 times
Need to do some more testing and code clean up, but I think I've got it sorted out:
CylinderHeadPATHatch.png
CylinderHeadPATHatch.png (43.67 KiB) Viewed 1171 times
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Anomaly in hatching

Post by jpg87 »

wandererfan wrote: Wed Feb 01, 2023 1:09 am...
Magnificent ! Thank you so much.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Anomaly in hatching

Post by wandererfan »

Three commits have been made to master:

git commit d9afb06676 allow section line on section view
git commit bd25c86973 fix handling of perforated section faces
git commit 951520a5c1 use correct shape for section of section

The first is just something I noticed - that if the base view is a section, the base view will not have a section line added. Not sure why there was code to prevent this.

The second is the one that actually fixes the reported problem.

The third is something I'd like feedback on. Previously, a section of a section would use the shape from the original base object. Now the first section cuts the shape in half, the second cuts the half shape in half, the third cuts the quarter shape in half, etc. This makes sense to me, but I don't know if it follows good drafting practices.
User avatar
FBXL5
Posts: 979
Joined: Sat Aug 03, 2019 8:45 pm

Re: Anomaly in hatching

Post by FBXL5 »

wandererfan wrote: Thu Feb 02, 2023 3:14 pm The third is something I'd like feedback on. Previously, a section of a section would use the shape from the original base object. Now the first section cuts the shape in half, the second cuts the half shape in half, the third cuts the quarter shape in half, etc. This makes sense to me, but I don't know if it follows good drafting practices.
I have never seen anyone using section cuts this way and I wouldn't use it this way. I think it is contrary to traditional drawing practice.
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Anomaly in hatching

Post by jpg87 »

wandererfan wrote: Thu Feb 02, 2023 3:14 pm The first is just something I noticed - that if the base view is a section, the base view will not have a section line added. Not sure why there was code to prevent this.
Indeed, I had noticed it too but I forgot to mention it in my message!
FBXL5 wrote: Thu Feb 02, 2023 6:40 pm
wandererfan wrote: Thu Feb 02, 2023 3:14 pm The third is something I'd like feedback on. Previously, a section of a section would use the shape from the original base object. Now the first section cuts the shape in half, the second cuts the half shape in half, the third cuts the quarter shape in half, etc. This makes sense to me, but I don't know if it follows good drafting practices.
I have never seen anyone using section cuts this way and I wouldn't use it this way. I think it is contrary to traditional drawing practice.
I share this opinion.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Anomaly in hatching

Post by wandererfan »

FBXL5 wrote: Thu Feb 02, 2023 6:40 pm I have never seen anyone using section cuts this way and I wouldn't use it this way. I think it is contrary to traditional drawing practice.
Is this something that the program should prevent? I lean towards letting people do it.
User avatar
FBXL5
Posts: 979
Joined: Sat Aug 03, 2019 8:45 pm

Re: Anomaly in hatching

Post by FBXL5 »

wandererfan wrote: Fri Feb 03, 2023 1:50 pm
FBXL5 wrote: Thu Feb 02, 2023 6:40 pm I have never seen anyone using section cuts this way and I wouldn't use it this way. I think it is contrary to traditional drawing practice.
Is this something that the program should prevent? I lean towards letting people do it.
Leave it as an option but not as default, please. Maybe someone could need this behaviour in the future.
Post Reply