By default, a sphere with its center at the origin will be created.
sidesnumber — number of sides around sphere's half great circle
(10)
radiusnumber — radius of sphere (1)
normalsflat | curve — flat normals will make light
shading across a face cone constant. curve will gradiate the shading. Use
curve to make a surface look more round with fewer number of sides.
(flat)
linesboolean — if true then points representing
the edes of the faces will be returned. If false, then points
representing two triangles per face and an
associated normal for each point will be returned.
Sphere shape options object that extends OBJ_Generic3All and OBJ_FigurePrimitive
By default, a sphere with its center at the origin will be created.
sidesnumber— number of sides around sphere's half great circle (10)radiusnumber— radius of sphere (1)normalsflat|curve—flatnormals will make light shading across a face cone constant.curvewill gradiate the shading. Usecurveto make a surface look more round with fewer number of sides. (flat)centerTypeParsablePoint — center position of sphere ([0, 0])linesboolean— iftruethen points representing the edes of the faces will be returned. Iffalse, then points representing two triangles per face and an associated normal for each point will be returned.See
To test examples, append them to the boilerplate
Example
Example
Example
Example