User Tools


Differences

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

Link to this comparison view

design_guide_chain_hull [2018/02/18 12:16]
z3dev created
design_guide_chain_hull [2018/06/12 14:36] (current)
z3dev
Line 1: Line 1:
 ==== Chain Hull ==== ==== Chain Hull ====
  
-Chained hulling ​is a variant of hull on multiple 2D forms, essentially sequential hulling ​and then union the results ​of each hull:+Chain Hull is a variant of Hull across ​multiple 2D forms, essentially sequential hullingthen creating a union of the results.
  
 <code javascript>​ <code javascript>​
Line 7: Line 7:
     circle(), circle().translate([2,​0,​0]),​ ... );   // list of CAG/2D forms     circle(), circle().translate([2,​0,​0]),​ ... );   // list of CAG/2D forms
  
-var a = [];+let a = [];
 a.push(circle()); ​ a.push(circle()); ​
 chain_hull( a );                       // array of CAG/2D forms chain_hull( a );                       // array of CAG/2D forms
  
 chain_hull({closed:​ true}, ​            // default is false chain_hull({closed:​ true}, ​            // default is false
-   ​circle(),​circle().translate([2,​0,​0]),​circle().translate([2,​2,​0]));+   ​circle(),​ circle().translate([2,​ 0, 0]), circle().translate([2,​ 2, 0]))
 </​code>​ </​code>​