Section Face Format

Discussions about the development of the TechDraw workbench
User avatar
wandererfan
Posts: 3139
Joined: Tue Nov 06, 2012 5:42 pm

Section Face Format

Postby wandererfan » Mon Nov 04, 2019 1:02 pm

Formatting of section faces has been simplified a bit.
SectionFaceFormat.png
SectionFaceFormat.png (83.65 KiB) Viewed 462 times
There is now a drop down list with choices [Hide, Color, SvgHatch, PatHatch]. SvgHatch is the default. simple.svg is used if no default pattern is specified in preferences.

ShowCutSurface property has been removed in favour of the above drop down.

There are now separate properties for Svg hatch file and PAT hatch file.
User avatar
bitacovir
Posts: 724
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Section Face Format

Postby bitacovir » Tue Nov 05, 2019 3:41 pm

Thanks for your work.
Always I found TechDraw NewSection a bit confusing. It is not very intuitive to infer the direction of each cross section. What are Section, Section 001?
TD Section test.FCStd
(27.16 KiB) Downloaded 4 times
FreeCAD_J4oKqXrnIp.png
FreeCAD_J4oKqXrnIp.png (89.25 KiB) Viewed 428 times

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18671 (Git)
Build type: Release
Branch: master
Hash: 5476ab4b61fed05d37aae3a01ecd2e62d6d54200
Python version: 3.6.7
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
User avatar
wandererfan
Posts: 3139
Joined: Tue Nov 06, 2012 5:42 pm

Re: Section Face Format

Postby wandererfan » Tue Nov 05, 2019 8:11 pm

bitacovir wrote:
Tue Nov 05, 2019 3:41 pm
Always I found TechDraw NewSection a bit confusing. It is not very intuitive to infer the direction of each cross section. What are Section, Section 001?
It is all based on what direction the viewer's head turns to look at the cut face, starting from looking at the Source view. "Section" is looking up at the cut face. "Section001" is looking down.
bitacovir_confusion_UpDn.png
bitacovir_confusion_UpDn.png (51.22 KiB) Viewed 399 times
Same for Right/Left. Look at the Source, Right shows cut surface to your right.

If you have a suggestion to make it more intuitive, I'd like to hear it.
User avatar
bitacovir
Posts: 724
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Section Face Format

Postby bitacovir » Wed Nov 06, 2019 5:27 pm

wandererfan wrote:
Tue Nov 05, 2019 8:11 pm
"Section" is looking up at the cut face. "Section001" is looking down.
Vertical cross sections are fine, but the horizontal cross sections some times look weird.
Here an example. Vertical cross section generates the section a-a, and it is fine. But the horizontal cross section generates a section b-b that it does not make sense to me (attached file).
I drew a cross section view manually using projection lines at the bottom (red dashed lines). That should be the correct cross section b-b.
TD Section test2.FCStd
(26.65 KiB) Downloaded 5 times
TD Section test2.png
TD Section test2.png (245.05 KiB) Viewed 364 times
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18671 (Git)
Build type: Release
Branch: master
Hash: 5476ab4b61fed05d37aae3a01ecd2e62d6d54200
Python version: 3.6.7
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
User avatar
wandererfan
Posts: 3139
Joined: Tue Nov 06, 2012 5:42 pm

Re: Section Face Format

Postby wandererfan » Thu Nov 07, 2019 1:27 am

bitacovir wrote:
Wed Nov 06, 2019 5:27 pm
Vertical cross sections are fine, but the horizontal cross sections some times look weird.
If I rotate the Source shape by 45 about X before creating any views, it looks right. Need to look at how it handles Source projection direction, not just the Source's orientation.
RotatedSource.png
RotatedSource.png (53.18 KiB) Viewed 336 times
User avatar
bitacovir
Posts: 724
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Section Face Format

Postby bitacovir » Thu Nov 07, 2019 2:17 am

wandererfan wrote:
Tue Nov 05, 2019 8:11 pm

If you have a suggestion to make it more intuitive, I'd like to hear it.
I think the Edit SectionView panel could be redesigned on its UI.
For instance: Section origin X, Section Origin Y, Section origin Z
Vertical sections can be move changing the values on Section origin X (Y,Z does not produce any change)
Horizontal sections can be move changing origin Y, Z but not with X.
Is this right?
FreeCAD_yrUhvDgkTh.png
FreeCAD_yrUhvDgkTh.png (16.83 KiB) Viewed 330 times
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
User avatar
wandererfan
Posts: 3139
Joined: Tue Nov 06, 2012 5:42 pm

Re: Section Face Format

Postby wandererfan » Fri Nov 08, 2019 5:04 pm

bitacovir wrote:
Wed Nov 06, 2019 5:27 pm
Vertical cross sections are fine, but the horizontal cross sections some times look weird.
Here an example. Vertical cross section generates the section a-a, and it is fine. But the horizontal cross section generates a section b-b that it does not make sense to me (attached file).
Making progress I think. Do these look right to you?
bitacovir3of4Devel.png
bitacovir3of4Devel.png (44.46 KiB) Viewed 269 times
User avatar
wandererfan
Posts: 3139
Joined: Tue Nov 06, 2012 5:42 pm

Re: Section Face Format

Postby wandererfan » Fri Nov 08, 2019 5:22 pm

bitacovir wrote:
Thu Nov 07, 2019 2:17 am
For instance: Section origin X, Section Origin Y, Section origin Z
Vertical sections can be move changing the values on Section origin X (Y,Z does not produce any change)
Horizontal sections can be move changing origin Y, Z but not with X.
Is this right?
Not quite, no. The SectionOrigin is a 3D point. The section plane passes through that point either vertically or horizontally.
One axis of the plane is the Direction of the Base view and the other is the vertical/horizontal axis of the Base View. The left over direction is the SectionNormal.

If you change the SectionOrigin in either of the plane's axis, you won't see much difference because the plane is very big and will cut the shape the same way.

If you change the SectionOrigin along the SectionNormal, you'll notice changes.

If the Base view Direction isn't along a primary axis (XYZ), then you have to adjust more than one component to move the plane.
User avatar
bitacovir
Posts: 724
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Section Face Format

Postby bitacovir » Fri Nov 08, 2019 5:27 pm

wandererfan wrote:
Fri Nov 08, 2019 5:04 pm
Making progress I think. Do these look right to you?
Let me see... With my old fashion method... Yep, it looks fine.
inkscape_bC1V6ejGnc.png
inkscape_bC1V6ejGnc.png (55.76 KiB) Viewed 260 times
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project
User avatar
bitacovir
Posts: 724
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Section Face Format

Postby bitacovir » Fri Nov 08, 2019 11:54 pm

wandererfan wrote:
Fri Nov 08, 2019 5:22 pm
Not quite, no. The SectionOrigin is a 3D point. The section plane passes through that point either vertically or horizontally.
One axis of the plane is the Direction of the Base view and the other is the vertical/horizontal axis of the Base View. The left over direction is the SectionNormal.

If you change the SectionOrigin in either of the plane's axis, you won't see much difference because the plane is very big and will cut the shape the same way.

If you change the SectionOrigin along the SectionNormal, you'll notice changes.

If the Base view Direction isn't along a primary axis (XYZ), then you have to adjust more than one component to move the plane.
Ok. I understand now.
Maybe it is possible change the Edit Section panel to something like this:
inkscape_EaOwKaW7QA.png
inkscape_EaOwKaW7QA.png (40.16 KiB) Viewed 218 times
This way the setup of Section View can follow a path of clear 3 steps:
1) First, to write a Identifier (text) of the section view
2) Second, to chose section orientation. Once the user clicks on an icon, the section view and the section line appear on the main window.
3) Third, with the Section view at the main window, the user can have a reference for relocation of the section plane if it is needed. Thus, the user can change the numbers and click Apply button to see the changes. He can repeat the last step up to the location is correct.
::bitacovir::
===================================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project