pub enum SweptTool {
Revolved {
axis_origin: Vec3,
axis_direction: Vec3,
radial: Vec3,
meridian: Vec<OutlinePiece>,
},
Prism {
origin: Vec3,
normal: Vec3,
x_axis: Vec3,
outline: Vec<OutlinePiece>,
from: f64,
to: f64,
},
}Expand description
The moving tool.
Variants§
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.
Prism
A prism: the region outline bounds in the plane through origin
spanned by x_axis and normal × x_axis, extended along normal from
from to to.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SweptTool
impl Freeze for SweptTool
impl Move for SweptTool
impl RefUnwindSafe for SweptTool
impl Send for SweptTool
impl Sync for SweptTool
impl Unpin for SweptTool
impl UnsafeUnpin for SweptTool
impl UnwindSafe for SweptTool
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