Sphere

ABSTRACT

Creates a spherical mesh based on specified parameters.

REMARK

I don't think the sphere looks particular good right now (mostly because I'm not super good at shaders and had a little trouble getting the lighting to look proper). You might want to PointMapped a ColorGrid to create a parameteric surface of a sphere. That generally looks better

PARAMETERS
centera 3-vector indicating the center coordinates of the sphere
radiusa scalar value representing the radius of the sphere
centera 3-vector indicating the center coordinates of the sphere
radiusa scalar value representing the radius of the sphere
sample_deptha numeric value determining the sampling depth for mesh refinement; higher values improve mesh quality but increase computation time
taga vector of numbers used as the mesh's tag
defaultan enum branch specifying to use the default coloring scheme, which is to have a white surface
surfacea 4-vector representing the color of the sphere's surface
RETURN

generates a mesh conforming to the specified sphere parameters

DECLARATION
func Sphere([config] {[main] {center, radius}, [parameterized] {center, radius, sample_depth}}, tag, [color] {[default] {}, [color] {surface}})