Crates.io | tinystl |
lib.rs | tinystl |
version | 0.0.3 |
source | src |
created_at | 2023-02-27 01:30:09.157811 |
updated_at | 2023-03-15 03:30:27.12304 |
description | A small library to read and write STL mesh files, inspired by MicroSTL. |
homepage | |
repository | https://github.com/lsh/tinystl |
max_upload_size | |
id | 795603 |
size | 276,919 |
This project is heavily inspired by, and adapted from, cry-inc's microstl library. The goal is to provide a zero-dependency way to easily load and write STL files. It is assumed that all binary files are little endian.
use tinystl::StlData;
let data = StlData::read_from_file("my_file.stl")?;
data.write_binary_file("my_binary_file.stl")?;
Derives Pod
for Triangle
.
Derives Serialize
and Deserialize
for all types.