Struct triangulate::formats::FanToListFormat
source · pub struct FanToListFormat<'p, P: PolygonList<'p> + ?Sized, LB: ListFormat<'p, P>>(_, _);
Expand description
A wrapper which adapts a ListFormat to work as a FanFormat, which is required for PolygonList::triangulate
Constructed with ListFormat::into_fan_format.
Trait Implementations§
source§impl<'p, P: PolygonList<'p> + ?Sized, LB: ListFormat<'p, P>> FanFormat<'p, P> for FanToListFormat<'p, P, LB>
impl<'p, P: PolygonList<'p> + ?Sized, LB: ListFormat<'p, P>> FanFormat<'p, P> for FanToListFormat<'p, P, LB>
§type Builder = FanToListBuilder<'p, P, <LB as ListFormat<'p, P>>::Builder>
type Builder = FanToListBuilder<'p, P, <LB as ListFormat<'p, P>>::Builder>
The type responsible for constructing triangle fans. Read more
source§fn initialize(
self,
polygon_list: &'p P,
vi0: <P as PolygonList<'p>>::Index,
vi1: <P as PolygonList<'p>>::Index,
vi2: <P as PolygonList<'p>>::Index
) -> Result<Self::Builder, <Self::Builder as FanBuilder<'p, P>>::Error>
fn initialize( self, polygon_list: &'p P, vi0: <P as PolygonList<'p>>::Index, vi1: <P as PolygonList<'p>>::Index, vi2: <P as PolygonList<'p>>::Index ) -> Result<Self::Builder, <Self::Builder as FanBuilder<'p, P>>::Error>
Constructs a FanFormat::Builder with an initial triangle, optionally using a reference to the PolygonList being triangulated.
source§fn reverse_winding(self) -> ReverseFanFormat<'p, P, Self>where
Self: Sized,
fn reverse_winding(self) -> ReverseFanFormat<'p, P, Self>where Self: Sized,
Constructs a FanFormat with the opposite TriangleWinding