From 4267a8a384bbbf1e8bf0a2b8c77a0d6fb50a9e39 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 9 Nov 2022 10:24:23 -0300 Subject: [PATCH] Modelo de canilla para la cocina --- canilla/canilla.py | 37 + canilla/handle.stl | 3838 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 3875 insertions(+) create mode 100644 canilla/canilla.py create mode 100644 canilla/handle.stl diff --git a/canilla/canilla.py b/canilla/canilla.py new file mode 100644 index 0000000..ac46a3e --- /dev/null +++ b/canilla/canilla.py @@ -0,0 +1,37 @@ +import cadquery2 as cq +from cadquery2 import exporters + + +# The hole for the "peg" where this goes +peg_front = 9.5 +peg_side = 9 +peg_height = 12 + +# General size of the handle +width = 20 +length = 70 +height = 16 + +# General shape of the handle seen from above + +handle_shape_top = cq.Sketch().trapezoid(width, length, 85).vertices().fillet(3) +hole_shape = cq.Sketch().trapezoid(peg_front, peg_side, 90) +bottom_cutout = cq.Sketch().trapezoid(width, length - width, 90) + +handle = ( + cq.Workplane("XY") + .placeSketch(handle_shape_top) + .extrude(height) + .faces("