pub enum SolidTool {
Polyhedron {
vertices: Vec<Vec3>,
faces: Vec<Vec<usize>>,
},
Revolved {
axis_origin: Vec3,
axis_direction: Vec3,
radial: Vec3,
meridian: Vec<OutlinePiece>,
},
}Expand description
A tool the whole sweep takes.
Variants§
Polyhedron
A convex polyhedron: its corners, and its faces as loops of corner indices (either winding; outward is found from the centroid).
Revolved
A solid of revolution: the region meridian bounds in the
half-plane spanned by radial (first coordinate, the distance from the
axis, ≥ 0) and axis_direction (second coordinate), turned about the
axis through axis_origin (as crate::SweptTool::Revolved).
Trait Implementations§
Auto Trait Implementations§
impl Forget for SolidTool
impl Freeze for SolidToolwhere
*const u8 is !null: Freeze,
PhantomData<Vec3>: Freeze,
PhantomData<Vec<usize>>: Freeze,
PhantomData<OutlinePiece>: Freeze,
impl Move for SolidTool
impl RefUnwindSafe for SolidTool
impl Send for SolidToolwhere
RawVecInner: Send,
impl Sync for SolidToolwhere
RawVecInner: Sync,
impl Unpin for SolidTool
impl UnsafeUnpin for SolidToolwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Vec3>: UnsafeUnpin,
PhantomData<Vec<usize>>: UnsafeUnpin,
PhantomData<OutlinePiece>: UnsafeUnpin,
impl UnwindSafe for SolidToolwhere
RawVecInner: UnwindSafe,
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