User Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
design_guide_sphere [2018/03/01 13:08]
z3dev
design_guide_sphere [2018/03/19 13:40]
z3dev
Line 21: Line 21:
 sphere({r: 10, fn: 100 }); sphere({r: 10, fn: 100 });
 sphere({r: 10, fn: 100, type: '​geodesic'​}); ​ // geodesic approach (icosahedron further triangulated) sphere({r: 10, fn: 100, type: '​geodesic'​}); ​ // geodesic approach (icosahedron further triangulated)
 +</​code>​
 +
 +In case of ``type: '​geodesic'​`` the fn tries to match the non-geodesic fn, yet, actually changes in steps of 6 (e.g. fn=6..11 is the same), fn = 1 reveals the base form: the icosahedron.
 +
 +The CSG library functions can also be used. //NOTE Deprecated in the V2 API//
  
 +<code javascript>​
 CSG.sphere({ CSG.sphere({
   center: [0, 0, 0],   center: [0, 0, 0],
Line 29: Line 35:
 </​code>​ </​code>​
  
-In case of ``type: '​geodesic'​`` the fn tries to match the non-geodesic fn, yet, actually changes in steps of 6 (e.g. fn=6..11 is the same), fn = 1 reveals the base form: the icosahedron.