#openscad #csg #stl

scad_tree

Generate OpenSCAD code from Rust

13 releases

new 0.4.2 Dec 6, 2024
0.4.1 Nov 1, 2024
0.4.0 Jan 16, 2024
0.3.3 Oct 29, 2023
0.1.4 Mar 31, 2023

#213 in Math

Download history 2/week @ 2024-09-23 3/week @ 2024-09-30 1/week @ 2024-10-07 139/week @ 2024-10-28 9/week @ 2024-11-04 3/week @ 2024-11-18 115/week @ 2024-12-02

119 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