pub enum Step {
}Expand description
One movement, drawing, shape, mark, or restore operation in a linkage.
LinkageFixed and linkage! are the usual ways to create steps; direct
construction is useful when inspecting or implementing a linkage backend.
Model-space axes:
- +X = forward / along the link
- +Y = left
- +Z = up
Rotations are local-frame rotations: yaw about +Z, pitch about +Y, and roll about +X.
Variants§
Start
Reset to the origin with the identity orientation.
Yaw(StepArg)
Rotate around local +Z.
Pitch(StepArg)
Rotate around local +Y.
Roll(StepArg)
Rotate around local +X.
Forward(StepArg)
Advance along local +X by the given distance.
Left(StepArg)
Advance along local +Y by the given distance.
Up(StepArg)
Advance along local +Z by the given distance.
PenUp
Lift the pen so later moves do not draw.
PenDown
Lower the pen so later moves draw.
PenColor(Rgb888)
Set the pen color.
PenWidth(f32)
Set the pen stroke width in linkage units.
Disk(f32)
Add a filled disk at the current pose, in the local +X/+Y plane.
DiskParam(ParamArg)
Add a filled disk at the current pose with a parameter-driven radius.
Sphere(f32)
Add a sphere centered at the current pose.
SphereParam(ParamArg)
Add a sphere centered at the current pose with a parameter-driven radius.
Mark
Save the current pose and pen state into a resolved mark slot.
Restore
Restore a previously marked pose and pen state (index resolved at build time).