From 8f6c7ff9228f413f526309f106411bcf88619ae4 Mon Sep 17 00:00:00 2001 From: wes Date: Fri, 26 Apr 2024 17:20:23 -0400 Subject: [PATCH] add gandalf rune --- gandalf.svg | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ planter.py | 13 ++++++------ 2 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 gandalf.svg 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)