Grasshopper

algorithmic modeling for Rhino

I made a simple little definition to randomly generate extrusions from a cad/gis file containing building outlines. There are thousands of outlines, which is causing the definition to take a long time and often causing rhino/ghx to freeze for five or ten minutes. I would like to make this definition into a component at some point, so i need to figure out a way to make the definition deal with the large amount of data regardless of how much is thrown at it. I thought perhaps i could partition the data and use dams to slow some of it down. Anyone have any thoughts?

Views: 443

Attachments:

Replies to This Discussion

causing rhino/ghx to freeze for five or ten minutes.........................deal with the large amount of data regardless of how much is thrown at it.

If it hasn't crashed I would say that it is dealing with it. You are throwing lots at it so unless you are prepared to spend money at your hardware specs there is not much you can do.

2 small performance increases (which might be negligible) might be to base your culling on perimeter length instead of area and the other would be to generate the Boundary Surfaces and then extrude. Not sure about the last one but worth a try.

Hi Robert,

step 1 in trying to optimize something is always to find the bottleneck. You need to measure how long certain operations take and then see if you can somehow speed them up.

DataDams are ok solutions sometimes, they allow you to work on part of a file without having to recompute everything downstream all the time. However that is not always an option. Perhaps it makes more sense to compute the entire file but limit yourself to 10 buildings, then when you're ready you switch over to your 100,000 buildings.

Another approach would be to see whether you really need the extrusion and capping. They seem to be taking up most of the time so anything you can do to speed that up will give you some benefits. What do you need the capped Breps for? Would you also be happy with meshes instead?

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service