Struct centerline::Centerline[][src]

pub struct Centerline<I, F> where
    I: InputType + Neg<Output = I>,
    F: BaseFloat + Sync + OutputType + Neg<Output = F>, 
{ pub segments: Vec<Line<I>>, pub diagram: SyncDiagram<I, F>, pub lines: Option<Vec<Line3<F>>>, pub line_strings: Option<Vec<LineString3<F>>>, // some fields omitted }
Expand description

Center line calculation object. It: * calculates the segmented voronoi diagram. * Filter out voronoi edges based on the angle to input geometry. * Collects connected edges into line strings and line segments. * Performs line simplification on those line strings.

Fields

segments: Vec<Line<I>>

the input data to the voronoi diagram

diagram: SyncDiagram<I, F>

the voronoi diagram itself

lines: Option<Vec<Line3<F>>>

the individual two-point edges

line_strings: Option<Vec<LineString3<F>>>

concatenated connected edges

Implementations

Creates a Centerline container with a set of segments

Creates a Centerline container with a set of segments

builds the voronoi diagram and filter out infinite edges and other ‘outside’ geometry

perform the angle-to-geometry test and filter out some edges. Collect the rest of the edges into connected line-strings and line segments.

Collects lines and linestrings from the centerline. This version of calculate_centerline() tries to keep as many edges as possible. The intention is to use the data for mesh generation. TODO: make this return a true mesh

returns a copy of the ignored edges bit field

returns a copy of the rejected edges bit field

returns a reference to the internal voronoi diagram

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.