meta data for this page
  •  

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
en:design_guide_chain_hull [2020/11/28 03:11]
JSCAD Project
en:design_guide_chain_hull [2020/12/08 06:54] (current)
JSCAD Project
Line 1: Line 1:
-==== Chain Hull ====+==== Hull Chain ====
  
-Chain Hull is a variant of Hull across multiple 2D forms, essentially sequential hulling, then creating a union of the results.+{{ :wiki:jscad-hullchain.png?nolink | Hull Chain}} 
 + 
 +Hull chain is a variant of 'hull' essentially sequential hulling each pair of shapes, then creating a union of the results.
  
 <code javascript> <code javascript>
-chain_hull(  +const newshape hullChain(shape1shape2shape3)
-    circle(), circle().translate([2,0,0]), ... );   // list of CAG/2D forms +
- +
-let a []; +
-a.push(circle());  +
-chain_hull( a );                       // array of CAG/2D forms +
- +
-chain_hull({closed: true},             // default is false +
-   circle(), circle().translate([2, 0, 0]), circle().translate([220]))+
 </code> </code>