#!/usr/bin/python

from Class1 import Class1
from Class2 import Class2
from Cypres import Cypres
from Sapin import Sapin
from CostumPrint import *
from random import randint

def randTree(X=0,Y=0,Z=0,S=1,Type=-1):
    if Type == -1:
        Type = randint(0,3)

    if typ == 0:
        my_tree = Class1(X,Y,Z,S)
    elif typ == 1:
        my_tree = Class2(X,Y,Z,S)
    elif typ == 2:
        my_tree = Cypres(X,Y,Z,S)
    elif typ == 3:
        my_tree = Sapin(X,Y,Z,S)

    return my_tree.toString()

if __name__ == '__main__':
    typ = randint(0,3)

    if typ == 0:
        my_tree = Class1()
    elif typ == 1:
        my_tree = Class2()
    elif typ == 2:
        my_tree = Cypres()
    elif typ == 3:
        my_tree = Sapin()

    mon_fic = open('Base.wrl','w')
    mon_fic.write("#VRML V2.0 utf8\n\n")
    mon_fic.write("WorldInfo {\n")
    mon_fic.write("info [Auteur: Alexis CARE]\n")
    mon_fic.write("title \"arbre creer pseudo-aleatoirement\"\n")
    mon_fic.write("}\n")
    mon_fic.write(my_tree.toString())
    mon_fic.close()

8568a471c9d952fda1964899a40a0fec08d579e6
<mask token>

<mask token>


def randTree(X=0, Y=0, Z=0, S=1, Type=-1):
    if Type == -1:
        Type = randint(0, 3)
    if typ == 0:
        my_tree = Class1(X, Y, Z, S)
    elif typ == 1:
        my_tree = Class2(X, Y, Z, S)
    elif typ == 2:
        my_tree = Cypres(X, Y, Z, S)
    elif typ == 3:
        my_tree = Sapin(X, Y, Z, S)
    return my_tree.toString()


<mask token>

<mask token>


def randTree(X=0, Y=0, Z=0, S=1, Type=-1):
    if Type == -1:
        Type = randint(0, 3)
    if typ == 0:
        my_tree = Class1(X, Y, Z, S)
    elif typ == 1:
        my_tree = Class2(X, Y, Z, S)
    elif typ == 2:
        my_tree = Cypres(X, Y, Z, S)
    elif typ == 3:
        my_tree = Sapin(X, Y, Z, S)
    return my_tree.toString()


if __name__ == '__main__':
    typ = randint(0, 3)
    if typ == 0:
        my_tree = Class1()
    elif typ == 1:
        my_tree = Class2()
    elif typ == 2:
        my_tree = Cypres()
    elif typ == 3:
        my_tree = Sapin()
    mon_fic = open('Base.wrl', 'w')
    mon_fic.write('#VRML V2.0 utf8\n\n')
    mon_fic.write('WorldInfo {\n')
    mon_fic.write('info [Auteur: Alexis CARE]\n')
    mon_fic.write('title "arbre creer pseudo-aleatoirement"\n')
    mon_fic.write('}\n')
    mon_fic.write(my_tree.toString())
    mon_fic.close()

from Class1 import Class1
from Class2 import Class2
from Cypres import Cypres
from Sapin import Sapin
from CostumPrint import *
from random import randint


def randTree(X=0, Y=0, Z=0, S=1, Type=-1):
    if Type == -1:
        Type = randint(0, 3)
    if typ == 0:
        my_tree = Class1(X, Y, Z, S)
    elif typ == 1:
        my_tree = Class2(X, Y, Z, S)
    elif typ == 2:
        my_tree = Cypres(X, Y, Z, S)
    elif typ == 3:
        my_tree = Sapin(X, Y, Z, S)
    return my_tree.toString()


if __name__ == '__main__':
    typ = randint(0, 3)
    if typ == 0:
        my_tree = Class1()
    elif typ == 1:
        my_tree = Class2()
    elif typ == 2:
        my_tree = Cypres()
    elif typ == 3:
        my_tree = Sapin()
    mon_fic = open('Base.wrl', 'w')
    mon_fic.write('#VRML V2.0 utf8\n\n')
    mon_fic.write('WorldInfo {\n')
    mon_fic.write('info [Auteur: Alexis CARE]\n')
    mon_fic.write('title "arbre creer pseudo-aleatoirement"\n')
    mon_fic.write('}\n')
    mon_fic.write(my_tree.toString())
    mon_fic.close()

#!/usr/bin/python

from Class1 import Class1
from Class2 import Class2
from Cypres import Cypres
from Sapin import Sapin
from CostumPrint import *
from random import randint

def randTree(X=0,Y=0,Z=0,S=1,Type=-1):
    if Type == -1:
        Type = randint(0,3)

    if typ == 0:
        my_tree = Class1(X,Y,Z,S)
    elif typ == 1:
        my_tree = Class2(X,Y,Z,S)
    elif typ == 2:
        my_tree = Cypres(X,Y,Z,S)
    elif typ == 3:
        my_tree = Sapin(X,Y,Z,S)

    return my_tree.toString()

if __name__ == '__main__':
    typ = randint(0,3)

    if typ == 0:
        my_tree = Class1()
    elif typ == 1:
        my_tree = Class2()
    elif typ == 2:
        my_tree = Cypres()
    elif typ == 3:
        my_tree = Sapin()

    mon_fic = open('Base.wrl','w')
    mon_fic.write("#VRML V2.0 utf8\n\n")
    mon_fic.write("WorldInfo {\n")
    mon_fic.write("info [Auteur: Alexis CARE]\n")
    mon_fic.write("title \"arbre creer pseudo-aleatoirement\"\n")
    mon_fic.write("}\n")
    mon_fic.write(my_tree.toString())
    mon_fic.close()
