Skip to main content

revolve_at_oriented

Function revolve_at_oriented 

Source
pub fn revolve_at_oriented(
    model: &mut NamedModel,
    namer: &Namer,
    solid: &str,
    profile: &Profile,
    axes: &CoordinateSystem,
) -> GeopResult<SolidId>
Expand description

Revolves profile a full turn around axes.w() into a solid named solid — the way the basic shapes are built: profile runs “top-down”, walked from its first point to its last the region it bounds together with the axis lies on its right (e.g. (0, h) -> (r, h) -> (r, 0) -> (0, 0) for a cylinder). An open chain starts and ends on the axis, and every point of it there is a pole; a closed loop stays clear of the axis and sweeps a ring.