Centers of cut spheres

hello

i have many “edited spheres” that i want to obtain the original of. is this possible? i want to obtain the original sphere because i need the geometry centers of each one, and cut parts of the edited spheres change the center points. any thoughts on this ?

need to see the geometries.

Just get the bounding box’s center.

1 Like

can you elobarte a little ? sorry i am new to this

Post the geometry, I show you.

TRIAL.3dm (115.7 KB)


get center.gh (8.6 KB)

1 Like

Maybe…?
GetCenter-MSH.gh (4.2 KB)

(might not work for all, since it’s looking for the spherical face in a brep that has the largest area)

Here is one that will do multiple breps in a list - FWIW

GetCenters-MSH.gh (5.8 KB)

3 Likes

interesting idea, thank you

this is amazing, thanks

Hmm… note that this method is not 100.000% accurate. If you really want it precise, you need to get the original sphere and then do the rest stuff.

1 Like

Mine should be 100% accurate IF any of the original sphere segments has the largest area of all the faces in the object.

1 Like

Yes, I agree.

Bounding box is not the best idea. With the large openings the bounding box will not be a regular box.
I recommend selecting the largest surface (or hand-pick it) and then automate making the points on it and build the sphere on top of these point. 100% accurate:

3 Likes

You can also untrim the brep surfaces, get the radii from the arc edges, form new sphere:
'phere.gh (346.1 KB)


this change equally valid:
image

2 Likes