vibe-openscad

bare-max/claude-opus-4-8 / tier-2-l-bracket

success tier 2

bare (claude opus 4.8)

render
bare render of tier-2-l-bracket
loading STL…
success 12.8s · 379/985t · $0.0265
SCAD (67 lines)
// L-Bracket with countersunk holes for M4 screws
// Internal corner at origin
// Horizontal flange extends in +Y direction
// Vertical flange extends in +Z direction

$fn = 64;

// ---- Parameters ----
flange_width    = 50;   // X width of both flanges
flange_length   = 40;   // Y depth of horizontal / Z height of vertical
thickness       = 3;    // plate thickness

// M4 countersunk hole parameters
hole_dia        = 4.5;  // through hole diameter
csk_dia         = 8;    // countersink (head seat) diameter
csk_depth       = 2;    // countersink depth

// Hole placement
edge_offset     = 10;   // distance from outer edge to hole center
hole_spacing_x  = 30;   // left-right symmetric spacing along X

// ---- Countersunk hole tool ----
// Bore axis along +Z, csk seat opens toward -Z (outer side).
// Tool is centered at origin in XY, top at z=0.
module countersink_tool(len = 50) {
    union() {
        // through hole
        translate([0, 0, -len/2])
            cylinder(h = len, d = hole_dia, center = true);
        // counterbore / countersink seat opening downward (outer side)
        translate([0, 0, -csk_depth])
            cylinder(h = csk_depth + 0.01, d = csk_dia);
    }
}

// ---- Bracket body ----
module l_bracket() {
    union() {
        // Horizontal flange: footprint X[0..width], Y[0..length], Z[0..thickness]
        cube([flange_width, flange_length, thickness]);

        // Vertical flange: footprint X[0..width], Y[0..thickness], Z[0..length]
        cube([flange_width, thickness, flange_length]);
    }
}

// ---- Assembly ----
difference() {
    l_bracket();

    // --- Holes in horizontal flange ---
    // Outer surface is +Z (top). Bore along -Z, csk seat opens toward +Z.
    // Center line at X = flange_width/2, holes at Y = edge_offset from +Y edge.
    for (dx = [-hole_spacing_x/2, hole_spacing_x/2]) {
        translate([flange_width/2 + dx, flange_length - edge_offset, thickness])
            countersink_tool();
    }

    // --- Holes in vertical flange ---
    // Outer surface is +Y (front). Bore along -Y, csk seat opens toward +Y.
    // Rotate tool so its bore axis points along -Y.
    for (dx = [-hole_spacing_x/2, hole_spacing_x/2]) {
        translate([flange_width/2 + dx, thickness, flange_length - edge_offset])
            rotate([-90, 0, 0])
                countersink_tool();
    }
}
パラメータ (8)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-max_claude-opus-4-8-f2fbc5de80a9-2026-06-09T17-38-49-611Z
matrixIdbare-max/claude-opus-4-8
signaturef2fbc5de80a9d068…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration12.75s (wallclock: load + prompt eval + generation + network)
tokens379 in / 985 out
wallclock tok/s77.2 tok/s (end-to-end)
cost$0.0265
createdAt2026-06-09T17:38:49.611Z
gitCommitc8a77106d384
openscadOpenSCAD version 2026.04.27

prompt

OpenSCAD で、L 字に折れた金具(L-bracket)を作ってください。

形状:
- 水平面と垂直面の 2 つのフランジが直角に繋がっている
- 水平面は 50mm × 40mm(幅 × 奥行き)
- 垂直面は 50mm × 40mm(幅 × 高さ)
- 板厚はどちらも 3mm
- 内側コーナーが原点になるように配置(水平面は +Y 方向、垂直面は +Z 方向に伸びる)

皿穴(countersunk holes):
- 各面に 2 個ずつ、合計 4 個
- M4 ねじ用(貫通穴 Φ4.5mm + 皿座面 Φ8mm × 深さ 2mm)
- 各面の中心線上で、面の縁から 10mm 内側、左右対称に 2 個並べる
- 皿座面は外側(ボルト頭が当たる側)に向ける

完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。