as the picture:
as the picture:
Last edited by Carcassi; 11-01-2012 at 10:02 AM.
the points and the circle ,i wanna find the closest points on the circle
at line 9: int(pst[i]) is problem, pst is number not an array like pts. and there is no reason to use int() function.
Python Code:
import rhinoscriptsyntax as rsa = rs.GetObject("Curve", 4)pts = rs.GetPoints(True, False, "Points")for pt in pts:t = rs.CurveClosestPoint(a, pt)pts = rs.EvaluateCurve(a, t)print(pts)rs.AddPoint(pts)
Last edited by raul; 11-01-2012 at 10:28 AM.
thanks..........