Crates.io | stationary-cam |
lib.rs | stationary-cam |
version | 0.2.4 |
source | src |
created_at | 2023-03-20 19:46:51.665046 |
updated_at | 2023-07-01 21:36:07.782177 |
description | This safe CLI generates a stationary cam as .svg. |
homepage | |
repository | https://github.com/772/stationary-cam |
max_upload_size | |
id | 815581 |
size | 45,591 |
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: