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
Last revision Both sides next revision
quick_reference_shapes [2018/01/28 07:49]
z3dev
quick_reference_shapes [2018/01/28 07:49]
z3dev
Line 11: Line 11:
 | ::: | var cylinder = CSG.roundedCylinder();​ **/* start: [0,-1,0], end: [0,1,0], radius: 1, resolution: 12 */**  | | ::: | var cylinder = CSG.roundedCylinder();​ **/* start: [0,-1,0], end: [0,1,0], radius: 1, resolution: 12 */**  |
 | ::: | var cylinder = CSG.roundedCylinder({start:​ [10,11,12], end: [13,14,15], radius: 16, resolution: 6});  | | ::: | var cylinder = CSG.roundedCylinder({start:​ [10,11,12], end: [13,14,15], radius: 16, resolution: 6});  |
-| var ellipse = CAG.ellipse({center:​ [5,5], radius: [10,​20],​resolution:​ 72}); || var cylinder = CSG.cylinderElliptic({start:​ [0,​-10,​0],​end:​ [0,​10,​0],​radiusStart:​ [10,​5],​radiusEnd:​ [5,​2.5],​resolution:​ 16}); |+| var ellipse = CAG.ellipse({center:​ [5,5], radius: [10,​20],​resolution:​ 72}); | var cylinder = CSG.cylinderElliptic({start:​ [0,​-10,​0],​end:​ [0,​10,​0],​radiusStart:​ [10,​5],​radiusEnd:​ [5,​2.5],​resolution:​ 16}); |
 | var cag = CAG.fromPoints([ [0,​0],​[5,​0],​[3,​5],​[0,​5] ]); **/* polygon with 3+ points */**  | var csg = CSG.fromPolygons([polygon,​ ...]); ​ | | var cag = CAG.fromPoints([ [0,​0],​[5,​0],​[3,​5],​[0,​5] ]); **/* polygon with 3+ points */**  | var csg = CSG.fromPolygons([polygon,​ ...]); ​ |
 | var cag = CAG.fromSides([side,​...]);​ **/* polygon with 1+ sides */**  | ::: | | var cag = CAG.fromSides([side,​...]);​ **/* polygon with 1+ sides */**  | ::: |