I’m trying to write a script which basically create a 4 (or potentially 5th) sphere following a certain procedure. I know that there may be easier ways, plus given that my spheres are created in grasshopper, however given that its been a few weeks since I got myself into python scripting I had to do with the amount of knowledge I acquired so far.
The method I am trying to recreate is basically offsetting the 3 or 4 spheres, then find the intersection between the offsets, the distance of offset being equal to the radius of the new sphere. I have meshes and well untrimmed surfacesaka spheres surfaces as grasshopper creates them.
I tried out the surface bit, but since the sphereintersection requires the planes which would be difficult for me to get them in rhino. I even tried the brep brep intersection ,which didn’t end with any results.
Passing onto meshes, it either doesn’t do anything, or it offsets the spheres on the inside as opposed to the outside.
Can anybody tell me where am I screwing up ?SpherePack3D.py (1.2 KB)
Points within surface.gh (71.3 KB)