implicit-0.4.0.0: A math-inspired programmatic 2D & 3D CAD system.
Safe HaskellNone
LanguageHaskell2010

Graphics.Implicit.Export

Synopsis

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.

Constructors

SVG 
SCAD 
PNG 
GCode 
ASCIISTL 
STL 
THREEJS 
OBJ 
DXF 

Instances

Instances details
Eq OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Read OutputFormat Source #

A Read instance for our output format. Used by auto in our command line parser. Reads a string, and evaluates to the appropriate OutputFormat.

Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Show OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Default OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Methods

def :: OutputFormat #

writeObject Source #

Arguments

:: 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.

formatObject Source #

Arguments

:: 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.