From b7816f485ca65d49bb183fd7be752f0f7674fae8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 9 Sep 2017 16:02:30 +0100 Subject: [PATCH] sprinkler-spike-receptacle: wip --- sprinkler-spike-receptacle.scad | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sprinkler-spike-receptacle.scad diff --git a/sprinkler-spike-receptacle.scad b/sprinkler-spike-receptacle.scad new file mode 100644 index 0000000..2c8534f --- /dev/null +++ b/sprinkler-spike-receptacle.scad @@ -0,0 +1,36 @@ +// -*- C -*- + +main_height = 95; + +spike_top_width = 21.04; + +spike_botpos_height = 9.5; +spike_botpos_width = 11.68; + +topwall_width = 1.5; + +module NegativePlan(){ + x4z = + (spike_top_width - spike_botpos_width) / + (main_height - spike_botpos_height); + + x0 = (spike_botpos_width - x4z * spike_botpos_height)/2; + x1 = spike_top_width/2; + z1 = main_height; + + polygon([[ x0, -5], + [ x0, 0], + [ x1, z1], + [-x1, z1], + [-x0, 0], + [-x0, -5]]); +} + +module PositivePlan(){ + w = spike_top_width + topwall_width*2; + translate([ -w/2, 0 ]) + square([ w, main_height ]); +} + +PositivePlan(); +//NegativePlan(); -- 2.30.2