Exemple #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()