Post_03.18.16_Sanchez

class.PNG

 


import rhinoscriptsyntax as rs

def makeFloor():
pass
def makeWall():
pass
def makeRoof():
pass
def makeHouse():
makeFloor()
makeWall()
makeRoof()

makeHouse()


class House():
pass
class Floor():
def __init__(self):
self.makeFloor()
def makeFloor(self):
p0 = 0,0,0
p1 = 10,0,0
p2 = 10,5,0
p3 = 0,5,0
p4 = 0,0,1
p5 = 10,0,1
p6 = 10,5,1
p7 = 0,5,1
corners = p0,p1,p2,p3,p4,p5,p6,p7
rs.AddBox(corners)

f = Floor()
#f.makeFloor()

class Wall():
def __init__(self):
self.startPoint = 0,0,0
self.makeWall()
def makeWall(self):
p0 = 0,0,1
p1 = 10,0,1
p2 = 10,0.5,1
p3 = 0,0.5,1
p4 = 0,0,10
p5 = 10,0,10
p6 = 10,0.5,10
p7 = 0,0.5,10
corners = p0,p1,p2,p3,p4,p5,p6,p7
rs.AddBox(corners)
w = Wall()



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