ImplicitCAD/Examples/example13.hs
Richard Marko 6d4162e137 Tidy Haskell examples
Both in Examples dir and README.
2020-12-05 10:34:57 +01:00

10 lines
211 B
Haskell

-- Example 13 - the rounded union of a cube and a sphere.
import Graphics.Implicit
out = union [
cubeR 0 False (20, 20, 20)
, translate (20, 20, 20) $ sphere 15
]
main = writeSTL 1 "example13.stl" out