Closed solid polysurface

How do closed entities get random colors?


closed solid polysurface.3dm (78.1 KB)

1 Like

Hello- Per-face color (Ctrl-Shift click on a face ands assign color or material)
Also, RemovePerFaceColors is handy.

-Pascal

1 Like

Thank you for your answer

one more question. how to get Per-faces colors when i deconstruct the closed solid polysurface in grasshopper?

1 Like

@kike what’s wrong here? Display color does not seem to show the correct color. The brep has perfacecolors and a copy of it is exploded for display purpose…

display_color_per_face.3dm (120.7 KB)
display_color_per_face.gh (12.5 KB)

1 Like

it is Rhino8?

1 Like

Yes.

1 Like

By the way, how to Bake object color to Rhino software without plugin

1 Like

In Rhino 8, you can use the new Grasshopper Rhino components.

1 Like

Martin,Thank you for your answer

1 Like

Hi Martin, that’s the problem i want to say. when you deconstruct solid brep in grasshopper, the Per-face color information will lose. hope one can help to deal with it.

However, this should work with the new Explode Object component in Rhino 8. It currently seems to have a flaw and I hope this will be fixed soon.

1 Like

I’ve logged the issue - thanks for reporting.

https://mcneel.myjetbrains.com/youtrack/issue/RH-79588

– Dale

1 Like

Thank you, let me learn more!

@martinsiegrist @evin @Ward The per-face color information should now be copied over to the exploded geometry attributes. This fix will be available in the first Rhino 8.5 release candidate.

2 Likes

Thank you. Waiting for 8.5 :slight_smile:

1 Like

Hi Andy, I think something is still wrong with the colors.

My test file contains one extrusion. The top face has a custom color but the rest is set to ‘By Layer’.

Layer color is white, yet the color output in the Display Colour component is 0,0,0 for five faces.

color_per_face.gh (17.3 KB)
color_per_face.3dm (67.0 KB)

System Info

Rhino 8 SR5 2024-2-16 (Rhino 8, 8.5.24047.13001, Git hash:master @ 87905d1371b0ad4e8a0bde67d968d309ed579093)
License type: Kommerziell, build 2024-02-16
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 128GB)
.NET 7.0.16

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA RTX A5000 (NVidia) Memory: 22GB, Driver date: 2-7-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 551.52
> Accelerated graphics device with 4 adapter port(s)
- Secondary monitor attached to adapter port #0
- Windows Main Display attached to adapter port #1

Secondary graphics devices.
NVIDIA Quadro K2200 (NVidia) Memory: 4GB, Driver date: 2-7-2024 (M-D-Y).
> Accelerated graphics device with 4 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 8x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 2-7-2024
Driver Version: 31.0.15.5152
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 23028 MB

Rhino plugins that do not ship with Rhino
C:\Users\martinsiegrist\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\KeyShot9RhinoPlugin (ecfe8d1f-876a-460f-aa5e-3dd816936811)\1.0.0.0\KeyShot9RhinoPlugin\Rhino 5.0\KeyShot9RhinoPlugin.rhp “KeyShot9RhinoPlugin” 1.0.0.0
C:\Users\martinsiegrist\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\NVIDIADenoiser\0.4.3\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.3.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.5.24047.13001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”

1 Like

I’m just getting back to this (sorry). There are some good reasons why the “effective color” that is output from the C-output of the Display Color component isn’t exactly matching what you are expecting. The short version is that it would require a lot more overhead to solve all of the “effective” attribute values at the very beginning (ie. when the model objects are created… like the Query Model Objects component in this example). @kike and I have discussed adding a new component which could solve all of the object attributes and return their “effective values”. I keep using “effective” because we’re still not sure what the right terminology would be. But, for example, let’s say you have an object whose display color is listed By Layer. This new component would then go and figure out which layer that object belongs to, and return that Layer’s color so that the Display Color would then read (255,0,0… or whatever that layer color happens to be… instead of By Layer).
To get around this in the short term, your best bet is to use a Pick'n'Choose like this to match the pattern with the appropriate color. You can see in the image below that by using the Pick’n’Choose component, the resulting list of colors will return the color White (ie. 255,255,255) for the first five faces of your box, and then blue (ie. 29, 112, 233) for the last face. Does this help?


color_per_face_AP.gh (17.5 KB)

1 Like

Thanks for the reply. At least I know I didn’t do anything wrong.

2 Likes