Grasshopper

algorithmic modeling for Rhino

Hi all,

I'm trying to colour a mesh depending on the height on the mesh.

My way was to explode the mesh into faces, get the centre point and make the gradient from that way.

However, I need a closed mesh at the end of the it and when I take it into rhino and join the faces together, they obviously all lose there colour.

Views: 1374

Replies to This Discussion

Colours are assigned to vertices, not faces. So I think you're better off just extracting the z coordinate of each vertex and using that as a gradient parameter.

Attachments:

Thanks David, works well!

I have a thickened mesh and it doesn't seem to colour the underneath?

I just removed the dot product and it seemed to work that way.

Thanks again

Yeah the dot product simulates lighting, so the underside would have been in total shade.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service