Add Dockerfile and modify generator script to change shapes and take a unique file id.

This commit is contained in:
jmsgrogan 2017-10-20 15:52:41 +01:00
parent 29ffa13092
commit c9c98f91dc
18 changed files with 166867 additions and 57 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before After
Before After

View file

@ -13,14 +13,12 @@ height = 20.0
radius = 15.0
thickness = 3.0
base = product_gen.generate_lamp.generate_base(height, radius, thickness)
work_dir = os.getcwd()
base.exportStl(work_dir + "/base.stl")
height = 150.0
radius = 2.0
thickness = 1.0
chord = product_gen.generate_lamp.generate_chord(height, radius, thickness)
work_dir = os.getcwd()
chord.exportStl(work_dir + "/chord.stl")
product_gen.render_lamp.render_lamp(work_dir + "/shade.stl",