vibe-openscad

tier-1-mug / gpt-6-luna

6 run / 累計 148.8s / 累計 $0.0073

openai gpt 6 luna bare

bare (provider default effort)

run detail →
render
bare render of tier-1-mug
loading STL…
success 14.9s · 168/1236t · $0.0006
SCAD (29 lines)
$fn = 128;

outer_diameter = 80;
height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_radius = 12;
handle_tube_radius = 2;
handle_center_x = outer_diameter / 2 + handle_radius - 1;
handle_center_z = height / 2;

union() {
    difference() {
        cylinder(d = outer_diameter, h = height);

        translate([0, 0, bottom_thickness])
            cylinder(
                d = outer_diameter - 2 * wall_thickness,
                h = height - bottom_thickness + 0.1
            );
    }

    translate([handle_center_x, 0, handle_center_z])
        rotate([90, 0, 0])
            rotate_extrude()
                translate([handle_radius, 0, 0])
                    circle(r = handle_tube_radius);
}
パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング

prompt

OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。
底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。
さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。
取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。

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

variant: effort

low success →
low
9.6s · 168/688t · $0.0004
SCAD (28 lines)
$fn = 128;

cup_outer_radius = 40;
cup_height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_radius = 12;
handle_tube_radius = 4;
handle_center_x = 49;

union() {
    difference() {
        cylinder(h = cup_height, r = cup_outer_radius);

        translate([0, 0, bottom_thickness])
            cylinder(
                h = cup_height - bottom_thickness,
                r = cup_outer_radius - wall_thickness
            );
    }

    translate([handle_center_x, 0, cup_height / 2])
        rotate([90, 0, 0])
            rotate_extrude()
                translate([handle_radius, 0, 0])
                    circle(r = handle_tube_radius);
}
medium (default) success →
medium
14.9s · 168/1236t · $0.0006
SCAD (29 lines)
$fn = 128;

outer_diameter = 80;
height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_radius = 12;
handle_tube_radius = 2;
handle_center_x = outer_diameter / 2 + handle_radius - 1;
handle_center_z = height / 2;

union() {
    difference() {
        cylinder(d = outer_diameter, h = height);

        translate([0, 0, bottom_thickness])
            cylinder(
                d = outer_diameter - 2 * wall_thickness,
                h = height - bottom_thickness + 0.1
            );
    }

    translate([handle_center_x, 0, handle_center_z])
        rotate([90, 0, 0])
            rotate_extrude()
                translate([handle_radius, 0, 0])
                    circle(r = handle_tube_radius);
}
high success →
high
23.1s · 168/2027t · $0.0010
SCAD (35 lines)
$fn = 128;

cup_outer_diameter = 80;
cup_height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_radius = 12;
handle_tube_radius = 3;
handle_center_x = 53;

module torus(major_radius, tube_radius) {
    rotate([90, 0, 0])
        rotate_extrude(convexity = 10)
            translate([major_radius, 0, 0])
                circle(r = tube_radius, $fn = 32);
}

union() {
    difference() {
        cylinder(
            h = cup_height,
            d = cup_outer_diameter
        );

        translate([0, 0, bottom_thickness])
            cylinder(
                h = cup_height - bottom_thickness + 1,
                d = cup_outer_diameter - 2 * wall_thickness
            );
    }

    translate([handle_center_x, 0, cup_height / 2])
        torus(handle_radius, handle_tube_radius);
}
max success →
max
68.0s · 168/7487t · $0.0038
SCAD (39 lines)
$fn = 128;

cup_outer_diameter = 80;
cup_height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_loop_radius = 12;
handle_tube_radius = 3;

outer_radius = cup_outer_diameter / 2;
inner_radius = outer_radius - wall_thickness;
epsilon = 0.2;

module torus(major_radius, tube_radius) {
    rotate_extrude($fn = 128)
        translate([major_radius, 0])
            circle(r = tube_radius, $fn = 48);
}

union() {
    difference() {
        cylinder(h = cup_height, r = outer_radius);

        translate([0, 0, bottom_thickness])
            cylinder(
                h = cup_height - bottom_thickness + epsilon,
                r = inner_radius
            );
    }

    translate([
        outer_radius + handle_loop_radius,
        0,
        cup_height / 2
    ])
        rotate([90, 0, 0])
            torus(handle_loop_radius, handle_tube_radius);
}
xhigh success →
xhigh
18.3s · 168/1758t · $0.0009
SCAD (27 lines)
$fn = 128;

outer_diameter = 80;
height = 100;
wall_thickness = 4;
bottom_thickness = 6;

handle_ring_radius = 12;
handle_tube_radius = 3;

union() {
    difference() {
        cylinder(d = outer_diameter, h = height);

        translate([0, 0, bottom_thickness])
            cylinder(
                d = outer_diameter - 2 * wall_thickness,
                h = height - bottom_thickness + 1
            );
    }

    translate([outer_diameter / 2 + handle_ring_radius, 0, height / 2])
        rotate([90, 0, 0])
            rotate_extrude()
                translate([handle_ring_radius, 0, 0])
                    circle(r = handle_tube_radius);
}