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
Next revision
Previous revision
design_guide_sphere [2018/03/01 13:08]
z3dev
design_guide_sphere [2018/05/12 07:31]
z3dev
Line 8: Line 8:
  
 Creates a sphere at the requested center. The radius argument determines the size of the sphere. The resolution option determines the number of segments to create in 360 degrees of rotation. Creates a sphere at the requested center. The radius argument determines the size of the sphere. The resolution option determines the number of segments to create in 360 degrees of rotation.
 +
 +//Note: See the start of 3D Primitives for information about the resolution of three dimenional shapes.//
  
 Defaults: Defaults:
Line 21: Line 23:
 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 37:
 </​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.