Grasshopper

algorithmic modeling for Rhino

Hi, I need to remove the buildings that are flooded by using "dispatch". I used the z-values of the water-plane and the z-values of the centerof the buildings. Dispatch ought to keep the buildings, with z-values larger than the ones of the water-plane (and remove the buildings with lower z-values) but it does not work.. Did i connect them correctly? Any ideas?

Views: 1027

Replies to This Discussion

Have you already tried to just take output B instead of output A (Dispatch component). The Dispatch component normally outputs two sets - one for false and one for true values...

Thanks for the reply:) But yes, I already tried that with no luck.. Then Dispatch just shows all the buildings (also the ones that should stay put), but does not remove any of them. 

The biggest problem is that you're using the Unit Z vector components when I think you mean to be extracting the Z component of the points; for this you should use the "Decompose XYZ" component.

Oh, ok - thanks! Will try that now :)

Now I have used the "Decompose" component to find the z-value of the buildings, and I used the z-value of the water directly. Then I tried the B and the A output of the "dspatch" component again, but none of it works as I had hoped. 

This is how it looks with A and B (with B, there are only buildings near the water):So, at least some buildings were removed, but with B too many buildings are removed, and with A too few. I would like to remove all the buildings in the water and keep the ones on the terrain..

From what I understand this is what should be your dispatch algorithm:

  • find the center points of your buildings using the Area component on the base surface.
  • use the Decompose XYZ component and connect the center points to the input P.
  • connect the Z output to the A input of the Larger than component.
  • connect your water level height slider to the B input of the Larger than component.
  • connect your building breps to the L input of the Dispatch component.
  • connect the larger or equal to output to the P input of the Dispatch component.
  • connect a brep component to the A output of the Dispatch.

If you are still having problems, please post your files, it may help us help you better.

Thank you, I followed your description, but yesterday I set it up just like that, and something is still wrong :( There are still buildings in the water..

I attached the grasshopper-file and would appreciate it very much, if anyone could look it through. I think the problem lies somewhere in the blue group:/ ? 

Blue: water   Purple: buildings   Green: terrain   Grey: road

The rhino file is also attached, but it only contains a curve, to set as the road.

Attachments:

Hi Nan,

Sorry if this took a while. I have managed to make this work in the way I think you intended it to be. See attached definition. I've cleaned it up to my understanding. Hopefully, you will be able to follow as well.

Let me know if you have any more questions!

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service