meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
en:design_guide_cuboid [2020/12/03 00:19] JSCAD Editor |
en:design_guide_cuboid [2022/04/12 08:07] (current) rozek |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| <code javascript> | <code javascript> | ||
| + | const { cuboid } = require(' | ||
| + | |||
| const myshape = cuboid({size: | const myshape = cuboid({size: | ||
| const myshape = cuboid({size: | const myshape = cuboid({size: | ||
| Line 29: | Line 31: | ||
| <code javascript> | <code javascript> | ||
| + | const { cube } = require(' | ||
| + | |||
| const myshape = cube({size: 3}) | const myshape = cube({size: 3}) | ||
| const myshape = cube({size: 3, center: [4, 5, 6]}) | const myshape = cube({size: 3, center: [4, 5, 6]}) | ||
| Line 46: | Line 50: | ||
| <code javascript> | <code javascript> | ||
| + | const { roundedCuboid } = require(' | ||
| + | |||
| const myshape = roundedCuboid({size: | const myshape = roundedCuboid({size: | ||
| const myshape = roundedCuboid({size: | const myshape = roundedCuboid({size: | ||
| </ | </ | ||