Initial commit.
This commit is contained in:
parent
68d9a17dd1
commit
29ffa13092
17 changed files with 224546 additions and 0 deletions
33819
test/base.stl
Normal file
33819
test/base.stl
Normal file
File diff suppressed because it is too large
Load diff
15171
test/chord.stl
Normal file
15171
test/chord.stl
Normal file
File diff suppressed because it is too large
Load diff
BIN
test/lamp.png
Normal file
BIN
test/lamp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
42093
test/lamp.stl
Normal file
42093
test/lamp.stl
Normal file
File diff suppressed because it is too large
Load diff
42107
test/shade.stl
Normal file
42107
test/shade.stl
Normal file
File diff suppressed because it is too large
Load diff
31
test/test_generate_lamp.py
Normal file
31
test/test_generate_lamp.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
import os
|
||||
import product_gen.generate_lamp
|
||||
import product_gen.render_lamp
|
||||
|
||||
height = 150.0
|
||||
radius = 100.0
|
||||
thickness = 3.0
|
||||
shade = product_gen.generate_lamp.generate_shade(height, radius, thickness)
|
||||
work_dir = os.getcwd()
|
||||
shade.exportStl(work_dir + "/shade.stl")
|
||||
|
||||
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",
|
||||
work_dir + "/base.stl",
|
||||
work_dir + "/chord.stl",
|
||||
work_dir + "/lamp.png",
|
||||
color = [25.0, 128.0, 132.0])
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue