I’ve been looking for a way to make one rigid body mesh approximate another automatically.
To make it simpler, I made two similar ellipses.
If the red one approximates the black one perfectly, it’ll look like the picture below. The red mesh will deviate from the black one evenly, and share the same centroid with it.
Now my rough plan is to use the GHPython component, and do the loop of the below steps:
(1) Making section curves of the 2 ellipses.
(2) Using the Rhino command CrvDeviation. Finding the point that deviates most, then I can get the deviation distance and approximation vector. Like the picture below.
(3)Moving the red one with the vector and half of the distance number.
(4)Keeping doing those steps by looping, until it can’t approximate anymore.
Please give me some advice about it. Or is there a tool of Rhino/GH could do the approximation? Any information will help me a lot.