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_intersection [2018/05/10 14:58]
z3dev
design_guide_intersection [2018/06/12 14:30]
z3dev
Line 4: Line 4:
  
 <code javascript>​ <code javascript>​
-intersection(sphere({r:​ 1, center:​true}),​cube({size:​ 1.5, center:​true})); // openscad like+let shape = intersection(sphere({r:​ 1, center: true}), cube({size: 1.5, center: true}))
 </​code>​ </​code>​
  
Line 10: Line 10:
  
 <code javascript>​ <code javascript>​
-sphere({r: 1, center:​true}).intersect(cube({size:​ 1.5, center:​true}));   // using CSG objects'​ built in methods+sphere({r: 1, center: true}). intersect(cube({size:​ 1.5, center: true}))
 </​code>​ </​code>​