Returns the plane at a parameter of a curve. The plane is based on the tangent and curvature vectors at a parameter.
rhinoscriptsyntax.CurveFrame (curve_id, parameter, segment_index=-1)
rhinoscript.curve.CurveFrame (curve_id, parameter, segment_index=-1)
curve_id |
Required. String or Guid. The object's identifier. |
parameter |
Required. Number. The parameter to evaluate. |
Plane |
The plane at the specified parameter if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.GetCurveObject("Select a curve")
if curve:
plane = rs.CurveFrame(curve[0], curve[4])
rs.AddPlaneSurface(plane, 5.0, 3.0)