waterfall-cad-0.2.1.0: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.IO

Synopsis

Documentation

writeSTL :: Double -> FilePath -> Solid -> IO () Source #

Write a Solid to a (binary) STL file at a given path

Because BRep representations of objects can store arbitrary precision curves, but STL files store triangulated surfaces, this function takes a "deflection" argument used to discretize curves.

The deflection is the maximum allowable distance between a curve and the generated triangulation.

writeSTEP :: FilePath -> Solid -> IO () Source #

Write a Solid to a STEP file at a given path

STEP files can be imported by FreeCAD

writeGLTF :: Double -> FilePath -> Solid -> IO () Source #

Write a Solid to a glTF file at a given path

glTF, or Graphics Library Transmission Format is a JSON based format used for three-dimensional scenes and models

writeGLB :: Double -> FilePath -> Solid -> IO () Source #

Write a Solid to a glb file at a given path

glb is the binary variant of the glTF file format