vibe-openscad

bare/qwen3-0.6b / tier-3-butt-hinge

render_error tier 3
error
openscad stl render failed (exit 1): ERROR: Parser error: syntax error in file ../../../../../tmp/render-YlKqlo/input.scad, line 4
Can't parse file '/tmp/render-YlKqlo/input.scad'!

bare (qwen3-0.6b)

render
no render
render_error 16.5s · 623/2333t
openscad stl render failed (exit 1): ERROR: Parser error: syntax error in file ../../../../../tmp/render-YlKqlo/input.scad, line 4
Can't parse file '/tmp/render-YlKqlo/input.scad'!

SCAD (82 lines)
// OpenSCAD butt hinge design: left plate, right plate, and pivot pin

// Define base plates (left and right)
part left_plate = cylinder(
    dimensions => [30, 25, 2],
    radius => 1.5,
    height => 2,
    y => 30,
    x => -0.5,
    z => 0
);

part right_plate = cylinder(
    dimensions => [30, 25, 2],
    radius => 1.5,
    height => 2,
    y => 6,
    x => 0.5,
    z => 0
);

// Define pivot pin (cylinder)
pin_cylinders = cylinder(
    dimensions => [32, 4, 0.1],
    radius => 2,
    height => 32,
    center_y => 0.5
);

// Knuckles for left and right plates
left_knuckles = [
    pin_cylinders,
    pin_cylinders,
    pin_cylinders,
    pin_cylinders
];

right_knuckles = [
    pin_cylinders,
    pin_cylinders
];

// Holes in knuckles (M3 nuts)
holes_left = [
    cylinder(
        dimensions => [8, 6, 1.5],
        radius => 3.2,
        z => -0.5
    ),
    cylinder(
        dimensions => [8, 6, 1.5],
        radius => 4.6,
        z => 0.5
    )
];

holes_right = [
    cylinder(
        dimensions => [8, 6, 1.5],
        radius => 3.2,
        z => -0.5
    ),
    cylinder(
        dimensions => [8, 6, 1.5],
        radius => 4.6,
        z => 0.5
    )
];

// Coordinate system setup
set_coords() {
    pivot_y = 32mm;
    left_x = -0.5;
    right_x = 0.5;
    knuckle_center_y = 6mm;
}

// Combine all components into one file with correct positions and connections
file "butt_hinge.scad" {
    // Left plate at x <0, right at x >0
    left_plate + right_plate + pin_cylinders + holes_left + holes_right
}

meta

runIdbare_qwen3-0.6b-a4addbec0e38-2026-04-29T08-21-33-070Z
matrixIdbare/qwen3-0.6b
signaturea4addbec0e381327…
provideropenai-self-hosted
modelqwen3-0.6b
harnessbare
statusrender_error
duration16.51s (wallclock: load + prompt eval + generation + network)
tokens623 in / 2333 out
wallclock tok/s141.3 tok/s (end-to-end)
createdAt2026-04-29T08:21:33.070Z
gitCommit1d991ed9e773
openscadOpenSCAD version 2026.04.27

model metadata (self-hosted)

セルフホスト LLM はクラウドの単一 provider と違い、 実質「(モデル開発者, weight publisher, 量子化)」の組で挙動が決まる。 run 時に LM Studio / Ollama から取得した値:

publisherlmstudio-community
typellm
archqwen3
quantizationQ8_0
max ctx32,768 tok
capabilitiestool_use
host GPUNVIDIA GeForce RTX 3090 (Vulkan)
host VRAM24 GB
host CPU12th Gen Intel(R) Core(TM) i9-12900K
host RAM32 GB

prompt

OpenSCAD で、家具用の小型バット蝶番(butt hinge)を作ってください。
3 つのパーツ(左板、右板、ピン軸)が組み合わさって動作する完成品を、
「開いた状態(180°)」で 1 つの SCAD ファイルに配置して出力します。

寸法と配置:
- 板(leaf)2 枚: 30mm × 25mm × 厚さ 2mm の鉄板形状
  - 縦 30mm の辺がピン軸に沿う(ヒンジ軸方向)
  - 横 25mm の辺が回転で開く方向に伸びる
- ピン軸: 直径 4mm の円柱、長さ 32mm(両端 1mm ずつ knuckle から飛び出す)
- knuckle(筒部): 縦 30mm を 5 等分(各 6mm)に区切り、左板に 3 個・右板に 2 個を
  互い違いに配置(左板は外側 2 個 + 中央 1 個、右板は中間 2 個)
- knuckle 外径 8mm、内径はピン軸 + 0.3mm クリアランス(= 4.6mm 穴)
- 左板と右板はピン軸を共有して回転可能。180° 開いた状態で、両板の
  平らな面が同一平面に来るように配置する
- 各板の knuckle から離れた側に、M3 用の皿穴を 3 個ずつ
  (穴ピッチは板の縦方向に 8mm 間隔、皿穴は表面から見て直径 6mm × 深さ 1mm
  のテーパ + 直径 3.2mm の貫通穴)

座標系:
- ピン軸の中心線を Y 軸に重ねる(ピン軸は +Y 方向)
- 板の平らな面は Z 軸に直交し、左板が x<0 側、右板が x>0 側に伸びる(180° 開)
- knuckle は X=0 を中心とし、Y 方向に 6mm ずつ並ぶ

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