pub enum Carrier {
Plane(Frame3),
Ruled(RuledCarrier),
Sphere {
frame: Frame3,
radius: f64,
},
Torus(TorusCarrier),
Spline(Box<BSplineSurface>),
}Expand description
The surface a traced curve lies on, as the curve needs it, in the same
parameterisation as the matching axiolid_surface family.
Variants§
Plane(Frame3)
O + u X + v Y.
Ruled(RuledCarrier)
A cylinder, elliptical cylinder or cone.
Sphere
O + r cos v (cos u X + sin u Y) + r sin v Z.
Torus(TorusCarrier)
A torus.
Spline(Box<BSplineSurface>)
A B-spline surface.
Implementations§
Source§impl Carrier
impl Carrier
Sourcepub fn jet(&self, u: f64, v: f64) -> SurfaceJet
pub fn jet(&self, u: f64, v: f64) -> SurfaceJet
The point at (u, v) with its partials.
Sourcepub fn parameters(&self, p: DVec3) -> (f64, f64)
pub fn parameters(&self, p: DVec3) -> (f64, f64)
Principal parameters of a point on the carrier: angles in
(-pi, pi] (a sphere’s latitude in [-pi/2, pi/2]); a caller
reading a curve that runs past them adds whole turns. A B-spline
carrier has no closed-form inverse: NaN, and the caller inverts
the surface itself.
Trait Implementations§
impl StructuralPartialEq for Carrier
Auto Trait Implementations§
impl Freeze for Carrier
impl RefUnwindSafe for Carrier
impl Send for Carrier
impl Sync for Carrier
impl Unpin for Carrier
impl UnwindSafe for Carrier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more