Switch all generation and rendering to blender.
This commit is contained in:
parent
57c2414e6b
commit
ea74f4c7ab
38 changed files with 248 additions and 385933 deletions
|
@ -7,15 +7,17 @@ from argparse import ArgumentParser
|
|||
|
||||
if __name__ == "__main__":
|
||||
|
||||
shape_params = json.loads(sys.argv[1])
|
||||
argv = sys.argv
|
||||
argv = argv[argv.index("--") + 1:]
|
||||
shape_params = json.loads(argv[0])
|
||||
shape = shape_params['shape']
|
||||
output = shape_params['output']
|
||||
|
||||
if not os.path.exists(os.getcwd() + "/" + output):
|
||||
os.makedirs(os.getcwd() + "/" + output)
|
||||
|
||||
height = 100.0 + random.random()*150.0
|
||||
radius = 20.0 + random.random()*100.0
|
||||
height = 1.0 + random.random()*1.5
|
||||
radius = 0.2 + random.random()*1.0
|
||||
color = [18.0, 18.0, 18.0]
|
||||
|
||||
product_gen.generate_lamp.generate(shape, height, radius, color, output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue