Skip to main content

view_annotations

Function view_annotations 

Source
pub fn view_annotations<'a>(
    view: &PmiView,
    camera: &PmiCamera,
    rows: &'a PmiViewReport,
) -> Vec<(&'a PmiAnnotationReport, DrawnAnnotation)>
Expand description

Every drawable annotation of a saved view (rows, its report) laid out for a 3D model shown from camera: sized as the viewport sized them when the view was saved (the overlay’s pixel sizes times the saved camera’s world per pixel; a model-unit line cannot stay a constant size on screen, so this is exact at the view’s own framing and scales with the model when the reader zooms), a view-aligned row laid out in the view-parallel plane through its label, facing the camera, as the STEP presentation lays it out. The 3D PDF and the instructions player both draw these.