pub struct Prism {
pub rings: Vec<Vec<Point2>>,
pub bottom: Scalar,
pub top: Scalar,
}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<Point2>>Outer boundary, counter-clockwise; further rings are holes.
bottom: ScalarBase height along z.
top: ScalarTop 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