Grasshopper

algorithmic modeling for Rhino

I'm fairly new to Grasshopper, and this seems like something really basic, but I haven't been able to find anything addressing this issue yet.  I'm trying to create a series of planar meshes and intersect them with a complex mesh to analyze deviation from an idealized surface.  I'm using the "Object Bake" component from LunchBox to control the display color of the resulting curves, so I create a range of numbers, offset the reference plane and intersect with the mesh.

Everything works as expected except when I connect the Gradient component to the object color input, it duplicates each output curve for each color.  What I want is for each set of intersect curves to be baked as a single color corresponding to the offset used to generate them.

I'm using only a single Range component that feeds to both the Gradient and the Offset, but it seems like the range is automatically cross-referencing with itself for the bake.  I suspect this has something to do with the data structure of the intersection curves, but I'm not sure how to get it to sync up with the gradient in the way I want.

As shown below, each curve is duplicated for each color instead of being assigned a single color based on the specific range value used.

Views: 467

Attachments:

Replies to This Discussion

How about this?

Attachments:

Alright, this pointed me in the right direction.  Through judicious and liberal use of flatten/simplify/graft and the Shift Paths component I have achieved my desired result.  Thanks for the help!

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