Esempio n. 1
0
def makecoupler():

    thecube = Cube()
    thecube.ecolor = "Green"
    thecube.vcolor = "Silver"
    thecube.showfaces = False

    thecoupler = Coupler()
    thecoupler.ecolor = "Orange"
    thecoupler.vcolor = "Silver"
    thecoupler.fcolor = "Wood"
    
    output = Scene('test0.x3d')
    output.objects.append(thecube)
    output.objects.append(thecoupler)
    output.write()
Esempio n. 2
0
def makemite():
    thecube = Cube()
    thecube.showfaces = False
    thecube.edge_texture = "T_Brass_3A"

    thecoupler = Coupler()
    thecoupler.showfaces = False
    thecoupler.edge_texture = "T_Chrome_2A"

    themite = Mite()
    themite.face_texture = "T_Stone18"
    themite.edge_texture = "T_Chrome_2A"

    output = Scene("test1.pov")
    output.settings["camy"] = 2.5

    output.objects.append(thecube)
    output.objects.append(thecoupler)
    output.objects.append(themite)
    output.write()