Grasshopper

algorithmic modeling for Rhino

Hey guys!

So I have been messing a bit at developing a script for a building facade study that utilizes the image sampler. I had it working fine before, but when I change the image to one with areas of extreme contrast (such as the one that is in the script now) I end up with certain radii that output as 0. Even though I get in error message on the pipe command (also on extrude and various other surface commands I have tried in its place) it still generates the surfaces. The only problem it presents is that I need this box to function properly so that the other commands from DIVA plugin will function as well. 

My initial thought was to use some of the domain commands to tell the list to not output anything lower than .01 or some number that will keep it above zero. Unfortunately, I am not too familiar with most of the domain functions and couldn't seem to get it quite right. 

Any thoughts you might have would be very helpful and appreciated! I have attached a couple of images showing the script where the issues comes about as well as the present output of the piping mentioned.

Cheers!

Drew

Views: 1100

Attachments:

Replies to This Discussion

You had the right idea with the domain. I would approach it one of two ways, depending on my desired output. If you want all the values except zero to stay the same, set up an expression that changes only the '0' to another number. Otherwise you can remap all of the values so that they remain proportional to one another. 

Awesome! Thank you very much for your reply. I hadn't even considered the possibility of remapping to remain proportional to one another, I think this output will work out better than only changing the 0 values. Thanks again!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service