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_mirror [2020/12/04 08:28] JSCAD Editor |
en:design_guide_mirror [2020/12/08 06:53] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Defaults: | Defaults: | ||
| * origin : [0, 0, 0] | * origin : [0, 0, 0] | ||
| - | * normal : [0, 0, 1] mirror about the Z axis | + | * normal : [0, 0, 1] (mirror about the Z axis) |
| <code javascript> | <code javascript> | ||
| - | let myshape = cube({size: [5, 20, 5]}) | + | const myshape = cube({size: [5, 20, 5]}) |
| - | let newshape = mirror({origin: | + | const newshape = mirror({origin: |
| </ | </ | ||
| Line 17: | Line 17: | ||
| <code javascript> | <code javascript> | ||
| - | let myshape = cube({size: [5, 20, 5]}) | + | const myshape = cube({size: [5, 20, 5]}) |
| let newshape = mirrorX(myshape) | let newshape = mirrorX(myshape) | ||
| newshape = mirrorY(newshape) | newshape = mirrorY(newshape) | ||
| newshape = mirrorZ(newshape) | newshape = mirrorZ(newshape) | ||
| </ | </ | ||