RenderWithContext

Trait RenderWithContext 

Source
pub trait RenderWithContext<T> {
    // Required method
    fn render_with_context(
        &self,
        context: &mut RenderContext,
    ) -> RenderResult<T>;
}
Expand description

The render trait.

Required Methods§

Source

fn render_with_context(&self, context: &mut RenderContext) -> RenderResult<T>

Render method.

Implementors§

Source§

impl RenderWithContext<Model> for Model

Source§

impl RenderWithContext<Rc<WithBounds2D<Geometry2D>>> for BuiltinWorkpiece

Source§

impl RenderWithContext<Rc<WithBounds2D<Geometry2D>>> for Models

Source§

impl RenderWithContext<Rc<WithBounds2D<Geometry2D>>> for Model

This implementation renders a Geometry2D out of a Model.

Notes:

  • The impl attaches the output geometry to the model’s render output.
  • It is assumed the model has been pre-rendered.
Source§

impl RenderWithContext<Rc<WithBounds3D<Geometry3D>>> for BuiltinWorkpiece

Source§

impl RenderWithContext<Rc<WithBounds3D<Geometry3D>>> for Models

Source§

impl RenderWithContext<Rc<WithBounds3D<Geometry3D>>> for Model

This implementation renders a Geometry3D out of a Model.

Notes:

  • The impl attaches the output geometry to the model’s render output.
  • It is assumed the model has been pre-rendered.
Source§

impl RenderWithContext<Geometries2D> for Models

Source§

impl RenderWithContext<Geometries3D> for Models