Struct PeriodicCurve3
pub struct PeriodicCurve3<'a> { /* private fields */ }Expand description
Verified closed-seam extension of a spatial B-spline curve.
As with PeriodicCurve2, this is an explicit evaluator/editing view over
the existing clamped representation, not an inferred periodic knot schema.
Implementations§
§impl<'a> PeriodicCurve3<'a>
impl<'a> PeriodicCurve3<'a>
pub fn try_new(
curve: &'a BSplineCurve<DVec3>,
tolerance: Tolerance,
) -> Result<PeriodicCurve3<'a>, GeomError>
pub fn try_new( curve: &'a BSplineCurve<DVec3>, tolerance: Tolerance, ) -> Result<PeriodicCurve3<'a>, GeomError>
Validate closed metadata and at least positional seam continuity.
pub const fn seam_continuity(self) -> SeamContinuity
pub const fn seam_continuity(self) -> SeamContinuity
Highest endpoint continuity verified during construction.
pub fn wrap_parameter(self, parameter: f64) -> Result<f64, GeomError>
pub fn wrap_parameter(self, parameter: f64) -> Result<f64, GeomError>
Wrap a finite parameter into the native active domain.
pub fn evaluate(self, parameter: f64) -> Result<DVec3, GeomError>
pub fn evaluate(self, parameter: f64) -> Result<DVec3, GeomError>
Evaluate the closed-seam extension at any finite parameter.
pub fn jet(self, parameter: f64) -> Result<CurveJet<DVec3, DVec3>, GeomError>
pub fn jet(self, parameter: f64) -> Result<CurveJet<DVec3, DVec3>, GeomError>
Evaluate point, first derivative, and second derivative after wrapping.
pub fn insert_knot(
self,
parameter: f64,
) -> Result<BSplineCurve<DVec3>, GeomError>
pub fn insert_knot( self, parameter: f64, ) -> Result<BSplineCurve<DVec3>, GeomError>
Insert a shape-preserving knot at a periodic-equivalent interior parameter.
pub fn split_at(
self,
parameter: f64,
) -> Result<(BSplineCurve<DVec3>, BSplineCurve<DVec3>), GeomError>
pub fn split_at( self, parameter: f64, ) -> Result<(BSplineCurve<DVec3>, BSplineCurve<DVec3>), GeomError>
Split at a periodic-equivalent interior parameter into two open curves.
Trait Implementations§
§impl<'a> Clone for PeriodicCurve3<'a>
impl<'a> Clone for PeriodicCurve3<'a>
§fn clone(&self) -> PeriodicCurve3<'a>
fn clone(&self) -> PeriodicCurve3<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<'a> Debug for PeriodicCurve3<'a>
impl<'a> Debug for PeriodicCurve3<'a>
impl<'a> Copy for PeriodicCurve3<'a>
Auto Trait Implementations§
impl<'a> Freeze for PeriodicCurve3<'a>
impl<'a> RefUnwindSafe for PeriodicCurve3<'a>
impl<'a> Send for PeriodicCurve3<'a>
impl<'a> Sync for PeriodicCurve3<'a>
impl<'a> Unpin for PeriodicCurve3<'a>
impl<'a> UnwindSafe for PeriodicCurve3<'a>
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