コード例 #1
0
def building_generation():
	from procedural_city_generation.building_generation import main as building_generation_main
	import pickle
	try:
		with open(path+"/outputs/polygons.txt",'r') as f:
			polygons=pickle.loads(f.read())	
		building_generation_main.main(polygons)
	except IOError:
		print "Input could not be located. Try to run the previous program in the chain first."
		return 0
コード例 #2
0
def building_generation():
    import pickle
    try:
        with open(path + "/outputs/polygons.txt", 'r') as f:
            polygons = pickle.loads(f.read())
        building_generation_main.main(polygons)
        from procedural_city_generation.additional_stuff.Singleton import Singleton
        Singleton("building_generation").kill()

    except IOError:
        print "Input could not be located. Try to run the previous program in the chain first."
        return 0
    print donemessage
コード例 #3
0
ファイル: UI.py プロジェクト: tml/procedural_city_generation
def building_generation():
	import pickle
#	try:
	if 1==1:
		with open(path+"/outputs/polygons.txt",'r') as f:
			polygons=pickle.loads(f.read())
		building_generation_main.main(polygons)
		Singleton("building_generation").kill()

#	except IOError:
#		print "Input could not be located. Try to run the previous program in the chain first."
#		return 0
	print donemessage
コード例 #4
0
def building_generation():
	import pickle
	try:
		with open(path+"/outputs/polygons.txt",'r') as f:
			polygons=pickle.loads(f.read())	
		building_generation_main.main(polygons)
		from procedural_city_generation.additional_stuff.Singleton import Singleton
		Singleton("building_generation").kill()

	except IOError:
		print "Input could not be located. Try to run the previous program in the chain first."
		return 0
	print donemessage
コード例 #5
0
def building_generation():
    building_generation_main.main()
    Singleton("building_generation").kill()
    print(donemessage)