diff --git a/gandalf.svg b/gandalf.svg new file mode 100644 index 0000000..286d3da --- /dev/null +++ b/gandalf.svg @@ -0,0 +1,61 @@ + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/planter.py b/planter.py index 39ef286..a69ef55 100644 --- a/planter.py +++ b/planter.py @@ -45,28 +45,29 @@ planter_polygon = result.workplane(offset=-36).makePolygon( result = planter_polygon.vertices().sphere(8, combine="cut") -paths, attributes = svg2paths("/home/deck/cad_files/tree_of_gondor_small.svg") +gondor_paths, gondor_attributes = svg2paths("/home/deck/cad_files/tree_of_gondor_small.svg") +gandalf_paths, gandalf_attributes = svg2paths("/home/deck/cad_files/gandalf.svg") if RENDER_TREES: tree = ( Workplane("YZ") .center(0, 75) - .addSvgPath(paths[0]) + .addSvgPath(gondor_paths[0]) .extrude(-2.0) .translate((95.03, -100, 0)) ) - tree2 = ( + gandalf = ( Workplane("YZ") .center(0, 75) - .addSvgPath(paths[0]) + .addSvgPath(gandalf_paths[0]) .extrude(2.0) - .translate((-95.03, -100, 0)) + .translate((-95.03, -14.5, 85)) ) result = result.cut(tree, clean=False) - result = result.cut(tree2, clean=False) + result = result.cut(gandalf, clean=False) cone = cq.Solid.makeCone(planter_radius, 33, planter_height + 95)