This package provides utilities for designing and analyzing truss structures
Install through crates.io
with:
shell script
cargo install trussx
Then add it to your Cargo.toml
with:
toml
[dependencies]
trussx = "0.1.2"
and add this to your root:
rust
use trussx;
Here are some basic examples of usage
For example, you can build a truss with something like:
rust
let x = Truss::new()
let a = x.add_joint(0.0, 0.0, 0.0);
let b = x.add_joint(3.0, 0.0, 0.0);
let ab = x.add_edge(
a,
b,
StructuralShape::Pipe {
radius: 1.0,
thickness: 0.1,
},
0.0,
0.0,
);
Coming soon!