pub struct SweptShape {
pub surface: SurfaceGeometry,
pub tol: Tolerances,
/* private fields */
}Expand description
A fitted surface, with the tolerances its distances are measured at.
Fields§
§surface: SurfaceGeometryThe surface: a ogeom_geom::SurfaceGeometry::Revolution, an
ogeom_geom::SurfaceGeometry::Extrusion or a
ogeom_geom::SurfaceGeometry::BSpline.
tol: TolerancesThe tolerances a point’s foot on it is found to.
Implementations§
Source§impl SweptShape
impl SweptShape
Sourcepub fn new(surface: SurfaceGeometry, tol: Tolerances) -> Self
pub fn new(surface: SurfaceGeometry, tol: Tolerances) -> Self
A swept shape on surface: a sweep’s profile sampled, or a patch
sampled on a grid.
Sourcepub fn foot(&self, p: Point) -> Option<SurfaceProjection>
pub fn foot(&self, p: Point) -> Option<SurfaceProjection>
The foot of p on the surface: its parameters, the point there and
the distance to it.
Trait Implementations§
Source§impl Clone for SweptShape
impl Clone for SweptShape
Source§impl Debug for SweptShape
impl Debug for SweptShape
Source§impl PartialEq for SweptShape
impl PartialEq for SweptShape
impl StructuralPartialEq for SweptShape
Auto Trait Implementations§
impl Freeze for SweptShape
impl RefUnwindSafe for SweptShape
impl Send for SweptShape
impl Sync for SweptShape
impl Unpin for SweptShape
impl UnsafeUnpin for SweptShape
impl UnwindSafe for SweptShape
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.