#openscad #csg #stl

scad_tree

Generate OpenSCAD code from Rust

12 releases

0.4.1 Nov 1, 2024
0.4.0 Jan 16, 2024
0.3.3 Oct 29, 2023
0.3.2 Apr 26, 2023
0.1.4 Mar 31, 2023

#235 in Math

Download history 1/week @ 2024-09-18 2/week @ 2024-09-25 2/week @ 2024-10-02 1/week @ 2024-10-09 144/week @ 2024-10-30 4/week @ 2024-11-06

148 downloads per month

MIT license

310KB
8K SLoC

scad_tree

A Rust solid modeling library that generates OpenSCAD code.

To use this library in your project add this to your Cargo.toml.

[dependencies]
scad_tree = { git="https://github.com/mrclean71774/scad_tree" }

Or you can get it from crates.io.

[dependencies]
scad_tree = "0.4.x"

To run the examples clone this repository and from the root folder run

cargo run --example example_name

Project Structure

  • scad_tree - The main crate with examples of usage.
    • examples/scad_tree - Explaines the main data structure and basic usage.
  • scad_tree_math - Linear algebra and other math mostly re-exported from scad_tree.
  • images - Images of things made with this library and images of some examples.
  • output - Output from some of the examples.

A Blender render of metric thread parts. metric_thread.png

A photo of my bottle example 3D printed. bottle_make.jpg

Dependencies