Grasshopper

algorithmic modeling for Rhino

Greetings,

 

I'm working with a list of surfaces, and I was wondering if there is anyway I can get rid of some of them. However, I don't want to simply Cull the list, because I want the list to remain the same size, yet instead of having a surface in some of the items, I'd like for there to be no surface at all, which I'm assuming would be a "null" item.

 

Does anyone know how I could do this?

 

Thanks guys,

 

Benjamin

Views: 416

Replies to This Discussion

That is an excellent question. I'd like to know what people come up with as well.

--
David Rutten
david@mcneel.com
London, UK
Here's something I came up with many GH's ago to replace zeros with 0.1, I think the logic would still work for anything but I'll have ago at surfaces. What is your criteria for making surfaces Null?

Attachments:
This works to some extent as I cannot create a null value (I don't think) but I can put whatever text I need instead of a Referenced Surface in the list in the correct order. I tried "#null#" (replace # with <>) but this did not result in a value that could be identified with the Null Item component. replacesurfaces.png
I still can't get this to work...

here, you can check it out, any help would be really appreciated

So, I'm trying to make the pieces to fabricate this structure. And they basically have flaps that allow them to connect to eachother, each flap is different and its difference is based on the angle between the elements that connect to each other.
The first two work fine, but then the 3rd one, (C's) don't work because the lists don't coincide correctly. That is, for example, when I try to find the flap shapes for elements C, I need to find the angle between C's and D's but C0 doesn't cross D0, so I can't get the angle between the surfaces in the two lists.

I'd really appreciate it if you could offer any kind of insight at all.

Thanks again.
Attachments:
yeah...I saw that before I opened the discussion, it didn't really work for me though...
wow, I didn't know this was going to be hard, I thought it was a simple dumb question, or that I was doing something wrong
Where did it go wrong? are you able to post a definition or send an e-mail?
One tacky way of doing it:


As much as i like trying to solve things using the available components, sometimes for practical purposes nothing beats a few lines of code in a scripting component.

wow, beautiful, thanks a lot, I will try that
Alternatively you can use "x/y" as the expression, but the color codes of the components will change (imo for the worse).
Further minimization:

If y Then a = x

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