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
design_guide_difference [2018/05/10 15:04]
z3dev
design_guide_difference [2018/06/12 14:31]
z3dev
Line 6: Line 6:
  
 <code javascript>​ <code javascript>​
-difference(sphere({r:​ 1, center:​true}),​cube({size:​ 1.5, center:​true}));    // openscad like+let shape = difference(sphere({r:​ 1, center: true}), cube({size: 1.5, center: true}))
 </​code>​ </​code>​
  
Line 12: Line 12:
  
 <code javascript>​ <code javascript>​
-sphere({r: 1, center:​true}).subtract(cube({size:​ 1.5, center:​true}));      // using CSG objects'​ built in methods+sphere({r: 1, center: true}). subtract(cube({size:​ 1.5, center: true}))
 </​code>​ </​code>​