from visual import * # right button mouse drag spins (Mac: option key + mouse) # double button mouse drag zooms (Mac: command key + mouse) ############################################################################## # ## # This stuff makes labeled coordinate axes ## # ## d = 6.0 #adjust length of axes as needed ## r = d*0.008 #thickness of axes ## # ## scene.background=color.white #this makes it easier to see when projected ## scene.x=scene.y=0 ## scene.width=scene.height=800 ## # ## xaxis=cylinder(pos=vector(0,0,0),axis=vector(d,0,0),radius=r) ## yaxis=cylinder(pos=vector(0,0,0),axis=vector(0,d,0),radius=r) ## zaxis=cylinder(pos=vector(0,0,0),axis=vector(0,0,d),radius=r) ## # ## label(pos=xaxis.pos+xaxis.axis,text='x',box=0) ## label(pos=yaxis.pos+yaxis.axis,text='y',box=0) ## label(pos=zaxis.pos+zaxis.axis,text='z',box=0) ## # ## ############################################################################## Table1 = cylinder(pos = vector( -4, -.85 ,1.82 ), axis = vector(0,.035,0), radius = 1.07) Table2 = cylinder(pos = vector(-.05 ,-.87 , 1.85), axis = vector(0,.035,0), radius = 1.07) Table3 = cylinder(pos = vector( 3.66, -.87, 1.81), axis = vector(0,.035,0), radius = 1.07) Table4 = cylinder(pos = vector( -2.14, -.89, 4.2), axis = vector(0,.035,0), radius = 0.76) Table5 = cylinder(pos = vector( 1.55, -.88, 4.625), axis = vector(0,.035,0), radius = 0.76) LectureStand = box(pos = vector(-0.32,-0.66,4.45), length = 1.07, width = 0.92, height = .035)