Truck is a Rust CAD Kernel.
Truck is an open-source shape processing kernel by Rust.
The broad concept consists of the following three elements.
Apache License 2.0
All examples are located under the examples directory in each crates.
These examples use the default syntax for running examples, as found in the Cargo documentation.
At first, let's run the following example!
git submodule update --init
cargo run --example rotate-objects
basic structs and traits: importing cgmath, curve and surface traits, tolerance, etc...
Defines geometric traits: ParametricCurve
, ParametricSurface
, and so on.
geometrical structs: knot vector, B-spline and NURBS
topological structs: vertex, edge, wire, face, shell, and solid
defines polygon data structure and some algorithms handling mesh, including meshing the shapes
Mesh algorighms, include tessellations of the shape.
integrated modeling algorithms by geometry and topology
Provides boolean operations to Solid
graphic utility library based on wgpu
visualization of shape and polygon mesh based on platform
Javascript wrapper of truck.
There are some learning resources for using truck v0.1.x series.