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,
},
Bar {
origin: Vec3,
normal: Vec3,
section: Vec<NurbsCurve>,
from: f64,
to: f64,
draft: 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.
Bar
A bar: the region section bounds (curves end to end round a closed
loop, lying in the plane through origin square to normal), extended
along normal from height from to to. Its sides lean inward by
draft radians: at height h the section is the given one moved
inward by h·tan(draft) (outward where that is negative). Swept by a
screw about the clip’s axis, whichever way the bar points.