pub fn set_pos_3d(pos: Point3d, extrude_pos: Option<f32>) -> StringExpand description
Returns a G92 command to set the current nozzle/tool possition in 3 dimentions (XYZ) as a String
ยงExamples
extern crate gen_gcode;
use gen_gcode::{Point2d, move_xy};
let p = Point3d { x: 125.0, y: 125.0, z: 25.0};
let gcode = set_pos_3d(p, None);
assert_eq!("G92 X125 Y125 Z25", gcode);