Operation

Trait Operation 

Source
pub trait Operation {
    // Provided methods
    fn output_type(&self) -> OutputType { ... }
    fn process_2d(
        &self,
        _context: &mut RenderContext,
    ) -> RenderResult<Geometry2DOutput> { ... }
    fn process_3d(
        &self,
        _context: &mut RenderContext,
    ) -> RenderResult<Geometry3DOutput> { ... }
}
Expand description

Operation trait.

Provided Methods§

Source

fn output_type(&self) -> OutputType

The output type of this operation.

By default, the output type is undetermined.

Source

fn process_2d( &self, _context: &mut RenderContext, ) -> RenderResult<Geometry2DOutput>

Process the model and output a 2D geometry.

Source

fn process_3d( &self, _context: &mut RenderContext, ) -> RenderResult<Geometry3DOutput>

Process the model and output a 3D geometry.

Implementations on Foreign Types§

Source§

impl Operation for BooleanOp

Implementors§