GetSphere

public class GetSphere : IDisposable
Class provides user interface to define a sphere.

Constructors

GetSphere

#Since v7.0
public GetSphere()

Finalizer

~GetSphere

#
~GetSphere()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

DefaultSize

#Since v7.0
public double DefaultSize { get; set; }
Default radius or diameter (based on InDiameterMode)

InDiameterMode

#Since v7.0
public bool InDiameterMode { get; set; }
Determines if the "size" value is representing a radius or diameter

Methods

Dispose

#Since v7.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.

Get

#Since v7.0
public Result Get(out Sphere sphere)
Prompt for the getting of a sphere.
sphere (out Sphere)The sphere geometry defined by the user.
The result of the getting operation.

GetMesh

#Since v7.0
public Result GetMesh(ref MeshSphereStyle style, ref int verticalFaces, ref int aroundFaces, ref int triangleSubdivisions, ref int quadSubdivisions, out Sphere sphere)
Prompt for the getting of a mesh sphere.
style (ref GetSphere.MeshSphereStyle)The style of the mesh sphere.
verticalFaces (ref int)The number of UV mesh faces in the vertical direction.
aroundFaces (ref int)The number of UV mesh faces in the around direction.
triangleSubdivisions (ref int)The number of triangle mesh subdivisions.
quadSubdivisions (ref int)The number of quad mesh subdivisions.
sphere (out Sphere)The sphere geometry defined by the user.
The result of the getting operation.