Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.41k stars 142 forks source link

readme haskell examples out of date #494

Open aavogt opened 1 week ago

aavogt commented 1 week ago

The readme has:

-- Example 11 - the union of a square and a circle.
import Graphics.Implicit

out = union [
    squareR 0 True (80, 80)
  , translate (40, 40) (circle 30)
  ]

main = writeSVG 2 "test.svg" out

squareR is gone and tuples were replaced with V2 or V3 from the linear package:

import Graphics.Implicit

out =
  union
    [ square True (V2 80 80),
      translate (V2 40 40) (circle 30)
    ]

main = writeSVG 2 "test.svg" out