示例#1
0
文件: x3dtoyz.py 项目: Dzess/ALFIRT
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()
示例#2
0
文件: povtoyz.py 项目: Dzess/ALFIRT
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()