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.
without meshing/code you can do a ‘visual’ trick via the solid’s faces:
Brep Color Test.gh (11.3 KB)
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?
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.