vibe-openscad

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

success tier 4

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

render
bare render of tier-4-gp2y0d413k
loading STL…
success 15.7s · 374/1020t
SCAD (26 lines)
// Sharp GP2Y0D413K0F Distance Sensor Modeling
// Coordinate System: Origin at center of the body. -Z points towards the mounting surface (PWB/Connector side).
// Dimensions are based on the provided outline dimensions in mm.

// --- Parameters based on Outline Dimensions ---
L = 29.45; // Length (mm)
W = 10.1;  // Width (mm)
H = 3.75;  // Thickness/Height (derived from drawing, representing the dimension between mounting features)

// --- Module Definitions ---

// Main Sensor Body
module sensor_body() {
    // The body is centered at the origin (0, 0, 0).
    // Since -Z points to the mounting surface, the body extends in the positive Z direction.
    cube([L, W, H], center = true);
}

// Optional: Representing a simplified connection area or mounting feature if required, 
// but focusing primarily on the main geometry defined by the outline.

// --- Model Execution ---
sensor_body();

// Note: The block diagram features (LED emitter, Output circuit, etc.) are functional representations
// and are not explicitly modeled as physical external features unless specific dimensions for their placement are provided.
パラメータ (3) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdpdf-page_gemma-4-e2b-1193bd7dcaaa-2026-09-05T15-18-01-523Z
matrixIdpdf-page/gemma-4-e2b
signature1193bd7dcaaa4d5b…
provideropenai-self-hosted
modelgoogle/gemma-4-e2b
harnesspdf-page
statussuccess
duration15.73s (wallclock: load + prompt eval + generation + network)
TTFT0.538s
generation time6.68s (pure decode, excludes load + prompt eval)
tokens374 in / 1020 out
generation tok/s152.7 tok/s (pure decode rate)
wallclock tok/s64.8 tok/s (end-to-end)
createdAt2026-09-05T15:18:01.523Z
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 製距離センサ GP2Y0D413K0F のデータシートのページです。
OpenSCAD でモデリングしてください。

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

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