AWS Thinkbox Discussion Forums

Stome Genome - Spherify by element?

Would it be possible to have a flow that would ‘spherify’ by element? I have a bunch of ‘almost sphere’ organic shaped elements that a client has just decided that they want as ‘true sphere’ - rather than try to rebuild the geometry, i’m wondering if it’s possible to spherify by element. Thanks!

Bob Dyce

Sure you can.

The attached Max 2013 scene contains a single mesh with 4 Geosphere elements in it - three with non-uniform scaling along various axes, and one with a Noise modifier.
If you would enable the Genome modifier, the flow will

*Find the closest face to the current vertex’s Position
*Query the Face for the Element Area and Centroid
*Calculate the Vector from the Centroid in Object Space to the Vertex and Normalize the result
Calculate the Radius of a Sphere with the same area as the current shape by dividing the Element Area by 4Pi and taking the Square Root from the result
*Multiply the Vector from Centroid to Vertex by the Radius of the spherified element
*Add the resulting scaled vector to the Centroid
*Output the result as new Vertex Position.

So each element is spherified to a sphere with Area equal to the Area of the original Element, using the Element’s center as the reference point.
See if this will work in your case…


GNM_SpherifyByElement_v001.zip (40.6 KB)

Incredible - you’ve saved my bacon! thanks a million!!

Privacy | Site terms | Cookie preferences