meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:design_guide_torus [2020/11/29 06:13]
JSCAD Editor
en:design_guide_torus [2022/04/13 06:56] (current)
rozek included "require" statement
Line 21: Line 21:
 Defaults: Defaults:
   * innerRadius : 1   * innerRadius : 1
-  * outerRadius : 4 
   * innerRotation : 0   * innerRotation : 0
-  * startAngle : 0 
-  * outerRotation : PI * 2 
   * innerSegments : 32   * innerSegments : 32
 +  * outerRadius : 4
   * outerSegments : 32   * outerSegments : 32
 +  * startAngle : 0
 +  * outerRotation : PI * 2
  
 <code javascript> <code javascript>
-let myshape = torus({innerRadius: 10, outerRadius: 100})+const { torus } = require('@jscad/modeling').primitives 
 + 
 +const myshape = torus({innerRadius: 10, outerRadius: 100})
 </code> </code>