Fix json float input.
This commit is contained in:
parent
afbacca3f4
commit
57c2414e6b
5 changed files with 30413 additions and 34081 deletions
|
@ -15,8 +15,8 @@ if __name__ == "__main__":
|
||||||
if not os.path.exists(os.getcwd() + "/" + output):
|
if not os.path.exists(os.getcwd() + "/" + output):
|
||||||
os.makedirs(os.getcwd() + "/" + output)
|
os.makedirs(os.getcwd() + "/" + output)
|
||||||
|
|
||||||
height = shape_params["height"]
|
height = float(shape_params["height"])
|
||||||
radius = shape_params["radius"]
|
radius = float(shape_params["radius"])
|
||||||
color = [random.random()*255.0,
|
color = [random.random()*255.0,
|
||||||
random.random()*255.0,
|
random.random()*255.0,
|
||||||
random.random()*255.0]
|
random.random()*255.0]
|
||||||
|
|
|
@ -15,8 +15,8 @@ if __name__ == "__main__":
|
||||||
if not os.path.exists(os.getcwd() + "/" + output):
|
if not os.path.exists(os.getcwd() + "/" + output):
|
||||||
os.makedirs(os.getcwd() + "/" + output)
|
os.makedirs(os.getcwd() + "/" + output)
|
||||||
|
|
||||||
height = shape_params["height"]
|
height = float(shape_params["height"])
|
||||||
radius = shape_params["radius"]
|
radius = float(shape_params["radius"])
|
||||||
color = shape_params["color"]
|
color = shape_params["color"]
|
||||||
product_gen.generate_lamp.generate(shape, height, radius,
|
product_gen.generate_lamp.generate(shape, height, radius,
|
||||||
color, output, is_final=True)
|
color, output, is_final=True)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"color": [18.0, 18.0, 18.0], "shape": "cone", "radius": 77.62212089695586, "height": 114.09765555398143}
|
{"color": [217.20423766974022, 233.50459158117596, 216.9490977511184], "output": "test123", "shape": "cone", "radius": "12.0", "height": "120"}
|
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 19 KiB |
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue