Пример #1
0
    def from_selection(cls):
        """Create a ``RhinoCurve`` instance from a selected Rhino curve.

        Returns
        -------
        RhinoCurve
            A convenience wrapper around the Rhino curve object.
        """
        guid = compas_rhino.select_curve()
        return cls.from_guid(guid)
Пример #2
0
    def from_selection(cls):
        """Construct a curve wrapper by selecting an existing Rhino curve object.

        Parameters
        ----------
        None

        Returns
        -------
        :class:`compas_rhino.geometry.RhinoCurve`
            The wrapped curve.
        """
        guid = compas_rhino.select_curve()
        return cls.from_guid(guid)
Пример #3
0
 def select_vertices_on_curve(diagram):
     rs.UnselectAllObjects()
     guid = compas_rhino.select_curve()
     keys = DiagramHelper.identify_vertices_on_curve(diagram, guid)
     DiagramHelper.highlight_vertices(diagram, keys)
     return keys