Skip to main content

ModelOperation

Trait ModelOperation 

Source
pub trait ModelOperation: PartOperation {
    // Required method
    fn build(
        model: &mut NamedModel,
        reader: &Reader<'_>,
        step: &str,
        args: &Self::Args,
    ) -> GeopResult<()>;
}
Expand description

A kind of step that builds into the part’s model: an extrude, a boolean, a fillet. Its run is build_model.

Required Methods§

Source

fn build( model: &mut NamedModel, reader: &Reader<'_>, step: &str, args: &Self::Args, ) -> GeopResult<()>

Builds the step step — what everything it makes is named after — into model, reading whatever else it builds on through reader, so the step is rebuilt when that changes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§