Ticket #2187 - Unusable Wire from Section

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Unusable Wire from Section

Post by Chris_G »

IMHO, but I am not a developer, this bug is valid.
The user doesn't even have an hint on what went wrong.
The user should, at least, be informed that the path is not valid for this sweep.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

DeepSOIC wrote:This is why I created Macro Section some while ago.
Do you mind fleshing out what part of issue #2187 is a legit bug?
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

bump
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

Bump
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

ickby wrote:ping
please weigh in once more to clarify
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
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Unusable Wire from Section

Post by Chris_G »

I am a bit sceptical about the result of the Part.Section tool.
From what I see here : FeaturePartSection.cpp#L45, it uses OCC's BRepAlgoAPI_Section that inherits from BRepAlgoAPI_BooleanOperation.
However, the intersection curves are not similar between a section operation and, for example, a cut operation.
See the result for the 2 shapes of this example.
The 2 input shapes :
section-1.jpg
section-1.jpg (14.92 KiB) Viewed 2118 times
The section operation gives the following result (the red edges):
Edge 1 : BSpline curve, Degree 1, 965 poles, continuity C0
Edge 2 : BSpline curve, Degree 1, 430 poles, continuity C0
section-2.jpg
section-2.jpg (16.19 KiB) Viewed 2118 times
The cut operation gives the following result on these same edges:
Edge 1 : BSpline curve, Degree 8, 170 poles, continuity C1
Edge 2 : BSpline curve, Degree 8, 79 poles, continuity C1
section-3.jpg
section-3.jpg (23.46 KiB) Viewed 2118 times
Why such a difference ?
Would there be a way to make the Section tool produce the same kind of intersection curves as the other Boolean Operations ?
Werner ?
wmayer wrote: ping
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Unusable Wire from Section

Post by UR_ »

Please have a look at this section implementation by DeepSOIC

https://www.freecadweb.org/wiki/Macro_Section

Example SectionPart vs FCMacro.png
Example SectionPart vs FCMacro.png (46.11 KiB) Viewed 2069 times
Section by Macro.png
Section by Macro.png (11.16 KiB) Viewed 2069 times
Section by PartWB.png
Section by PartWB.png (10.19 KiB) Viewed 2069 times

File:
SectionPart vs FCMacro.FCStd
(68.3 KiB) Downloaded 45 times


Done with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12802 (Git)
Build type: Release
Branch: master
Hash: 91bb7ed0c51ba47f011199af7bc0a3a2964cf5be
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Unusable Wire from Section

Post by Chris_G »

UR_ wrote: Wed Dec 13, 2017 10:37 pm Please have a look at this section implementation by DeepSOIC
Hi UR_,
I knew DeepSOIC's macro.
My question was more : "Why does OCC have this strange behaviour ?"
Even if I suppose that we probably cannot do anything anyway :(
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

soft bump to keep this discussion going
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unusable Wire from Section

Post by Kunda1 »

Should we open an upstream ticket about this ?
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
Post Reply