[][src]Struct lyon_algorithms::hatching::HatchingOptions

pub struct HatchingOptions {
    pub tolerance: f32,
    pub angle: Angle,
    pub compute_tangents: bool,
    pub uv_origin: Point,
    // some fields omitted
}

Parameters for the hatcher.

Fields

tolerance: f32

Maximum allowed distance to the path when building an approximation.

See Flattening and tolerance.

Default value: HatchingOptions::DEFAULT_TOLERANCE.

angle: Angle

Angle between the hatching pattern and the x axis.

Default value: HatchingOptions::ANGLE.

compute_tangents: bool

Whether to compute the tangent of the outline where it meets the hatching pattern.

Default value: `true, .

uv_origin: Point

The origin of the rotated uv coordinates.

Implementations

impl HatchingOptions[src]

pub const DEFAULT_TOLERANCE: f32[src]

Default flattening tolerance.

pub const DEFAULT_ANGLE: Angle[src]

Default hatching angle.

pub const DEFAULT_UV_ORIGIN: Point[src]

pub const DEFAULT: Self[src]

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

pub fn angle(angle: Angle) -> Self[src]

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

pub fn with_angle(self, angle: Angle) -> Self[src]

pub fn with_tangents(self, compute_tangents: bool) -> Self[src]

Trait Implementations

impl Clone for HatchingOptions[src]

impl Copy for HatchingOptions[src]

impl Debug for HatchingOptions[src]

impl Default for HatchingOptions[src]

impl PartialEq<HatchingOptions> for HatchingOptions[src]

impl StructuralPartialEq for HatchingOptions[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.