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_cuboid [2020/11/29 06:29] JSCAD Editor |
en:design_guide_cuboid [2022/04/12 08:07] (current) rozek |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Cuboid ==== | ==== Cuboid ==== | ||
- | A three dimensional shape created from six retangular faces, each at right angles to another, and opposite faces are equal. The **cube** is a special case of the a cuboid in which all six faces are squares. | + | A three dimensional shape created from six retangular faces, each at right angles to another, and opposite faces are equal. |
- | {{ : | + | {{ : |
// | // | ||
- | The '' | + | The '' |
Defaults: | Defaults: | ||
Line 14: | Line 14: | ||
<code javascript> | <code javascript> | ||
- | cuboid({size: | + | const { cuboid } = require(' |
- | cuboid({size: | + | |
+ | const myshape = cuboid({size: | ||
+ | const myshape = cuboid({size: | ||
</ | </ | ||
=== Cube === | === Cube === | ||
- | The specialized | + | {{ : |
+ | |||
+ | The **cube** is a special case of the cuboid in which all six faces are squares. | ||
+ | |||
+ | Defaults: | ||
+ | * size : 2 | ||
+ | * center : [0, 0, 0] | ||
<code javascript> | <code javascript> | ||
- | cube({size: 3}) | + | const { cube } = require(' |
- | cube({size: 3, center: [4, 5, 6]}) | + | |
+ | const myshape = cube({size: 3}) | ||
+ | const myshape = cube({size: 3, center: [4, 5, 6]}) | ||
</ | </ | ||
- | === Rounded Cuboid === | + | === Rounded Cuboid === |
+ | |||
+ | {{ : | ||
Rounded cuboids can be created by specifying a '' | Rounded cuboids can be created by specifying a '' | ||
+ | |||
+ | Defaults: | ||
+ | * size : [2, 2, 2] | ||
+ | * center : [0, 0, 0] | ||
+ | * roundRadius : 0.2 | ||
+ | * segments : 32 | ||
<code javascript> | <code javascript> | ||
- | roundedCuboid({size: | + | const { roundedCuboid } = require(' |
- | roundedCuboid({size: | + | |
+ | const myshape = roundedCuboid({size: | ||
+ | const myshape = roundedCuboid({size: | ||
</ | </ |