Builtin Library
README.md
mesh.sphere
A sphere centred on the origin: 32 segments round and 32 rings from pole to pole, with smooth normals and longitude and latitude as texture coordinates. Use it for balls, planets and domes.
The triangles that close to a point at each pole are dropped.
Inputs
radius(Float, default 0.5, at least 0). The sphere's radius, in metres.
Outputs
geometry(Geometry). Triangles withP,Nanduvon their points; primitives carryvstartandvcount.
local ball = g.mesh.sphere({ radius = 0.25 })