ImplicitCAD/Examples/example13.hs

9 lines
233 B
Haskell

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