can you modify the rs.addpolyline method? i found the method will automaticlly remove duplicate points. then i can not add close polylines anymore. add one more option?
Thanks.
--sheng
can you modify the rs.addpolyline method? i found the method will automaticlly remove duplicate points. then i can not add close polylines anymore. add one more option?
Thanks.
--sheng
slightly i come, slightly i gone.
This seems to be working here - I can create a closed polyline. It will not eliminate duplicate points if they are the first and last points in the list, only elsewhere if they are consecutive in the list.
--Mitchpython Code:
import rhinoscriptsyntax as rspts=[(0,0,0),(1,0,0),(1,1,0),(0,2,0),(-1,1,0),(0,0,0)]rs.AddPolyline(pts)
Thanks Mitch.
now i know why. use tuple in list. not list in list. thanks again!
slightly i come, slightly i gone.