Grasshopper memory problem

Hi! I have 4000 little buildings I am trying to surface morph on to a surface. The problem is, the loading is way to slow and my computer run out of memory.

I situation like this, what could I do (besides getting better computer;-;)?

I’m thinking of passing the objects in batches, let’s way 1000 per batch, so my computer can do them one by one. But it looks like I need to copy-paste the modules for each batch. Am I missing something?

Thanks so much!

Are you absolutely sure there are only “4000 little buildings”? One mistake with grafting will instantly turn that into 16 million little buildings. I find it useful to substantially reduce the geometry count until I am certain the code is working correctly before increasing the count.

Without posting any code, it’s impossible to determine the reason the code crashes.

3. Attach minimal versions of all the relevant files

1 Like

Thanks for your reply. Yes, there are only that many items. I flatten them before surface-morphing, and that function makes me run out of memory (or keep running forever!)

Can you easily reduce the geometry count to 40? When you do that, do you get only 40 buildings out of Surface Morph ? How long does that take to morph only 40 of them?

Not interested in posting your GH file, eh? Oh well.

Thanks for your help! I’ll try 40 buildings first

You can try and convert your shapes to meshes. They are much easier to deform because they don’t become more dense in the process.

1 Like

Hi, also check surface properties and simplify on demand. There is a huge difference in the outcome if you pay attention to use as few cps (=light surfaces) as possible to represent the shape. Morphing increases cp count.

1 Like

Thanks a lot for your help! I have to keep to NURBS in this case, and that I think is a big reason for the slow loading!

Thanks a lot for your help! Yes I think mine have way too many due to the complex shape. Will keep that in mind!