mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-07 07:56:30 +02:00
Opengrab hole position children now passed diameter.
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
include <../utils/core/core.scad>
|
include <../utils/core/core.scad>
|
||||||
use <../utils/thread.scad>
|
use <../utils/thread.scad>
|
||||||
|
|
||||||
pitch = 33.8;
|
pitch = 33.8 / 2;
|
||||||
width = 40;
|
width = 40;
|
||||||
depth = 18;
|
depth = 18;
|
||||||
magnet = 4.3;
|
magnet = 4.3;
|
||||||
@@ -37,14 +37,16 @@ pole_l = 36;
|
|||||||
poles = 15;
|
poles = 15;
|
||||||
|
|
||||||
module opengrab_hole_positions() //! Position children at the screw positions
|
module opengrab_hole_positions() //! Position children at the screw positions
|
||||||
for(x = [-1, 1], y = [-1, 1])
|
let($d = 3.2)
|
||||||
translate([x * pitch / 2, y * pitch / 2, 0])
|
for($x = [-pitch, pitch], $y = [-pitch, pitch])
|
||||||
children();
|
translate([$x, $y])
|
||||||
|
children();
|
||||||
|
|
||||||
module opengrab_side_hole_positions() //! Position children at the two 4mm hole
|
module opengrab_side_hole_positions() //! Position children at the two 4mm hole
|
||||||
for(side = [-1, 1])
|
let($d = 4, pitch = width / 2 - 3.5)
|
||||||
translate([side * (width / 2 - 3.5), 0])
|
for($x = [-pitch, pitch])
|
||||||
children();
|
translate([$x, 0])
|
||||||
|
children();
|
||||||
|
|
||||||
function opengrab_width() = width; //! Module width
|
function opengrab_width() = width; //! Module width
|
||||||
function opengrab_depth() = depth; //! Module height
|
function opengrab_depth() = depth; //! Module height
|
||||||
@@ -94,9 +96,9 @@ module opengrab_target() { //! Draw OpenGrab target
|
|||||||
square([width, width], center = true);
|
square([width, width], center = true);
|
||||||
|
|
||||||
opengrab_hole_positions()
|
opengrab_hole_positions()
|
||||||
circle(d = 3.2);
|
circle(d = $d);
|
||||||
|
|
||||||
opengrab_side_hole_positions()
|
opengrab_side_hole_positions()
|
||||||
circle(d = 4);
|
circle(d = $d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user