@classmethod
def from_object(cls, obj):
    """Construct a curve from an existing Rhino curve object.

        Parameters
        ----------
        obj : Rhino.DocObjects.CurveObject
            The Rhino curve object.

        Returns
        -------
        curve : compas_rhino.geometry.RhinoCurve
            The wrapped curve.
        """
    curve = cls()
    curve.guid = obj.Id
    curve.object = obj
    curve.geometry = obj.Geometry
    return curve
