Skip to main content

CornerRefiner

Trait CornerRefiner 

Source
pub trait CornerRefiner {
    // Required methods
    fn radius(&self) -> i32;
    fn refine(
        &mut self,
        seed_xy: [f32; 2],
        ctx: RefineContext<'_>,
    ) -> RefineResult;
}
Expand description

Trait implemented by pluggable refinement backends.

Required Methods§

Source

fn radius(&self) -> i32

Half-width of the patch the refiner needs around the seed.

Source

fn refine(&mut self, seed_xy: [f32; 2], ctx: RefineContext<'_>) -> RefineResult

Implementors§