pub enum SweepKind {
Extrude {
termination: ExtrudeTermination,
second_side: Option<ExtrudeTermination>,
symmetric: bool,
reversed: bool,
taper_deg: f64,
direction: Option<[f64; 3]>,
},
Revolve {
axis_origin: [f64; 2],
axis_dir: [f64; 2],
angle_deg: f64,
second_angle_deg: Option<f64>,
midplane: bool,
reversed: bool,
termination: RevolveTermination,
},
Helix {
axis_origin: [f64; 2],
axis_dir: [f64; 2],
pitch: f64,
height: f64,
left_handed: bool,
cone_angle_deg: f64,
reversed: bool,
turns: Option<f64>,
growth: Option<f64>,
},
HelixNormal {
axis_origin: [f64; 2],
pitch: f64,
height: f64,
left_handed: bool,
cone_angle_deg: f64,
reversed: bool,
turns: Option<f64>,
growth: Option<f64>,
},
}Expand description
How a profile is swept into a solid.
Variants§
Extrude
Linear extrusion along plane.normal (or direction when set).
Fields
termination: ExtrudeTerminationsecond_side: Option<ExtrudeTermination>Independent termination for the opposite side of the sketch plane
(two-sided extrusion). None extrudes one side only.
Revolve
Revolution about an axis lying IN the sketch plane, given in sketch
2D coordinates (point + direction). angle_deg in (0, 360].
Fields
termination: RevolveTerminationWhere the turn stops; anything but Angle takes the angle from
what the profile meets and leaves the angles above unused.
Helix
Sweep the profile along a helix whose axis lies in the sketch plane. A cone angle moves every point away from the axis by tan(angle) of every pitch it climbs.
Fields
HelixNormal
Sweep the profile along a helix whose axis runs square to the sketch
plane through axis_origin (sketch 2D coordinates): every point of
the profile climbs its own helix about it, the profile staying
level. The rest reads as for Helix.