ImplicitCAD/Examples/example16.hs

13 lines
294 B
Haskell
Raw Permalink Normal View History

import Control.Applicative (pure)
2019-06-06 09:58:14 +03:00
import Graphics.Implicit
import Graphics.Implicit.Definitions
import Graphics.Implicit.Primitives
roundbox:: SymbolicObj3
roundbox =
implicit
(\(V3 x y z) -> x^4 + y^4 + z^4 - 15000)
(pure (-20), pure 20)
2019-06-06 09:58:14 +03:00
main = writeSTL 2 "example16.stl" roundbox