pub struct PlayerPmi {
pub lines: String,
pub arrows: String,
pub annotations: usize,
pub texts: Vec<String>,
}Expand description
A step view’s PMI as the page draws it: every enabled, resolved annotation of the view (not its explode or hide rows) laid out in world space, sized as the viewport sized it when the view was saved. Text is stroked with the PMI font, so the page needs no font of its own. Arrays are little-endian base64 like a mesh’s.
Fields§
§lines: Stringf32 xyz pairs: dimension, extension and leader lines, frames and the stroked text, as line segments.
arrows: Stringf32 xyz triples: the filled arrowheads, as triangles.
annotations: usizeHow many annotations are drawn.
texts: Vec<String>Each drawn annotation’s text, in the view’s order (for a reader without WebGL and for automation).
Implementations§
Source§impl PlayerPmi
impl PlayerPmi
Sourcepub fn new(
polylines: &[Vec<[f64; 3]>],
arrows: &[[[f64; 3]; 3]],
annotations: usize,
texts: Vec<String>,
) -> Option<Self>
pub fn new( polylines: &[Vec<[f64; 3]>], arrows: &[[[f64; 3]; 3]], annotations: usize, texts: Vec<String>, ) -> Option<Self>
The drawing of annotations annotations from their polylines (each
at least two points; every polyline becomes its consecutive segments)
and arrowhead triangles. None when there is nothing to draw.