← Back to Models
Yellow cylinders modeling and modification

Yellow cylinders modeling and modification

by crisp-modeler-91ef ·

Interactive Preview & Customizer

3D preview with OpenSCAD rendering on parameter changes.

Loading previewLoading preview...
step 0.5
step 0.5

---------- Measured by you ----------

step 0.01
step 0.01
step 0.1

---------- GUESSES: measure and adjust ----------

step 0.5
step 0.1
step 0.1
step 0.1
step 0.5
step 0.5

---------- Housing / plate ----------

step 0.5
step 0.5
step 0.1
step 0.1
step 0.1
step 0.1
step 0.1
step 0.1

---------- Small pin (printed screw + knob) ----------

step 0.1
step 0.1
step 0.1
step 0.1
step 0.01
step 0.1
step 0.1
step 0.1

---------- Clamp + big clamp screw ----------

step 0.1
step 0.1
step 0.1
step 0.5
step 0.1
step 0.1
step 0.1
step 0.1
step 0.5
step 0.1
step 0.01
WASM compiler loads on first parameter change.
Download

Prompt Assets

Prompt image

Prompt reference image

Prompt

kمإكسسح

OpenSCAD Code

// ============================================================
// Table mount for jewelry wire/ring crank device  (units: mm)
// LOWER = table clamp + square housing
//         big circle RECESSED (device sits flush) + 4 RAISED pegs inside it
// UPPER = square slide-in plate (independent piece)
// PIN   = small printed screw with knob (print 2)
// CLAMP SCREW = big printed screw with knob, holds the clamp from below
// ============================================================

part = "layout";    // "layout" | "fit" | "lower" | "upper" | "pin" | "clamp_screw" | "print"
clamp_side = "front"; // "front" (open side) | "back" (closed side)
slide_out = 25;      // "fit" view: how far the plate is pulled out

$fn = 64;

// ---------- Measured by you ----------
disc_d  = 49.85;     // big recessed circle diameter
peg_d   = 12.97;     // raised peg diameter
fit_tol = 0.2;

// ---------- GUESSES: measure and adjust ----------
peg_spacing = 24;    // center-to-center of the 4 pegs (square pattern)
recess_h    = 10;    // depth of the big circle = height of the device base
peg_h       = 6;     // peg height above the bottom of the recess
device_proud = 0;    // how much the device sticks above the floor (0 = flush)
shaft_d  = 20;
table_t  = 40;

// ---------- Housing / plate ----------
housing_w = 70;
housing_l = 70;
wall      = 6;
floor_t   = recess_h + 4;
tol       = 0.3;
groove_d  = 3;
plate_t   = 5;
top_lip   = 4;
post_d    = 9;       // only used if device_proud > 0

// ---------- Small pin (printed screw + knob) ----------
thr_d     = 4.0;
thr_e     = 0.6;
thr_pitch = 3;
thr_l     = 8;
thr_clear = 0.35;
smooth_d  = 5;
knob_d    = 14;
knob_h    = 6;

// ---------- Clamp + big clamp screw ----------
clamp_t   = 10;
arm_t     = 14;
arm_gap   = 8;       // space between table underside and the arm
arm_reach = 50;
bthr_d     = 14;
bthr_e     = 1.2;
bthr_pitch = 4;
bthr_clear = 0.4;
bthr_l     = arm_t + arm_gap + 4;
bknob_d    = 40;
bknob_h    = 10;

// ---------- Derived ----------
inner_w  = housing_w - 2*wall;
groove_h = plate_t + 0.4;
z_g      = floor_t + device_proud;          // plate rides on the floor level
wall_h   = z_g + groove_h + top_lip;
cx = housing_w/2;
cy = wall + (housing_l - wall)/2;
eps = 0.01;
total = table_t + arm_gap + arm_t;
plate_w = inner_w + 2*groove_d - 2*tol;
plate_l = housing_l - wall - 2*tol;
plate_x0 = (housing_w - plate_w)/2;
front = (clamp_side == "front");
bolt_y = front ? housing_l - 28 : 28;
post_x = [wall + 7, housing_w - wall - 7];
post_y = housing_l - 6;
pin_len = thr_l + plate_t + 0.2 + knob_h;

// single-lobe helical thread (prints without supports)
module helix(d, h, e = thr_e, p = thr_pitch) {
    linear_extrude(height = h, twist = -360*h/p,
                   slices = ceil(h/p*24), convexity = 10)
        translate([e, 0]) circle(d = d, $fn = 48);
}

module housing_body() {
    cube([housing_w, housing_l, floor_t]);
    for (x = [0, housing_w - wall]) translate([x, 0, 0]) cube([wall, housing_l, wall_h]);
    cube([housing_w, wall, wall_h]);   // closed back wall
}

module clamp_body() {
    if (front) {
        translate([0, housing_l - eps, -total]) cube([housing_w, clamp_t + eps, total + floor_t - 1]);
        translate([0, housing_l - arm_reach, -total]) cube([housing_w, arm_reach + clamp_t, arm_t]);
    } else {
        translate([0, -clamp_t, -total]) cube([housing_w, clamp_t + eps, total + floor_t - 1]);
        translate([0, -clamp_t, -total]) cube([housing_w, clamp_t + arm_reach, arm_t]);
    }
}

module recess() {   // big circle sunk into the floor
    translate([cx, cy, floor_t - recess_h])
        cylinder(d = disc_d + fit_tol*2, h = recess_h + 1);
}

module pegs() {     // 4 RAISED pegs standing on the bottom of the recess
    translate([cx, cy, floor_t - recess_h - eps])
        for (sx = [-1, 1], sy = [-1, 1])
            translate([sx*peg_spacing/2, sy*peg_spacing/2, 0])
                cylinder(d = peg_d - fit_tol, h = peg_h + eps);
}

module posts() {    // only needed if the device sticks out above the floor
    if (z_g > floor_t + eps)
        for (px = post_x)
            translate([px, post_y, floor_t - eps]) cylinder(d = post_d, h = z_g - floor_t + eps);
}

module pin_holes() {   // threaded holes that take the small pins
    for (px = post_x)
        translate([px, post_y, z_g - thr_l - 1])
            helix(thr_d + 2*thr_clear, thr_l + 3);
}

module grooves() {
    translate([wall - groove_d, wall, z_g])
        cube([inner_w + 2*groove_d, housing_l, groove_h]);
}

module clamp_thread_hole() {   // threaded hole in the arm for the big screw
    translate([cx, bolt_y, -total - 1])
        helix(bthr_d + 2*bthr_clear, arm_t + 2, bthr_e, bthr_pitch);
}

module lower() {
    union() {
        difference() {
            union() { housing_body(); clamp_body(); posts(); }
            recess();
            grooves();
            clamp_thread_hole();
            pin_holes();
        }
        pegs();
    }
}

module upper() {
    tab_l  = 14;
    slot_w = shaft_d + 1;
    cxp = plate_w/2;
    cyp = cy - wall - tol;
    difference() {
        union() {
            cube([plate_w, plate_l, plate_t]);
            translate([plate_w/2 - 15, plate_l - eps, 0]) cube([30, tab_l, plate_t]);
        }
        // U-slot: opens toward the BACK (closed) wall
        translate([cxp, cyp, -1]) cylinder(d = slot_w, h = plate_t + 2);
        translate([cxp - slot_w/2, -1, -1]) cube([slot_w, cyp + 1, plate_t + 2]);
        // holes for the small pins
        for (px = post_x)
            translate([px - plate_x0, post_y - wall - tol, -1]) cylinder(d = 5.6, h = plate_t + 2);
    }
}

module knob(d, h, n = 6, notch = 3.5) {
    difference() {
        cylinder(d = d, h = h);
        for (a = [0 : 360/n : 359]) rotate(a)
            translate([d/2, 0, -1]) cylinder(d = notch, h = h + 2, $fn = 24);
    }
}

module pin() {   // origin = tip of the screw, z up
    helix(thr_d, thr_l);
    translate([0, 0, thr_l - eps]) cylinder(d = smooth_d, h = plate_t + 0.2 + eps);
    translate([0, 0, thr_l + plate_t + 0.2]) knob(knob_d, knob_h);
}

module pin_print() {   // knob on the print bed
    translate([0, 0, pin_len]) rotate([180, 0, 0]) pin();
}

module clamp_screw() {   // knob at the bottom (print-ready), thread up
    knob(bknob_d, bknob_h, 8, 6);
    translate([0, 0, bknob_h - eps]) helix(bthr_d, bthr_l + eps, bthr_e, bthr_pitch);
}

module upper_in_place(out = 0) {
    translate([plate_x0, wall + tol + out, z_g + 0.2]) upper();
}

module side_pieces() {   // plate, pins and big screw as independent pieces
    translate([housing_w + 15, 0, 0]) upper();
    for (i = [0, 1]) translate([housing_w + plate_w + 30 + i*20, 10, 0]) pin_print();
    translate([housing_w + plate_w + 90, 30, 0]) clamp_screw();
}

if (part == "lower") lower();
else if (part == "upper") upper();
else if (part == "pin") pin_print();
else if (part == "clamp_screw") clamp_screw();
else if (part == "print") {
    if (front) translate([0, total, housing_l + clamp_t]) rotate([-90, 0, 0]) lower();
    else translate([0, total, clamp_t]) rotate([90, 0, 0]) lower();
    side_pieces();
}
else if (part == "fit") {
    lower();
    color("silver") upper_in_place(slide_out);
    color("orange") for (px = post_x) translate([px, post_y, z_g - thr_l]) pin();
    color("orange") translate([cx, bolt_y, -table_t - bthr_l - bknob_h]) clamp_screw();
}
else {   // "layout": all separate
    lower();
    color("silver") translate([housing_w + 15, 0, 0]) upper();
    color("orange") for (i = [0, 1])
        translate([housing_w + plate_w + 30 + i*20, 10, 0]) pin_print();
    color("orange") translate([housing_w + plate_w + 90, 30, 0]) clamp_screw();
}

Download Model

Choose the model version and file format.

Model version