waterfall-cad-0.1.0.0: Declarative CAD/Solid Modeling Library
Safe HaskellSafe-Inferred
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