pub struct ShadowRequest {
pub plane: ProfilePlane,
pub play: f64,
pub tolerance: f64,
pub round_below_deg: f64,
pub fill_below: f64,
}Expand description
The shadow a mesh casts on a plane, and an outline fitted around it.
Fields§
§plane: ProfilePlaneThe plane, in the mesh’s frame; the answer’s points are along its
x_axis and y_axis from its origin.
play: f64The outline’s least clearance from the shadow, mm; negative inside it, a press fit.
tolerance: f64Half the outline’s band: every point of it lies between play and
play + 2 tolerance outside the shadow.
round_below_deg: f64Corners turning less than this, degrees, take the largest tangent arc that fits the band.
fill_below: f64Holes and notches no wider across than this, mm, are filled before the outline is fitted (its inner corners rounded to half of it); 0 fills nothing.
Trait Implementations§
Source§impl Clone for ShadowRequest
impl Clone for ShadowRequest
Source§impl Debug for ShadowRequest
impl Debug for ShadowRequest
Source§impl<'de> Deserialize<'de> for ShadowRequest
impl<'de> Deserialize<'de> for ShadowRequest
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 ShadowRequest
impl PartialEq for ShadowRequest
Source§impl Serialize for ShadowRequest
impl Serialize for ShadowRequest
impl StructuralPartialEq for ShadowRequest
Auto Trait Implementations§
impl Forget for ShadowRequest
impl Freeze for ShadowRequest
impl RefUnwindSafe for ShadowRequest
impl Send for ShadowRequest
impl Sync for ShadowRequest
impl Unpin for ShadowRequest
impl UnsafeUnpin for ShadowRequest
impl UnwindSafe for ShadowRequest
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