Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4ee200add | ||
|
|
1b5d57a3c6 | ||
|
|
442f846690 | ||
|
|
6cb9540d51 | ||
|
|
4b55efc8e2 | ||
|
|
05e5bca54d | ||
|
|
d801554b7c | ||
|
|
e2e7f075ea | ||
|
|
ee1decf1cb | ||
|
|
84f4e1221b | ||
|
|
e5b6369477 |
@@ -21,6 +21,8 @@ Model files:
|
|||||||
|
|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
|
|
||||||
@@ -35,6 +37,8 @@ Model files:
|
|||||||
* train_tracks_generator.scad
|
* train_tracks_generator.scad
|
||||||
* turntable.scad
|
* turntable.scad
|
||||||
* ascending_fireplace.scad
|
* ascending_fireplace.scad
|
||||||
|
* brio_tunnel.scad
|
||||||
|
* brio_tunnel_curve.scad
|
||||||
|
|
||||||
## brio-tunnel-block
|
## brio-tunnel-block
|
||||||
|
|
||||||
@@ -43,6 +47,7 @@ Model files:
|
|||||||
Model files:
|
Model files:
|
||||||
|
|
||||||
* brio-tunnel-block.scad
|
* brio-tunnel-block.scad
|
||||||
|
* brio-tunnel-block-striped.scad
|
||||||
|
|
||||||
## c9-lights-roof-clip
|
## c9-lights-roof-clip
|
||||||
|
|
||||||
@@ -146,6 +151,14 @@ Model files:
|
|||||||
|
|
||||||
* home-assistant-voice-wall-mount.scad
|
* home-assistant-voice-wall-mount.scad
|
||||||
|
|
||||||
|
## ig-ornament
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* ig_ornament.scad
|
||||||
|
|
||||||
## korg-piano-volume-knob
|
## korg-piano-volume-knob
|
||||||
|
|
||||||

|

|
||||||
@@ -167,6 +180,14 @@ Model files:
|
|||||||
* lovevery-coin-raised.scad
|
* lovevery-coin-raised.scad
|
||||||
* lovevery-coin-stencil.scad
|
* lovevery-coin-stencil.scad
|
||||||
|
|
||||||
|
## lovevery-coin-multicolor
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* lovevery-coin-multicolor.scad
|
||||||
|
|
||||||
## m5-atom-echo-hsw-mount
|
## m5-atom-echo-hsw-mount
|
||||||
|
|
||||||

|

|
||||||
@@ -209,6 +230,30 @@ Model files:
|
|||||||
|
|
||||||
* phone-holder-monitor.scad
|
* phone-holder-monitor.scad
|
||||||
|
|
||||||
|
## pvc-drain-end
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* pvc-drain-end.scad
|
||||||
|
|
||||||
|
## rafter-drip-ledge
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* rafter-drip-ledge.scad
|
||||||
|
|
||||||
|
## ring-sizer
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* ring-sizer.scad
|
||||||
|
|
||||||
## server-air-shield
|
## server-air-shield
|
||||||
|
|
||||||

|

|
||||||
@@ -225,6 +270,22 @@ Model files:
|
|||||||
|
|
||||||
* shoe-shelf-wall-mount.scad
|
* shoe-shelf-wall-mount.scad
|
||||||
|
|
||||||
|
## siding-bird-feeder-hanger
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* siding-bird-feeder-hanger.scad
|
||||||
|
|
||||||
|
## siding-light-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* siding-light-mount.scad
|
||||||
|
|
||||||
## simple-figurine
|
## simple-figurine
|
||||||
|
|
||||||

|

|
||||||
@@ -241,6 +302,14 @@ Model files:
|
|||||||
|
|
||||||
* simple-rounded-s-hook.scad
|
* simple-rounded-s-hook.scad
|
||||||
|
|
||||||
|
## sink-drain-adapter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* sink-drain-adapter.scad
|
||||||
|
|
||||||
## slim-rpi-wall-holder
|
## slim-rpi-wall-holder
|
||||||
|
|
||||||

|

|
||||||
@@ -283,3 +352,11 @@ Model files:
|
|||||||
Model files:
|
Model files:
|
||||||
|
|
||||||
* tree-stand-floor-protector.scad
|
* tree-stand-floor-protector.scad
|
||||||
|
|
||||||
|
## veer-wagon-clip
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* veer-wagon-clip.scad
|
||||||
|
|||||||
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,171 @@
|
|||||||
|
// BRIO-compatible tunnel.
|
||||||
|
//
|
||||||
|
// A straight track whose bed is widened into a solid block, carved out by an arched
|
||||||
|
// bore, with the female/male BRIO connectors kept at the normal height: a solid
|
||||||
|
// arched profile -> subtract the bore -> subtract the rail wells and the nest ->
|
||||||
|
// add the plug. The bore floor is flush with the top of the track, so the running
|
||||||
|
// surface stays a regular BRIO straight and the 45 mm bore gives the stock 2.5 mm
|
||||||
|
// of lateral clearance on each side.
|
||||||
|
//
|
||||||
|
// Construction follows ascending_n_v2.scad: extrude a track profile, cut the nest,
|
||||||
|
// add the plug.
|
||||||
|
//
|
||||||
|
// Driving dimensions: the outer shape (width, `outer_wall` straight height, `total_height`
|
||||||
|
// crown) and one shell thickness, `ceiling`, which is applied as a parallel offset —
|
||||||
|
// the bore arc is concentric with the outer barrel and 6 mm inside it everywhere. The
|
||||||
|
// shell is therefore a true uniform 6 mm: side walls 6 mm, roof 6 mm at the crown and
|
||||||
|
// 6 mm normal to the arch all the way round.
|
||||||
|
//
|
||||||
|
// Everything on the inside follows from that. At the defaults the inner wall springs at
|
||||||
|
// z 56.5 mm (derived, not a parameter), the bore crown is at z 62 mm, headroom is 50 mm
|
||||||
|
// at the crown and 44.5 mm at the walls, and the wall->roof junction breaks 62 deg —
|
||||||
|
// a crisp inner edge like the original wooden tunnel rather than a tangent sweep.
|
||||||
|
// A deeper, rounder bore would need a shallower barrel or a thicker roof; with a
|
||||||
|
// parallel shell the two arcs can never disagree about where the curve starts.
|
||||||
|
//
|
||||||
|
// Prints upright as modelled, no supports: the roof is a self-supporting vault — at
|
||||||
|
// 0.2 mm layers each ring of the band rests on ~99% of the ring below it, and the most
|
||||||
|
// any layer bridges is ~1.3 mm where the vault closes. Loads on the roof run along the
|
||||||
|
// layers, and the walls are printed under compression, which is the strong direction
|
||||||
|
// for FDM.
|
||||||
|
//
|
||||||
|
// `portal_chamfer` breaks the portal edges all the way round except the underside:
|
||||||
|
// the bed is a mating face and its bottom corner has to stay square so the male plug
|
||||||
|
// is bonded along its whole height where it leaves the far portal.
|
||||||
|
|
||||||
|
include <train_tracks_generator.scad>
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
/* [Tunnel] */
|
||||||
|
// Length of the track body: portal face to portal face, EXCLUDING the connectors.
|
||||||
|
// 216 = BRIO "D" long straight. The male plug adds 18 mm protruding from one portal
|
||||||
|
// and the female end is a cavity cut inside the body, so neither is counted here.
|
||||||
|
// Keep this at or below 238 to stay on a 256 mm bed.
|
||||||
|
length = 216; // [108:2:238]
|
||||||
|
// Overall width across the walls
|
||||||
|
outer_width = 57; // [45:1:150]
|
||||||
|
// Clear width of the bore; must exceed the 40 mm track to give clearance
|
||||||
|
inner_width = 45; // [41:0.5:140]
|
||||||
|
// Height of the crown above the build plate, 12 mm track included
|
||||||
|
total_height = 68; // [30:1:200]
|
||||||
|
// Height at which the outer wall stops being straight and the roof barrel starts
|
||||||
|
outer_wall = 60; // [13:1:190]
|
||||||
|
// Shell thickness: side walls, and roof measured normal to the arch (uniform)
|
||||||
|
ceiling = 6; // [2:0.5:20]
|
||||||
|
// Chamfer breaking the portal edges
|
||||||
|
portal_chamfer = 1; // [0:0.25:3]
|
||||||
|
|
||||||
|
/* [Hidden] */
|
||||||
|
$fn = 256; // finished part
|
||||||
|
epsilon = 0.01; // extend cutters past coplanar faces
|
||||||
|
layer_height = 0.2; // general utility/ornament print; not a Customizer param
|
||||||
|
arc_steps = 96; // facets per arch, independent of $fn
|
||||||
|
min_wall = 2; // thinnest wall or roof the Customizer ranges may produce
|
||||||
|
|
||||||
|
// ### Derived geometry — the inside is fully determined by the outside + `ceiling`
|
||||||
|
half_out = outer_width / 2;
|
||||||
|
half_in = inner_width / 2;
|
||||||
|
|
||||||
|
// Bed is flush with the top of the track, so the track stays a working straight.
|
||||||
|
floor_z = track_height;
|
||||||
|
|
||||||
|
// Outer arc through (+-half_out, outer_wall) and (0, total_height)
|
||||||
|
out_rise = total_height - outer_wall;
|
||||||
|
out_r = (half_out * half_out + out_rise * out_rise) / (2 * out_rise);
|
||||||
|
out_z = total_height - out_r; // centre height, shared by both arcs
|
||||||
|
|
||||||
|
// Bore arc: concentric, `ceiling` inside the outer one -> constant shell thickness
|
||||||
|
in_r = out_r - ceiling;
|
||||||
|
inner_crown = out_z + in_r; // == total_height - ceiling
|
||||||
|
inner_wall = out_z + sqrt(in_r * in_r - half_in * half_in);
|
||||||
|
bore_crease = 90 - asin(half_in / in_r); // wall->roof break, degrees
|
||||||
|
printed_length = length + track_plug_neck_length + track_plug_radius;
|
||||||
|
|
||||||
|
assert(inner_width > track_width, "bore must be wider than the 40 mm track");
|
||||||
|
assert(outer_width - inner_width >= 2 * min_wall, "side walls would be under min_wall thick");
|
||||||
|
assert(ceiling >= min_wall, "roof would be under min_wall thick");
|
||||||
|
assert(out_rise > 0, "total_height must be above outer_wall");
|
||||||
|
assert(out_r >= half_out, "outer arch never reaches the walls: raise the tunnel or narrow it");
|
||||||
|
assert(in_r >= half_in, "bore arc cannot reach the inner walls: thinner roof, narrower bore or taller tunnel");
|
||||||
|
assert(inner_wall > floor_z, "bore arch springs below the track bed: taller tunnel or narrower bore");
|
||||||
|
|
||||||
|
echo(str("tunnel ", length, " x ", outer_width, " x ", total_height, " mm; uniform shell ",
|
||||||
|
ceiling, " mm; bore ", inner_width, " mm wide springing at z ",
|
||||||
|
round(inner_wall * 10) / 10, " (derived), crown at z ", round(inner_crown * 10) / 10,
|
||||||
|
"; headroom ", round((inner_crown - floor_z) * 10) / 10, " mm at the crown, ",
|
||||||
|
round((inner_wall - floor_z) * 10) / 10, " mm at the walls, ",
|
||||||
|
round((inner_width - track_width) * 10) / 10, " mm across for the stock"));
|
||||||
|
echo(str("outer barrel R", round(out_r * 10) / 10, " springing at z ", outer_wall,
|
||||||
|
", bore arc R", round(in_r * 10) / 10, ", wall->roof crease ",
|
||||||
|
round(bore_crease * 10) / 10, " deg"));
|
||||||
|
echo(str("body ", length, " mm between the portals; ",
|
||||||
|
round(printed_length * 10) / 10, " mm overall including the protruding plug; ",
|
||||||
|
printed_length <= 256 ? "fits a 256 mm bed"
|
||||||
|
: "TOO LONG for a 256 mm bed"));
|
||||||
|
|
||||||
|
// Closed outline of a solid arch, in the across/up plane, centred on the track axis:
|
||||||
|
// straight walls up to where the arc takes over, circular arc over the crown, flat floor.
|
||||||
|
function arch_outline(half_w, r, z_centre, z_floor) =
|
||||||
|
let (z_wall = z_centre + sqrt(r * r - half_w * half_w),
|
||||||
|
amax = asin(half_w / r))
|
||||||
|
concat(
|
||||||
|
[[-half_w, z_floor], [-half_w, z_wall]],
|
||||||
|
[for (i = [0:arc_steps])
|
||||||
|
let (a = -amax + 2 * amax * i / arc_steps)
|
||||||
|
[r * sin(a), z_centre + r * cos(a)]],
|
||||||
|
[[half_w, z_wall], [half_w, z_floor]]
|
||||||
|
);
|
||||||
|
|
||||||
|
// Extrude an arch profile along the track axis, from x = x0 to x = x1, centred on the
|
||||||
|
// track (the generator puts the track body at y = 0 .. track_width).
|
||||||
|
module extrude_arch(profile, x0, x1) {
|
||||||
|
translate([0, track_width / 2, 0])
|
||||||
|
rotate([90, 0, 90])
|
||||||
|
translate([0, 0, x0])
|
||||||
|
linear_extrude(x1 - x0)
|
||||||
|
polygon(profile);
|
||||||
|
}
|
||||||
|
|
||||||
|
// One object for the slicer
|
||||||
|
union() {
|
||||||
|
difference() {
|
||||||
|
// Solid arched block. The outline is convex, so a hull of the three sections
|
||||||
|
// lofts them exactly: 45 degree chamfers break the edges of both portal faces.
|
||||||
|
// The inset sections keep their floor at z = 0 rather than lifting by the
|
||||||
|
// chamfer width, so the end faces stay full height: lifting it would shave the
|
||||||
|
// bottom of the bed and leave the root of the male plug standing over a void.
|
||||||
|
if (portal_chamfer > 0) {
|
||||||
|
hull() {
|
||||||
|
extrude_arch(arch_outline(half_out - portal_chamfer,
|
||||||
|
out_r - portal_chamfer, out_z, 0),
|
||||||
|
0, portal_chamfer);
|
||||||
|
extrude_arch(arch_outline(half_out, out_r, out_z, 0),
|
||||||
|
portal_chamfer, length - portal_chamfer);
|
||||||
|
extrude_arch(arch_outline(half_out - portal_chamfer,
|
||||||
|
out_r - portal_chamfer, out_z, 0),
|
||||||
|
length - portal_chamfer, length);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
extrude_arch(arch_outline(half_out, out_r, out_z, 0), 0, length);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bore: arched vault concentric with the outer barrel, floor flush with the top
|
||||||
|
// of the track
|
||||||
|
extrude_arch(arch_outline(half_in, in_r, out_z, floor_z),
|
||||||
|
-epsilon, length + epsilon);
|
||||||
|
|
||||||
|
// Rail wells, along the whole length, so the floor is a working BRIO straight
|
||||||
|
rotate([90, 0, 90])
|
||||||
|
translate([0, 0, -epsilon])
|
||||||
|
linear_extrude(length + 2 * epsilon)
|
||||||
|
grooves(both_sides = false);
|
||||||
|
|
||||||
|
// Female connector in the near portal
|
||||||
|
install_nest(nest_rotate = 0, length = 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Male connector protruding from the far portal, below the bore floor
|
||||||
|
install_plug(0, length);
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
// Zebra version of brio-tunnel-block.scad: the block is cut into 8 bands of 5mm
|
||||||
|
// across its 40mm depth (the dimension that is 40mm tall when the block lies on
|
||||||
|
// its side) and the bands alternate black/white, so the stripes run over the arch.
|
||||||
|
// Geometry, chamfering and rounding are identical to brio-tunnel-block.scad; only
|
||||||
|
// the coloring/slicing is added.
|
||||||
|
// Colors show in the preview (F5) and in a 3MF export; a plain STL export drops them.
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
cube_h = 80;
|
||||||
|
cube_w = 80;
|
||||||
|
cube_d = 40;
|
||||||
|
|
||||||
|
rounding = 2;
|
||||||
|
|
||||||
|
oval_cutout_h = 15;
|
||||||
|
|
||||||
|
rect_cutout_w = 45;
|
||||||
|
rect_cutout_h = 65-oval_cutout_h;
|
||||||
|
|
||||||
|
// Zebra striping: stripe_n bands of 5mm across the 40mm depth (cube_d),
|
||||||
|
// alternating between the two stripe colors.
|
||||||
|
stripe_n = 8;
|
||||||
|
stripe_w = cube_d / stripe_n; // 5mm
|
||||||
|
stripe_colors = ["black", "white"];
|
||||||
|
|
||||||
|
$fn=150;
|
||||||
|
|
||||||
|
// The tunnel block, exactly as in brio-tunnel-block.scad
|
||||||
|
// (all chamfering and rounding unchanged).
|
||||||
|
module tunnelblock() {
|
||||||
|
difference() {
|
||||||
|
cuboid([cube_w,cube_d,cube_h], rounding=rounding, anchor=[0,0,-1]);
|
||||||
|
|
||||||
|
group() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
difference() {
|
||||||
|
cuboid([rect_cutout_w,rect_cutout_h,cube_d], chamfer=-rounding, anchor=[0,-1,0]);
|
||||||
|
translate([0,rect_cutout_h,0])
|
||||||
|
cuboid([2*rect_cutout_w,rect_cutout_h,cube_d], anchor=[0,-1,0]);
|
||||||
|
}
|
||||||
|
translate([0,0,rect_cutout_h])
|
||||||
|
resize([0,0,2*oval_cutout_h])
|
||||||
|
rotate([90,0,0])
|
||||||
|
cyl(h=cube_d, d=rect_cutout_w, chamfer=-rounding);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Everything of the block that is *not* between y=y0 and y=y1, as a single
|
||||||
|
// solid. Cutting the block with one difference() of this union (instead of an
|
||||||
|
// intersection() with a slab) is what keeps the rounded/chamfered edges at
|
||||||
|
// y=+/-cube_d/2 intact.
|
||||||
|
module outside(y0, y1) {
|
||||||
|
big = 2 * cube_h; // bigger than the block in every direction
|
||||||
|
union() {
|
||||||
|
translate([0, (y0-big)/2, cube_h/2])
|
||||||
|
cube([cube_w + 2*big, big + y0, cube_h + 2*big], center=true);
|
||||||
|
translate([0, (y1+big)/2, cube_h/2])
|
||||||
|
cube([cube_w + 2*big, big - y1, cube_h + 2*big], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The block sliced into stripe_n bands along Y, each band colored alternately.
|
||||||
|
module tunnelblock_striped() {
|
||||||
|
for (i = [0 : stripe_n-1]) {
|
||||||
|
y0 = -cube_d/2 + i*stripe_w;
|
||||||
|
color(stripe_colors[i % len(stripe_colors)])
|
||||||
|
difference() {
|
||||||
|
tunnelblock();
|
||||||
|
outside(y0, y0 + stripe_w);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tunnelblock_striped();
|
||||||
|
|
||||||
|
// To render the plain, unstriped block instead, use: tunnelblock();
|
||||||
|
After Width: | Height: | Size: 63 KiB |
@@ -0,0 +1,205 @@
|
|||||||
|
// ig_ornament.scad
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// Instagram camera logo ornament: frame, lens and dot, with optional
|
||||||
|
// diagonal support rods (tying the three into one piece) and a small
|
||||||
|
// hanging hook at the top.
|
||||||
|
// Proportions measured from the official camera logo ("Instagram logo
|
||||||
|
// 2016.svg" on Wikimedia Commons, 96x96 icon); the official squircle
|
||||||
|
// corners are approximated with constant-radius rounded corners.
|
||||||
|
//
|
||||||
|
// Library: BOSL2 (https://github.com/BelfrySCAD/BOSL2)
|
||||||
|
// rect() + offset() : 2D cross-sections (rounded squares, exact offsets)
|
||||||
|
// skin() : 3D loft of the cross-sections (frame)
|
||||||
|
//
|
||||||
|
// The three shapes are separate components (ig_frame, ig_lens, ig_dot) so
|
||||||
|
// each can be colored individually or printed on its own.
|
||||||
|
//
|
||||||
|
// Chamfer style: every top/bottom edge (outer rims and hole edges alike)
|
||||||
|
// carries the same 45-degree chamfer of size `chamfer`. Each face
|
||||||
|
// cross-section is the middle cross-section offset inward by `chamfer`
|
||||||
|
// (outer boundaries shrink, holes open outward), i.e. the bevels slope
|
||||||
|
// inward toward the faces (widest at mid-height).
|
||||||
|
//
|
||||||
|
// The whole model is centered on all axes:
|
||||||
|
// x/y centered on the logo center (the dot keeps its designed offset),
|
||||||
|
// z spanning -height/2 .. +height/2.
|
||||||
|
// (To print with the bottom at z=0, wrap the assembly in translate([0,0,height/2]).)
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
// ===================== User configuration =====================
|
||||||
|
width = 40; // Overall width of the logo (frame outer edge), mm
|
||||||
|
height = 10; // Height of every component, mm
|
||||||
|
chamfer = 0.5; // 45-degree chamfer on all top/bottom edges of all components, mm
|
||||||
|
rod_ratio = 0.5; // Support rod diameter as a fraction of the dot diameter
|
||||||
|
hook_hole_d = 3; // Hanging hook hole diameter, mm
|
||||||
|
hook_tube_d = 2; // Hanging hook ring thickness (torus tube diameter), mm
|
||||||
|
hook_sink = 0.4; // Fraction of the hook loop buried in the frame (0..1)
|
||||||
|
|
||||||
|
// Rendering resolution
|
||||||
|
$fs = 0.1;
|
||||||
|
$rt = 0.01;
|
||||||
|
$fn = 100;
|
||||||
|
|
||||||
|
// ============ Geometry from the official logo (96x96 icon units) =========
|
||||||
|
// The official icon spans 96x96 units, so `width` maps to 96 units.
|
||||||
|
scale = width / 96;
|
||||||
|
|
||||||
|
frame_thickness = 8.65 * scale; // frame stroke width
|
||||||
|
frame_inner = width - 2 * frame_thickness;
|
||||||
|
lens_R = 24.65 * scale; // lens ring outer radius
|
||||||
|
lens_r = 16.0 * scale; // lens ring inner radius
|
||||||
|
dot_r = 5.76 * scale; // dot radius
|
||||||
|
dot_pos = [25.62 * scale, 25.62 * scale]; // dot center, on the 45-degree diagonal
|
||||||
|
// Corner radii: the official logo uses a smooth squircle, we keep constant-
|
||||||
|
// radius rounded corners (chosen to approximate its look).
|
||||||
|
frame_outer_r = 29.2 * scale; // frame outer corner radius
|
||||||
|
frame_inner_r = 20.0 * scale; // frame inner corner radius
|
||||||
|
|
||||||
|
// Sanity checks
|
||||||
|
dummy = assert(chamfer >= 0, "chamfer must be >= 0")
|
||||||
|
assert(height > 2 * chamfer, "height must be greater than 2*chamfer")
|
||||||
|
assert(chamfer < frame_thickness / 2, "chamfer must be smaller than half the frame thickness")
|
||||||
|
assert(chamfer < frame_inner / 2, "chamfer must be smaller than half the frame inner size")
|
||||||
|
assert(chamfer < (lens_R - lens_r) / 2, "chamfer must be smaller than half the lens ring width")
|
||||||
|
assert(chamfer < dot_r, "chamfer must be smaller than the dot radius");
|
||||||
|
|
||||||
|
// ===================== Chamfer helpers =====================
|
||||||
|
// Inward chamfer: faces inset, widest at mid-height (see header).
|
||||||
|
|
||||||
|
// Solid disk of radius r and global `height`, 45-degree chamfered at the faces.
|
||||||
|
module chamfered_disk(r, c) {
|
||||||
|
cylinder(h=height - 2*c, d=2*r, center=true);
|
||||||
|
if (c > 0) {
|
||||||
|
translate([0, 0, -height/2])
|
||||||
|
cylinder(h=c, d1=2*(r-c), d2=2*r);
|
||||||
|
translate([0, 0, height/2 - c])
|
||||||
|
cylinder(h=c, d1=2*r, d2=2*(r-c));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hole of radius r: the hole opens to r+c at the top/bottom faces, giving a
|
||||||
|
// 45-degree chamfer on the inner edges (matching the outer style: the
|
||||||
|
// cross-section is widest at mid-height). Extended a hair past the faces
|
||||||
|
// (eps) to keep the boolean faces non-coplanar.
|
||||||
|
module chamfered_hole(r, c) {
|
||||||
|
eps = 0.05;
|
||||||
|
// Straight middle section at the hole's full radius
|
||||||
|
cylinder(h=height - 2*c + 2*eps, d=2*r, center=true);
|
||||||
|
if (c > 0) {
|
||||||
|
// 45-degree flares: full radius at depth c, opening to r+c at the faces
|
||||||
|
translate([0, 0, -height/2 - eps])
|
||||||
|
cylinder(h=c + eps, d1=2*(r+c+eps), d2=2*r);
|
||||||
|
translate([0, 0, height/2 - c])
|
||||||
|
cylinder(h=c + eps, d1=2*r, d2=2*(r+c+eps));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================== Components =====================
|
||||||
|
// Every component is centered on z (-height/2 .. +height/2).
|
||||||
|
|
||||||
|
// --- 1. Rounded-square frame (the camera body) -----------------------------
|
||||||
|
// Loft of 4 cross-sections with skin(): at the faces the outer boundary is
|
||||||
|
// inset and the inner hole is opened by `chamfer`, full-size in between ->
|
||||||
|
// 45-degree chamfer on every top/bottom edge (outer rims and hole edge).
|
||||||
|
module ig_frame() {
|
||||||
|
f_out = rect(size=width, rounding=frame_outer_r);
|
||||||
|
f_in = rect(size=frame_inner, rounding=frame_inner_r);
|
||||||
|
f_out_face = offset(f_out, delta=-chamfer, same_length=true); // shrink outer boundary
|
||||||
|
f_in_face = offset(f_in, delta=+chamfer, same_length=true); // open the hole
|
||||||
|
z4 = [-height/2, -height/2 + chamfer, height/2 - chamfer, height/2];
|
||||||
|
if (chamfer > 0) {
|
||||||
|
difference() {
|
||||||
|
skin([f_out_face, f_out, f_out, f_out_face], slices=0, z=z4);
|
||||||
|
skin([f_in_face, f_in, f_in, f_in_face], slices=0, z=z4);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
difference() {
|
||||||
|
skin([f_out, f_out], slices=0, z=[-height/2, height/2]);
|
||||||
|
skin([f_in, f_in], slices=0, z=[-height/2, height/2]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- 2. Lens ring (the camera lens) ----------------------------------------
|
||||||
|
module ig_lens() {
|
||||||
|
difference() {
|
||||||
|
chamfered_disk(lens_R, chamfer);
|
||||||
|
chamfered_hole(lens_r, chamfer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- 3. Dot (the camera flash) ---------------------------------------------
|
||||||
|
module ig_dot() {
|
||||||
|
translate(dot_pos)
|
||||||
|
chamfered_disk(dot_r, chamfer);
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- 4. Support rods --------------------------------------------------------
|
||||||
|
// Two horizontal rods at mid-height along the 45-degree diagonal that tie
|
||||||
|
// the three elements into one piece: one runs from the frame through the
|
||||||
|
// dot to the lens ring, the other is its mirror from the lens ring to the
|
||||||
|
// frame on the far side. The lens center is left clear.
|
||||||
|
// Each rod's end is buried in the middle of the frame arm / lens ring band,
|
||||||
|
// and the existing elements are cut out of the rods (difference) so the rods
|
||||||
|
// fill the gaps exactly and never overlap the frame, lens, or dot.
|
||||||
|
module ig_support_rod() {
|
||||||
|
rod_d = 2 * dot_r * rod_ratio;
|
||||||
|
// Distances from the logo center along the 45-degree diagonal
|
||||||
|
lens_mid = (lens_R + lens_r) / 2; // middle of the lens ring band
|
||||||
|
frame_in = (frame_inner/2 - frame_inner_r) * sqrt(2) + frame_inner_r;
|
||||||
|
frame_out = (width/2 - frame_outer_r) * sqrt(2) + frame_outer_r;
|
||||||
|
frame_mid = (frame_in + frame_out) / 2; // middle of the frame arm
|
||||||
|
dummy = assert(rod_ratio > 0, "rod_ratio must be > 0")
|
||||||
|
assert(rod_d < 2 * (lens_R - lens_r), "rod must be smaller than the lens ring width")
|
||||||
|
assert(rod_d < frame_out - frame_in, "rod must be smaller than the frame arm width");
|
||||||
|
rod_len = frame_mid - lens_mid;
|
||||||
|
rod_center = (lens_mid + frame_mid) / 2;
|
||||||
|
diag_dir = [1, 1, 0] / sqrt(2);
|
||||||
|
difference() {
|
||||||
|
for (side = [1, -1]) {
|
||||||
|
translate(side * rod_center * diag_dir)
|
||||||
|
rotate(45) rotate(90, v=[0,1,0])
|
||||||
|
cylinder(h=rod_len, d=rod_d, center=true);
|
||||||
|
}
|
||||||
|
ig_frame();
|
||||||
|
ig_lens();
|
||||||
|
ig_dot();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- 5. Hanging hook ------------------------------------------------------
|
||||||
|
// A partially embedded torus loop at the top of the frame for hanging the
|
||||||
|
// ornament. The loop is positioned so that a fraction hook_sink of its
|
||||||
|
// outer diameter is buried in the top frame arm (cut away by ig_frame(),
|
||||||
|
// same difference pattern as the support rods) and the rest sticks out.
|
||||||
|
// The hole axis is along X, so it hangs on a horizontal nail or hook.
|
||||||
|
// Note: if the sink is large, the frame edge clips the bottom of the hole.
|
||||||
|
module ig_hook() {
|
||||||
|
hole_r = hook_hole_d / 2;
|
||||||
|
r_tube = hook_tube_d / 2;
|
||||||
|
R_hook = hole_r + r_tube; // major radius (hole diameter = hook_hole_d)
|
||||||
|
loop_r = R_hook + r_tube; // loop outer radius
|
||||||
|
dummy = assert(hook_hole_d > 0, "hook_hole_d must be > 0")
|
||||||
|
assert(hook_tube_d > 0, "hook_tube_d must be > 0")
|
||||||
|
assert(0 <= hook_sink && hook_sink < 1, "hook_sink must be >= 0 and < 1")
|
||||||
|
assert(2 * hook_sink * loop_r <= frame_thickness, "hook's buried part must fit in the frame arm")
|
||||||
|
assert(loop_r <= height / 2, "hook loop must fit within the model height");
|
||||||
|
translate([0, width/2 + (1 - 2*hook_sink) * loop_r, 0])
|
||||||
|
rotate([0, 90, 0])
|
||||||
|
difference() {
|
||||||
|
torus(R_hook, r_tube);
|
||||||
|
ig_frame();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================== Assembly =====================
|
||||||
|
// All components are separate and individually colorable.
|
||||||
|
// Remove the color() lines (or change them) to suit your printer.
|
||||||
|
color("#7638FA") ig_frame(); // purple
|
||||||
|
color("#7638FA") ig_lens(); // purple
|
||||||
|
color("#7638FA") ig_dot(); // purple
|
||||||
|
// Optional extras: delete a line (and its module) to remove it.
|
||||||
|
color("#000000") ig_support_rod(); // black
|
||||||
|
color("#000000") ig_hook(); // black
|
||||||
|
After Width: | Height: | Size: 54 KiB |
@@ -0,0 +1,45 @@
|
|||||||
|
coin_d = 2*25.4; // 2"
|
||||||
|
coin_h = (9/64)*25.4; // 9/64"
|
||||||
|
edge = 4;
|
||||||
|
|
||||||
|
space = 10;
|
||||||
|
smoothing = 1;
|
||||||
|
|
||||||
|
$fn = 100;
|
||||||
|
|
||||||
|
module Text(character) {
|
||||||
|
offset(r=smoothing) offset(r=-2*smoothing) offset(r=smoothing)
|
||||||
|
text(character, size = 35, font = "Liberation Mono:style=Bold", halign = "center", valign = "center");
|
||||||
|
}
|
||||||
|
|
||||||
|
module CharCoin(character) {
|
||||||
|
difference() {
|
||||||
|
color("yellow") cylinder(h = coin_h, d = coin_d);
|
||||||
|
cylinder(h = coin_h, d = coin_d-2*edge);
|
||||||
|
}
|
||||||
|
difference() {
|
||||||
|
color("gray") cylinder(h = coin_h, d = coin_d-2*edge);
|
||||||
|
group() {
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
rotate([0,180,0])
|
||||||
|
Text(character);
|
||||||
|
translate([0,0,(2/3)*coin_h+0.001])
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
Text(character);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
color("yellow") group() {
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
rotate([0,180,0])
|
||||||
|
Text(character);
|
||||||
|
translate([0,0,(2/3)*coin_h+0.001])
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
Text(character);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for(num = [0 : 9])
|
||||||
|
translate([(num%3)*(coin_d+space),-(num/3)*(coin_d+space),0])
|
||||||
|
CharCoin(str(num));
|
||||||
|
|
||||||
|
//CharCoin("");
|
||||||
|
After Width: | Height: | Size: 87 KiB |
@@ -0,0 +1,39 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
pipe_diameter = 48.3;
|
||||||
|
|
||||||
|
wall_thickness = 3;
|
||||||
|
|
||||||
|
straight_length = 20;
|
||||||
|
hull_length = 50;
|
||||||
|
|
||||||
|
end_height = 20;
|
||||||
|
end_width = 70;
|
||||||
|
end_rounding = end_height/2;
|
||||||
|
|
||||||
|
additional_offset = 15;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
/* Outside */
|
||||||
|
group() {
|
||||||
|
hull() {
|
||||||
|
cylinder(d=pipe_diameter, h=0.1, anchor=BOTTOM);
|
||||||
|
up(0.1+hull_length) left(pipe_diameter/2+additional_offset)
|
||||||
|
cuboid([end_height,end_width,0.1], rounding=end_rounding, edges="Z", anchor=TOP+LEFT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inside */
|
||||||
|
group() {
|
||||||
|
hull() {
|
||||||
|
cylinder(d=pipe_diameter-2*wall_thickness, h=0.1, anchor=BOTTOM);
|
||||||
|
up(0.1+hull_length) left(pipe_diameter/2-wall_thickness+additional_offset)
|
||||||
|
cuboid([end_height-2*wall_thickness,end_width-2*wall_thickness,0.1], rounding=end_rounding-wall_thickness, edges="Z", anchor=TOP+LEFT);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tube(h=straight_length,od=pipe_diameter,wall=wall_thickness,anchor=TOP);
|
||||||
|
After Width: | Height: | Size: 72 KiB |
@@ -0,0 +1,150 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
// ============================================================================
|
||||||
|
// Rafter drip ledge
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// A staple that grips a rafter: a band under the bottom face with a jaw up
|
||||||
|
// each side face, one deck screw through each jaw. Water running down the
|
||||||
|
// underside of the rafter reaches the band, crosses it and falls off its
|
||||||
|
// downhill edge, so it stops trailing along the timber.
|
||||||
|
//
|
||||||
|
// The band hangs `thickness` proud of the bottom face and its edge is square.
|
||||||
|
// That is far more than water can bridge (~3 mm), so the drip is reliable, and
|
||||||
|
// the band is `thickness` wide along the rafter, which gives the water a
|
||||||
|
// plateau to fall off rather than a corner to cling to.
|
||||||
|
//
|
||||||
|
// The jaws are bored from opposite sides at different heights - a quarter and
|
||||||
|
// three quarters along the jaw - which is what keeps two long deck screws from
|
||||||
|
// meeting in the middle of the rafter. With a 1.5" rafter and 1.5" screws the
|
||||||
|
// tips do overshoot the mid-plane (the echo below prints by how much), so that
|
||||||
|
// offset is doing real work: do not line the holes up.
|
||||||
|
//
|
||||||
|
// Built by sweeping a U, as before:
|
||||||
|
// x away from the rafter's bottom face; -x is up the side faces
|
||||||
|
// y across the rafter's width; the timber sits between the jaws
|
||||||
|
// z along the rafter's length; the band is `thickness` wide there
|
||||||
|
//
|
||||||
|
// PRINT LYING EXACTLY AS MODELLED (z up). The part is an extrusion of the U
|
||||||
|
// section, so every wall is vertical: no supports, no bridged roofs except the
|
||||||
|
// two screw holes, and the perimeters run all the way round the U, which is
|
||||||
|
// what carries the load. 54 x 70 mm footprint, 15.5 mm tall.
|
||||||
|
// ============================================================================
|
||||||
|
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
include <BOSL2/turtle3d.scad>
|
||||||
|
|
||||||
|
/* [Rafter] */
|
||||||
|
// Width of the face the jaws grip: 1.5" for a rafter stood on its edge
|
||||||
|
rafter_width = 38.1; // [30:0.1:60]
|
||||||
|
// How far the jaws run up the side faces (1.5")
|
||||||
|
jaw_height = 38.1; // [20:0.5:140]
|
||||||
|
// Band and jaw thickness. Also the radius of the swept outer corners.
|
||||||
|
thickness = 15; // [8:0.5:25]
|
||||||
|
// Slip clearance per gripping face - a printed saddle is never a press fit
|
||||||
|
clearance = 0.4; // [0:0.05:1.5]
|
||||||
|
|
||||||
|
/* [Screw] */
|
||||||
|
// Overall length of the deck screw (1.5" = 38.1)
|
||||||
|
screw_len = 38.1; // [25:0.5:90]
|
||||||
|
// Clearance hole through the jaws
|
||||||
|
hole_d = 6.5; // [4:0.1:9]
|
||||||
|
// Head diameter that has to bear on the jaw's outer face
|
||||||
|
head_d = 11; // [6:0.5:20]
|
||||||
|
|
||||||
|
/* [Preview] */
|
||||||
|
// Translucent rafter timber - context only, never part of the print
|
||||||
|
show_rafter = false;
|
||||||
|
// Depth of that preview timber up the side faces (5.5")
|
||||||
|
rafter_depth = 139.7; // [40:1:240]
|
||||||
|
|
||||||
|
$fn = 64; // 100 was overkill: only the holes and two small
|
||||||
|
// corner arcs are curved, and 64 facets is smooth
|
||||||
|
inset = 0.5; // bead inset of the swept mask, as before
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// Geometry
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// The swept mask sits entirely outside the path, so the jaws' inner faces land
|
||||||
|
// exactly `gap` apart - measured off the exported mesh, not assumed. Asking for
|
||||||
|
// the rafter width plus clearance is therefore what you get.
|
||||||
|
gap = rafter_width + 2 * clearance;
|
||||||
|
wall = thickness + 2 * inset; // jaw thickness the screw passes
|
||||||
|
// through, measured 16.0
|
||||||
|
path = turtle3d(["move", jaw_height,
|
||||||
|
"arcright", inset, 90,
|
||||||
|
"move", gap,
|
||||||
|
"arcright", inset, 90,
|
||||||
|
"move", jaw_height]);
|
||||||
|
|
||||||
|
// Screws at a quarter and three quarters along the jaw, diagonally opposed.
|
||||||
|
hole_lo_x = 0.25 * jaw_height; // near the jaw tips
|
||||||
|
hole_hi_x = 0.75 * jaw_height;
|
||||||
|
stagger = hole_hi_x - hole_lo_x; // how far apart the two screws
|
||||||
|
// end up, up the side faces
|
||||||
|
hole_z = (thickness + 2 * inset) / 2; // mid band, not mid mask
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// Does the screw actually work? Checked, not hoped.
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// The head bears on the jaw's outer face, so only screw_len - wall of the screw
|
||||||
|
// reaches the wood.
|
||||||
|
penetration = screw_len - wall;
|
||||||
|
tip_overshoot = penetration - rafter_width / 2; // past the rafter's mid-plane
|
||||||
|
edge_margin = hole_lo_x - hole_d / 2; // plastic outside the top hole
|
||||||
|
corner_margin = jaw_height - hole_hi_x - hole_d / 2;
|
||||||
|
|
||||||
|
assert(gap >= wall + 6,
|
||||||
|
"jaws too thin for this rafter: a screw hole would break into the far jaw");
|
||||||
|
assert(head_d >= hole_d + 3,
|
||||||
|
str("a ", head_d, " mm head has nothing to bear on around a ", hole_d,
|
||||||
|
" mm hole: needs at least 1.5 mm of bearing all round"));
|
||||||
|
assert(penetration >= 12,
|
||||||
|
"too little screw reaches the timber: raise screw_len or drop thickness");
|
||||||
|
assert(edge_margin >= 3 && corner_margin >= 3,
|
||||||
|
"the screw holes are too close to the jaw end or to the band: raise jaw_height");
|
||||||
|
assert(stagger >= hole_d + 4,
|
||||||
|
"the two holes are too close together: raise jaw_height so they can be staggered further");
|
||||||
|
assert(tip_overshoot <= -2 || stagger >= head_d + 4,
|
||||||
|
"the screws would meet in the middle: offset them further, or shorten them");
|
||||||
|
|
||||||
|
echo(str("fit: jaws ", fmt(gap), " mm apart for a ", fmt(rafter_width),
|
||||||
|
" mm rafter (", fmt(clearance), " mm per face), band ", fmt(wall),
|
||||||
|
" mm proud of the bottom face"));
|
||||||
|
echo(str("screw: ", fmt(screw_len), " mm length less the ", fmt(wall),
|
||||||
|
" mm jaw = ", fmt(penetration), " mm in the timber, tip ",
|
||||||
|
tip_overshoot > 0 ? str("overshoots the mid-plane by ", fmt(tip_overshoot))
|
||||||
|
: str(fmt(-tip_overshoot), " short of the mid-plane"),
|
||||||
|
", holes ", fmt(stagger), " mm apart vertically"));
|
||||||
|
echo(str("print: lying flat as modelled, ", fmt(jaw_height + wall), " x ",
|
||||||
|
fmt(gap + 2 * wall), " mm footprint x ", fmt(wall),
|
||||||
|
" mm tall, no supports; the two screw holes bridge ", fmt(wall), " mm"));
|
||||||
|
if (tip_overshoot > 0)
|
||||||
|
echo(str("NOTE: the screws pass each other's centreline - the ", fmt(stagger),
|
||||||
|
" mm vertical offset is what stops them meeting. Keep the jaws square ",
|
||||||
|
"to the timber when screwing on."));
|
||||||
|
|
||||||
|
function fmt(v) = round(v * 10) / 10;
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
// Part
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
difference() {
|
||||||
|
path_sweep(mask2d_roundover(r = thickness, inset = inset), path);
|
||||||
|
|
||||||
|
// Cutters long enough to leave nothing behind: an 0.5 mm skin of plastic
|
||||||
|
// left on the far side of a jaw stops the screw head seating.
|
||||||
|
// The swept mask sits entirely outside the path, so each jaw's material is
|
||||||
|
// on the far side of its path line, away from the timber (measured: jaw 1
|
||||||
|
// spans y -0.5..15.5 about a path at y = 0, jaw 2 spans -55.4..-39.4 about a
|
||||||
|
// path at y = -gap). Centring a cutter on the path, or running one right
|
||||||
|
// across the part, drills one jaw properly and only nicks the other - which
|
||||||
|
// is what the original did, leaving a blind hole.
|
||||||
|
for (j = [[hole_lo_x, 0, 1], // jaw, its path y, which way it grows
|
||||||
|
[hole_hi_x, -gap, -1]])
|
||||||
|
move([j[0], j[1] + j[2] * (wall / 2 - inset), hole_z])
|
||||||
|
ycyl(d = hole_d, h = wall + 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (show_rafter)
|
||||||
|
color("saddlebrown", 0.35)
|
||||||
|
move([jaw_height - inset - rafter_depth / 2, -gap / 2 - inset, hole_z])
|
||||||
|
cuboid([rafter_depth, rafter_width, 120]);
|
||||||
|
After Width: | Height: | Size: 56 KiB |
@@ -0,0 +1,44 @@
|
|||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Chamfered Ring Module with Embedded Number
|
||||||
|
*
|
||||||
|
* @param id Inner diameter in mm (Default: 15.7)
|
||||||
|
* @param h Height in mm (Default: 3.9)
|
||||||
|
* @param thickness Wall thickness in mm (Default: 2.4)
|
||||||
|
* @param chamfer_size Size of the 45-degree chamfer in mm (Default: 0.5)
|
||||||
|
* @param ring_num The number (or text) to engrave (Default: "5")
|
||||||
|
* @param font_size Height of the number in mm (Default: 2.5)
|
||||||
|
* @param embed_depth How deep the number cuts into the ring in mm (Default: 0.5)
|
||||||
|
*/
|
||||||
|
module chamfered_ring(
|
||||||
|
id = 15.7,
|
||||||
|
h = 3.9,
|
||||||
|
thickness = 2.4,
|
||||||
|
chamfer_size = 0.5,
|
||||||
|
ring_num = "5",
|
||||||
|
font_size = 2.5,
|
||||||
|
embed_depth = 0.55
|
||||||
|
) {
|
||||||
|
od = id + (thickness * 2);
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
tube(id = id, od = od, h = h, chamfer = chamfer_size);
|
||||||
|
|
||||||
|
rotate([90, 0, 0])
|
||||||
|
translate([0, 0, (od/2) - embed_depth])
|
||||||
|
linear_extrude(embed_depth + 1)
|
||||||
|
text(
|
||||||
|
text = str(ring_num),
|
||||||
|
size = font_size,
|
||||||
|
font = "Liberation Mono:style=Bold",
|
||||||
|
valign = "center",
|
||||||
|
halign = "center"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$fn = 200;
|
||||||
|
|
||||||
|
//chamfered_ring(id = 15.3, ring_num = "4.5");
|
||||||
|
chamfered_ring(id = 15.7, ring_num = "5");
|
||||||
@@ -3,9 +3,9 @@ include <BOSL2/std.scad>
|
|||||||
|
|
||||||
$fn = 100;
|
$fn = 100;
|
||||||
|
|
||||||
radius_back = 11;
|
radius_back = 6.5;
|
||||||
radius_front = 11;
|
radius_front = 11;
|
||||||
radius_hole = 2.5;
|
radius_hole = 3;
|
||||||
|
|
||||||
assert(radius_front >= radius_back);
|
assert(radius_front >= radius_back);
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 76 KiB |
@@ -0,0 +1,63 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
include <BOSL2/screws.scad>
|
||||||
|
|
||||||
|
lap_height = 127;
|
||||||
|
lap_depth = 9;
|
||||||
|
wall_width = 500;
|
||||||
|
|
||||||
|
hanger_length = 125;
|
||||||
|
hanger_diag_length = sqrt(2)*hanger_length;
|
||||||
|
hanger_width = 20;
|
||||||
|
hanger_thickness = 7;
|
||||||
|
hanger_overlap = 20;
|
||||||
|
hanger_rounding = 2;
|
||||||
|
|
||||||
|
hook_hole_diameter = 5;
|
||||||
|
|
||||||
|
$fn = 120;
|
||||||
|
|
||||||
|
module LapPlank() {
|
||||||
|
// Define the triangular profile for the siding
|
||||||
|
// We use a polygon for the wedge shape
|
||||||
|
path = [[0, 0], [lap_depth, 0], [0, lap_height], [0, 0]];
|
||||||
|
|
||||||
|
// Sweep the profile across the width of the wall
|
||||||
|
linear_extrude(wall_width) polygon(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
module BackPattern() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
translate([0,-lap_height/2,-wall_width/2])
|
||||||
|
ycopies(lap_height, l=wall_width)
|
||||||
|
LapPlank();
|
||||||
|
}
|
||||||
|
|
||||||
|
module Hanger() {
|
||||||
|
/* Main beam */
|
||||||
|
right(lap_depth)
|
||||||
|
cuboid([hanger_length+hanger_overlap,hanger_width,hanger_thickness], rounding=hanger_rounding, anchor=LEFT);
|
||||||
|
|
||||||
|
/* Diag beam */
|
||||||
|
up(hanger_length) right(lap_depth)rotate([0,45,0])
|
||||||
|
cuboid([hanger_diag_length,hanger_width,hanger_thickness], rounding=hanger_rounding, anchor=LEFT);
|
||||||
|
|
||||||
|
/* Back beam */
|
||||||
|
down(hanger_overlap)
|
||||||
|
cuboid([hanger_thickness+lap_depth,hanger_width,hanger_length+2*hanger_overlap], rounding=hanger_rounding, anchor=LEFT+BOTTOM);
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
Hanger();
|
||||||
|
group() {
|
||||||
|
BackPattern();
|
||||||
|
|
||||||
|
translate([hanger_thickness+lap_depth,0,-(hanger_thickness/2+hanger_overlap)/2]) rotate([0,90,0]) screw_hole("#8,2",head="flat",anchor=TOP);
|
||||||
|
|
||||||
|
translate([hanger_thickness+lap_depth,0,hanger_length+(hanger_thickness/2+hanger_overlap)/2]) rotate([0,90,0]) screw_hole("#8,2",head="flat",anchor=TOP);
|
||||||
|
|
||||||
|
/* Hook hole */
|
||||||
|
right(hanger_length+hanger_overlap)
|
||||||
|
zcyl(d=hook_hole_diameter, h=hanger_thickness);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1,47 @@
|
|||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
lap_height = 127;
|
||||||
|
lap_depth = 9;
|
||||||
|
wall_width = 500;
|
||||||
|
|
||||||
|
ring_outer = 120;
|
||||||
|
ring_inner = 60;
|
||||||
|
ring_thickness = lap_depth + 2;
|
||||||
|
ring_offset = -15; // -15 for left light, -55 for right light
|
||||||
|
|
||||||
|
screw_diameter = 6.5;
|
||||||
|
screw_center_offset = 45;
|
||||||
|
|
||||||
|
$fn = 200;
|
||||||
|
|
||||||
|
module lap_plank() {
|
||||||
|
// Define the triangular profile for the siding
|
||||||
|
// We use a polygon for the wedge shape
|
||||||
|
path = [[0, 0], [lap_depth, 0], [0, lap_height], [0, 0]];
|
||||||
|
|
||||||
|
// Sweep the profile across the width of the wall
|
||||||
|
linear_extrude(wall_width) polygon(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
module back_pattern() {
|
||||||
|
translate([0,-lap_height/2,-wall_width/2])
|
||||||
|
ycopies(lap_height, l=wall_width)
|
||||||
|
lap_plank();
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
translate([0,ring_offset,0])
|
||||||
|
difference() {
|
||||||
|
xcyl(l=ring_thickness, d=ring_outer, anchor=LEFT);
|
||||||
|
xcyl(l=ring_thickness, d=ring_inner, anchor=LEFT);
|
||||||
|
}
|
||||||
|
group() {
|
||||||
|
back_pattern();
|
||||||
|
|
||||||
|
/* screw holes */
|
||||||
|
translate([0,ring_offset,0]) rotate([45,0,0]) group() {
|
||||||
|
translate([0,0,screw_center_offset]) xcyl(d=screw_diameter, l=4*ring_thickness);
|
||||||
|
translate([0,0,-screw_center_offset]) xcyl(d=screw_diameter, l=4*ring_thickness);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,15 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
outer_diameter = 48.5;
|
||||||
|
inner_diameter = 32;
|
||||||
|
length = 20;
|
||||||
|
|
||||||
|
lip_thickness = 4.4;
|
||||||
|
lip_height = 2;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
up(lip_height)
|
||||||
|
tube(h=length, od=outer_diameter, id=inner_diameter, anchor=BOT);
|
||||||
|
tube(h=lip_height, od=outer_diameter+2*lip_thickness, id=inner_diameter, anchor=BOT);
|
||||||
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,267 @@
|
|||||||
|
// Vee-wagon beam clip — a C-shaped collar that wraps the octagonal beam
|
||||||
|
// section and carries a small integral loop for hanging things.
|
||||||
|
//
|
||||||
|
// See design-drawing.jpg. The pencil octagon is the beam cross-section:
|
||||||
|
// 24 mm across the narrow flats, 33 mm across the tall ones, with corner
|
||||||
|
// chamfers of about 4 x 9 mm (that is what the drawn 16 mm and 15 mm flats
|
||||||
|
// work out to). The marker line is the clip: it hugs three and a quarter
|
||||||
|
// sides of that section, opens across the narrow 24 mm direction, and
|
||||||
|
// finishes in a curled loop on the lower-left chamfer.
|
||||||
|
//
|
||||||
|
// Model space: Z = the beam axis, so the part comes off the bed in its
|
||||||
|
// print orientation — profile in XY, band standing up along Z.
|
||||||
|
// -Y = open (gap) side, +Y = closed back. The loop is not a separate boss:
|
||||||
|
// it is the band's own end curled over, tangent to the band's centreline.
|
||||||
|
//
|
||||||
|
// Why the section is octagonal and not round: a load on the loop pulls
|
||||||
|
// radially, which tries to rotate the clip about the beam axis. The flats
|
||||||
|
// react that torque, so the clip cannot spin — no screw, no glue.
|
||||||
|
// A load also stays inside the printed layers (it pulls along XY, never
|
||||||
|
// perpendicular to a bond line), which is the strong direction for FDM.
|
||||||
|
//
|
||||||
|
// Mounting — the beam has no free end, so the clip goes on sideways across the
|
||||||
|
// 24 mm flats and `gap` sets the bite: 23.8 presses on, 24.4 slips on.
|
||||||
|
// `grip` would hook the plain tail behind the flat for a captive fit, but then
|
||||||
|
// the opening ends up narrower than the section and the clip could only be
|
||||||
|
// slid on from a free end. Keep it at 0 here.
|
||||||
|
//
|
||||||
|
// Prints flat with no supports: every wall is vertical and the tallest
|
||||||
|
// feature is the band height.
|
||||||
|
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
/* [Beam] */
|
||||||
|
// Beam across-flats, narrow direction (X)
|
||||||
|
beam_w = 23;
|
||||||
|
// Beam across-flats, tall direction (Y)
|
||||||
|
beam_h = 33;
|
||||||
|
// Corner chamfer along X (24 - 2*4 = 16 mm chamfer-free flats)
|
||||||
|
beam_chamf_x = 4; // [0:0.5:10]
|
||||||
|
// Corner chamfer along Y (33 - 2*9 = 15 mm chamfer-free flats)
|
||||||
|
beam_chamf_y = 9; // [0:0.5:14]
|
||||||
|
// Radial clearance between the beam and the clip bore
|
||||||
|
fit = 0.3; // [0:0.05:1]
|
||||||
|
|
||||||
|
/* [Clip] */
|
||||||
|
// Band wall thickness, normal to the beam faces
|
||||||
|
wall = 2; // [1.5:0.25:8]
|
||||||
|
// Band height along the beam axis
|
||||||
|
band_h = 10; // [4:1:30]
|
||||||
|
// How much further the plain tail (the side without the loop) reaches round
|
||||||
|
// the corner towards the edge of the flat, so it hooks over the section. Any
|
||||||
|
// more than about 1 mm makes the opening narrower than the section, which means
|
||||||
|
// the clip can only be slid on from a free end of the beam — this beam has
|
||||||
|
// none, so leave this at 0 and take the grip from `gap` instead.
|
||||||
|
grip = 0; // [0:0.5:8]
|
||||||
|
// Flex clearance between the two ends of the opening on the -Y side.
|
||||||
|
// 23.8 the band presses on with 0.2 mm of bite
|
||||||
|
// 24.4 loose: rock free, and free to slide along the beam
|
||||||
|
// 0 no opening at all, a plain collar (strongest)
|
||||||
|
// Open this up in 0.2 mm steps if the clip will not seat.
|
||||||
|
gap = 23.8; // [0:0.2:34]
|
||||||
|
|
||||||
|
/* [Loop] */
|
||||||
|
// Loop overall width across the curl (10 mm on the drawing)
|
||||||
|
loop_d = 10; // [8:0.5:20]
|
||||||
|
// Throat between the hook's tip and the band — how big a thing you can slip
|
||||||
|
// on. 0 closes the crook into a ring instead.
|
||||||
|
mouth = 5; // [0:0.5:9]
|
||||||
|
// Which face of the section the loop grows off, as the outward normal angle of
|
||||||
|
// that face: 205 = the lower chamfer it continues, 180 = the narrow flat. The
|
||||||
|
// nearest face is used and the hook squares up to it.
|
||||||
|
loop_ang = 205; // [0:5:355]
|
||||||
|
// Slide the loop along that face: 0 centres it on the face, + is towards the
|
||||||
|
// opening, - is away from it.
|
||||||
|
loop_off = 2; // [-12:0.5:12]
|
||||||
|
// Which way the curl winds: 1 lays the throat back along the band towards the
|
||||||
|
// section, as drawn; -1 mirrors it to the other side.
|
||||||
|
hook_dir = 1; // [1,-1]
|
||||||
|
// How far before the tip the ribbon tapers to its point
|
||||||
|
hook_taper = 40; // [0:5:90]
|
||||||
|
|
||||||
|
/* [Hidden] */
|
||||||
|
// Preview aid: draw the beam in the render so the fit can be eyeballed.
|
||||||
|
// Leave off when exporting for the slicer.
|
||||||
|
show_beam = false;
|
||||||
|
|
||||||
|
$fn = 256;
|
||||||
|
epsilon = 0.01;
|
||||||
|
layer_height = 0.2; // general utility print; not a Customizer parameter
|
||||||
|
|
||||||
|
// The only dimension that prints along the build axis — snap it to layers.
|
||||||
|
band_h_l = ceil(band_h / layer_height) * layer_height;
|
||||||
|
|
||||||
|
// Round for display in the echoes below (BOSL2 shadows round()'s 2-arg form).
|
||||||
|
function r1(v) = round(v*10)/10;
|
||||||
|
function r2(v) = round(v*100)/100;
|
||||||
|
|
||||||
|
// Octagon: across-flats w x h, corners cut back chx x chy.
|
||||||
|
function octagon(w, h, chx, chy) = [
|
||||||
|
[-w/2 + chx, h/2],
|
||||||
|
[ w/2 - chx, h/2],
|
||||||
|
[ w/2, h/2 - chy],
|
||||||
|
[ w/2, -h/2 + chy],
|
||||||
|
[ w/2 - chx, -h/2],
|
||||||
|
[-w/2 + chx, -h/2],
|
||||||
|
[-w/2, -h/2 + chy],
|
||||||
|
[-w/2, h/2 - chy],
|
||||||
|
];
|
||||||
|
|
||||||
|
// Bore = beam section grown by the clearance on every face.
|
||||||
|
hw = beam_w / 2 + fit;
|
||||||
|
hh = beam_h / 2 + fit;
|
||||||
|
chx = beam_chamf_x + fit;
|
||||||
|
chy = beam_chamf_y + fit;
|
||||||
|
BORE = octagon(2*hw, 2*hh, chx, chy);
|
||||||
|
|
||||||
|
// Outer contour = bore pushed out by the wall, joins rounded off by the same
|
||||||
|
// amount so the band has no sharp outer corners.
|
||||||
|
OUTER = offset(BORE, delta=wall, closed=true);
|
||||||
|
|
||||||
|
// Each bore face as [outward normal angle, distance from the beam centre].
|
||||||
|
FACES = [
|
||||||
|
for (i = idx(BORE))
|
||||||
|
let(p1 = BORE[i], p2 = BORE[(i + 1) % len(BORE)], e = p2 - p1,
|
||||||
|
n = unit([-e.y, e.x]))
|
||||||
|
[atan2(n.y, n.x), p1 * n]
|
||||||
|
];
|
||||||
|
|
||||||
|
// How far out the bore is along a ray at `ang`.
|
||||||
|
function ray_out(faces, ang) =
|
||||||
|
min([for (f = faces) let(c = cos(ang - f[0])) c > 1e-6 ? f[1] / c : 1e9]);
|
||||||
|
|
||||||
|
// The hook is the band's own end curled into a crook: the ribbon is the band's
|
||||||
|
// thickness and its centreline is tangent to the band's centreline, so the two
|
||||||
|
// read as one stroke and the root cross-section lines up exactly with the
|
||||||
|
// band's. The crook starts where it meets the band and sweeps round until the
|
||||||
|
// tip is `mouth` away from it, which is what sets the sweep:
|
||||||
|
// throat = 2 * hook_ri * sin(sweep_shortfall / 2)
|
||||||
|
hook_ro = loop_d / 2; // curl outside
|
||||||
|
hook_ri = hook_ro - wall; // curl inside; ribbon = the band
|
||||||
|
hook_rc = hook_ro - wall / 2; // curl centreline
|
||||||
|
hook_tp = mouth > 0 ? hook_taper : 0;
|
||||||
|
hook_dw = mouth > 0 ? 2 * asin(min(0.98, mouth / (2 * hook_ri))) : 0;
|
||||||
|
hook_span = 360 - hook_dw; // the ribbon's sweep
|
||||||
|
// The face the hook grows off. `loop_ang` only *picks* the face; the hook then
|
||||||
|
// squares up to that face's own normal. The root has to be anchored on the
|
||||||
|
// face itself rather than on the foot of the perpendicular from the beam
|
||||||
|
// centre: that foot falls off the end of a chamfer, which put the root on the
|
||||||
|
// bore's corner and made the band's end cut slice diagonally through it.
|
||||||
|
face_off = [for (f = FACES) abs(((f[0] - loop_ang + 540) % 360) - 180)];
|
||||||
|
face_i = [for (i = idx(face_off)) if (face_off[i] == min(face_off)) i][0];
|
||||||
|
hook_ang = FACES[face_i][0]; // the face's own normal angle
|
||||||
|
hook_n = [cos(hook_ang), sin(hook_ang)];
|
||||||
|
hook_t = [cos(hook_ang + 90), sin(hook_ang + 90)];
|
||||||
|
// The root is a point on the face, slid along it by `loop_off`, so the ribbon's
|
||||||
|
// root cross-section lands exactly in the band's wall.
|
||||||
|
hook_root = (BORE[face_i] + BORE[(face_i + 1) % len(BORE)]) / 2
|
||||||
|
+ hook_t * loop_off;
|
||||||
|
loop_c = hook_root + hook_n * (wall / 2 + hook_rc);
|
||||||
|
loop_nd = hook_root * hook_n;
|
||||||
|
hook_a0 = hook_ang + 180; // where the ribbon meets the band
|
||||||
|
|
||||||
|
function hook_out_r(a) =
|
||||||
|
hook_ro - (hook_tp > 0
|
||||||
|
? (hook_ro - hook_ri - 0.8)
|
||||||
|
* min(1, max(0, (a - (hook_span - hook_tp)) / hook_tp))
|
||||||
|
: 0);
|
||||||
|
|
||||||
|
// The crook's outline: out along the curl tapering into the tip, back along
|
||||||
|
// the barrel, closed off flat where it runs into the band.
|
||||||
|
hook_seg = ceil(hook_span / 2);
|
||||||
|
HOOK = [
|
||||||
|
for (i = [0 : hook_seg])
|
||||||
|
let(a = hook_span * i / hook_seg)
|
||||||
|
loop_c + polar_to_xy(hook_out_r(a), hook_a0 - hook_dir * a),
|
||||||
|
for (i = [hook_seg : -1 : 0])
|
||||||
|
let(a = hook_span * i / hook_seg)
|
||||||
|
loop_c + polar_to_xy(hook_ri, hook_a0 - hook_dir * a)
|
||||||
|
];
|
||||||
|
|
||||||
|
// The opening keeps its `gap` flex clearance but is shifted over by `grip`
|
||||||
|
// towards the loop, which leaves the plain tail hooked under the flat.
|
||||||
|
open_l = -(gap / 2 + grip); // x of the opening's loop-side face
|
||||||
|
open_r = gap / 2 - grip; // x of the plain tail's inner face
|
||||||
|
cut_h = beam_h + 2 * wall;
|
||||||
|
|
||||||
|
echo(str("Beam section: ", beam_w, " x ", beam_h, " mm, chamfer ",
|
||||||
|
beam_chamf_x, " x ", beam_chamf_y, " -> flats ",
|
||||||
|
beam_w - 2*beam_chamf_x, " / ", beam_h - 2*beam_chamf_y, " mm"));
|
||||||
|
echo(str("Bore: ", 2*hw, " x ", 2*hh, " mm. Band ", wall, " mm thick x ",
|
||||||
|
band_h_l, " mm high = ", band_h_l/layer_height, " layers"));
|
||||||
|
echo(str("Opening ", gap, " mm -> ", gap == 0 ? "no opening, plain collar" :
|
||||||
|
gap > beam_w ? str(r2(gap-beam_w), " mm clearance") :
|
||||||
|
gap < beam_w ? str(r2(beam_w-gap), " mm bite") :
|
||||||
|
"zero clearance",
|
||||||
|
grip > 0 ? str("; tail reaches ", grip, " mm further round the corner",
|
||||||
|
" (needs a free end to mount)") :
|
||||||
|
" presses on sideways across the flats"));
|
||||||
|
echo(str("Hook: ", loop_d, " mm across a ", wall, " mm ribbon, ",
|
||||||
|
r2(2*hook_ri), " mm barrel, ", r1(hook_span), " deg of curl, ",
|
||||||
|
mouth > 0 ? str(mouth, " mm throat") : "closed ring",
|
||||||
|
" centred ", r1(loop_c.x), ", ", r1(loop_c.y),
|
||||||
|
" (", r1(loop_nd + wall/2 + hook_rc), " mm out, tangent to the band)"));
|
||||||
|
|
||||||
|
// Flat profile of the clip, then one extrusion along the beam axis.
|
||||||
|
module clip_profile() {
|
||||||
|
difference() {
|
||||||
|
union() {
|
||||||
|
// Band: an octagonal sleeve, opened up on the -Y side. Shifting
|
||||||
|
// the opening towards the loop lets the plain tail reach further
|
||||||
|
// round the corner by `grip`.
|
||||||
|
difference() {
|
||||||
|
polygon(OUTER);
|
||||||
|
polygon(BORE);
|
||||||
|
if (gap > epsilon) {
|
||||||
|
// square() is anchored on its low corner, so the cutter
|
||||||
|
// reaches from the bore's -Y face out past the part.
|
||||||
|
translate([open_l - epsilon, -hh - cut_h])
|
||||||
|
square([gap + 2*epsilon, cut_h]);
|
||||||
|
}
|
||||||
|
// Stop the band dead at the hook's root so nothing carries on
|
||||||
|
// past the curl. Two things to get right here: a flat cut
|
||||||
|
// leaves the band's end wall standing outboard of the curl as a
|
||||||
|
// loose-looking tab (the curl only reaches the band's outer face
|
||||||
|
// 4 mm further along), and cutting to the curl's *circle* leaves
|
||||||
|
// a crescent of band by the bore that ends in a barb, because
|
||||||
|
// that circle is tangent to the bore side. So keep exactly the
|
||||||
|
// ribbon's own footprint, grown by half an epsilon to keep the
|
||||||
|
// union off coincident faces.
|
||||||
|
difference() {
|
||||||
|
translate(hook_root) rotate(hook_ang + 90)
|
||||||
|
translate([0, -(wall + 8)])
|
||||||
|
square([beam_h, wall + 9]);
|
||||||
|
polygon(offset(HOOK, delta=epsilon/2, closed=true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// The hook: the band's end curled into a crook, tangent to the
|
||||||
|
// band's centreline so the two read as one stroke.
|
||||||
|
polygon(HOOK);
|
||||||
|
}
|
||||||
|
// Nothing may stand inside the beam's envelope.
|
||||||
|
polygon(BORE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The clip: the profile swept along the beam axis by the band height.
|
||||||
|
module clip() {
|
||||||
|
linear_extrude(band_h_l)
|
||||||
|
clip_profile();
|
||||||
|
}
|
||||||
|
|
||||||
|
// The beam itself, for in-context checking only — never print this.
|
||||||
|
module beam() {
|
||||||
|
color("tan")
|
||||||
|
linear_extrude(band_h_l + 20, center=true)
|
||||||
|
polygon(octagon(beam_w, beam_h, beam_chamf_x, beam_chamf_y));
|
||||||
|
}
|
||||||
|
|
||||||
|
// One object for the slicer
|
||||||
|
union() {
|
||||||
|
clip();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Beam in context, for previewing the fit only.
|
||||||
|
if (show_beam) {
|
||||||
|
beam();
|
||||||
|
}
|
||||||