Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- export2 :: OutputFormat -> ℝ -> FilePath -> SymbolicObj2 -> IO ()
- export3 :: OutputFormat -> ℝ -> FilePath -> SymbolicObj3 -> IO ()
- data OutputFormat
- writeObject :: DiscreteAproxable obj aprox => ℝ -> (aprox -> Text) -> FilePath -> obj -> IO ()
- formatObject :: DiscreteAproxable obj aprox => ℝ -> (aprox -> Text) -> obj -> Text
- writeSVG :: DiscreteAproxable obj [Polyline] => ℝ -> FilePath -> obj -> IO ()
- writeSTL :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO ()
- writeBinSTL :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO ()
- writeOBJ :: DiscreteAproxable obj NormedTriangleMesh => ℝ -> FilePath -> obj -> IO ()
- writeTHREEJS :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO ()
- writeGCodeHacklabLaser :: DiscreteAproxable obj [Polyline] => ℝ -> FilePath -> obj -> IO ()
- writeDXF2 :: DiscreteAproxable obj [Polyline] => ℝ -> FilePath -> obj -> IO ()
- writeSCAD2 :: ℝ -> FilePath -> SymbolicObj2 -> IO ()
- writeSCAD3 :: ℝ -> FilePath -> SymbolicObj3 -> IO ()
- writePNG :: DiscreteAproxable obj DynamicImage => ℝ -> FilePath -> obj -> IO ()
Documentation
export2 :: OutputFormat -> ℝ -> FilePath -> SymbolicObj2 -> IO () Source #
Output a file containing a 2D object.
export3 :: OutputFormat -> ℝ -> FilePath -> SymbolicObj3 -> IO () Source #
Output a file containing a 3D object.
data OutputFormat Source #
A type serving to enumerate our output formats.
Instances
Eq OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat (==) :: OutputFormat -> OutputFormat -> Bool # (/=) :: OutputFormat -> OutputFormat -> Bool # | |
Read OutputFormat Source # | A Read instance for our output format. Used by |
Defined in Graphics.Implicit.Export.OutputFormat readsPrec :: Int -> ReadS OutputFormat # readList :: ReadS [OutputFormat] # | |
Show OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat showsPrec :: Int -> OutputFormat -> ShowS # show :: OutputFormat -> String # showList :: [OutputFormat] -> ShowS # | |
Default OutputFormat Source # | |
Defined in Graphics.Implicit.Export.OutputFormat def :: OutputFormat # |
:: DiscreteAproxable obj aprox | |
=> ℝ | Resolution |
-> (aprox -> Text) | File Format Writer (Function that formats) |
-> FilePath | File Name |
-> obj | Object to render |
-> IO () | Writing Action! |
Write an object to a file with LazyText IO, using the given format writer function.
:: DiscreteAproxable obj aprox | |
=> ℝ | Resolution |
-> (aprox -> Text) | File Format Writer (Function that formats) |
-> obj | Object to render |
-> Text | Result |
Serialize an object using the given format writer. No file target is implied.
writeSTL :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO () Source #
writeBinSTL :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO () Source #
writeOBJ :: DiscreteAproxable obj NormedTriangleMesh => ℝ -> FilePath -> obj -> IO () Source #
writeTHREEJS :: DiscreteAproxable obj TriangleMesh => ℝ -> FilePath -> obj -> IO () Source #
writeGCodeHacklabLaser :: DiscreteAproxable obj [Polyline] => ℝ -> FilePath -> obj -> IO () Source #
writeSCAD2 :: ℝ -> FilePath -> SymbolicObj2 -> IO () Source #
writeSCAD3 :: ℝ -> FilePath -> SymbolicObj3 -> IO () Source #
writePNG :: DiscreteAproxable obj DynamicImage => ℝ -> FilePath -> obj -> IO () Source #