Grasshopper

algorithmic modeling for Rhino

Hi all,

I'm having problem with constraining the number of outputs in my program. 

Say I have a grid of 100x100 perforations on a metal sheet that I sampled from an image sampler. I have a wide range of radii/openings, but I only want 5 different perforation sizes. Is there an easy way of doing this? I tried to do split-lists but that messes up the list order for me.

Can anyone help? Thanks! :)

Views: 227

Replies to This Discussion

Hello Jerry,
Here is a way to do it, though it might be overly complicated. Surely someone can find a more elegant way to go about it...

Essentially it tests if the value is within one of 5 groups, then culls the necessary values out of the list, duplicates the data you want to use as the contraints, then reassembles the list.
Attachments:
Maybe this is what you're looking for: http://www.grasshopper3d.com/forum/topics/panel-system-with-n-disti...

The process is reparameterize, round, 'un-reparameterize', and then maybe add a graph mapper at the end to adjust results.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service