Grasshopper

algorithmic modeling for Rhino

Hi all, probably a noob question here... I'm trying to match up the color with the closest point and can not for the life of me get it to work. If anyone could figure out why I would love some help!

THANK YOU!

Views: 1012

Attachments:

Replies to This Discussion

The problem is that at the point that you cull your points, you move from a list of 400 to a list of 241 - whereas you still have 400 colors. Since you wind up with a bunch of empty branches and you graft your colors, your display works out fine - but the "list item" and "closest point" approach you're using needs a little tweaking, since the index it finds is based on the list of 241, and the list you're grabbing from has 400 items.

I think the transformation that will achieve the desired goal with minimal change to your existing definition is to apply the same cull pattern to your list of colors - so that you wind up with 241 colors before using list item. See the attached. 

Attachments:

Awesome! Thanks so much Andrew! I feel dumb for not thinking of that before. 

Do you have any logic advice for accomplishing this more elegantly? I'm trying to have the 3D thermal data accessible from a point cloud, so this first attempt just uses multiple image samples projected onto my mesh. It looks good, but it's really clunky, and not truly one list. 

I'll take another stab at it from scratch, but any wisdom would be appreciated! Thanks again for the previous explanation!



front+back file attached

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service