tinystl

Crates.iotinystl
lib.rstinystl
version0.0.3
sourcesrc
created_at2023-02-27 01:30:09.157811
updated_at2023-03-15 03:30:27.12304
descriptionA small library to read and write STL mesh files, inspired by MicroSTL.
homepage
repositoryhttps://github.com/lsh/tinystl
max_upload_size
id795603
size276,919
Lukas Hermann (lsh)

documentation

README

TinySTL - A small loader for STL files.

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.

Example

use tinystl::StlData;

let data = StlData::read_from_file("my_file.stl")?;
data.write_binary_file("my_binary_file.stl")?;

Features

Bytemuck

Derives Pod for Triangle.

Serde

Derives Serialize and Deserialize for all types.

Commit count: 9

cargo fmt