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:quick_reference_shapes [2020/11/30 03:45] JSCAD Editor [3D Primitives] |
en:quick_reference_shapes [2022/05/03 07:13] (current) JSCAD Editor [2D Primitives] |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| </ | </ | ||
| - | === 2D Primitives === | + | ==== 2D Primitives |
| ^ Primitive | ^ Primitive | ||
| - | | const mypath = arc({center: | + | | const mypath = arc({center: |
| - | | const myshape = circle({center: | + | | const myshape = circle({center: |
| - | | const myshape = ellipse({center: | + | | const myshape = ellipse({center: |
| - | | const mypath = line([ [10, 10], [-10, 10] ]) | [[https:// | + | | const mypath = line([ [10, 10], [-10, 10] ]) | [[https:// |
| - | | const myshape = polygon({ points: [ [10, 11], [0, 11], [5, 20] ], paths: [0, 1, 2]}) | [[https:// | + | | const myshape = polygon({ points: [ [10, 11], [0, 11], [5, 20] ], paths: [0, 1, 2]}) | [[https:// |
| - | | const myshape = rectangle({center: | + | | const myshape = rectangle({center: |
| - | | const myshape = roundedRectangle({center: | + | | const myshape = roundedRectangle({center: |
| - | | const myshape = square({center: | + | | const myshape = square({center: |
| - | | const myshape = star({vertices: | + | | const myshape = star({vertices: |
| - | | const myshape = star({vertices: | + | | const myshape = star({vertices: |
| + | | const myshape = triangle({type: | ||
| ==== 3D Primitives ==== | ==== 3D Primitives ==== | ||
| ^ Primitive | ^ Primitive | ||
| - | | const myshape = cube({center: | + | | const myshape = cube({center: |
| - | | const myshape = cuboid({center: | + | | const myshape = cuboid({center: |
| - | | const myshape = cylinder({center: | + | | const myshape = cylinder({center: |
| - | | const myshape = cylinderElliptic({center: | + | | const myshape = cylinderElliptic({center: |
| - | | const myshape = ellipsoid({center: | + | | const myshape = ellipsoid({center: |
| + | | const myshape = geodesicSphere({radius: | ||
| + | | const myshape = polyhedron({points: | ||
| + | | const myshape = roundedCuboid({center: | ||
| + | | const myshape = roundedCylinder({center: | ||
| + | | const myshape = sphere({center: | ||
| + | | const myshape = torus({innerRadius: | ||