Feb 29 _Yin Xu

import rhinoscriptsyntax as rs

def endCondition(crvID):
lenth = rs.CurveLength(crvID)
if lenth > 10:
return True
return False

def branch(crvID):
st = rs.CurveStartPoint(crvID)
ed = rs.CurveEndPoint(crvID)
trans = rs.VectorSubtract(ed, st)
newID = rs.CopyObject(crvID, trans)
return newID
def recursive(crvID):
newcrvID = branch(crvID)
cond = endCondition(crvID)
def initial():
st = 0,0,0
ed = 0,8,0
crvID = rs.AddLine(st,ed)
return crvID
def main():
crvID = initial()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s