vibe-openscad

tier-2-l-bracket / qwen3-32b

1 run / 累計 289.5s / 累計 $0

qwen (self-hosted) qwen3-32b bare

bare (provider default effort)

run detail →
render
bare render of tier-2-l-bracket
loading STL…
success 289.5s · 302/3448t
SCAD (53 lines)
// L-bracket with countersunk holes (M4)
thickness = 3;

// Horizontal flange dimensions
horizontal_width_x = 50; // along X
horizontal_depth_y = 40; // along Y
horizontal_thickness_z = thickness; // along Z

// Vertical flange dimensions
vertical_width_x = horizontal_width_x;
vertical_height_z = 40; // along Z
vertical_thickness_y = thickness; // along Y

// Hole parameters (M4 countersunk)
hole_diameter = 4.5;
counterbore_diameter = 8;
counterbore_depth = 2;

// Position of holes: 10mm from face edges, centered in the other dimension
horizontal_hole_x = 10; // distance from left/right edge along X for horizontal flange
vertical_hole_y = 10;   // distance from front/back edge along Y for vertical flange

module l_bracket() {
    union() {
        // Horizontal flange (X x Y x Z)
        translate([0, 0, 0]) cube([horizontal_width_x, horizontal_depth_y, horizontal_thickness_z]);

        // Vertical flange (X x Y x Z)
        translate([0, 0, 0]) cube([vertical_width_x, vertical_thickness_y, vertical_height_z]);
    }
}

module countersunk_hole() {
    difference() {
        cylinder(h=100, r=hole_diameter/2);
        translate([0, 0, counterbore_depth]) 
            cylinder(h=100 - counterbore_depth, r=counterbore_diameter/2);
    }
}

l_bracket();

// Horizontal flange holes
translate([-horizontal_hole_x, horizontal_depth_y/2, horizontal_thickness_z/2])
    rotate([90, 0, 0]) countersunk_hole();
translate([horizontal_width_x + horizontal_hole_x, horizontal_depth_y/2, horizontal_thickness_z/2])
    rotate([90, 0, 0]) countersunk_hole();

// Vertical flange holes
translate([-vertical_hole_x, vertical_thickness_y/2, vertical_height_z - vertical_hole_y])
    rotate([0, 90, 90]) countersunk_hole();
translate([vertical_width_x + vertical_hole_x, vertical_thickness_y/2, vertical_height_z - vertical_hole_y])
    rotate([0, 90, 90]) countersunk_hole();
パラメータ (9) —
スライダを動かすと openscad-wasm で再レンダリング

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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。