Trait PolylineCompiler
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§
fn 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".
Implementations on Foreign Types§
§impl<B> PolylineCompiler for ReferenceMeshCompiler<B>where
B: MeshBoolean,
Curve nodes to polylines (#311): Curve2 (lifted to z = 0),
Curve3 and OpenProfile, and their placements, each bisected until
every span’s certified chord bound fits the budget. See
crate::polyline for what is bounded how and what is refused.
impl<B> PolylineCompiler for ReferenceMeshCompiler<B>where
B: MeshBoolean,
Curve nodes to polylines (#311): Curve2 (lifted to z = 0),
Curve3 and OpenProfile, and their placements, each bisected until
every span’s certified chord bound fits the budget. See
crate::polyline for what is bounded how and what is refused.