def METHOD_NAME(cylinder):
    """Convert a Rhino cylinder to a COMPAS cylinder.
    Parameters
    ----------
    cylinder: :rhino:`Rhino.Geometry.Cylinder`
    Returns
    -------
    :class:`~compas.geometry.Cylinder`
    """
    plane = plane_to_compas(cylinder.BasePlane)
    height = cylinder.TotalHeight
    plane.point += plane.normal * (0.5 * height)
    return Cylinder(Circle(plane, cylinder.Radius), height)