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.
can you elobarte a little ? sorry i am new to this
Post the geometry, I show you.
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)
interesting idea, thank you
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.
Mine should be 100% accurate IF any of the original sphere segments has the largest area of all the faces in the object.
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:
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: