Struct lyon_tessellation::FillVertex
source · pub struct FillVertex<'l> { /* private fields */ }
Expand description
Extra vertex information from the FillTessellator
, accessible when building vertices.
Implementations§
source§impl<'l> FillVertex<'l>
impl<'l> FillVertex<'l>
pub fn position(&self) -> Point
sourcepub fn sources(&self) -> VertexSourceIterator<'_> ⓘ
pub fn sources(&self) -> VertexSourceIterator<'_> ⓘ
Return an iterator over the sources of the vertex.
sourcepub fn as_endpoint_id(&self) -> Option<EndpointId>
pub fn as_endpoint_id(&self) -> Option<EndpointId>
Returns the first endpoint that this vertex is on, if any.
This is meant to be used only in very simple cases where self-intersections,
overlapping vertices and curves are unexpected.
This will return None
at self-intersections and between the endpoints of
a flattened curve. If two endpoints are at the same position only one of
them is returned.
See also: FillVertex::sources
.
sourcepub fn interpolated_attributes(&mut self) -> Attributes<'_>
pub fn interpolated_attributes(&mut self) -> Attributes<'_>
Fetch or interpolate the custom attribute values at this vertex.