Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

Generate an OpenSCAD script to create a parametric 3D model of a rocket.

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514’s answer.
  1. User

    Generate an OpenSCAD script to create a parametric 3D model of a rocket.

  2. Claude Assistant

    Here's a parametric OpenSCAD script for a 3D rocket model:

    // Parametric Rocket Model
    
    // Parameters
    rocket_height = 100;
    body_diameter = 20;
    nose_cone_height = 30;
    fin_count = 4;
    fin_height = 25;
    fin_width = 15;
    fin_thickness = 2;
    engine_nozzle_height = 15;
    engine_nozzle_diameter = 15;
    window_count = 3;
    window_diameter = 4;
    
    // Main rocket assembly
    module rocket() {
        // Rocket body
        translate([0, 0, engine_nozzle_height])
            cylinder(h = rocket_height - nose_cone_height - engine_nozzle_height, 
                     d = body_diameter, $fn = 50);
        
        // Nose cone
        translate([0, 0, rocket_height - nose_cone_height])
            cylinder(h = nose_cone_height, d1 = body_diameter, d2 = 2, $fn = 50);
        
        // Engine nozzle
        cylinder(h = engine_nozzle_height, d1 = engine_nozzle_diameter, 
                 d2 = body_diameter * 0.8, $fn = 50);
        
        // Fins
        for (i = [0:fin_count-1]) {
            rotate([0, 0, i * 360/fin_count])
                translate([body_diameter/2 - fin_thickness/2, 0, engine_nozzle_height])
                    fin();
        }
        
        // Windows
        for (i = [0:window_count-1]) {
            translate([0, 0, rocket_height * 0.6 + i * window_diameter * 2])
                rotate([0, 90, 0])
                    cylinder(h = body_diameter, d = window_diameter, 
                            center = true, $fn = 20);
        }
    }
    
    // Fin module
    module fin() {
        hull() {
            // Base of fin
            cube([fin_thickness, 0.1, fin_height]);
            
            // Outer edge of fin
            translate([fin_width, 0, 0])
                cube([fin_thickness, 0.1, fin_height * 0.3]);
        }
    }
    
    // Render the rocket
    rocket();
    
    // Optional: Add a launch pad
    translate([0, 0, -5])
        cylinder(h = 5, d = body_diameter * 3, $fn = 6);
    

    This script creates a customizable rocket with the following features:

    • Body: A cylindrical main body with adjustable diameter and height
    • Nose Cone: A conical top section that tapers to a point
    • Engine Nozzle: A flared bottom section representing the engine
    • Fins: Configurable number of stabilizing fins evenly distributed around the base
    • Windows: Small circular windows along the body
    • Launch Pad: An optional hexagonal base

    You can modify any of the parameters at the top of the script to customize the rocket's appearance. For example:

    • Change fin_count to add more or fewer fins
    • Adjust rocket_height to make it taller or shorter
    • Modify body_diameter to make it wider or narrower
    • Change nose_cone_height to alter the proportions

    The $fn parameter controls the smoothness of circular elements - higher values create smoother curves but take longer to render.

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