pub trait CycleBuilder {
    fn with_poly_chain(
        self,
        vertices: impl IntoIterator<Item = impl Into<MaybePartial<SurfaceVertex>>>
    ) -> Self; fn with_poly_chain_from_points(
        self,
        surface: Handle<Surface>,
        points: impl IntoIterator<Item = impl Into<Point<2>>>
    ) -> Self; fn close_with_line_segment(self) -> Self; }
Expand description

Builder API for PartialCycle

Required Methods

Update the partial cycle with a polygonal chain from the provided points

Update the partial cycle with a polygonal chain from the provided points

Update the partial cycle by closing it with a line segment

Builds a line segment from the last and first vertex, closing the cycle.

Implementors