Struct lyon_tessellation::FillOptions
[−]
[src]
pub struct FillOptions { pub tolerance: f32, pub fill_rule: FillRule, pub compute_normals: bool, pub assume_no_intersections: bool, // some fields omitted }
Parameters for the fill tessellator.
Fields
tolerance: f32
Maximum allowed distance to the path when building an approximation.
Default value: FillOptions::DEFAULT_TOLERANCE
.
fill_rule: FillRule
Set the fill rule.
See the SVG specification.
Currently, only the EvenOdd
rule is implemented.
Default value: EvenOdd
.
compute_normals: bool
Whether or not to compute the normal vector at each vertex.
When set to false, all generated vertex normals are equal to vec2(0.0, 0.0)
.
Not computing vertex normals can speed up tessellation and enable generating less vertices
at intersections.
Default value: true
.
assume_no_intersections: bool
A fast path to avoid some expensive operations if the path is known to not have any self-intersections.
Do not set this to true
if the path may have intersecting edges else
the tessellator may panic or produce incorrect results. In doubt, do not
change the default value.
Default value: false
.
Methods
impl FillOptions
[src]
fn default() -> Self
[src]
fn even_odd() -> Self
[src]
fn tolerance(tolerance: f32) -> Self
[src]
fn non_zero() -> Self
[src]
fn with_tolerance(self, tolerance: f32) -> Self
[src]
fn with_normals(self, normals: bool) -> Self
[src]
fn assume_no_intersections(self) -> Self
[src]
Trait Implementations
impl Copy for FillOptions
[src]
impl Clone for FillOptions
[src]
fn clone(&self) -> FillOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FillOptions
[src]
impl PartialEq for FillOptions
[src]
fn eq(&self, __arg_0: &FillOptions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FillOptions) -> bool
[src]
This method tests for !=
.