Wondering how to render a color gradient on a Solid Union result?

I was wondering if there might be a simple way to assign a color gradient to a Solid Union object in Grasshopper?
Brep Color Test.gh (8.2 KB)

You have connected a domain to the ‘Parameter’ input of the Gradient component, which is not correct. ‘Parameter’ would normally be a series of values corresponding to a list of geometry.

1 Like

without meshing/code you can do a ‘visual’ trick via the solid’s faces:
Brep Color Test.gh (11.3 KB)


3 Likes

Thank you all for your help! Just to make sure I understand the logic correctly, by deconstructing the Brep and points over the area of the object you’ve created values for the gradient component to use?

1 Like

By deconstructing the brep you get its faces, yes, then you can get each face’s centroid (or some other point on the face, I guess), then use the Z coordinate values of each point to establish the ‘start’ and ‘end’ of the gradient. In other words, it’s a visual trick because the unified object itself is not colorized with a gradient texture; instead its faces are colorized individually based on the gradient.

1 Like