pub struct SurfaceCurvature {
pub max: f64,
pub min: f64,
pub max_direction: Direction,
pub min_direction: Direction,
pub normal: Direction,
}Expand description
A surface’s curvature at one place: the principal curvatures and the directions they are taken in, with the mean and Gaussian curvatures they combine to.
What curvature display, zebra analysis and a fillet’s seat all ask.
The principal directions are unit tangents in space, perpendicular to
each other; at an umbilic (where every direction curves the same, as
everywhere on a sphere or a plane) they are any perpendicular pair
in the tangent plane, and SurfaceCurvature::is_umbilic says so.
Fields§
§max: f64The largest normal curvature.
min: f64The smallest normal curvature.
max_direction: DirectionThe tangent direction of the largest.
min_direction: DirectionThe tangent direction of the smallest.
normal: DirectionThe unit normal the curvatures are signed against: positive where the surface curves towards it.
Implementations§
Source§impl SurfaceCurvature
impl SurfaceCurvature
Sourcepub fn is_umbilic(&self, tol: Tolerances) -> bool
pub fn is_umbilic(&self, tol: Tolerances) -> bool
Whether the two principal curvatures are equal to within tol’s
angular resolution of their size, so no direction is principal
above another.
Trait Implementations§
Source§impl Clone for SurfaceCurvature
impl Clone for SurfaceCurvature
Source§fn clone(&self) -> SurfaceCurvature
fn clone(&self) -> SurfaceCurvature
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SurfaceCurvature
Source§impl Debug for SurfaceCurvature
impl Debug for SurfaceCurvature
Source§impl PartialEq for SurfaceCurvature
impl PartialEq for SurfaceCurvature
Source§fn eq(&self, other: &SurfaceCurvature) -> bool
fn eq(&self, other: &SurfaceCurvature) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SurfaceCurvature
Auto Trait Implementations§
impl Freeze for SurfaceCurvature
impl RefUnwindSafe for SurfaceCurvature
impl Send for SurfaceCurvature
impl Sync for SurfaceCurvature
impl Unpin for SurfaceCurvature
impl UnsafeUnpin for SurfaceCurvature
impl UnwindSafe for SurfaceCurvature
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
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.