Class SphereMaker transforms a Mesh into a Sphere unicSphereMaker
Static variables
Constructor
Methods
apply(mesh:Mesh, weight:Float = 1, radiusMode:Int = RADIUS, radius:Float = 100):Void
Apply the SphereMaker code to a given Mesh.
Parameters:
mesh | Mesh. The target Mesh object. |
|---|---|
weight | Number. The Strength of the effect between 0 and 1. Default is 1. |
radiusMode | int. Defines which radius will be used. Can be RADIUS or USE_BOUNDS_MAX. Default is RADIUS |
radius | Number. The Radius to use if radiusMode is RADIUS. Default is 100. |
applyToContainer(ctr:ObjectContainer3D, weight:Float = 1, radiusMode:Int = RADIUS, radius:Float = 100):Void
Apply the SphereMaker code to a given ObjectContainer3D.
Parameters:
container | Mesh. The target ObjectContainer3D. |
|---|---|
weight | Number. The Strength of the effect between 0 and 1. Default is 1. |
radiusMode | int. Defines which radius will be used. Can be RADIUS or USE_BOUNDS_MAX. Default is RADIUS |
radius | Number. The Radius to use if radiusMode is RADIUS. Default is 100. |