Skip to main content

PolylineCompiler

Trait PolylineCompiler 

Source
pub trait PolylineCompiler: Backend {
    // Required method
    fn compile_polyline(
        &self,
        graph: &GeometryGraph,
        root: NodeId,
        options: &ExecutionOptions,
    ) -> GeomResult<PolylineOutcome>;
}
Expand description

Backend that compiles a curve node of a graph to a 3D polyline.

Implementations must return axiolid_contracts::GeomError::Unsupported or axiolid_contracts::GeomError::UnsupportedInput for a node they cannot compile or cannot bound, naming it; they never return a polyline whose ChordDeviation::bound is not an upper bound.

Required Methods§

Source

fn compile_polyline( &self, graph: &GeometryGraph, root: NodeId, options: &ExecutionOptions, ) -> GeomResult<PolylineOutcome>

Compile one root to a polyline within the options’ chord budget.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§