pub struct Scene {
pub parts: Vec<Part>,
pub labels: Vec<Label>,
pub arrows: Vec<Arrow>,
pub tool: Option<[f64; 3]>,
pub planned: Option<[f64; 3]>,
pub exaggeration: f64,
pub obstacles: Vec<Obstacle>,
pub clearance: Option<([f64; 3], [f64; 3], f64)>,
pub first_contact: Option<f64>,
}Fields§
§parts: Vec<Part>§labels: Vec<Label>§arrows: Vec<Arrow>Forces worth seeing, e.g. the belt’s pull on the carriage. Filled in by the machine.
tool: Option<[f64; 3]>Where the tool is in the scene right now (Machine::scene_point of its pose), for drawing the path
it travels. Filled in by whoever steps the machine, not by the machine; None where there is no mapping.
planned: Option<[f64; 3]>Where the plan has the tool now (Machine::scene_point of the planned pose), filled in like tool.
exaggeration: f64Asked of the machine, not filled in by it: how many times larger to draw the parts’ deflections (frame sway, the Z axis leaning), which are micrometres. 1 draws them as they are.
obstacles: Vec<Obstacle>The obstacles of the config, each marked while a part of the machine touches it. Filled in like tool.
clearance: Option<([f64; 3], [f64; 3], f64)>Where there are obstacles: the nearest points of the machine’s parts and of an obstacle (Aabb::gap), and the
clearance between them, m. Filled in like tool.
first_contact: Option<f64>The simulated time of the first contact with an obstacle so far, s. Filled in like tool.