20140219.1 two function

</pre>
#1
def makeinitialform01():
 something=1
 x=something
 print x
 return x

def recursion01(initialform):
 initialform=makeinitialform01()
 recursion01(initialform)

#2
import rhinoscriptsyntax as rs

def makeinitialform02():
 pt1=(0,0,0)
 pt2=(100,100,100)
 points=[pt1,pt2]
 id=rs.AddCurve(points)
 return id

def recursion02(input):
 length=rs.CurveLength(id)
 if length>50:
 print length
 else:
 print "end"

&nbsp;
<pre>

 

About these ads
This entry was posted in Assignments. Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s