Visibility issues with PD Pipes

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Visibility issues with PD Pipes

Post by jnxd »

Steps to reproduce:
  1. With the attached file start additive pipe with SketchBase for profile.
  2. Set SketchPath as path.
  3. In section transformation select "Multisection" and add Sketch001 and Sketch002.
After the sweep is made, Sketch001 and Sketch002 are still visible. Further, after undoing, or deleting the sweep, SketchBase becomes visible again, but SketchPath does not.

I don't know if keeping the sections is intended behavior, but the second visibility issue is definitely a bug.

[EDIT] Version details:

Code: Select all

OS: Ubuntu 20.04.3 LTS (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.26316 (Git)
Build type: Unknown
Branch: (HEAD detached at donovaly/PD-loft-visibility-fix)
Hash: fc608c12acc27451960f00f3cb6f91da0b07df76
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Attachments
sweepbug.FCStd
(10.28 KiB) Downloaded 50 times
My latest (or last) project: B-spline Construction Project.
chrisb
Veteran
Posts: 54187
Joined: Tue Mar 17, 2015 9:14 am

Re: Visibility issues with PD Pipes

Post by chrisb »

Does this occur in master as well (no opportunity to test myself now).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Visibility issues with PD Pipes

Post by jnxd »

chrisb wrote: Mon Nov 08, 2021 8:58 am Does this occur in master as well (no opportunity to test myself now).
Yes. The branch I posted was just one commit ahead, and that commit only changed loft.
My latest (or last) project: B-spline Construction Project.
User avatar
jonasb
Posts: 162
Joined: Tue Dec 22, 2020 7:57 pm

Re: Visibility issues with PD Pipes

Post by jonasb »

This sounds similar to this discussion here: https://forum.freecadweb.org/viewtopic.php?f=10&t=63531
chrisb
Veteran
Posts: 54187
Joined: Tue Mar 17, 2015 9:14 am

Re: Visibility issues with PD Pipes

Post by chrisb »

I can confirm the issues. It was the same in 0.19.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Visibility issues with PD Pipes

Post by uwestoehr »

jnxd wrote: Mon Nov 08, 2021 2:10 am After the sweep is made, Sketch001 and Sketch002 are still visible.
Yes, in the code only the spine and base are made invisible. I agree that all should consistently become invisible since this is also the case for e.g. lofts and who needs to have them visible can do so.

jnxd wrote: Mon Nov 08, 2021 2:10 am Further, after undoing, or deleting the sweep, SketchBase becomes visible again, but SketchPath does not.
I cannot reproduce this. Here the sketch visibility is kept as it is, SketchBase stays invisible:

neKq7P6KUb.gif
neKq7P6KUb.gif (14.74 KiB) Viewed 4368 times
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Visibility issues with PD Pipes

Post by uwestoehr »

Here is a PR that should fix the visibility issue: https://github.com/FreeCAD/FreeCAD/pull/5158

Now the profile is treated like the path. I also changed it so that the sections are hidden on closing the pipe.

When deleting the visibility of underlying objects is kept untouched.

With this PR the visibility is now also consistent to lofts.
User avatar
chennes
Veteran
Posts: 3906
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Visibility issues with PD Pipes

Post by chennes »

PR 5163 (the replacement for 5158) is now merged. Note that it does not address the Undo issue -- if you haven't already, could someone please post a tracker ticket for that?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Visibility issues with PD Pipes

Post by uwestoehr »

chennes wrote: Thu Nov 11, 2021 4:49 am PR 5163 (the replacement for 5158) is now merged. Note that it does not address the Undo issue -- if you haven't already, could someone please post a tracker ticket for that?
@wmayer kindly already fixed it: git commit fb9a3eecff182a9
Post Reply