+ Reply to Thread
Results 1 to 4 of 4

Thread: i dont know the problem is??

  1. #1

    i dont know the problem is??

    as the picture:
    Attached Images
    Last edited by Carcassi; 11-01-2012 at 10:02 AM.

  2. #2
    the points and the circle ,i wanna find the closest points on the circle

  3. #3
    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 rs
       
      a = 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.

  4. #4
    thanks..........

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts