3D Workspace
Home
Assets
Affiliate Program
Sign up/Log in
?
Upgrade
DCC Bridge
3D Creation Made Simple
Text & Image to 3D Model in seconds
One-Click Texturing & Smart Detail Editing
Free Credits Monthly
Start Free
Anonymous1771251295
02-16 15:28
Model Name
gear mechanism 3d model
Tags
machine
rendering
realistic
Prompt
r(u,v) = [R(u)cos(v), R(u)sin(v), p*u] import math R_min, R_max, L = 45.0, 78.0, 95.0 helix_angle = 28.0 tooth_n, module = 14, 5.0 shaft_d = 35.0 beta = math.radians(helix_angle) p = L * math.tan(beta) / (2 * math.pi) alpha = (R_max - R_min) / L addendum, dedendum = module, 1.25 * module openscad = f''' R_min={R_min}; R_max={R_max}; L={L}; p={p:.3f}; alpha={alpha:.3f}; tooth_n={tooth_n}; module={module}; addendum={addendum}; dedendum={dedendum}; function R(u) = R_min + alpha * u; function z_spiral(u) = p * u; module tooth(u, phase) {{ R_base = R(u); angle_step = 360 / tooth_n; rotate([0, 0, phase * angle_step]) {{ translate([R_base, 0, 0]) linear_extrude(0.5) polygon([[-dedendum, -module*0.4], [addendum, 0], [-dedendum, module*0.4]]); }} }} module active_gear() {{ difference() {{ union() {{ cylinder(r1=R_min, r2=R_max, h=L); for(u=[0:3:L]) translate([0,0,z_spiral(u)]) for(i=[0:tooth_n-1]) tooth(u, i); }} translate([0,0,-1]) cylinder(r=shaft_d/2, h=L+2); }} }} $fn=60; active_gear();
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!