Skip to main content

CoonsReport

Struct CoonsReport 

Source
pub struct CoonsReport {
Show 13 fields pub reversed: [bool; 4], pub corner_gaps: [f64; 4], pub corner_band: f64, pub weight_scales: [f64; 4], pub weight_closure: f64, pub work: [CompatWork; 4], pub degree_u: usize, pub degree_v: usize, pub control_rows: usize, pub control_columns: usize, pub min_weight: f64, pub boundary_residual: f64, pub ribbons: Option<RibbonReport>,
}
Expand description

What the constructor had to do, and what it measured doing it.

Nothing here is inferred: every field is either a decision the constructor took (and can be replayed) or a number it measured.

Fields§

§reversed: [bool; 4]

Which boundaries were reversed to make the cyclic order run consistently round the patch. Index is the caller’s boundary index.

§corner_gaps: [f64; 4]

Distance from boundary k’s end to boundary (k + 1) % 4’s start, after orientation normalisation.

§corner_band: f64

The band those gaps were judged against.

§weight_scales: [f64; 4]

Factor each boundary’s homogeneous control points were scaled by to make the corner weights agree. All 1.0 for polynomial input.

§weight_closure: f64

Product of end weights over product of start weights: 1.0 when the rational corner weights close.

§work: [CompatWork; 4]

Degree elevation / knot insertion / domain re-mapping per boundary.

§degree_u: usize§degree_v: usize§control_rows: usize§control_columns: usize§min_weight: f64

Smallest rational weight in the blended control net.

§boundary_residual: f64

Worst distance between a boundary iso-curve’s control point and the compatible input curve’s — 0.0 when the boundaries came back bit for bit. Homogeneous for coons_bilinear; Euclidean for coons_with_ribbons, whose input is polynomial by contract, so the two coincide there.

§ribbons: Option<RibbonReport>

Ribbon measurements, present only for coons_with_ribbons.

Trait Implementations§

Source§

impl Clone for CoonsReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CoonsReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more