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§
Source§impl<'de> Deserialize<'de> for Carrier
impl<'de> Deserialize<'de> for Carrier
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Carrier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Carrier, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Carrier
impl Serialize for Carrier
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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