Complex Sections

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Complex Sections

Post by FBXL5 »

wandererfan wrote: Sat Oct 15, 2022 6:42 pm How about this?
- ProjectionStrategy = Single. Much the same as a regular section, except it uses a profile instead of a section plane. All projections are made according to the SectionNormal.
- ProjectionStrategy = Piecewise. Every segment in the profile generates a face in the result; Projections are based on profile segment normals.
- ProjectionStrategy = NoParallel. As Piecewise, except profile segments that are parallel with the SectionNormal are ignored. This would do your "several parallel offset sections" if the profile only contains vertical and horizontal segments.
wandererfan wrote: Sat Oct 15, 2022 6:42 pm I'm confused by "one for angled section planes"
I'm sorry, I meant "aligned section view"

I altered your image:
OffsetAligned.png
OffsetAligned.png (37.38 KiB) Viewed 1202 times
I think we just need one Offset option (no parallel and no oblique to the normal) and one Aligned option (piecewise, only oblique and perpendicular to the normal ) and both shouldn't be mixed.

I hope this helps to clarify.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Complex Sections

Post by Kunda1 »

I haven't read the whole thread, is there any effort in documenting this feature on the wiki happening ?

BTW wandererfan, this looks awesome!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
wandererfan
Veteran
Posts: 6324
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Complex Sections

Post by wandererfan »

Kunda1 wrote: Fri Oct 28, 2022 2:31 pm I haven't read the whole thread, is there any effort in documenting this feature on the wiki happening ?
TechDraw_ComplexSection
User avatar
NewJoker
Veteran
Posts: 3089
Joined: Sun Oct 11, 2020 7:49 pm

Re: Complex Sections

Post by NewJoker »

Now it's just a matter of adding it to release notes.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Complex Sections

Post by domad »

wandererfan wrote: Fri Oct 28, 2022 5:40 pm .......
@wandererfan
The "Complex Section" function crashes FreeCad if you use the choices "Projection Strategy" -> other than "Offset", it also happens when you check "Live Update".
The crash should not happen whatever the input condition.

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon / cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.30811 (Git) AppImage
Build type: Release
Branch: master
Hash: c490b93173ff90f7ed8de270d674530d5995446e
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
User avatar
wandererfan
Veteran
Posts: 6324
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Complex Sections

Post by wandererfan »

domad wrote: Fri Nov 04, 2022 7:15 am The "Complex Section" function crashes FreeCad if you use the choices "Projection Strategy" -> other than "Offset", it also happens when you check "Live Update".
I can't reproduce based on the information provided. Could you please provide your test file and steps to reproduce?
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Complex Sections

Post by domad »

wandererfan wrote: Fri Nov 04, 2022 1:38 pm .....
Hello wandererfan, greetings to the Community!
Of course, here is the file (it's the usual one with holes and a slanted slot), FreeCad crashes both with the sectioning "path" as wire and as sketch, it doesn't happen with the "Offset" choice.
Attachments
Complex_section_Test.FCStd
(10.15 KiB) Downloaded 15 times
User avatar
wandererfan
Veteran
Posts: 6324
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Complex Sections

Post by wandererfan »

domad wrote: Fri Nov 04, 2022 7:15 am [The "Complex Section" function crashes FreeCad if you use the choices "Projection Strategy" -> other than "Offset", it also happens when you check "Live Update".
The crash should not happen whatever the input condition.
Just to make sure I'm fixing the same thing you are seeing, I don't get a crash, but a message: "Unhandled unknown exception caught in GUIApplication::notify"

If that is the same thing you are getting, it is because there is a segment of the profile that falls entirely outside the shape. This creates a Compound shape that has no content, but is not considered Null by OCC.

So to fix this, I'm putting in a check to make sure that there is actually something inside the Compound.

If you are seeing something different, please let me know.
domad
Veteran
Posts: 2096
Joined: Mon Jun 22, 2020 12:16 pm

Re: Complex Sections

Post by domad »

wandererfan wrote: Fri Nov 04, 2022 11:52 pm ...
Greetings to the Community!
@wandererfan, in the gif what happens, a crash without any communication/warning in the Report
Attachments
Crash_FreeCad_complex_section.gif
Crash_FreeCad_complex_section.gif (347.05 KiB) Viewed 765 times
User avatar
M4x
Veteran
Posts: 1484
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: Complex Sections

Post by M4x »

What are you getting if you're running FreeCAD from the command line?
Post Reply