//! Internal trait shared by every visualizable object.
//!
//! Backends (PNG, SVG, interactive window) all go through this trait, so
//! the rendering code is written once. Implementations live next to the
//! data type (e.g. [`mesh_draw`](super::mesh_draw) for `SubMesh`).
use crate;
use crateBbox3;
use crateView;
use Shift;
use *;
/// Map any plotters error into our [`PyrucastError`].
pub
/// A visualizable object.
///
/// Implementors expose the 3D bounding box (used to centre and scale the
/// view) and a `draw_on` method that emits 2D primitives onto a plotters
/// drawing area according to `view`.