Evaluates a curve at a parameter.
rhinoscriptsyntax.EvaluateCurve (curve_id, t, index=-1)
rhinoscript.curve.EvaluateCurve (curve_id, t, index=-1)
curve_id |
Required. String or Guid. The object's identifier. |
t |
Required. Number. The parameter to evaluate. |
index |
Optional. Number. If curve_id identifies a polycurve object, then index identifies the curve segment of the polycurve to query. |
Point3d |
A 3-D point if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a curve")
if rs.IsCurve(obj):
domain = rs.CurveDomain(obj)
t = domain[1]/2.0
point = rs.EvaluateCurve(obj, t)
rs.AddPoint( point )