#[non_exhaustive]pub struct Pocket {Show 18 fields
pub width_axis: char,
pub long_axis: char,
pub width: f64,
pub length: f64,
pub depth: f64,
pub w_center: Placed<f64>,
pub lo: Placed<f64>,
pub hi: Placed<f64>,
pub d_lo: Placed<f64>,
pub d_hi: Placed<f64>,
pub open_sign: i32,
pub edge_anchored: bool,
pub rectangular_boundary: bool,
pub floor_radius: Option<f64>,
pub floor_fillets: Vec<FloorFillet>,
pub body_key: Option<BodyKey>,
pub end_radius: Option<f64>,
pub corner_radius: Option<f64>,
}Expand description
A bounded blind recess: a slot capped by a floor, so with a depth (d_hi - d_lo) and the
side it opens to along the depth axis (open_sign). edge_anchored marks a corner notch,
located by the two envelope edges it touches.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width_axis: char§long_axis: char§width: f64§length: f64§depth: f64§w_center: Placed<f64>§lo: Placed<f64>§hi: Placed<f64>§d_lo: Placed<f64>§d_hi: Placed<f64>§open_sign: i32§edge_anchored: bool§rectangular_boundary: boolA complete straight rectangular floor and four full-height inward planar walls prove a closed rectangular boundary. False leaves the boundary unclassified; absence of a proved end radius alone never establishes this property.
floor_radius: Option<f64>Uniform radius only when every floor boundary is filleted with this radius.
floor_fillets: Vec<FloorFillet>Individual floor transitions; omitted on legacy sharp-floor records.
body_key: Option<BodyKey>§end_radius: Option<f64>§corner_radius: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pocket
impl<'de> Deserialize<'de> for Pocket
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 Recess for Pocket
impl Recess for Pocket
Source§fn same_opening(&self, other: &Self) -> bool
fn same_opening(&self, other: &Self) -> bool
Whether two readings share their directed opening (slots have no directed opening).
Source§fn same_roles(&self, other: &Self) -> bool
fn same_roles(&self, other: &Self) -> bool
Whether two equal-width readings assign the same physical width, run and opening.
fn width_axis(&self) -> usize
fn long_axis(&self) -> usize
fn width(&self) -> f64
fn w_center(&self) -> f64
fn lo(&self) -> f64
fn hi(&self) -> f64
fn d_lo(&self) -> f64
fn d_hi(&self) -> f64
Source§fn spanned(&self, lo: f64, hi: f64, length: f64) -> Self
fn spanned(&self, lo: f64, hi: f64, length: f64) -> Self
The record with new ends and length (
replace(record, lo=, hi=, length=)).fn set_end_radius(&mut self, radius: f64)
fn set_corner_radius(&mut self, radius: f64)
fn set_body_key(&mut self, key: Option<BodyKey>)
fn edge_anchored(&self) -> bool
fn depth_axis(&self) -> usize
Source§fn region_center(&self) -> V3
fn region_center(&self) -> V3
The mid-point in part coordinates (
_region_center).impl StructuralPartialEq for Pocket
Auto Trait Implementations§
impl Forget for Pocket
impl Freeze for Pocket
impl Move for Pocket
impl RefUnwindSafe for Pocket
impl Send for Pocket
impl Sync for Pocket
impl Unpin for Pocket
impl UnsafeUnpin for Pocket
impl UnwindSafe for Pocket
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