pub struct ExtrusionSurface { /* private fields */ }Expand description
A curve swept along a direction.
u is the generating curve’s parameter; v is the distance swept.
Implementations§
Source§impl ExtrusionSurface
impl ExtrusionSurface
Sourcepub fn new(
curve: Curve,
direction: Direction,
distance: f64,
) -> OgeomResult<Self>
pub fn new( curve: Curve, direction: Direction, distance: f64, ) -> OgeomResult<Self>
Sweep curve along direction over [0, distance].
§Errors
OgeomError::Construction if distance
is not finite and positive.
Sourcepub fn over(
curve: Curve,
direction: Direction,
extent: (f64, f64),
) -> OgeomResult<Self>
pub fn over( curve: Curve, direction: Direction, extent: (f64, f64), ) -> OgeomResult<Self>
Sweep curve along direction over an explicit window of the
sweep parameter: a file’s extrusion, unbounded either way, is
given the window its faces reach.
§Errors
OgeomError::Construction if
the window is not finite and increasing.
Trait Implementations§
Source§impl Clone for ExtrusionSurface
impl Clone for ExtrusionSurface
Source§fn clone(&self) -> ExtrusionSurface
fn clone(&self) -> ExtrusionSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtrusionSurface
impl Debug for ExtrusionSurface
Source§impl From<ExtrusionSurface> for SurfaceGeometry
impl From<ExtrusionSurface> for SurfaceGeometry
Source§fn from(s: ExtrusionSurface) -> Self
fn from(s: ExtrusionSurface) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtrusionSurface
impl PartialEq for ExtrusionSurface
Source§fn eq(&self, other: &ExtrusionSurface) -> bool
fn eq(&self, other: &ExtrusionSurface) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtrusionSurface
Source§impl Surface for ExtrusionSurface
impl Surface for ExtrusionSurface
Source§fn point_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<Point>
fn point_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<Point>
The point at
(u, v). Read moreSource§fn d1_at(
&self,
u: f64,
v: f64,
tol: Tolerances,
) -> OgeomResult<(Vector, Vector)>
fn d1_at( &self, u: f64, v: f64, tol: Tolerances, ) -> OgeomResult<(Vector, Vector)>
The two first derivatives at
(u, v). Read moreSource§fn kind(&self) -> SurfaceKind
fn kind(&self) -> SurfaceKind
What kind of surface this is.
Source§fn continuity(&self) -> Continuity
fn continuity(&self) -> Continuity
How smooth the surface is across its domain.
Source§fn is_closed_u(&self, tol: Tolerances) -> bool
fn is_closed_u(&self, tol: Tolerances) -> bool
Whether the surface closes on itself along
u.Source§fn is_closed_v(&self, _tol: Tolerances) -> bool
fn is_closed_v(&self, _tol: Tolerances) -> bool
Whether the surface closes on itself along
v.Source§fn is_periodic_u(&self) -> bool
fn is_periodic_u(&self) -> bool
Whether
u repeats past the domain.Source§fn is_periodic_v(&self) -> bool
fn is_periodic_v(&self) -> bool
Whether
v repeats past the domain.Source§fn jet_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<SurfaceJet>
fn jet_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<SurfaceJet>
The point and every derivative through second order, together. Read more
Source§fn curvature_at(
&self,
u: f64,
v: f64,
tol: Tolerances,
) -> OgeomResult<SurfaceCurvature>
fn curvature_at( &self, u: f64, v: f64, tol: Tolerances, ) -> OgeomResult<SurfaceCurvature>
The principal curvatures and directions at
(u, v). Read moreSource§fn is_degenerate_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<bool>
fn is_degenerate_at(&self, u: f64, v: f64, tol: Tolerances) -> OgeomResult<bool>
Whether the surface degenerates at
(u, v). Read moreAuto Trait Implementations§
impl Freeze for ExtrusionSurface
impl RefUnwindSafe for ExtrusionSurface
impl Send for ExtrusionSurface
impl Sync for ExtrusionSurface
impl Unpin for ExtrusionSurface
impl UnsafeUnpin for ExtrusionSurface
impl UnwindSafe for ExtrusionSurface
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.