pub struct ClipPlane {
pub point: [f64; 3],
pub normal: [f64; 3],
}Expand description
The half-space a SECTION placement draws: everything with
(p \u{2212} point) \u{00B7} normal >= 0 is KEPT, and normal is the direction the
section camera looks.
Because the camera looks ALONG the normal, the cutting plane is a plane of CONSTANT view depth — and the plane passes through the camera’s target, so that depth is exactly zero. Everything that follows leans on it: the pass keeps what is at or beyond depth zero, the cut region is a cap at one depth, and the hatch is a plain two-dimensional fill. A section view is defined as the one that looks straight down its own cutting plane’s normal.
Fields§
§point: [f64; 3]§normal: [f64; 3]Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClipPlane
impl RefUnwindSafe for ClipPlane
impl Send for ClipPlane
impl Sync for ClipPlane
impl Unpin for ClipPlane
impl UnsafeUnpin for ClipPlane
impl UnwindSafe for ClipPlane
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more