mirror of
https://github.com/Haskell-Things/ImplicitCAD.git
synced 2024-11-04 01:26:48 +03:00
9 lines
233 B
Haskell
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
|