stl v0.1.0 API Reference

Modules

STL

Functions for working with STL files and structs. Triangle count and bounding box finding is done during parsing and is a constant-time operation. Surface area calculation, if not able to be calculated during parsing, is done every time the function is called and thus is potentially an expensive operation.

Module for functions which handle geospatial calculations.

A Parser behaviour for STL. By implementing this behaviour, you can write your own STL parser and use it by configuring :parser under the application :stl

A STL Parser written using https://hexdocs.pm/nimble_parsec/NimbleParsec.html Implements STL.Parser behaviour. Also includes triangle count and STL bounding box analysis steps during parser output formatting.

A single-pass streamed STL Parser. Implements STL.Parser behaviour. Also includes triangle count, STL bounding box analysis, and total model surface area analysis steps during parsing.