pub fn make_cone(
model: &mut Model,
frame: Frame,
base_radius: f64,
top_radius: f64,
height: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Build a cone or a truncated cone in frame.
base_radius is at the frame’s origin and top_radius at height along
its z. A zero top radius makes a true cone, whose apex is a degenerate
edge and which has no top cap.
§Errors
OgeomError::Construction if the height is
not positive, a radius is negative, both radii are zero, or the two radii
are equal; that last is a cylinder, which is a different surface with its
own type, and admitting it here would ask for a cone whose apex is at
infinity.