STL-0.1.0.0: STL 3D geometry format parsing and pretty-printing

Safe HaskellNone

Graphics.Formats.STL

Synopsis

Documentation

prettySTL :: STL -> DocSource

Convert an STL value to a Doc, which can be converted to a String with render

stlParser :: Parser STLSource

A parser from Text to the STL type. The parser should be fairly permissive about whitespace, but has not been tested enough against STL files in the wild.

data STL Source

A representation of an STL file, consisting of a (possibly empty) object name, and a list of triangles.

Constructors

STL 

Fields

name :: Text
 
triangles :: [Triangle]
 

data Triangle Source

A single triangle in STL is represented by a normal vector and three vertices.

Constructors

Triangle