meta data for this page
  •  

This is an old revision of the document!


Ellipsoid

An ellipsoid is a surface that has three pairwise perpendicular axes of symmetry which intersect at a center.


The 'radius' determines the size of the ellipsoid about the X, Y, and Z axis. Ellipsoids can be created at a requested 'center'. The 'segments' specify the number of segments to create per full rotation.

Defaults:

  • radius : [1,1,1]
  • center : [0,0,0]
  • segments : 32
let myshape = ellipsoid({radius: [5, 10, 20]})
let myshape = ellipsoid({radius: [5, 10, 20], center: [5, 5, 5], segments: 64})

Sphere

A three dimensional shape like a ball, where every point on the surface is the same distance from the center.


Learn about spheres at MathIsFun.com

Creates a sphere at the requested center. The radius argument determines the size of the sphere. The resolution option determines the number of segments to create in 360 degrees of rotation.

Note: See the start of 3D Primitives for information about the resolution of three dimensional shapes.

Defaults:

  • radius : 1
  • center : [0, 0, 0]
  • segments : 32
sphere(1);
sphere({r: 2});                    // Note: center:true is default (unlike other primitives, as OpenSCAD)
sphere({r: 2, center: true});     // Note: OpenSCAD doesn't support center for sphere but we do
sphere({r: 2, center: [false, false, true]}); // individual axis center 
sphere({r: 10, fn: 100 });
sphere({r: 10, fn: 100, type: 'geodesic'});  // geodesic approach (icosahedron further triangulated)

In case of ``type: 'geodesic'`` the fn tries to match the non-geodesic fn, yet, actually changes in steps of 6 (e.g. fn=6..11 is the same), fn = 1 reveals the base form: the icosahedron.

Geodesic Sphere

tbw