Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

3 or more Sphere intersection

$
0
0

@gpetrica001 wrote:

Hi,

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 ? :slight_smile:

SpherePack3D.py (1.2 KB)
Points within surface.gh (71.3 KB)

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles