| Crates.io | stationary-cam |
| lib.rs | stationary-cam |
| version | 0.2.6 |
| created_at | 2023-03-20 19:46:51.665046+00 |
| updated_at | 2025-02-25 19:27:45.740029+00 |
| description | This safe CLI generates a stationary cam as .svg. |
| homepage | |
| repository | https://github.com/772/stationary-cam |
| max_upload_size | |
| id | 815581 |
| size | 44,470 |
This safe Rust CLI generates SVG templates for stationary cams.
cargo install stationary-cam
~/.cargo/bin/stationary-cam \
--filename "example" \
--strokes \
"S1=M 5,0 L 5,30" \
"S2=M 5,0 L 5,30" \
"S3=M 5,0 L 5,30" \
"S4=M 5,0 L 5,30" \
"S5=M 5,0 L 5,30" \
"S6=M 5,0 L 5,30" \
"S7=M 5,0 L 5,30" \
"S8=M 5,0 L 5,30" \
"S9=M 5,0 L 5,30" \
"S10=M 5,0 L 5,30" \
--diameter-mm 460 \
--center-circle-radius-mm 18.0 \
--outer-circles-radius-mm 5.0 \
--outer-circles-margin-mm 50.0 \
--vertices-per-millimeter 1
This will result in a SVG looking like this:

You can use the generated SVG template to cut the cam out of a metal plate, cardboard or any other material. Depending on the material of the cam, you might need a different file format.
OBJ and STL files are often used for 3D printing or CNC woodworking.
DXF files are often used for metal laser cutting machines.
inkscape --export-type="dxf" example.svg
Licensed under either of these:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.