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_union [2018/05/10 14:51]
z3dev
design_guide_union [2018/06/12 14:29]
z3dev
Line 4: Line 4:
  
 <code javascript>​ <code javascript>​
-union(sphere({r:​ 1, center:​true}),​cube({size:​ 1.5, center:​true}));  // openscad like+let shape = union(sphere({r:​ 1, center: true}), cube({size: 1.5, center: true})
 </​code>​ </​code>​
  
 +The CSG library functions can also be used. //NOTE: Deprecated in the V2 API//
  
 <code javascript>​ <code javascript>​
-sphere({r: 1, center:​true}).union(cube({size:​ 1.5, center:​true}));  // using CSG objects'​ built in methods+sphere({r: 1, center: true}).union(cube({size:​ 1.5, center: true}))
 </​code>​ </​code>​