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
center | a 3-vector indicating the center coordinates of the sphere |
radius | a scalar value representing the radius of the sphere |
center | a 3-vector indicating the center coordinates of the sphere |
radius | a scalar value representing the radius of the sphere |
sample_depth | a numeric value determining the sampling depth for mesh refinement; higher values improve mesh quality but increase computation time |
tag | a vector of numbers used as the mesh's tag |
default | an enum branch specifying to use the default coloring scheme, which is to have a white surface |
surface | a 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}})