meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:design_guide_spheroid [2020/11/29 05:33] JSCAD Editor |
en:design_guide_spheroid [2022/04/13 06:51] (current) rozek included "require" statements, corrected mistake |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Ellipsoid ==== | ==== Ellipsoid ==== | ||
| - | An ellipsoid is a surface that has three pairwise perpendicular axes of symmetry which intersect at a center. | + | A three dimensional |
| - | {{ :wiki:mathisfun-ellipsoid.svg?nolink | Sphere }} | + | {{ :wiki:jscad-ellipsoid.png?nolink | Sphere }} |
| - | The ' | + | The '' |
| Defaults: | Defaults: | ||
| Line 13: | Line 13: | ||
| <code javascript> | <code javascript> | ||
| - | let myshape = ellipsoid({radius: | + | const { ellipsoid } = require(' |
| - | let myshape = ellipsoid({radius: | + | |
| + | const myshape = ellipsoid({radius: | ||
| + | const myshape = ellipsoid({radius: | ||
| </ | </ | ||
| Line 21: | Line 23: | ||
| A three dimensional shape like a ball, where every point on the surface is the same distance from the center. | A three dimensional shape like a ball, where every point on the surface is the same distance from the center. | ||
| - | {{ :wiki:mathisfun-sphere.svg?nolink | Sphere }} | + | {{ :wiki:jscad-sphere.png?nolink | Sphere }} |
| // | // | ||
| - | The ' | + | The '' |
| Defaults: | Defaults: | ||
| Line 33: | Line 35: | ||
| <code javascript> | <code javascript> | ||
| + | const { sphere } = require(' | ||
| + | |||
| const myshape = sphere({radius: | const myshape = sphere({radius: | ||
| - | const myshape = sphere({radius: | + | const myshape = sphere({radius: |
| </ | </ | ||
| === Geodesic Sphere === | === Geodesic Sphere === | ||
| - | 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. | + | {{ :wiki: |
| + | |||
| + | A three dimensional shape formed by a convex polyhedron consisting of triangles. The base form is the icosahedron polyhedron with 20 faces. | ||
| + | |||
| + | The '' | ||
| + | |||
| + | Defaults: | ||
| + | * radius : 1 | ||
| + | * frequency : 6 | ||
| + | |||
| + | <code javascript> | ||
| + | const { geodesicSphere } = require(' | ||
| + | |||
| + | const myshape = geodesicSphere({radius: | ||
| + | </ | ||