chiark / gitweb /
2c8534f467034ad20b817ddbddeaee602ff44aec
[reprap-play.git] / sprinkler-spike-receptacle.scad
1 // -*- C -*-
2
3 main_height = 95;
4
5 spike_top_width = 21.04;
6
7 spike_botpos_height = 9.5;
8 spike_botpos_width = 11.68;
9
10 topwall_width = 1.5;
11
12 module NegativePlan(){
13   x4z =
14     (spike_top_width - spike_botpos_width) /
15     (main_height - spike_botpos_height);
16
17   x0 = (spike_botpos_width - x4z * spike_botpos_height)/2;
18   x1 =  spike_top_width/2;
19   z1 = main_height;
20
21   polygon([[ x0, -5],
22            [ x0, 0],
23            [ x1, z1],
24            [-x1, z1],
25            [-x0, 0],
26            [-x0, -5]]);
27 }
28
29 module PositivePlan(){
30   w = spike_top_width + topwall_width*2;
31   translate([ -w/2, 0 ])
32     square([ w, main_height ]);
33 }
34
35 PositivePlan();
36 //NegativePlan();