stl

2017-10-19

Load triangle data from binary stereolithography (STL) files.

Upstream URL

github.com/jl2/stl

Author

Jeremiah LaRocco <jeremiah.larocco@gmail.com>

License

ISC
README

This is a small library for reading the triangle data in binary STL files.

Here is a small example showing how to read a file and compute the area of the triangles in it.


    CL-USER> (ql:quickload :stl)
    To load "stl":
      Load 1 ASDF system:
        stl
    ; Loading "stl"
    ...
    (:STL)
    CL-USER> (defparameter *cube* (stl:read-stl "~/3d_models/cube.stl"))
    *CUBE*
    CL-USER> (stl:stl-area *cube*)
    24.000002
    CL-USER>

Dependencies (1)

  • 3d-vectors

Dependents (0)

    • GitHub
    • Quicklisp