Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-sonnet-20241022· AnthropicHugging Face LMArena Human Preference 140K

create an accurate Pixel 7A power button with openscad code

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-4.1-mini-2025-04-14’s answer.
  1. User

    create an accurate Pixel 7A power button with openscad code

  2. Claude Assistant

    Here's a simpler, focused OpenSCAD code for the Pixel 7A power button:

    // Pixel 7A Power Button
    $fn = 60;
    
    // Main button dimensions
    length = 7.3;
    width = 2.3;
    height = 1.1;
    corner_radius = 0.4;
    
    module power_button() {
        // Main button body with rounded edges
        hull() {
            // Place cylinders at corners for rounding
            for (x = [-1, 1]) {
                for (y = [-1, 1]) {
                    translate([x * (length/2 - corner_radius), 
                              y * (width/2 - corner_radius), 
                              0])
                    cylinder(r=corner_radius, h=height);
                }
            }
        }
        
        // Internal mounting stem
        translate([0, 0, -0.6/2])
        cube([4.5, 1.5, 0.6], center=true);
    }
    
    power_button();
    

    This code creates an accurate representation of the Pixel 7A's power button with:

    • 7.3mm length
    • 2.3mm width
    • 1.1mm height
    • 0.4mm corner radius
    • Internal mounting stem (4.5mm x 1.5mm x 0.6mm)

    The design uses a hull() operation with cylinders at the corners to create smooth rounded edges. You can adjust $fn for smoother curves if needed.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.