pub struct Prism {
pub rings: Vec<Vec<DVec2>>,
pub bottom: f64,
pub top: f64,
}Expand description
A prism: a closed planar cross-section swept along +z.
Deliberately explicit rather than recovered from an ExactBRep. Reading a
prism back out of a general B-rep is its own inference problem, and
getting it wrong would silently mis-identify the operand.
Fields§
§rings: Vec<Vec<DVec2>>Outer boundary, counter-clockwise; further rings are holes.
bottom: f64Base height along z.
top: f64Top height along z.
Trait Implementations§
impl StructuralPartialEq for Prism
Auto Trait Implementations§
impl Freeze for Prism
impl RefUnwindSafe for Prism
impl Send for Prism
impl Sync for Prism
impl Unpin for Prism
impl UnwindSafe for Prism
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
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