Color Gradients

How would I apply a gradient to these breps but instead of having each panel have its own color I want the gradient to be smooth.

Thanks in advance

Smooth Gradient.gh (7.1 KB)

Would it work for you to color the meshed surface (using same UV division) first, and then split at the end using the mesh face outlines? Is splitting even a goal? I guess you can also explode the mesh into faces (or extract the faces) and they should keep the color. Please clarify :slight_smile:
Smooth Gradient.gh (12.5 KB)



Note:
I used a point for the distance values but you can substitute with your curve influence :+1:

Thanks that makes sense. What if i wanted to achieve this on a more complex surface that has a bunch of individual mesh’s

Smooth Gradient.gh (7.1 KB)

Dont flatten the Vertex output of the “deconstruct mesh”
…I´d love to try GhGL here. to avoid meshing…

1 Like

I think UV is probably the best so it could be used in quite all render tool at the end.

Here is an example

The idea is to calculate the value '(1D) that is used for gradient and use it as texture coordinate (2D)

and to generate an image that represent the gradient.

This gh just need Nautilus plugin, a texture image will be put on temp folder. So if many tries many images generated

You can then transfert these UV to whatever object you want, with a limit distance

Then if you bake meshes in Rhino they have some UV map that could be used with a gradient put in a material

mesh with uv gradient.gh (25.9 KB)

3 Likes

ok…
still

1 Like

You re-attached the old file, not the one with your latest more complex surface

Thank you all very much for the different approaches. My apologies for the re attachment

here is the correct file with the internalized meshes

individual faces.gh (5.8 MB)

I see your object is made of several disjoint meshes, I think by design?
Regardless, you just have to join the meshes (yellow component) :slight_smile: :
I made an attractor example (stuff in white group), just replace with your point:
individual faces.gh (5.8 MB)

Perfect. Exactly what I was looking for. I am new to meshes so I greatly appreciate the help. It usually is a simple solution I didn’t realize mesh join worked if the geometry wasn’t touching or intersecting.

1 Like

Yes I guess ‘joining’ and ‘combining’ a mesh are sometimes used interchangeably - not really important for this operation - in other cases you might be looking for welding the mesh, which is definitely different from joining/combining.

If you feel the question is now answered please mark the response as ‘solution’ for others to find the answer easily.