Skip to main content

DomeField

Struct DomeField 

Source
pub struct DomeField { /* private fields */ }
Expand description

A finishing program’s balls over the dome’s upper half, as a field over chart_direction’s chart: the height is the distance along the ray from the origin. Its tubes are the arcs’ tori (about each arc’s axis) and each circle’s torus about its axis cut into sectors stretches (so no face goes all the way round); its balls are each arc’s start (an arc’s end on a circle lies inside that circle’s torus) and each point.

Implementations§

Source§

impl DomeField

Source

pub fn new( centres: Centres, sectors: usize, top: f64, ) -> Result<DomeField, String>

The field of centres (each circle about the z axis), cut at top. Refuses a circle about another axis.

Source

pub fn centres(&self) -> &Centres

The finishing passes it reads (fixed when it is made: its index of the parts in reach is built from them).

Trait Implementations§

Source§

impl Faces for DomeField

Source§

fn surface(&self, part: Part) -> Result<NurbsSurface, String>

Source§

fn outward(&self, part: Part, at: Vec3) -> Vec3

Source§

fn lift(&self, chart: Vec3) -> Vec3

Source§

impl Field for DomeField

Source§

fn plane(&self, p: Part, q: Part, x: f64, y: f64) -> Option<f64>

An arc and its own start meet on the plane through the origin square to the arc there; two stretches of a circle’s torus on the plane through the z axis between them.

Source§

fn seeds(&self) -> Vec<[f64; 2]>

Each arc’s end on a circle: the arc’s torus and the circle’s meet there, at the dome itself, and their boundary turns a corner.

Source§

fn scale(&self) -> f64

The length the tolerances are shares of (the ball’s radius).
Source§

fn length(&self) -> f64

The length one unit of the chart spans, about (1 in plan).
Source§

fn top(&self) -> f64

The stock’s top: the height read where nothing cuts below it.
Source§

fn lowest(&self, x: f64, y: f64) -> (f64, Part)

The lowest part over (x, y) and its height; ties to the lesser part.
Source§

fn height(&self, part: Part, x: f64, y: f64) -> f64

The part’s height over (x, y), +∞ where it is not read.
Source§

fn continued(&self, part: Part, x: f64, y: f64) -> f64

The part’s surface continued past where it is read (NaN past its reach), for the boundary equations.
Source§

fn witnesses(&self, cell: f64) -> Vec<[f64; 2]>

Points (in the chart) each part that is lowest anywhere is lowest at or near, read at a grid of cell: a part lowest at one that the plan does not name is narrower than the cell.
Source§

fn below(&self, p: Part, q: Part, x: f64, y: f64) -> bool

Whether p is read below q at (x, y) (the pair’s own comparison, ties to the lesser part).
Source§

fn equation(&self, p: Part, q: Part, x: f64, y: f64) -> f64

The equation of the boundary between p and q at (x, y): zero on it.
Source§

fn meets(&self, p: Part, q: Part, x: f64, y: f64, tolerance: f64) -> bool

Whether (x, y) lies on the curve where p and q meet, to tolerance: their surfaces at one height there, and on the surface they meet on where they have one.

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> 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, 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