pub enum ShapeProbe {
Face {
point: [f64; 3],
normal: [f64; 3],
name: TopoName,
},
Edge {
point: [f64; 3],
direction: [f64; 3],
faces: [TopoName; 2],
along: Option<f64>,
},
Mass,
}Expand description
A question about a solid a reference stands on, named geometrically so it can be asked again of the solid a rebuild makes.
Variants§
Face
The face named name, else the face nearest point (among faces
as near, the one whose outward normal agrees best with normal),
and where on it point falls.
Edge
The edge between faces named faces, else the edge nearest point
that runs along direction there (a zero direction takes the
nearest edge whichever way it runs).
Fields
Mass
The solid’s centre of mass and principal axes of inertia.
Trait Implementations§
Source§impl Clone for ShapeProbe
impl Clone for ShapeProbe
impl Copy for ShapeProbe
Source§impl Debug for ShapeProbe
impl Debug for ShapeProbe
Source§impl<'de> Deserialize<'de> for ShapeProbe
impl<'de> Deserialize<'de> for ShapeProbe
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 ShapeProbe
impl PartialEq for ShapeProbe
Source§impl Serialize for ShapeProbe
impl Serialize for ShapeProbe
impl StructuralPartialEq for ShapeProbe
Auto Trait Implementations§
impl Freeze for ShapeProbe
impl RefUnwindSafe for ShapeProbe
impl Send for ShapeProbe
impl Sync for ShapeProbe
impl Unpin for ShapeProbe
impl UnsafeUnpin for ShapeProbe
impl UnwindSafe for ShapeProbe
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