pub trait PolylineCompiler: Backend {
// Required method
fn compile_polyline(
&self,
graph: &GeometryGraph,
root: NodeId,
options: &ExecutionOptions,
) -> Result<PolylineOutcome, GeomError>;
}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§
Sourcefn compile_polyline(
&self,
graph: &GeometryGraph,
root: NodeId,
options: &ExecutionOptions,
) -> Result<PolylineOutcome, GeomError>
fn compile_polyline( &self, graph: &GeometryGraph, root: NodeId, options: &ExecutionOptions, ) -> Result<PolylineOutcome, GeomError>
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".