export/stl
src/export/stl.tur
binary STL export for meshes produced by marching-cubes.
Since: Phase 1
defn
export-stl
(export-stl [mesh :int path :cstr] :int)
write a Mesh to a binary STL file.
Parameters
| mesh | Mesh handle from mc-extract | |
| path | destination file path (created or overwritten) |
Returns
0 on success, -1 on file open failure.
Example
(export-stl my-mesh "output.stl")
Since: Phase 1