mirror of
https://github.com/Haskell-Things/ImplicitCAD.git
synced 2024-09-17 16:08:01 +03:00
6d4162e137
Both in Examples dir and README.
10 lines
211 B
Haskell
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
|