vibe-openscad

pdf-page/gemma-4-e2b / tier-4-gp2y0a21yk

success tier 4

pdf-page (google/gemma-4-e2b)

render
bare render of tier-4-gp2y0a21yk
loading STL…
success 8.1s · 374/1289t
SCAD (42 lines)
// Sharp GP2Y0A21YK0F Distance Sensor Model (OpenSCAD)
// Coordinate System: Origin at center, Z points towards the mounting face (-Z is the mounting side)
// Units: mm

// --- Dimensions Reference ---
// Based on Outline Dimensions provided in the datasheet
// X-axis dimension (Length): 16.3 mm (from diagram)
// Y-axis dimension (Width): 7.5 mm (from diagram, based on projection)
// Thickness/Height: Varies depending on feature

// Define overall dimensions for the main body block (based on the base view)
module sensor_body() {
    // The shape is defined by the outline dimensions shown in the bottom view.
    // X dimension = 16.3 mm, Y dimension = 7.5 mm
    cube([16.3, 7.5, 4.15], center = true); // Using 4.15 as a reference depth/thickness for the main body structure
}

module mounting_features() {
    // Define mounting features based on the diagram (example placement relative to center)

    // Note: These dimensions are relative placements derived from the datasheet's outline view.
    
    // Example of defining a connector area (simplified representation)
    color("red")
    translate([0, 0, -4.15]) // Positioned at the mounting face (-Z direction)
    cube([16.3, 7.5, 2.0], center = true); // Represents the mounting plate/connector area

    // Example of defining a sensor position mark (simplified representation)
    color("blue")
    translate([8.15, 0, -4.15]) // Position based on X=8.15
    cube([2.0, 3.0, 1.0], center = true); // Represents a feature/mark at X=8.15
}

// --- Assembly ---

sensor_body();
mounting_features();

// Optional: Visualization for checking the model
// color("green")
// translate([0, 0, -20])
// cube([30, 30, 40], center = true); // Reference cube

meta

runIdpdf-page_gemma-4-e2b-28edff1afb1f-2026-09-05T15-18-09-919Z
matrixIdpdf-page/gemma-4-e2b
signature28edff1afb1ffe69…
provideropenai-self-hosted
modelgoogle/gemma-4-e2b
harnesspdf-page
statussuccess
duration8.14s (wallclock: load + prompt eval + generation + network)
TTFT0.295s
generation time7.89s (pure decode, excludes load + prompt eval)
tokens374 in / 1289 out
generation tok/s163.4 tok/s (pure decode rate)
wallclock tok/s158.4 tok/s (end-to-end)
createdAt2026-09-05T15:18:09.919Z
gitCommitb26b1bdf8cd1
openscadOpenSCAD version 2026.04.27

model metadata (self-hosted)

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

publishergoogle
typevlm
archgemma4
quantizationQ4_K_M
max ctx131,072 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

添付画像は Sharp 製測距センサ GP2Y0A21YK0F のデータシートのページです。
OpenSCAD でモデリングしてください。

座標系: 単位 mm、本体の中心を原点とし、取付面(PWB / コネクタ側)を -Z に向ける。

完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。