algorithmic modeling for Rhino
Hey,
I'm looking for an alternative to determine the volume of a body that is generated by a certain number of platonic volumes.
Currently, I'm using the volume container on a solid union, but it unfortunately doesn't accept over 150 basic geometries and tends to become very slow even before that.
Any ideas on how to rebuild the system for it to support the evaluation of at least a couple of hundred blocks?
Thanks!
Tags:
You could use something like Simpson's Rule:
V = h/3(A0 + 4*A1 + 2*A3 + ..... + 4*An-1 + An)
Where h is the interval between section areas (A)
NB n must be odd
This is used to calculate the displacement of ships.
See attached. I have done it for your example but have not applied it to multiple sets as I haven't the time at the moment. Maybe some one else can have a go.
BTW the [UNION] and [VOLUME] takes a total of 70 ms where the area component takes 4 ms
Correction to the BTW comment I didn't take into account the Intersection and Region Union Components. So in this example they are the same but if you try and ramp up the accuracy by having lots of sections then it is slower.
So this might not be a solution after all
Thanks for the great replies. I'll try the Simpson's Rule. Maybe it will work better.
It doesn't work faster but it might work on all
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by