pub enum RecognizedSurface {
Plane {
normal: Vec3,
d: f64,
},
Cylinder {
origin: Point3,
axis: Vec3,
radius: f64,
},
Sphere {
center: Point3,
radius: f64,
},
Cone {
apex: Point3,
axis: Vec3,
half_angle: f64,
},
Torus {
center: Point3,
axis: Vec3,
major_radius: f64,
minor_radius: f64,
},
NotRecognized,
}Expand description
The analytic surface form recognized from a NURBS surface.
Variants§
Plane
Recognized as a plane.
Fields
Cylinder
Recognized as a cylinder.
Fields
Sphere
Recognized as a sphere.
Cone
Recognized as a cone.
Fields
Torus
Recognized as a torus.
Fields
NotRecognized
The surface could not be matched to any elementary form.
Trait Implementations§
Source§impl Clone for RecognizedSurface
impl Clone for RecognizedSurface
Source§fn clone(&self) -> RecognizedSurface
fn clone(&self) -> RecognizedSurface
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 RecognizedSurface
impl Debug for RecognizedSurface
Source§impl PartialEq for RecognizedSurface
impl PartialEq for RecognizedSurface
impl StructuralPartialEq for RecognizedSurface
Auto Trait Implementations§
impl Freeze for RecognizedSurface
impl RefUnwindSafe for RecognizedSurface
impl Send for RecognizedSurface
impl Sync for RecognizedSurface
impl Unpin for RecognizedSurface
impl UnsafeUnpin for RecognizedSurface
impl UnwindSafe for RecognizedSurface
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