Hi,
I’m trying to calculate a series of volumes and I am struggling because I can only return a volume for the first item in the list.
A simplified example attached shows the intersection of a cone shape and a rectangular box shape.
The top code calculates the volume of the intersection for a single height of the box and works OK.
The second set of code creates a range of heights so that instead of having just one box, I now have multiple boxes, each with a different height. The single cone remains unchanged.
When I then do the intersection and volume calculation I only get one answer for the first height in the list, rather one answer for each item in the list.
Does anyone have any suggestions about how to resolve this? Do I need to create multiple copies of the cone to provide a matched list or is there some way to repeat the intersection and volume steps?
Many Thanks.
Test Intersection Volumes.gh (41.1 KB)