Quantcast
Viewing all articles
Browse latest Browse all 5815

How to change start point of closed curve

@xiix.xoox wrote:

I want to change start point of curve by rhino python but not. Please help me solution
I try make code

import rhinoscriptsyntax as rs
#Get Curve
cur=rs.GetObject("Select Cur:",4)
sp=rs.CurveStartPoint(cur)
rs.AddPoint(sp)
point =rs.GetPointOnCurve(cur)
point =rs.coerce3dpoint(point)
cur=rs.coercecurve(cur,-1,True)
cur.SetStartPoint(point)
#cur.SetStartPoint(point)
sp=rs.CurveStartPoint(cur)
rs.AddPoint(sp)

Posts: 6

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 5815

Trending Articles