[][src]Struct lyon_tessellation::FillOptions

pub struct FillOptions {
    pub tolerance: f32,
    pub fill_rule: FillRule,
    pub sweep_orientation: Orientation,
    pub handle_intersections: bool,
    // some fields omitted
}

Parameters for the fill tessellator.

Fields

tolerance: f32

Maximum allowed distance to the path when building an approximation.

See Flattening and tolerance.

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.

sweep_orientation: Orientation

Whether to perform a vertical or horizontal traversal of the geometry.

Default value: Vertical.

handle_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 false 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: true.

Implementations

impl FillOptions[src]

pub const DEFAULT_TOLERANCE: f32[src]

Default flattening tolerance.

pub const DEFAULT_FILL_RULE: FillRule[src]

Default Fill rule.

pub const DEFAULT_SWEEP_ORIENTATION: Orientation[src]

Default orientation.

pub const DEFAULT: Self[src]

pub fn even_odd() -> Self[src]

pub fn tolerance(tolerance: f32) -> Self[src]

pub fn non_zero() -> Self[src]

pub fn with_tolerance(self, tolerance: f32) -> Self[src]

pub fn with_fill_rule(self, rule: FillRule) -> Self[src]

pub fn with_sweep_orientation(self, orientation: Orientation) -> Self[src]

pub fn with_intersections(self, intersections: bool) -> Self[src]

Trait Implementations

impl Clone for FillOptions[src]

impl Copy for FillOptions[src]

impl Debug for FillOptions[src]

impl Default for FillOptions[src]

impl PartialEq<FillOptions> for FillOptions[src]

impl StructuralPartialEq for FillOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.