carlmartus / rscsg

Rust Constructive Solid Geometry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust CSG

Build Status

WARNING UNDER DEVELOPMENT. Don't use this library just yet. It has a bug that is being rooted out.

Constructive Solid Geometry in Rust. Create 2D and/or 3D objects using nothing but Rust code. Combine boolean operations like union, subtraction and intersection.

This library started as a port of pycsg. With added operations for 2D objects.

The Csg structure

The rscsg::dim3::Csg consists of vertices bound together to form polygons.

The struct has basic transformations; translate, rotate and scale.

Sample

execute the real time OpenGL sample with:

cargo run --example gl

Roadmap

  • Basic 3D CSG.
  • Basic 2D CSG.
  • Real time 3D sample.
  • 2D to 3D extractions.
  • Add shared date component to CSG obejcts.
  • Export to known format(s).

About

Rust Constructive Solid Geometry


Languages

Language:Rust 100.0%