Trait fj_kernel::builder::CycleBuilder
source · 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§
sourcefn with_poly_chain(
self,
vertices: impl IntoIterator<Item = impl Into<MaybePartial<SurfaceVertex>>>
) -> Self
fn with_poly_chain(
self,
vertices: impl IntoIterator<Item = impl Into<MaybePartial<SurfaceVertex>>>
) -> Self
Update the partial cycle with a polygonal chain from the provided points
sourcefn with_poly_chain_from_points(
self,
surface: Handle<Surface>,
points: impl IntoIterator<Item = impl Into<Point<2>>>
) -> Self
fn with_poly_chain_from_points(
self,
surface: Handle<Surface>,
points: impl IntoIterator<Item = impl Into<Point<2>>>
) -> Self
Update the partial cycle with a polygonal chain from the provided points
sourcefn close_with_line_segment(self) -> Self
fn close_with_line_segment(self) -> Self
Update the partial cycle by closing it with a line segment
Builds a line segment from the last and first vertex, closing the cycle.