Adjusts the seam, or start/end, point of a closed curve.
rhinoscriptsyntax.CurveSeam (curve_id, parameter)
rhinoscript.curve.CurveSeam (curve_id, parameter)
curve_id |
Required. String or Guid. The object's identifier. |
parameter |
Required. Number. The parameter of the new start/end point. Note, if successful, the resulting curve's domain will start at dblParameter. |
Boolean |
True or False indicating success or failure. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select closed curve", rs.filter.curve)
if rs.IsCurveClosed(obj):
domain = rs.CurveDomain(obj)
parameter = (domain[0] + domain[1])/2.0
rs.CurveSeam( obj, parameter )