[0.17 PDN] Colouring single faces

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
chrisb
Posts: 22455
Joined: Tue Mar 17, 2015 9:14 am

[0.17 PDN] Colouring single faces

Postby chrisb » Thu Aug 03, 2017 10:13 am

Is it possible to colour single faces of objects created in PDN? In Part WB the objects still have the right-click-menu entry "Set colors...". I miss that entry in PDN. It couldn't find it, neither in Part, nor in Body or the modelled features.
renatorivo
Posts: 2378
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: [0.17 PDN] Colouring single faces

Postby renatorivo » Thu Aug 03, 2017 10:48 am

colore1.png
colore1.png (15.18 KiB) Viewed 2469 times
colore2.png
colore2.png (48.88 KiB) Viewed 2469 times
chrisb
Posts: 22455
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17 PDN] Colouring single faces

Postby chrisb » Thu Aug 03, 2017 4:33 pm

Thanks. Your cube led to the insight, that it depends on the feature: A rotation does not allow single faces to be colored.
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11731 (Git)
Build type: None
Branch: master
Hash: 46aab48e6ae2855faee77cb925b498bf4dd738e5
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Attachments
colorKnob.fcstd
(8.67 KiB) Downloaded 18 times
Bildschirmfoto 2017-08-03 um 18.31.10.png
Bildschirmfoto 2017-08-03 um 18.31.10.png (63.76 KiB) Viewed 2435 times
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: [0.17 PDN] Colouring single faces

Postby NormandC » Thu Aug 03, 2017 4:41 pm

In other words, it seems only additive primitives have the entry in the contextual menu. Sketch-based features don't.

Maybe that's just an oversight. Might be worth to report it on the tracker?
chrisb
Posts: 22455
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17 PDN] Colouring single faces

Postby chrisb » Thu Aug 03, 2017 10:13 pm

I guess this time it's me to report it.
chrisb
Posts: 22455
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17 PDN] Colouring single faces

Postby chrisb » Fri Aug 04, 2017 4:18 am

User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: [0.17 PDN] Colouring single faces

Postby NormandC » Fri Aug 04, 2017 4:19 am

Cool! I guess the next one will be my turn to submit. :D
chrisb
Posts: 22455
Joined: Tue Mar 17, 2015 9:14 am

Re: [0.17 PDN] Colouring single faces

Postby chrisb » Fri Aug 04, 2017 4:49 am

And I, well, tried to edit the wiki. So the next two are on your side :mrgreen: .
ickby
Posts: 2940
Joined: Wed Oct 05, 2011 7:36 am

Re: [0.17 PDN] Colouring single faces

Postby ickby » Fri Aug 04, 2017 5:57 am

Actually I intenional removed the "set color" menu entry, and primitiving having it is the actual error. My reasoning was, that the whole visualisation stuff is moved from the features to the body, all features use the same setting sas what the user defined for the body. This I found rather intuitive. Hence setting individual face colors should also happen there. But it is some wotk to bring this setting reliable from body to the features, nearly impossible without a naming implementation,, so for now I removed it completely. But I think this should be the bug report.

A few drawbacks when enabling this for the features:
- It does not propagate. Setting it for one does not automatically set it for the next feature, it gets lost. This is cumbersome and n contrast to how the workflow should be
- It is only valid for the features, not the body. MAybe you played with the display property "Display Mode Body" of the body? There you can switch between "Through", where it shows everything inside the body (features, datums, sketches etc.) and Tip, where it shows only the Shape of the body itself). All visual setting should got for both.

what do you think about that?
renatorivo
Posts: 2378
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: [0.17 PDN] Colouring single faces

Postby renatorivo » Fri Aug 04, 2017 8:57 am

Note that if the last action is a primitive, you can color the individual faces
colore3.png
colore3.png (25.28 KiB) Viewed 2362 times
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11699 (Git)
Build type: Release
Branch: master
Hash: 0544934070e9df8a932da06d77c46a14efcd2766
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Italian/Italy (it_IT)