Trait triangulate::FanFormat
source · pub trait FanFormat<'p, P: PolygonList<'p> + ?Sized> {
type Builder: FanBuilder<'p, P> + Sized;
// Required method
fn initialize(
self,
polygon_list: &'p P,
vi0: P::Index,
vi1: P::Index,
vi2: P::Index
) -> Result<Self::Builder, <Self::Builder as FanBuilder<'p, P>>::Error>;
// Provided method
fn reverse_winding(self) -> ReverseFanFormat<'p, P, Self>
where Self: Sized { ... }
}
Expand description
Describes the construction and layout of a triangle fans
Required Associated Types§
sourcetype Builder: FanBuilder<'p, P> + Sized
type Builder: FanBuilder<'p, P> + Sized
The type responsible for constructing triangle fans.
This type can be Self
, if you choose to implement both FanFormat and FanBuilder on the same type.
Required Methods§
sourcefn initialize(
self,
polygon_list: &'p P,
vi0: P::Index,
vi1: P::Index,
vi2: P::Index
) -> Result<Self::Builder, <Self::Builder as FanBuilder<'p, P>>::Error>
fn initialize( self, polygon_list: &'p P, vi0: P::Index, vi1: P::Index, vi2: 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.
Provided Methods§
sourcefn 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