02.21.16 – Kalil

without code.PNG

import rhinoscriptsyntax as rs

def AddStem():
ptA=(5.58,3.37,0)
ptB=(4.57,3.37,0)
ptC=(4.68,4.44,0)
ptD=(4.74,6.24,0)
ptE=(4.81,6.51,0)
ptF=(4.97,8.20,0)
ptG=(5.29,10.10,0)
ptH=(5.39,10.14,0)
points=(ptA,ptB,ptC,ptD,ptE,ptF,ptG,ptH,ptA)
leftoutline=rs.AddPolyline(points)
axis=rs.AddLine(ptA,ptH)
rs.AddRevSrf(leftoutline,axis)
def AddBranches():
import rhinoscriptsyntax as rs
pt1=(6.45,4.29,0)
pt2=(6.79,4.25,0)
pt3=(7.31,4.32,0)
pt4=(8.01,4.64,0)
pt5=(8.59,4.89,0)
pt6=(9.05,5.10,0)
pt7=(9.28,5.18,0)
pt8=(9.43,5.24,0)
pt9=(9.45,5.15,0)
pt10=(9.25,4.82,0)
pt11=(8.95,4.56,0)
pt12=(8.55,4.24,0)
pt13=(8.13,3.95,0)
pt14=(7.68,3.70,0)
pt15=(7.22,3.55,0)
pt16=(6.95,3.50,0)
pt17=(6.5735,3.52,0)
pt18=(6.45,4.29,0)
points=(pt1,pt2,pt3,pt4,pt5,pt6,pt7,pt8)
points2=(pt8,pt9,pt10,pt11,pt12,pt13,pt14,pt15,pt16,pt17)
crv1=rs.AddPolyline(points)
crv2=rs.AddPolyline(points2)
center=(6.512,3.905,0)
second=(6.45,4.29,0)
third=(6.512,3.905,.25)
ell1=rs.AddEllipse3Pt(center,second,third)
center=(7.895,4.215,0)
second=(7.66,4.48,0)
third=(7.895,4.215,0.15)
ell2=rs.AddEllipse3Pt(center,second,third)
center=(9.44,5.20,0)
second=(9.45,5.15,0)
third=(9.44,5.20,0.05)
ell3=rs.AddEllipse3Pt(center,second,third)
center=(7.25,3.955,0)
second=(7.05,4.285,0)
third=(7.25,3.955,.20)
ell4=rs.AddEllipse3Pt(center,second,third)
center=(8.77,4.725,0)
second=(8.59,4.89,0)
third=(8.77,4.725,.15)
ell5=rs.AddEllipse3Pt(center,second,third)
shapes=ell1,ell4,ell2,ell5,ell3
rails=crv1,crv2
rs.AddSweep2(rails, shapes)
AddStem()
AddBranches()

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