Skip to main content

revolved_cylinder

Function revolved_cylinder 

Source
pub fn revolved_cylinder<S: Scalar>(
    part: &mut Part<S>,
    name: &str,
    base_center: Vector3<S>,
    radius: S,
    height: S,
) -> GeopResult<SolidId>
Expand description

A capped cylinder of radius and height, with its axis parallel to the z-axis through base_center (the center of its bottom cap — the solid spans z in [base_center.z, base_center.z + height]), as an exact circular cross-section swept via revolve_at.

A thin wrapper around revolved_cylinder_along_axis with axis = Axis::Z, its own historical/default orientation.