This is my first attempt at a grasshopper program, so please bear with me.
I have a mesh and a surface. I would like to color code the facets of the mesh according to the distance from the surface. The desired application is more complicated, the hemi-sphere and plane are for illustration.
I take the four corners of each mesh face and find the distances of closest point to the surface. These are averaged to get the distance from the center of the mesh face.
Normalized and connected to a gradient and fed back into a new mesh object. Although I get color change in the mesh, it does not have the pattern I would expect.
Any tips on where I have gone wrong?
Attached are the files.
Thanks, Shaw
Tags:
- Attachments:
-