Fachini_makebody3d

dragonfly


</pre>
<pre>import rhinoscriptsyntax as rs</pre>
#Author: Stefani Fachini
#Date: Feb22/2106
#Purpose: practice
#Imput parameters: bodyshape
#Output parameters: yes
def make3dbody():
p0 = (5.0, 10, 0)
p1 = (5.0, 0, 0)
pitch = (0.5)
turns = 20
radius0 = 1
radius1 = 1

points = (p0,p1)
rs.AddCurve(points, degree=3)
rs.AddSpiral(p0, p1, pitch,turns, radius0, radius1=None)

curve = rs.GetObject("curve", rs.filter.curve, True)
if curve:
domain = rs.CurveDomain(curve)
rs.AddPipe(curve, 0, 0.5)

make3dbody()

&nbsp;

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