User Tools


Differences

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

Link to this comparison view

Next revision
Previous revision
design_guide_hull [2018/02/18 12:13]
z3dev created
design_guide_hull [2018/06/12 14:33] (current)
z3dev
Line 1: Line 1:
 ==== Hull ==== ==== Hull ====
  
-You can convex hull multiple 2D polygons (e.g. circle(), square(), polygon()) together.+Several shapes ​can be combined together to form the convex hull, i.e. sum of the outside shellsThis includes irregular shapes such as combining a circle ​with a square. 
 + 
 +//Note: Convex hulls can be viewed as elastic wrapping around several shapes.// 
 + 
 +EXAMPLE 
 + 
 +//​[[https://​en.m.wikipedia.org/​wiki/​Convex_hull|Learn more about convex hull at Wikipedia.org]]//​
  
 <code javascript>​ <code javascript>​
-var h = hull( square(10),circle(10).translate([10,10,0]) )+let h = hull(square(10),​ translate([5, 10, 15], circle(10)))
 </​code>​ </​code>​