Struct lyon::tessellation::path_fill::FillTessellator
[−]
[src]
pub struct FillTessellator { pub _handle_intersections: bool, // some fields omitted }
A Context object that can tessellate fill operations for complex paths.
The Tessellator API is not stable yet. For example it is not clear whether we will use separate Tessellator structs for some of the different configurations (vertex-aa, etc), or if evertything can be implemented with the same algorithm.
Fields
_handle_intersections: bool
Methods
impl FillTessellator
fn new() -> FillTessellator
Constructor.
fn tessellate_path<Iter, Output>(&mut self,
it: Iter,
options: &FillOptions,
output: &mut Output)
-> Result<Count, FillError> where Iter: Iterator<Item=FlattenedEvent>, Output: BezierGeometryBuilder<FillVertex>
it: Iter,
options: &FillOptions,
output: &mut Output)
-> Result<Count, FillError> where Iter: Iterator<Item=FlattenedEvent>, Output: BezierGeometryBuilder<FillVertex>
Compute the tessellation from a path iterator.
fn tessellate_events<Output>(&mut self,
events: &FillEvents,
options: &FillOptions,
output: &mut Output)
-> Result<Count, FillError> where Output: BezierGeometryBuilder<FillVertex>
events: &FillEvents,
options: &FillOptions,
output: &mut Output)
-> Result<Count, FillError> where Output: BezierGeometryBuilder<FillVertex>
Compute the tessellation from pre-sorted events.
fn enable_logging(&mut self)
Enable some verbose logging during the tessellation, for debugging purposes.