spider anatomy (start!!!!) shenting wang

IMG_1336
1

import rhinoscriptsyntax as rs

def drawBody():
p1 = -1.29,6.79,0
p2 = -1.50,7.23,0
p3 = -1.79,6.29,0
p4 = -2.08,6.84,0
rs.AddLine(p1,p2)
rs.AddLine(p3,p4)
rs.AddLine(p2,p4)

p5 = -1.59,7.17,0
p6 = -2.21,10.66,0
p7 = -2.06,8.89,0
p8 = -2.00,6.89,0
p9 = -2.63,10.67,0
p10 = -2.48,8.75,0
l1 = rs.AddArc3Pt(p5,p6,p7)
l2 = rs.AddArc3Pt(p8,p9,p10)
l3 = rs.AddLine(p6,p9)

p11 = -2.28,10.66,0
p12 = -2.05,13.44,0
p13 = -2.58,10.67,0
p14 = -2.22,13.46,0
l4 = rs.AddLine(p11,p12)
l5 = rs.AddLine(p13,p14)
l6 = rs.AddLine(p14,p12)

p15 = -1.62,15.43,0
p16 = -2.07,13.44,0
p17 = -1.86,14.44,0
p18 = -2.20,13.46,0
p19 = -1.95,14.46,0
l7 = rs.AddArc3Pt(p15,p16,p17)
l8 = rs.AddArc3Pt(p18,p15,p19)

s1 = -2.05,5.92,0
s2 = -2.79,6.38,0
s3 = -2.40,5.20,0
s4 = -3.15,5.63,0
ls1 = rs.AddLine(s1,s2)
ls2 = rs.AddLine(s3,s4)
ls3 = rs.AddLine(s2,s4)

s5 = -2.84,6.27,0
s6 = -6.26,9.00,0
s7 = -4.42,7.27,0
s8 = -3.08,5.78,0
s9 = -6.68,8.70,0
s10 = -5.01,7.08,0
ls4 = rs.AddArc3Pt(s5,s6,s7)
ls5 = rs.AddArc3Pt(s8,s9,s10)
ls6 = rs.AddLine(s6,s9)

s11 = -6.30,8.97,0
s12 = -8.16,12.57,0
s13 = -7.37,10.70,0
s14 = -6.62,8.75,0
s15 = -8.42,12.48,0
s16 = -7.65,10.55,0
ls7 = rs.AddArc3Pt(s11,s12,s13)
ls8 = rs.AddArc3Pt(s14,s15,s16)
ls9 = rs.AddLine(s12,s15)

s17 = -8.59,14.95,0
s18 = -8.20,12.56,0
s19 = -8.37,12.50,0
s20 = -8.57,13.72,0
ls10 = rs.AddLine(s17,s18)
ls11 = rs.AddArc3Pt(s17,s19,s20)

m1 = -2.54,4.70,0
m2 = -3.52,4.71,0
m3 = -3.03,4.73,0
m4 = -2.60,3.87,0
m5 = -3.44,3.79,0
m6 = -3.03,3.85,0
lm1 = rs.AddArc3Pt(m1,m2,m3)
lm2 = rs.AddArc3Pt(m4,m5,m6)
lm3 = rs.AddLine(m2,m5)

m7 = -3.51,4.60,0
m8 = -9.10,1.72,0
m9 = -6.42,3.40,0
m10 = -3.45,3.91,0
m11 = -8.62,1.27,0
m12 = -6.11,2.73,0
lm4 = rs.AddArc3Pt(m7,m8,m9)
lm5 = rs.AddArc3Pt(m10,m11,m12)
lm6 = rs.AddLine(m8,m11)

m13 = -9.00,1.63,0
m14 = -12.46,-1.81,0
m15 = -10.83,0.01,0
m16 = -8.69,1.34,0
m17 = -12.09,-2.06,0
m18 = -10.45,-0.30,0
lm7 = rs.AddArc3Pt(m13,m14,m15)
lm8 = rs.AddArc3Pt(m16,m17,m18)
lm9 = rs.AddLine(m14,m17)

m19 = -12.42,-1.84,0
m20 = -13.37,-4.97,0
m21 = -13.01,-3.37,0
m22 = -13.37,-4.97,0
m23 = -12.14,-2.03,0
m24 = -12.83,-3.47,0
lm10 = rs.AddArc3Pt(m19,m20,m21)
lm11 = rs.AddArc3Pt(m22,m23,m24)

output1 = p1,p5
return output1

drawBody()

def drawBrain(input1):
x = input1[0]
y = input1[1]
z = input1[2]

n1 = x,y,z
n2 = -3.58,2.73,0
n3 = -3.04,3.16,0
n4 = -2.29,2.53,0
n5 = -3.07,1.92,0
n6 = -2.70,2.26,0
ln1 = rs.AddArc3Pt(n1,n2,n3)
ln2 = rs.AddArc3Pt(n4,n5,n6)
ln3 = rs.AddLine(n2,n5)

n7 = -3.54,2.67,0
n8 = -6.62,-3.34,0
n9 = -5.41,-0.17,0
n10 = -3.12,1.99,0
n11 = -6.05,-3.52,0
n12 = -4.86,-0.61,0
ln4 = rs.AddArc3Pt(n7,n8,n9)
ln5 = rs.AddArc3Pt(n10,n11,n12)
ln6 = rs.AddLine(n8,n11)

n13 = -6.56,-3.36,0
n14 = -7.10,-7.74,0
n15 = -7.00,-5.53,0
n16 = -6.15,-3.49,0
n17 = -6.68,-7.71,0
n18 = -6.50,-5.59,0
ln7 = rs.AddArc3Pt(n13,n14,n15)
ln8 = rs.AddArc3Pt(n16,n17,n18)
ln9 = rs.AddLine(n14,n17)

n19 = -7.02,-7.74,0
n20 = -6.32,-10.06,0
n21 = -6.76,-8.92,0
n22 = -6.75,-7.72,0
ln10 = rs.AddArc3Pt(n19,n20,n21)
ln11 = rs.AddLine(n20,n22)

drawBrain()

def drawHeart():
    pass
drawHeart()
def drawStomach():
    pass
drawStomach()
def drawWebSystem():
    pass
drawWebSystem()
def drawLegs():
    pass
drawLegs()

def drawSpiderAnatomy ():
    drawBody()
op1 = drawBody()
    drawBrain(op1)
    drawHeart()
    drawStomach()
    drawWebSystem()
    drawLegs()
drawSpiderAnatomy()

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