Lower render resolution to 50.
This commit is contained in:
parent
848d503fc9
commit
cfb558e540
11 changed files with 27 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
"""
|
||||
First pass shape generation.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import random
|
||||
|
@ -10,17 +14,30 @@ if __name__ == "__main__":
|
|||
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)
|
||||
|
||||
# Global bounding box
|
||||
bbox_xmax = 2.2
|
||||
bbox_ymax = 2.5
|
||||
|
||||
# Minimum feature sizes
|
||||
feature_xmin = 0.4
|
||||
feature_ymin = 1.0
|
||||
|
||||
height = 1.0 + random.random()*1.5
|
||||
radius = 0.2 + random.random()*1.0
|
||||
color = [0.1, 0.1, 0.1]
|
||||
|
||||
product_gen.generate_product.generate(shape, height, radius, color, output)
|
||||
height, radius, color = product_gen.generate_product.generate(shape,
|
||||
height,
|
||||
radius,
|
||||
color,
|
||||
output)
|
||||
|
||||
shape_parameters = {"shape": shape,
|
||||
"height": height,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue