pub enum Shape {
Point {
at: Vector3,
},
Polyline {
points: Vec<Vector3>,
},
Triangles {
triangles: Vec<[Vector3; 3]>,
},
Label {
at: Vector3,
text: String,
offset: Vector3,
},
Handle {
at: Vector3,
direction: Vector3,
},
Instance {
name: String,
},
Triad {
at: Vector3,
axes: [Vector3; 3],
},
}Expand description
What a visual is.
Variants§
Point
Polyline
Triangles
A filled area.
Label
Text at at, moved by offset — measured in the pointer’s reaches
(see super::Reach), so it keeps its size on screen — so that
labels of one point do not stack.
Handle
The number field of the visual’s key, as something to drag along
direction: moving it by direction adds one to the field. Only the
editor draws these, for a field with a handle (see
super::Track).
Instance
A part placed in the part, by its instance’s name, as the viewer
draws it already (see super::hit::Scene::hit_instance): lit when
hovered or selected, hit where its faces are.
Triad
Three arrows from at, along axes — the world’s x, y and z,
or a frame’s — drawn at a constant size on screen (TRIAD reaches
long): what lines are drawn along, to see them by, or the frame a
mate would put. Hit by nothing.