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 SolidTool
impl Move for SolidTool
impl RefUnwindSafe for SolidTool
impl Send for SolidTool
impl Sync for SolidTool
impl Unpin for SolidTool
impl UnsafeUnpin for SolidTool
impl UnwindSafe for SolidTool
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