#[non_exhaustive]pub enum FaceSurface {
Plane {
origin: [f32; 3],
normal: [f32; 3],
},
Cylinder {
origin: [f32; 3],
axis: [f32; 3],
radius: f32,
},
Cone {
apex: [f32; 3],
axis: [f32; 3],
half_angle: f32,
},
Sphere {
center: [f32; 3],
radius: f32,
},
Torus {
center: [f32; 3],
axis: [f32; 3],
major_radius: f32,
minor_radius: f32,
},
Other,
}Expand description
The kind and placement of a kernel face’s surface, in the mesh’s frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plane
A plane through origin, with the face’s outward normal.
Cylinder
A circular cylinder about the line through origin along axis.
Cone
A circular cone about the line through apex along axis, its
wall half_angle (radians, positive) off the axis.
Sphere
A sphere.
Torus
A torus about the line through center along axis: its tube’s
centre major_radius from the axis, the tube minor_radius round.
Other
Any other surface: a spline, a sweep.
Implementations§
Trait Implementations§
Source§impl Clone for FaceSurface
impl Clone for FaceSurface
impl Copy for FaceSurface
Source§impl Debug for FaceSurface
impl Debug for FaceSurface
Source§impl Default for FaceSurface
impl Default for FaceSurface
Source§impl<'de> Deserialize<'de> for FaceSurface
impl<'de> Deserialize<'de> for FaceSurface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FaceSurface
impl PartialEq for FaceSurface
Source§impl Serialize for FaceSurface
impl Serialize for FaceSurface
impl StructuralPartialEq for FaceSurface
Auto Trait Implementations§
impl Freeze for FaceSurface
impl RefUnwindSafe for FaceSurface
impl Send for FaceSurface
impl Sync for FaceSurface
impl Unpin for FaceSurface
impl UnsafeUnpin for FaceSurface
impl UnwindSafe for FaceSurface
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