pdf-page/gemini-3.1-pro / tier-4-gp2y0a21yk
no_code tier 4
error
no SCAD code block in response (stopReason=MAX_TOKENS)
pdf-page (gemini 3.1 pro)
render
no render
no_code 146.0s
· 1528/653t · $0.0084
no SCAD code block in response (stopReason=MAX_TOKENS)
SCAD (1 lines)
no SCAD
```openscad
// Sharp GP2Y0A21YK0F Distance Sensor
// All dimensions in mm
// Coordinate system: Origin at the center of the main body
// +Z: Up (lens side)
// +Y: Forward
$fn = 64;
module gp2y0a21yk0f() {
// ---------------------------------------------------
// 1. Mounting Flange (Connecting Bar)
// ---------------------------------------------------
difference() {
union() {
// Main rectangular part of the flange
// Width: 29.5 (between hole centers), Depth: 8.4, Thickness: 2.0
translate([-14.75, -4.2, 0])
cube([29.5, 8.4, 2.0]);
// Left semicircular end
translate([-14.75, 0, 0])
cylinder(h=2.0, r=3.75);
// Right semicircular end
translate([14.75, 0, 0])
cylinder(h=2.0, r=3.75);
}
// Left mounting hole (phi 3.2 -> r=1.6)
translate([-14.75, 0, -1.0])
cylinder(h=4.0, r=1.6);
// Right mounting hole (phi 3.2 -> r=1.6)
translate([14.75, 0, -1.0])
cylinder(h=4.0, r=1.6);
// Cutout for connector/cable routing
// Width 10.1, opening towards -Y
translate([-5.05, -5.0, -1.0])
cube([10.1, 5.0, 4.0]);
}
// ---------------------------------------------------
// 2. Main Lens Case Body
// ---------------------------------------------------
// Extends from Z=2.0 up to Z=12.0
// Depth: 13.0 (Y = -6.7 to 6.3)
// Width: approx 28.0 (X = -14.0 to 14.0)
translate([-14.0, -6.7, 2.0])
cube([28.0, 13.0, 10.0]);
// ---------------------------------------------------
// 3. Lenses (Light Emitter & Detector)
// ---------------------------------------------------
// Lens positions are referenced from the left hole (X = -14.75)
// Left lens center: X = -14. meta
| runId | pdf-page_gemini-3.1-pro-f6bfa58886c9-2026-04-29T04-27-27-682Z |
|---|---|
| matrixId | pdf-page/gemini-3.1-pro |
| signature | f6bfa58886c94b24… |
| provider | |
| model | gemini-3.1-pro-preview |
| harness | pdf-page |
| status | no_code |
| duration | 146.01s (wallclock: load + prompt eval + generation + network) |
| tokens | 1528 in / 653 out |
| wallclock tok/s | 4.5 tok/s (end-to-end) |
| cost | $0.0084 |
| createdAt | 2026-04-29T04:27:27.682Z |
| gitCommit | eb1085a14327 |
| openscad | OpenSCAD version 2026.04.27 |
prompt
添付画像は Sharp 製測距センサ GP2Y0A21YK0F のデータシートのページです。 OpenSCAD でモデリングしてください。 座標系: 単位 mm、本体の中心を原点とし、取付面(PWB / コネクタ側)を -Z に向ける。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。