Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a MIDI foot controller enclosure consisting of a main body and a back cover. The main body is a rounded rectangular box with a width of 180mm, a depth of 110mm, and a height of 30mm, featuring a corner rounding radius of 3.5mm. The walls are 2mm thick, and the bottom front panel is 4mm thick. In the top surface...
$fn=20; WALL_THICKNESS = 2; FRONT_THICKNESS = 4; BACK_THICKNESS = 1.5; BACK_THICKNESS_OUTER = 1.0; MOUNT_X = 5; MOUNT_Y = 5; MOUNT_R_OUTER = 4; MOUNT_R_INNER = 1.5; FOOTSWITCH_HOLE_R = 6.25; FOOTSWITCH_NUM_X = 4; FOOTSWITCH_NUM_Y = 2; FOOTSWITCH_SPACING_X = 50; FOOTSWITCH_SPACING_Y = 80; FOOTSWITCH_OFFSET_X = 15; F...
glb/cad_2675d30083cb.glb
Create a dynamo energy module consisting of a main cylindrical housing and two identical bearing supports. For the main body, create a cylinder with an outer diameter of 33mm and a height of 25mm, centered on the origin. Remove a concentric inner cylinder with a diameter of 29.5mm and a height of 20mm from the bottom. ...
$fn=60; difference() { cylinder(25,33,33, center=true); translate([0,0,-12.5])cylinder(20,29.5,29.5); cylinder(26,22,22, center=true); translate([0,0,12.5])rotate([0,90,0]) cylinder(70,3.2,3.2, center=true); } module cuscinetto() { difference() { translate([-43,0,12.5])rotate([0,90,0]) cylinder(12,10,10); translate(...
glb/cad_c45f9d8cf4a4.glb
Create a dynamo energy module consisting of a central cylindrical housing and a protruding axle. Start by creating a main cylinder with a diameter of 36mm and a height of 15mm. Remove a smaller concentric cylinder from the center, starting 2mm from the base, with a diameter of 32mm and a height of 13mm, to create a hol...
$fn=60; difference() { cylinder(15,18,18); translate([0,0,2])cylinder(11,16,16); translate([7,-20,0])cube(40,20,20); translate([-47,-20,0])cube(40,20,20); } translate([0,-16,7.5])rotate([90,0,0]) cylinder(30,3,3); translate([0,46,7.5])rotate([90,0,0]) cylinder(30,3,3); translate([-2.5,46,5])cube([5,15,5]) ;
glb/cad_5b077eb5b271.glb
Create a variety pack of round spacers by constructing a series of hollow cylinders with a consistent wall thickness of 2mm. The spacers are organized into three distinct groups based on their inner diameters: 4mm, 7mm, and 9mm. For each of these inner diameters, calculate the corresponding outer diameter by adding 4mm...
$fn=64*1; function sumv(v,i,s=0) = (i<=s ? v[i] : v[i] + sumv(v,i-1,s)); id1 = 4; id2 = 7; id3 = 9; id4 = 0; id5 = 0; id6 = 0; id7 = 0; id8 = 0; inner_dias = [ for (id = [id1, id2, id3, id4, id5, id6, id7, id8]) if (id>0) id ]; height1 = 2; height2 = 5; height3 = 10; height4 = 0; heights = [ for (h = [he...
glb/cad_7603f1ee6c4b.glb
Create a Prusa i3 A602 X-Carriage dual LM8UU mount. Start by constructing a central body that is a union of a cylinder with a radius of 9mm and a height of 50mm, and a rectangular block measuring 18mm wide, 10mm deep, and 50mm high, both centered on the same axis. Add a rectangular slab to this assembly that is 32mm wi...
$h = 50; $B = 24; $C = 18; $r = 3.3/2; $a = 6; $b = 32; %cylinder(r=15/2,h=$h,$fn=32); difference() { union() { hull() { translate([0,0,-$h/2]) cylinder(r=18/2,h=$h,$fn=32); translate([0,-5,0]) cube([18,10,$h],center=true); } translate([0,$a/2-10,0]) cube([$b,$a,$h]...
glb/cad_775dcd70a7af.glb
Create a parametric toilet shim by stacking rectangular layers to form a stepped wedge. The final object should have a total width of 30mm and a total length of 60mm. Construct the shim by layering ten rectangular prisms, each with a height of 2mm and a width of 30mm. Start with a base layer 60mm long and 2mm high. Eac...
stepDepth = 6; stepHeight = 2; stepWidth = 30; shimLength = 60; module draw_one_layer(length) { translate([0, 0, (shimLength - length) / stepDepth * stepHeight]) cube([length, stepWidth, stepHeight]); } module main() { for (length=[shimLength: -stepDepth : stepDepth]) { draw_one_l...
glb/cad_6efc9fcc87ee.glb
Create a phase-change waste heat recovery device section consisting of three concentric, nested components shaped as 120-degree pie slices. The overall section height is 20mm with a central void for a 20mm diameter pipe. First, create the inside conductor: a 120-degree arc segment with an inner diameter of 20mm and an...
show_insulation=1; show_input_conductor=1; show_output_conductor=1; show_all_sections=0; num_sections_around=3; num_sections_high=3; pipe_d=20; total_dia=60; section_h=20; input_conductor_thickness=2; output_conductor_thickness=2; insulator_thickness=5; fin_h=5; fin_thickness=1; fin_r=5; angle=360/num_se...
glb/cad_3647df11ca53.glb
Create a pill box consisting of two interlocking open-topped square shells. Both pieces have an exterior width and depth of 11mm, a wall thickness of 1mm, and a total height of 6mm. For the bottom piece, create a square base plate 13mm wide and deep with a thickness of 1mm. On top of this base, build a square enclosur...
offset = 2.0; thickness = 1.0; interiorWidth = 9.0; interiorDepth = interiorWidth; interiorHeight = 5.0; exteriorWidth = interiorWidth + thickness * 2.0; exteriorDepth = exteriorWidth; exteriorHeight = interiorHeight + thickness; name = "Karls"; message1 = "Drug"; message2 = "Stash"; module bot...
glb/cad_ea9ea9ce84bc.glb
Create a tactile button model and its corresponding mounting clips. Start by creating the button body as a cube 10mm wide, 10mm deep, and 5mm high. Centered on top of this body, add a 12-sided polygonal prism (the post) with a diameter of 5mm and a height of 2mm. On the bottom of the body, add four rectangular legs, ea...
show_button=1; show_clasps=1; generate_pushed=1; body_width=10; body_height=5; post_dia=5; post_height_up=3; post_height_down=2; leg_width=1; leg_spacing=5; clasp_spring_thickness=0.75; clasp_extra_h=10; scoche=0.05; halfscoche=scoche/2; module tackie(post_height,body_width=10,body_height=5,post_dia=5,leg_...
glb/cad_befad12cc436.glb
Create a Kapton Dispenser consisting of two identical support brackets. For each bracket, start with a central vertical cylinder with a radius of 9.45mm and a height of 13mm. Attach a rectangular base to this cylinder that extends 33.6mm in length, 2mm in thickness, and 13mm in width. Add a second rectangular section t...
spool_r=77.2/2; rod_o_r=21/2; rod_i_r=14; hub_t=2; hub_h=13; stand_t=2; stand_w=13; stand_h=spool_r+25; m4n_rad=8.3/2; bar_standr(); translate([15,35,0]) rotate([0,0,180]) bar_standl(); module bar_standl(){ rod_o_r=14.9/2+2; stand_t=2; stand_w=13; stand_h=spool_r-5; m4n_rad=8.3/2; m8n_rad=15.1/2; difference(){ u...
glb/cad_93514691e98c.glb
Create a Simple LED stripe clamp for a Prusa i3 plus by extruding a specific 2D profile to a height of 8mm. Start with a base polygon defined by the vertices [0,0], [12,0], [22,20], [42,20], [42,30], [22,52], [-5,52], [-5,40], [0,40], [0,45], [6.3,45], [6.3,5], and [0,5]. From this solid volume, remove two distinct ext...
extHeight=8; frameWidth=6.3; difference() { linear_extrude (height=extHeight) { polygon(points=[[0,0],[12,0],[22,20],[42,20],[42,30],[22,52],[-5,52],[-5,40],[0,40],[0,45],[frameWidth,45],[frameWidth,5],[0,5]]); }; linear_extrude(height=extHeight) { polygon(points=[[22,25],[37.2,25],[37.2,27.2],[22,27.2]...
glb/cad_1d093fd36122.glb
Create a Photosmart Premium carriage rod gear as a spur gear with 15 teeth. The gear should have a diametral pitch of approximately 1.187 (calculated from 17/14.38) and a pressure angle of 28 degrees. The main gear plate has a thickness of 3.8mm. The rim, which includes the teeth, has a thickness of 3mm and a rim wid...
$fn=100; gear ( number_of_teeth=15, diametral_pitch=(17/14.38), gear_thickness = 3.8, rim_thickness = 3, hub_thickness = 3, bore_diameter = 4.62, circles=0); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 7, axis_angle = 90, outside_circular_pitch=1000) { ou...
glb/cad_ab4768e862e0.glb
Create a µDelta LCD holder consisting of two main geometric components. First, create a rectangular base measuring 10mm wide, 10mm deep, and 3mm high. In the center of this base, remove a conical hole that tapers from a diameter of 7mm at the top surface down to 3.5mm at the bottom surface. Second, create a vertical s...
$fn = 32; e = 0.05; d = 0.15; module base() { difference() { cube([10, 10, 3]); translate([5, 5, -e]) cylinder(3+2*e, d1 = 3.5, d2 = 7); } } module hexagon(r, h) { linear_extrude(height = h) polygon([for (a = [0:60:360]) [cos(a)*r, sin(a)*r]]); } module m3_nut_and_screw(l, p) { union() { ...
glb/cad_a882e4d44ba2.glb
Create a Gorillapod Phone Mount insert by constructing a base and a raised center section. Start with a rounded trapezoidal base that is 2mm thick, 22mm long, and 13.5mm wide at its base, with side walls angled at 5 degrees. On top of this base, add a second rounded trapezoidal section centered on the base, with a thic...
insert(); module insert(standOffHeight=3) { insertAngle =5; insertLength=22; baseThick=2; difference() { union(){ difference(){ roundedTrapezoid(thick=baseThick, angle=insertAngle, r1=0, r2=2.5, baseW=13.5, length=insertLength); rotate([0,15,0])translate([-0.5,-2,-6])cube([15,17.5,7]); } translate([...
glb/cad_094aaf20fa5b.glb
Create a Gorillapod Phone Mount consisting of a main phone holder and a detachable insert clip. First, construct the phone holder as a hollowed-out rectangular sleeve. The outer dimensions are 70mm wide, 70mm deep, and 15.25mm high. The walls are 2.5mm thick. Create a central rectangular cutout of 65mm by 65mm to hol...
camerawidth=65; cameraheight=15; gripperthickness=2.5; gripperheight=15.25; gripperoverhang=5; insertloc = 35; translate([-3,insertloc,0]) rotate([0,-90,0])rotate([0,0,275]) insert(); difference() { union(){ cube([cameraheight+2*gripperthickness,camerawidth+2*gripperthickness,gripperheight]); translate([cameraheigh...
glb/cad_868f6f017bb7.glb
Create a Portion Divider for a PetMate Portion Control Feeder. Start by creating a thin circular disc with a radius of 33.5mm and a height of 1.2mm. Centered within this disc, remove a smaller circular area with a radius of 30mm and a height of 1.4mm to create a thin outer ring. To form the divider fin, add a rectangul...
module portionDivider() { difference() { union() { cylinder(r = 33.5, h = 1.2, center = true); translate([0,0,-50/2]) difference() { cube(size = [49.0,1.2,49.0], center = true); translate([0,0,-34]) cu...
glb/cad_c161128cc9fd.glb
Create a K9 Cosplay Head by constructing a hollowed-out, elongated nose cone. Start with a square-based pyramid (a cylinder with 4 facets) that is 160mm long, 60mm wide, and 98mm high, rotated 45 degrees. Hollow this shape by removing an internal square-based pyramid of the same orientation with dimensions of 160mm len...
module InternalNoseCone() { translate([10,0,0])rotate([0,90,0]) rotate([0,0,45])cylinder(160,58,96,$fn=4); } module HollowNose() { difference() { rotate([0,90,0]) rotate([0,0,45])cylinder(160,60,98,$fn=4); InternalNoseCone(); } } module TopCircle() { difference() { u...
glb/cad_af28d9e6a485.glb
Create a cable staple designed to hold a wire. Start by creating a main body that is a hull of two cylinders, each with a diameter of 5.8mm and a height of 5mm, positioned 11mm apart along the x-axis. This forms a rounded rectangular block with a total width of 16.8mm and a height of 5mm. From this body, remove a cen...
$fn=30; nail_diameter = 1.8; staple_spacing = 11; staple_cutout_depth = 3; staple_radius = 2; thickness = 2; top_thickness = 2; ct = nail_diameter+2*thickness; translate([-staple_spacing/2-ct/2,0,staple_cutout_depth+top_thickness]) rotate([180,0,0]) difference() { $fn=30; hull() { cylinder(d=ct,h=staple_cuto...
glb/cad_5fcc4aa63cbd.glb
Create a MakeBlock Parametric Straight Bracket as a flat rectangular plate with a thickness of 3mm. The overall dimensions are defined by a grid of 9 holes in the x-direction and 3 holes in the y-direction, with a center-to-center pitch of 8mm between holes. The exterior corners of the plate should have a radius of 2mm...
xholes=9; yholes=3; thickness=3; hole_radius=2.4; corner_radius=2; pitch=8; open_xs=""; open_ys = ""; $fn=50; open=[]; open_xs_string = str("", open_xs); open_ys_string = str("", open_ys); d=0.01; cr = corner_radius < 0.001 ? 0.001 : corner_radius; module template() { hull() { translate([-(pitch/...
glb/cad_aba5ddda47a1.glb
Create an endcap for a pipe or rod. Start by creating a main outer cylinder with a diameter of 29.5mm (25mm pipe outer diameter plus 2.25mm wall thickness on each side) and a height of 27.5mm. Add a spherical dome to the top of this cylinder with a radius of 14.75mm, scaled vertically to 25% of its original height to c...
pipe_outer_d = 25; pipe_inner_d = 20; cap_thickness = 2.5; cap_roundness = 0.25; cap_length = 25; setscrew_num = 1; setscrew_d = 5; difference() { union() { cylinder(r=pipe_outer_d/2 + cap_thickness, h=cap_length + cap_thickness); if(cap_roundness > 0) { translate([0,0,cap_length + cap_thic...
glb/cad_198259fb4a78.glb
Create an adjustable Z endstop consisting of a mounting clip and a separate plunger. First, construct the mounting clip. Start with a main rectangular block 15mm wide, 15mm deep, and 23mm high. Add a base plate 3.5mm thick to the bottom. Create a vertical channel 15mm wide and 3.5mm deep through the center. Within th...
xend_height=16; wall_thickness=3.5; extension=14; plunger_dia=23; plunger_height=5; clip_width=15; clip_depth=15; hand_width=12; hand_length=12; hand_height=12; nut_height=2.54; nut_dia=6.5; screw_dia=3.6; $fn=15; module trapezoidNut( length=45, radius=25, pitch=10, pitchRadius=10, threadHeightToPitch=0.5, ...
glb/cad_bc569900d00b.glb
Create a Reaction-Diffusion Demitasse Cup. Start by constructing the main body as a hollow cylinder with an outer diameter of 52mm (inner diameter of 46mm plus 3mm wall thickness) and a total height of 50mm. The exterior surface of this cylinder should not be smooth, but rather modulated with a reaction-diffusion organ...
include <rdpipe-sub.scad>; india = 46; height = 50; tubethick = 3; asperity = 5; asprate = 1.5; bottomthick = 3; handleout = 30; handlein = 20; handlethick = 6; handleshift = [35, 0, 30]; pi = 3.14159265; epsilon = 0.001; for (y = [0:ysize - 2]) { for (x = [0:xsize - 1]) { x0 = x; x1 = (x + 1) %...
glb/cad_1edaec4686f1.glb
Create an adjustment nut knob consisting of a central shaft and a surrounding handle with lobes. Start by creating a central cylinder with a radius of 10mm and a height of 5mm. On top of this, add a shaft that is 10mm tall with a radius of 9mm, centered on the base. Around the central core, arrange 5 cylindrical lobes...
knob(lobeRadius=15, lobeCount=5, lobeFill=.5, lobeWidth=20, handleHeight=5, shaftHeight=10, nutWidth=13, studWidth=10); module polygon(sides, diameter, height) { difference() { cylinder(r=diameter, h=height, center=true); for (i=[1:sides]) { translate([-diameter * sin(i * 360 / sides), diameter * cos(i...
glb/cad_b2ee61a9d85e.glb
Create a geometric sculpture based on a twisting, tapering spiral of triangular forms. Start by generating a base shape using a three-sided polygon (an equilateral triangle) with a radius of 50mm. Extrude this triangle vertically while applying a continuous twist of 240 degrees over a height of 3mm, divided into 20 sli...
slice_num=29; res=.20; scale_factor=.9; rot=240; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_8fb586f80a1a.glb
Create a Parametric Probe Holder consisting of a flat mounting base with a series of cylindrical clips to hold probes. Start with a rectangular mounting plate 2mm thick. Along the length of this plate, create 4 probe clips. Each clip is formed by a hollow semi-circular arc with a wall thickness of 2mm and an inner di...
count = 4; probe_diameter = 8.75; guard_width = 11.6; guard_depth = 11.6; center_tab = "auto"; mount_hole = "yes"; mount_hole_diameter = 3; fastener_type = 200; countersink = "yes"; holder_height = 10; mount_thickness = 2; clasp_arc = 250; clasp_thickness = 2; clasp_clearance = 2; resolution = 180; overs...
glb/cad_782c4f22d197.glb
Create a Camelbag Cap consisting of a hollowed-out threaded cylinder. Start by constructing a main body using a trapezoidal thread with a diameter of 14mm, a pitch of 4mm, and a total height of 43mm. Add a circular flange at the top of the threaded section with a radius of 44mm and a thickness of 1mm, followed by a sma...
use <Threaded_Library\Thread_Library.scad> translate([0, 0, 21.5]) rotate([180, 0, 0]) union() { difference() { union() { trapezoidThread(14, 4, 43, 0.5, 0.5, 30, true, 0.1, 0.1, 192); translate([0, 0, 13.5]) cylinder(h=1, r=44, $fn=96); translate([0, 0, 14.5]) cylinder(h=0.5, r=43, $fn=96); translat...
glb/cad_98cd26cc7d6e.glb
Create a power switch cover consisting of three plates with a uniform thickness of 3mm. Start with a square top plate measuring 60mm by 60mm. Center a circular cutout with a 24mm diameter in the middle of this plate, and add two 4mm diameter mounting holes spaced 31mm apart from the center, positioned symmetrically alo...
nemaHoleDiameter=4; frontPlateOffset=8; extHeight=3; baseWidth=60; module topPlate() { difference() { translate ([0,-(frontPlateOffset/2)]) square ([baseWidth,baseWidth+frontPlateOffset], true); circle (12, true); translate ([-15.5,-15.5]) circle (nemaHoleDiameter/2, true); translate ([15.5,-15.5]) c...
glb/cad_baee20830794.glb
Create a Maytag Dishwasher Handle Switch Fix insert. Start with a main rectangular block measuring 21mm wide, 15mm deep, and 7.8mm high. From this block, remove a central rectangular slot that is 6.5mm wide and 20mm deep, starting from the back edge and extending forward, leaving 2mm of material at the rear. To the b...
module DishwasherSwitchCap() { difference() { union() { translate([-21.0/2,0,0]) difference() { cube(size=[21.0,15.0,7.8],center=false); translate([21.0/2-10.5/2,14.5-3.8,-0.1]) cube(size=[10.5,4.8+0.1,7.8+0.2],center=false); translate([-0.1,15.0-4.0,0]) rotate([-35,0,0]) cube(size=[21.0+0....
glb/cad_5315150e60ce.glb
Create a wire cover for a power supply by starting with a solid rectangular block measuring 109mm in length, 19.5mm in width, and 40.5mm in height. Hollow out the center of the block to create a U-shaped channel, leaving a thin wall on the sides and bottom. Along the top surface, create a series of nine circular acces...
$fn=42; length=115-6; width=19.5; height=50-9.5; hole_d=8.25; hole_spacing=10; access_hole_d=6.5; mount_hole_d=3; module block() { difference() { cube([length,width,height]); translate([length*.04, width*.1, height]) cube([length-length*.08,width,height]); } } module wire_holes() { #...
glb/cad_dac68415b6c4.glb
Create a pair of herringbone gears for a Wade L3K extruder with a center-to-center axle distance of 39.5mm. Construct the small gear with 9 teeth and a total height of 11mm. The teeth must be herringbone-style, slanting one tooth per side. Add a cylindrical base to the small gear with a height of 9mm and a central sha...
use <involute_gears.scad> use <teardrop.scad> debug = 0; printing = 0; distance_between_axles = 39.5; gear_height = 11; teeth_twist = 1; chamfer_gradient = tan(45); gear1_teeth = 9; gear1_base_height = 9; gear1_shaft_diameter = 5 + 0.3; gear1_setscrew_diameter = 3 + 0.4; gear1_setnut_width = 5.5 + 0.3; gear1_se...
glb/cad_0f51eddf47a8.glb
Create a Math Bowl by starting with a sphere that has a radius of 10mm. Hollow out this sphere by removing a smaller concentric sphere with a radius of 9.2mm. To open the top of the bowl, remove the upper portion of the geometry using a 10mm cube centered at the origin and shifted 5mm downward along the Z-axis. The fin...
$fn = 100; translate([0,0,-5]){ scale(2){ difference(){ sphere(5); sphere(4.6); translate([0,0,-2.5]){ cube([10,10,10], center=true); } } } }
glb/cad_6a5ff2c398f6.glb
Create a geometric sculpture consisting of a central swirling form set within a thin rectangular base. Start by constructing a base plate that is 100mm wide and 100mm deep with a thickness of 3mm, featuring a central cutout of 98mm by 98mm and 4mm height to create a thin outer frame. The primary feature is a complex, ...
slice_num=29; res=.20; scale_factor=.9; rot=240; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_3164f6b636b0.glb
Create a 3D model of the Haenau belt arrangement. The model consists of a central base plate with a large heptagonal hole cut through it. The base plate is a cube measuring 40mm by 40mm by 4mm, centered at the origin. Subtract a cylinder with a diameter of 38mm and a height of 10mm from the center of this cube, using a...
color ("Red") translate ([-100,-100,10]) cylinder (d=20,h=8); color ("Red") translate ([ -80, 0,10]) cylinder (d=20,h=8); color ("Red") translate ([ -80,+100,10]) cylinder (d=20,h=8); color ("Red") translate ([ +80,+100,10]) cylinder (d=20,h=8); color ("Red") translate ([ +80, 0,10]) cylinder (d=20,h=8); colo...
glb/cad_44a52de65bd1.glb
Create a Handlebar Mustache mount by constructing a semi-circular bracket with integrated mounting tabs. Start by creating a hollowed-out cylinder section with an outer diameter of 37mm and an inner diameter of 25mm, with a total thickness of 6mm. This curved section should be a half-cylinder, open on one side. At each...
include <colors.scad>; offset = 50; sm = 6; t=sm; dia = 25; $fn=100; color (black) translate([-offset*.78,-dia/2-t,-offset*.24]) rotate([90,0,0]) { linear_extrude( file="mustache.dxf", height=sm, scale=offset, $fn=100,center=true ); } color(silver) translate([0,0,0]) rotate([0,90,0]) { difference (...
glb/cad_5110f5ee89ce.glb
Create a decorative flange by constructing a hollow cylindrical ring with a flat base and a vertical wall. Start with a base disk that has an outer diameter of 133.9 mm and a thickness of 2 mm. From the center of this disk, remove a concentric cylindrical hole with a diameter of 100 mm to create a flat annular ring. On...
Inside_Diameter=100; Flange_Lip=15; Edge_Height=15; $fa=2+1; thickness=1.95+.05; OD= Inside_Diameter+2*Flange_Lip+2*thickness; ODrad= OD/2; IDrad= Inside_Diameter/2; innerrad= IDrad+thickness; intersection(){ translate([-ODrad-15,-OD-30,0]) cube(OD+30,OD+30,OD+30); difference() { union(){ cylinder(thickness,...
glb/cad_43b11af0276a.glb
Create a lawn trimmer blade with a total thickness of 5mm. Start with a central cylinder 29mm in diameter. Attached to this cylinder, create a flat, elongated body that extends 82mm in length. This body should be 23mm wide at its base where it meets the cylinder and taper linearly to a width of 13mm at the far end. The...
zSize = 5; bLngth = 82; bWdth_tip = 13; hole_diameter = 13; difference(){ union(){ cylinder(d=29,h=zSize,center=true,$fn=100); polyhedron( points=[ [6.5,bLngth,-2.5],[11.5,5,-2.5],[-11.5,5,-2.5],[-6.5,bLngth,-2.5], [3.25,bLngth,1],[7,5,1],[-7,5,1],[-3.25,bLngth,1] ], faces=[ [4,5,7],[5,6,7], ...
glb/cad_09abd4cb92fa.glb
Create a geometric sculpture based on a twisting, tapering star-like form. Start by constructing a central vertical axis. Generate a series of 29 thin horizontal slices, each 0.2mm thick. Each slice is formed by the intersection of a cylinder with a radius of 101mm and a three-pointed star shape (an equilateral triangl...
slice_num=29; res=.20; scale_factor=.9; rot=240; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_974bad64bd3c.glb
Create a geometric sculpture based on a twisting, tapering star-like form. Start by generating a base shape using two equilateral triangles with a radius of 50mm, one rotated 180 degrees relative to the other. Extrude this profile upward to a height of 3mm while applying a 240-degree twist. Construct a swirling tower ...
slice_num=29; res=.20; scale_factor=.9; rot=240; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_1bee3c3a5190.glb
Create a table design with a total height of 70mm, a width of 160mm, and a length of 120mm, using a consistent material thickness of 5mm for all walls. Construct the main body as a U-shaped frame where the base and two side walls are 5mm thick. Position two vertical support feet, each 5mm thick, with one at the outer e...
$fs=0.01; module myCube(width, length, height, x,y,z, rx,ry,rz, angle) { translate([x,y,z]) rotate(angle,[rx,ry,rz]) cube([width,length,height]); } module uShape(height,width, length, thick, x,y,z, rx,ry,rz, angle) { translate([x,y,z]) rotate(angle,[rx,ry,rz]) { cube([width,thick,height]); myCube(thick,len...
glb/cad_eb8998eb0adf.glb
Create a set of customizable cosine drawer bins by extruding a wavy wall profile. The overall footprint of the object is 135mm long, 51mm wide, and 28mm high. Construct the profile as a continuous wall with a thickness of 1.2mm. The height of this wall varies along the 135mm length following a cosine wave pattern. To...
n_bins=5; length = 135; width = 51; height = 28; thickness = 1.2; rotate_for_preview = false; bowlness = 3; bowlness_exp = pow(2,bowlness); function diffx(x1, y1, x2, y2, th) = cos(atan((y2-y1)/(x2-x1)) + 90)*(th/2); function diffy(x1, y1, x2, y2, th) = sin(atan((y2-y1)/(x2-x1)) + 90)*(th/2); function point1(x1,...
glb/cad_dcdaf67e7f46.glb
Create a geometric sculpture consisting of two interlocking, spiraling forms. The primary structure is based on a three-sided prism (an equilateral triangle) that is extruded and twisted. Construct a central spiraling shape by stacking 29 thin slices, each 0.2mm thick. Each successive slice should be scaled down by a...
slice_num=29; res=.20; scale_factor=.9; rot=240; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_45393a5c9eed.glb
Create a GoPro mount for a Sartek HID light consisting of a handlebar clamp and a triple-prong connector. First, construct a handlebar clamp designed for a 43mm diameter bar. The clamp should have a wall thickness of 5mm and a 3mm gap between the jaws. Incorporate two screw holes with a diameter of 3mm to secure the ...
gopro_primary="triple"; gopro_secondary_what="clamp"; gopro_secondary_rotated=0; gopro_ext_len=25; gopro_ext_th=6; gopro_captive_rod_id= 3.8; gopro_captive_rod_angle= 45; gopro_rod_nut_th= 3.6; gopro_rod_nut_od= 8.05; gopro_captive_protruding_h= 0.5; gopro_bar_rod_d= 43; gopro_bar_th= 5; gopro_bar_gap= 3; ...
glb/cad_5d2ecd2f71d3.glb
Create a filament holder consisting of two symmetrical arms and two support bars. First, create two identical support bars. Each bar is a composite shape: a cylinder with a diameter of 18mm and a length of 140mm, but with a central core reduced to a diameter of 12mm (18mm minus a 3mm brim). From this cylinder, remove...
Bar_Diameter = 18; Arm_Thickness = 10; Brim = 3; Extension = 100; Bungie_Hole = 12; Pin_Thickness=6; Corner_Size = 31; Corner_Thickness = 6; Clearance = 0.1; $fs = 0.3; $fn = 0; $fa = 0.01; Padding = 0.06; translate([Bar_Diameter/2-Brim,Corner_Size+4*Brim+Bungie_Hole+1,0]){ difference(){ intersection()...
glb/cad_e1929d4f93a6.glb
Create a CD spool sidewall by starting with a central cylinder 50mm long and 17mm in diameter, oriented along the Y-axis. Remove a smaller concentric cylinder from the center with a diameter of 8.5mm and a length of 51mm to create a hollow core. Cut two vertical slots through the main body along the Y-axis to create ...
len=50; d_of_CD=15; difference() { rotate([90,0,0])cylinder(len,d=d_of_CD+2,center=true); translate([0,0,-106])cube(200,center=true); rotate([90,0,0])cylinder(len+1,d=8.5,center=true); hull() { translate([0, 10,8])rotate([0,0,90])cylinder(len,d=4,center=true); translate([0, 100,0])...
glb/cad_33cc37f6917e.glb
Create a CD spool sidewall by constructing a cylinder with an outer diameter of 60mm and a height of 45mm. Center the cylinder on the origin. Remove a smaller concentric cylindrical hole from the center with a diameter of 17mm that passes completely through the height of the object. To create the specific profile seen ...
width=50; dia=60; di=17; difference() { cylinder(width-5,d=dia,center=true); difference() { cylinder(width+1,d=di,center=true); translate([-106.2,0,0])cube(200,center=true); } translate([-70,20,15])hull() { translate([50,0,0])sphere(.5); translate([100,0,0])sphere(5); ...
glb/cad_4f6338a40a16.glb
Create a CD spool sidewall designed to hold a compact disc. Start with a central cylinder 50mm in length and 17mm in diameter. Remove a central longitudinal hole 8.5mm in diameter running through the length of the cylinder. To accommodate the disc, create a circular cutout centered on the cylinder's axis with a diame...
len=50; d_of_CD=15; $fs=.1; difference() { rotate([90,0,0])cylinder(len,d=d_of_CD+2,center=true); translate([0,0,-106])cube(200,center=true); rotate([90,0,0])cylinder(len+1,d=8.5,center=true); hull() { translate([0, 03,8])rotate([0,0,90])cylinder(len,d=4,center=true,$fn=4); transla...
glb/cad_8281ddd17ae8.glb
Create a CD spool bobbin by starting with a main cylinder that is 21.5mm in height and 40mm in diameter. Bore a concentric hole through the center of this cylinder with a diameter of 17.5mm and a length of 200mm to ensure it passes completely through the part. To finish the geometry, remove a smaller central cylinder w...
len=50; d_of_CD=15; $fs=.1; difference() { rotate([90,0,0])translate([0,0,1.5/2])cylinder(21.5,d=40); rotate([90,0,0])cylinder(200,d=17+.5); translate([-10,-1,-5])cylinder(100,d=8,center=true); }
glb/cad_8dda30a3394e.glb
Create a Butterfly Fluid Circuit junction by starting with a solid cube that has equal dimensions of 17mm for its length, width, and height. From this cube, remove three identical octagonal prisms to create a network of intersecting channels. Each octagonal prism must have a diameter of 8mm and a length of 17mm. Posi...
holeDiam = 8; wallThickness = 3; numFaces = 8; totalLength = 2*holeDiam+3*wallThickness; totalWidth = totalLength; totalHeight = totalLength; difference () { cube ([totalLength,totalWidth,totalHeight]); translate([-0.001,(totalWidth-2*holeDiam)/3+holeDiam/2,wallThickness+holeDiam/2]) rotate(a=90,v=[0,1,0]) rotat...
glb/cad_427fedd316e8.glb
Create a battery holder for two AA batteries starting with a solid rectangular block measuring 32mm wide, 63mm long, and 15mm high, centered on the origin. Hollow out the center of this block by removing a rectangular volume of 28.5mm by 53mm by 14mm, positioned 1.75mm above the base. To create the internal compartment...
module batteryholder() { difference(){ cube(size = [32,63, 15.0], center = true); translate([0,0,1.75]){ cube(size = [28.5,53.0, 14.0], center = true);} translate([0,29,1.75]){ cube(size = [25.5,1.5, 14.0], center = true);} translate([0,27,1.75]){ cube(size = [22.5,2.8, 14.0], center = true);} translate([7.2...
glb/cad_d1898e599382.glb
Create a Cupboard Magnet Holder consisting of a rectangular base plate and a cylindrical housing. Start with a rectangular base measuring 27mm in width, 5.4mm in height, and 7.9mm in depth. Center a cylindrical tower on this base with an outer radius of 8.05mm and a total height of 17.5mm. The tower is hollowed out t...
EXT_WIDTH=0.6; PLAY=0.2; WIDTH_1=13; WIDTH_2=27; DEPTH_0=2*EXT_WIDTH; DEPTH_1=7.9; DEPTH_2=14.3; DEPTH_3=17.5; HEIGHT_1=2.7; HEIGHT_2=16.3+PLAY; HOLE_R=1.6; HOLE_D=20.5; HOLE_Z=4.5; R_OUTSIDE=7.85+PLAY; R_INSIDE=R_OUTSIDE-2*EXT_WIDTH; R_SCREW=1.85+PLAY; module base() { intersection() { minkowski() { ...
glb/cad_9c63623f0335.glb
Create a Stepper Shaft Key consisting of a flat base and a central raised collar. Start with a flat handle 60mm long, 3mm thick, and 2.5mm wide. At each end of this handle, place a ring with an outer diameter of 14mm and an inner diameter of 9mm. In the center of the handle, construct a raised cylindrical collar with...
length = 60; center_diameter = 18; height = 13; rings_diameter = 14; hole_diameter = 5.3; thickness = 3; frame_width = 2.5; hole_wall_thickness = 3; $fn = 64; eps = 0.05; depth = height - thickness; module key(size) { key_size = hole_diameter - (hole_diameter*4.7/5); union() { cylinder(d = center_diameter...
glb/cad_6cb0db438a8d.glb
Create a housing for an XBee module and carrier board consisting of a main case and a separate cover. For the main case, create a rectangular block 39mm long, 32mm wide, and 17mm high with 1.5mm thick walls. Hollow out the interior to create a recess for the PCB that is 39mm long, 29mm wide, and 2.25mm deep. From the...
wall_thickness=1.5; carrier_width=29; header_width=25; carrier_length=36; carrier_thickness=2.25; usb_height=carrier_thickness; power_led_pos=8; power_led_width=1.6; power_led_height=1; header_height=5; xbee_width=25; xbee_length=35; xbee_thickness=10.5; total_thickness=14.5; led_spacing=4; led_width=1.6; led_height...
glb/cad_c2a548ca2975.glb
Create a PET Bottle Rail consisting of a curved section and a straight section. The rail profile is a flat bar with a height of 30mm and a nose thickness of 8mm. The nose is 2mm high. For the straight section, create five segments, each 60mm long. Along the base of these segments, place mounting blocks every 60mm. E...
$fn=50; xsegments=5; xsegment_length=60; xheight=30; xnoseheight=2; xnosewidth=8; xdistance=29; xradius=40; xhole_rdiaus=2.5; translate([0,-xradius,0]) assemble_rail(segments=xsegments,segment_length=xsegment_length,height=xheight,noseheight=xnoseheight,nosewidth=xnosewidth,distance=xdistance,hole_radius=xhole...
glb/cad_96a90663f9ce.glb
Create a 3D model of an N Scale GE EP-5 locomotive shell. The main body is a hollowed rectangular form with a total length of approximately 822mm (scaled for N scale), a width of 121mm, and a height of 121mm. Construct the main chassis as a hollowed-out shell. The roof should be slightly arched, created by a hull of ...
include <../../includes/jshapes.scad>; include <../../includes/OpenSCAD_Triangles/Triangles.scad>; module couplerblank() { translate([0,4.55*-.5,0]) { cube([4.38,4.55,1.2]); } } module roof(rooflen,carwidth,sidet) { $fn=10; difference () { hull () { translate([0,carwidth*-....
glb/cad_1bd96232c0ea.glb
Create a customizable circle template tool. Start by creating a main outer cylinder with a height of 1mm and a diameter that is 20mm larger than the desired inner diameter. Remove a concentric inner cylinder from the center with a height of 3mm to create a ring-shaped wall that is 1mm thick. To add angle markers, creat...
unit="first"; innerDiametermm=0; innerDiameterinch=0; innerDiameter16stinch=0; makePart(); module makePart(){ if(unit=="first"){ smm(innerDiametermm); } else{ sinch(innerDiameterinch,innerDiameter16stinch); } } module smm(d){ difference(){ cylinder(1,d/2+10,d/2+10,$fn=3...
glb/cad_4e6a313e523d.glb
Create a cup test for waterproof wire integration by constructing a hollow cylinder with an outer radius of 10mm and a total height of 20mm. The cylinder should have a wall thickness of 2mm, created by removing a concentric inner cylinder from the center, starting 2mm above the base and extending to the top. To allow f...
cupout=10; wallt=2; holer=0.5; cuph=20; $fn=60; difference(){ cylinder(r=cupout, h=cuph); translate([0,0,wallt])cylinder(r=cupout-wallt, h=cuph); translate([0,cupout, cuph/2])rotate([90,0,0])cylinder(r=holer, h=2*cupout); }
glb/cad_7818379a60fe.glb
Create a geometric sculpture titled ss8f. The core structure is based on a repeating, twisting pattern of two mirrored, spiraling forms. Start by creating a shape derived from the intersection of a cylinder with a radius of 101mm and a twisting extruded triangle (defined by three vertices at a radius of 50mm). Genera...
slice_num=29; res=.20; scale_factor=.9; rot=150; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=3, r=50); } module down() { rotate ([0,0,0]) circle ($fn=3, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_1e27c727ec60.glb
Create a Scooby Snack hanger shaped like a dog bone with a thickness of 5mm. Construct the main body by placing four cylinders with a radius of 17.5mm at the corners of a rectangle measuring 28mm by 14mm, then connect them with a central rectangular block that is 52.5mm wide and 35mm deep. Center a small vertical hole ...
use <Write.scad> bone_dia = 35; height = 5; module bone() { for (y = [-1, 1]) { for (x = [-1, 1]) { translate([x * bone_dia * 0.5 * 1.6, y * bone_dia * 0.4, 0]) cylinder(r=bone_dia/2, h=height); } } translate([0, 0, height/2]) cube([1.5*bone_dia, bone_dia, height], center=true); } difference() { bone(); scale([1.5...
glb/cad_8b98f9775ddb.glb
Create a Tap Key tool by starting with a main cylinder 40mm high with a radius of 22mm. Remove a smaller concentric cylinder from the bottom with a radius of 20mm and a height of 25mm to create a hollow base. At the center of the top face, create a vertical hole 5mm in diameter that passes through the entire height o...
difference(){ cylinder (h = 40, r = 44/2,$fn = 100); translate([0,0,-1]) cylinder (h = 25, r = 40/2,$fn = 100); translate([25,0,-1]) cylinder (h = 50, r = 14/2,$fn = 100); translate([-25,0,-1]) cylinder (h = 50, r = 14/2,$fn = 100); translate([0,0,23]) cylinder(h=9,d=15.5,$fn=6); translate([0,0,23]) ...
glb/cad_10b948511059.glb
Create a geometric sculpture based on a twisting, tapering square-based form. Start by constructing a central vertical axis. Generate a series of 29 stacked layers, where each layer is a thin slice 0.2mm thick. Each slice is derived from the intersection of a cylinder with a radius of 101mm and a square profile that ha...
slice_num=29; res=.20; scale_factor=.9; rot=150; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_355e2c94715a.glb
Create a geometric sculpture titled "sam and Cory B1" based on a twisting, layered structure. Start by generating a base shape consisting of two squares with 50mm radii, one rotated 180 degrees relative to the other. Extrude this profile vertically to a height of 3mm while applying a 120-degree twist. Construct a comp...
slice_num=29; res=.20; scale_factor=.9; rot=120; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_e0136e126ee1.glb
Create a geometric sculpture titled "sam and cory C1" based on a twisting, layered structure. Start by defining a base shape consisting of two squares with 50mm radii, one rotated 180 degrees relative to the other. Generate a central vertical form by extruding this square profile to a height of 3mm while applying a 150...
slice_num=29; res=.20; scale_factor=.9; rot=150; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_b84c573300ad.glb
Create a 3D model of the "sam and Cory BB" consisting of a complex, symmetrical geometric sculpture. Start by constructing a base shape formed by the intersection of two rotated square prisms, each with a side length of 100mm. Generate a central swirling form by stacking 29 thin slices. Each slice is a modified squar...
slice_num=29; res=.20; scale_factor=.9; rot=120; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for (...
glb/cad_7514ba4e8045.glb
Create a 3D cube with a side length of 100mm. Center the cube on the origin so that it extends from -50mm to 50mm along the X and Y axes, and from -50mm to 50mm along the Z axis. From this main volume, remove a smaller concentric cube with a side length of 98mm and a height of 3mm, centered on the Z axis, to create a h...
slice_num=42; res=.15; scale_factor=.925; rot=210; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for...
glb/cad_3d4ab080df44.glb
Create an L-shaped mounting plate consisting of two identical connected sections. For each section, create a geometric hull that encompasses a cube measuring 16mm x 16mm x 5mm, centered on the Z-axis, and a cylinder with a radius of 8mm and a height of 5mm positioned at X=15, Y=0, Z=0. Through the center of this combin...
mount_hole_dia = 5.5; mount_plate_dia = 16; module part() { difference() { hull() { translate([mount_plate_dia/2, 0, 2.5]) cube([mount_plate_dia, mount_plate_dia, 5], center=true); translate([15, 0, 0]) cylinder(r=mount_plate_dia/2,h=5); } translate([15, 0, -1]) cylinder(r=mount_hole_dia/2,h=7)...
glb/cad_95ecdb13c587.glb
Create a flexible fan mounting system holder. Start by constructing a main body that is 20mm wide, 29mm long, and 15mm high, with rounded corners using a 3mm radius. From this body, remove a central rectangular block measuring 20mm by 20mm by 22mm to create a hollow channel, and further remove a smaller interior sectio...
width = 15; outer_hole_dia = 5; expanded_part_width = 16; module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true); } module holder() { difference() { union() { translate([0, -9, 0]) minkowski() { cube([20,29,width-1]); cylinder(r=3,...
glb/cad_00dedd36eb01.glb
Create a flexible fan mounting system consisting of two identical mounting brackets connected by a central plate. First, create a mounting bracket by forming a hull between two cylinders, each with a 5mm radius and 5mm height, positioned 10mm apart. Bore a 4.5mm diameter hole through the center of both cylinders. Nex...
fan_mount_hole_dia = 4.5; fan_mount_plate_dia = 10; fan_mount_distance = 10; mount_hole_dia = 5; mount_plate_dia = 16; module single_mount() { difference() { hull() { cylinder(r=fan_mount_plate_dia/2,h=5); translate([0, fan_mount_distance, 0]) cylinder(r=fan_mount_plate_dia/2,h=5); } translate([0,...
glb/cad_8372fd28b642.glb
Create a ZMR front/back spacer by constructing a central body and removing two mounting holes. Start with a base rectangular block measuring 34mm in length, 6mm in width, and 5mm in height. Centered on top of this base, add a hexagonal section with a diameter of 6mm and a height of 5mm, which is mirrored on both the le...
module spacer() { difference() { mainspacer(); translate([-15.75,0,-1]) cylinder(7,1.5,1.5,$fn=100); translate([15.75,0,-1]) cylinder(7,1.5,1.5,$fn=100); } } module hexagon(size, height) { boxWidth = size/1.75; for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height]...
glb/cad_cf6d91dc6822.glb
Create a Devention Neckholder Balancer consisting of a central vertical block and an angled support arm. Start with a central rectangular block 10mm wide, 13mm deep, and 15mm high. Remove a 21mm by 10mm by 5mm rectangular section from the bottom center and drill a vertical hole through the center with a radius of 1.6mm...
union(){ difference(){ cube([10,13,15], center=true); translate([0,0,-2]) rotate(90, [1,0,0]) cylinder(h=40, r=1.6, $fn=20, center=true); translate([0,0,-3]) cube([21,5,10], center=true); } difference(){ translate([0,-20,20]) rotate(-30, [1,0,0]) cube([10, 70,10], center=true); translate([0,...
glb/cad_7854959a3a9e.glb
Create a Syma X8C Gimbal Mount by constructing a central base and an elevated mounting structure. Start with a rectangular base measuring 28mm wide, 21mm deep, and 3mm high, centered on the origin. On top of this base, add a central raised rectangular block that is 14mm wide, 21mm deep, and 5mm high, positioned so it i...
module GimbalHalter(){ difference(){ union(){ union(){ difference(){ translate([0,0,5.5]) cube([4,18.01,2.01], center=true); translate([0,0.25,0]) cylinder (h = 20, r=1.5, center = true, $fn=100); } difference(){ translate([0,0,3.5]) cube([14,21,5], center=true); translate([0,0,5.5]...
glb/cad_ba194537d9c5.glb
Create a customizable lid for a can. Start by creating a main outer cylinder with a diameter of 88mm, a height of 5mm, and a resolution of 100 facets. From the center of this cylinder, remove a smaller concentric cylinder with a diameter of 85mm and a height of 5mm, but shift the inner cylinder upward by 1.5mm so that ...
thickness = 1.5; lid_height = 5; lid_inside_diameter = 85; lid_outside_diameter = lid_inside_diameter + (thickness * 2); label_text_line1 = "Can"; label_text_line2 = "Lid"; label_size = 2; roundness = 100; module label(the_text) { scale([label_size,label_size,1]) linear_extrude(height=thickness/2) tex...
glb/cad_d659def3b5e2.glb
Create a 9 Volt Battery Tray by constructing a solid rectangular base and removing six rectangular pockets to hold batteries. The overall base should have a height of 20mm, with a bottom thickness of 3mm. The outer walls of the tray must be 4mm thick, while the inner walls separating the pockets are 3mm thick. Arrang...
InnerWallThickness = 3; OuterWallThickness = 4; BottomThickness = 3; TrayHeight = 20; BatteryWidth = 26.5; BatteryDepth = 17.5; BatteryHeight = 48.5; BatteryMargin = .5; Rows = 3; Columns = 2; module batteryHole() { cube(size=[BatteryWidth+BatteryMargin, BatteryDepth+BatteryMargin, Batter...
glb/cad_d7f7dfc419f0.glb
Create a geometric sculpture titled "eights A" based on a twisting, mirrored spiral of square-based forms. Start by constructing a base shape using a square with a radius of 50mm, which is then extruded and twisted 210 degrees over a height of 3mm. Generate a complex, swirling volume by repeating this twisted square ...
slice_num=49; res=.15; scale_factor=.933; rot=210; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=4, r=50); } module down() { rotate ([0,0,0]) circle ($fn=4, r=50); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); } module swirl() { for...
glb/cad_629dea39ba56.glb
Create a shower rod connector consisting of a mirrored pair of cylindrical bodies joined at a central plane. Each half of the connector is a cylinder with a diameter of 18mm and a height of 40mm, resulting in a total combined height of 80mm. The outer edges of the top and bottom faces are rounded with a radius of 1.2mm...
EPSILON = 0.001; BODY_HEIGHT = 80; BODY_DIAMETER = 18; END_ROUNDING = 1.2; HOLE_WIDTH = 4.6; HOLE_DEPTH = 10; LONG_HOLE_HEIGHT = 18; SHORT_HOLE_HEIGHT = 15; copy_mirror ([0, 0, 1]) { difference() { union () { cylinder(h = BODY_HEIGHT / 2, d = BODY_DIAMETER, $fn = 200); cylinder(h ...
glb/cad_99e6a298c85e.glb
Create a wire hook for a planetarium by starting with a flat, circular base 20mm in diameter and 2mm thick. Centered on top of this base, add a toroidal ring with an outer diameter of 2.5mm and a cross-sectional thickness of 1.5mm. The ring should be formed such that its inner diameter is 1mm, creating a small loop tha...
hookDiameter = 1.5; hookInnerDiameter = 1; hookFacets = 20; baseDiameter = 20; baseHeight = 2; baseFacets = 50; difference(){ union() { rotate(a = [90,0,0]) rotate_extrude(convexity = 10, $fn = hookFacets) translate([hookInnerDiameter + (hookDiameter / 2), 0, 0]) ...
glb/cad_1a45aee7cf78.glb
Create a cabinet light holder consisting of two concentric rings connected by a straight bridge. First, create a small ring with an outer radius of 6.1mm and an inner hole of 4.05mm. Second, create a larger ring with an outer radius of 8.925mm and an inner hole of 6.925mm. Position the center of the larger ring 16.975m...
over = 2; rod = 8.1/2; lamp = 13.85/2; thick = 4; dist = 9; displace = [rod+lamp+dist, 0, 0]; difference() { union() { cylinder(h = thick, r=rod+over, center=true); translate(displace) cylinder(h = thick, r=lamp+over, center=true); translate(v = [rod+(dist/2), 0, 0]) cube(size = [dist, rod*2,...
glb/cad_5e429b653e94.glb
Create a Headphone Peanut cord wrap by designing a flat, elongated figure-eight loop with a consistent wall thickness of 2.5mm. The overall outer dimensions of the shape are approximately 61mm in length and 22mm at its widest points. Construct the form using two primary bulbous sections connected by a narrower waist. E...
minor_outside_width=14.3; minor_inside_width=8.74; major_ouside_width=21.95; major_inside_width=15.46; length_outside=60.99; length_inside=52.39; module shape(){ union(){ hull(){ circle(10.5,$fn=50); translate([7,-15.025/2,0])square([1,15.025]); } difference(){ translate([8,-7.515,0])square([23,15.25]); translate([(...
glb/cad_d3827132094c.glb
Create a KLJ Trophy consisting of a central vertical pillar and a horizontal base. First, construct a vertical rectangular pillar with a square cross-section of 25mm by 25mm and a total height of 100mm. Within this pillar, integrate a smaller rectangular protrusion measuring 25mm wide by 12.5mm deep and 100mm high, cen...
include <roundCornersCube.scad> thickness = 25; rotate(-90) { translate(v = [-35, 35, 0]) scale(v = [0.2, 0.2, 1]) dxf_linear_extrude(file="kljlogoschwarz.dxf", height=thickness, convexity=1, center=true); rotate(a=[90,0,0]) { roundCornersCube(thickness,thickness,100,7); translate(v = [0, -thickness/4...
glb/cad_2c7881584ac6.glb
Create a cross earring by constructing a central vertical bar and a shorter horizontal crossbar. Start with a rectangular prism for the main vertical body measuring 5mm by 5mm in cross-section and 75mm in length. Position a second rectangular prism perpendicular to the first to form the crossbar; this piece should be 5...
difference(){ union(){ translate([0,-2.5,5]) rotate([0,90,0]) union(){ cube([5,5,75]); translate([0,-17.5,20]) cube([5,40,5]); } cylinder(5,5,5); } translate([0,0,-.5]) cylinder(6,2.5,2.5); }
glb/cad_6272e8ac9fe3.glb
Create a geometric sculpture consisting of a central swirling vortex enclosed within a square frame. Start by constructing a primary form based on a 24-sided polygon with a radius of 50mm. Extrude this shape vertically while applying a continuous twist of 210 degrees and a gradual inward scale factor of 0.933 per slice...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=45; border_num=8; border_wd=3; sf=scale_factor; module up() { rotate ([0,0,180]) circle ($fn=24, r=50); } module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20) up(); ...
glb/cad_8f3a208e5ccd.glb
Create a 3D sculpture titled "ss circle arrow" based on a complex swirling geometry. Start by constructing a base shape that combines a circle with a radius of 20mm and a highly elongated ellipse (scaled 5:1) to form a star-like profile. Extrude this profile vertically to a height of 3mm while applying a twist of 210 d...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=45; border_num=8; border_wd=3; sf=scale_factor; module up() { circle (20); scale ([5,1,1]) circle (20, $fn=3); } module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, slices=20...
glb/cad_9acd3f4e80ba.glb
Create a 3D sculpture titled "ss circle arrow A" based on a series of twisting, concentric geometric layers. Start by constructing a base shape that combines a circle with a radius of 20mm and a highly elongated ellipse (scaled 4:1) with a radius of 20mm. Generate a complex swirling volume by linearly extruding this ...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=60; rot3=0; border_num=8; border_wd=3; sf=scale_factor; module up() { circle (20); scale ([4,1,1]) circle (20, $fn=3); } module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, s...
glb/cad_60555f28f909.glb
Create a TestMultipart model consisting of a cube and a cylinder. First, construct a cube with side lengths of 10mm, centered on the X and Y axes and positioned 5mm above the base plane. Next, create a cylinder with a radius of 5mm and a height of 10mm, positioned with its base on the ground plane. To create the combin...
part = "first"; cube_size = 10; cylinder_size = 10; print_part(); module print_part() { if (part == "first") { mycube(); } else if (part == "second") { mycylinder(); } else if (part == "both") { both(); } else { both(); } } module both() { translate([-cube_size, 0, 0]) mycube(); translate([cube_size,...
glb/cad_958de11502a3.glb
Create an XLR / DMX Cap by constructing a hollow cylinder with an outer diameter of 19mm and a total height of 9.5mm. Create a central bore through the center with a diameter of 16mm, leaving a wall thickness of 1.5mm. The floor of this interior cavity should be raised 2mm from the base, meaning the hollow section is 7...
difference(){ difference(){ difference(){ cylinder(16,19/2,19/2,$fn=200); translate([0,0,2]) cylinder(30,16/2,16/2,$fn=200); } translate([0,0,13]) cylinder(1.5,18/2,16/2,$fn=200); } translate([0,8,2]) rotate([0,0,90]) cylinder(30,1,1,$fn=3); }
glb/cad_fd43892bdabc.glb
Create a geometric object consisting of a thin, square-shaped frame with a recessed center. Start by constructing a square plate with a side length of 100mm and a thickness of 3mm. From this plate, remove a smaller centered square with a side length of 97mm (creating a border width of 1.5mm on each side) and a height o...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=60; rot3=0; border_num=8; border_wd=3; sf=scale_factor; module up() { circle (20); scale ([3,1,1]) circle (20, $fn=3); } module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { linear_extrude(height=3, twist=rot, s...
glb/cad_2c5a61fb1733.glb
Create a 3D model of a stylized circular arrow emblem. Start by constructing a base shape consisting of two mirrored components: a circle with a radius of 20mm and an elongated oval (created by scaling a circle by 2:1 on the X-axis). Combine these to form a central seed shape. Generate a complex, twisting volume by ex...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=90; rot3=0; border_num=8; border_wd=3; sf=scale_factor; module up() { translate ([20,0,0]) union () { circle (20); scale ([2,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { l...
glb/cad_ece110b4c97e.glb
Create a Vinyl Tubing Rainbow holder. Start with a rectangular base plate 3mm thick, with a total width of 55.3mm and a total depth of 21.3mm. Centered on this base, add a stabilizing fin that is 13.8mm wide and 31.3mm long, extending upwards from the base. On top of the base, create two identical rectangular blocks, ...
minArcDiam = 40; tubeDiam = 1.1*0.25*25.4; holeCutDiam = 9; sheathLength = 10; baseThickness = 3; wallThickness = 3; finWidthRatio = 0.25; finLengthRatio = 0.25; totalWidth = minArcDiam+13*tubeDiam+2*wallThickness; totalDepth = 3*(tubeDiam+2*wallThickness); pi = 3.14159265; violet = 2*sheathLength+pi*minArcDiam/2; bl...
glb/cad_33d9137ac508.glb
Create a 3D model of a stylized circular arrow emblem. The core geometry is based on a composite 2D shape consisting of a circle with a radius of 25mm and a triangle (a circle with only 3 facets) scaled by 2.5 along the X-axis, both centered 40mm from the origin. Generate a complex, twisting volume by extruding this ...
slice_num=49; res=.15; scale_factor=.933; rot=210; rot2=90; rot3=0; border_num=8; border_wd=3; sf=scale_factor; module up() { translate ([40,0,0]) union () { circle (25); scale ([2.5,1,1]) circle (20, $fn=3); }} module down() { rotate ([0,0,180]) up(); } module star() { up(); down(); } module stack() { ...
glb/cad_066631c7a43d.glb
Create a parametric motor mount spacer with a total height of 24mm. The main body is formed by the intersection of two rectangular blocks, each 8mm wide and 24mm high, centered on each other to create a cross shape. At the ends of these blocks, place four cylinders with a diameter of 14mm and a height of 24mm. Position...
hole1Spacing=16; hole2Spacing=19; holeDiameter=3; mountWidth=8; minimumStrength=3; shaftDiameter=7; shaftDepth=5; mountHeight=24; difference() { union() { translate([hole1Spacing/2,0,mountHeight/2]) cylinder(h=mountHeight,d=holeDiameter+minimumStrength*2,center=true); translate([-hole1Spacing/2,0,mountHeight/2]...
glb/cad_8e1e8c0bdc88.glb
Create a cable holder designed to clip onto a table. Start with a main rectangular block that is 30mm deep, 30.7mm wide, and 30.7mm high. From this block, remove a central rectangular section to create a U-shaped channel that is 24.7mm wide, 30.7mm deep, and 24.7mm high, leaving walls that are 3mm thick. On the outer...
TABLE_HEIGHT = 24.7; DEPTH = 30; CABLE = 6; CYLINDER_HEIGHT = 12; WALL = 3; WALLTABLESPACE = 3; CABLEWSPACE = CABLE+1.5; $fs = 0.01; ADDSPACE = max(max(WALLTABLESPACE,CABLEWSPACE),WALL)-WALL; OUTER_RADIUS = CABLEWSPACE*1.8; WIDTH = OUTER_RADIUS*2.3; rotate([0,180,0]) difference() { union() { translate([TABLE...
glb/cad_4819b7d00c14.glb
Create a Ping Pong Paddle face by constructing a thin, flat cylinder with a radius of 60mm and a height of 5mm. Center the cylinder on the origin, shifting it 2.5mm along the Z-axis so that it spans from Z=0 to Z=5.
translate([0, 0, -2.5])cylinder(r=60, h=5);
glb/cad_03dc29219626.glb
Create a custom stacking block for a toy train by starting with a cube that measures 43.4mm on all sides. Center the cube on the origin. Remove two cylindrical holes, each with a radius of 9.9mm and a 20-facet resolution, to create a cross-bore through the center of the block. Position the first hole to pass vertically...
blockx = 43.4; blocky = 43.4; blockz = 43.4; module toyblock(size, holedia) { x = size[0]; y = size[1]; z = size[2]; hole = (holedia/2); difference() { cube(size=[x,y,z], center=true); cylinder(h=size[0]+2,r=hole, center=true, $fn=20); rotate(a=90, v=[1,0,0]) cylinder(h=size[0]+2,r=hole, center=true, $fn=20)...
glb/cad_098f98e4e651.glb
Create a custom stacking block for a toy train by starting with a cube that measures 43.4mm on all sides. Center the cube on the origin. Remove two intersecting cylindrical holes, each with a radius of 9.9mm and a 20-facet resolution, to create a cross-bore through the center of the block along the X and Y axes. On two...
blockx = 43.4; blocky = 43.4; blockz = 43.4; letterscale = 1.7; module toyblock(size, holedia) { x = size[0]; y = size[1]; z = size[2]; hole = (holedia/2); difference() { cube(size=[x,y,z], center=true); cylinder(h=size[0]+2,r=hole, center=true, $fn=20); rotate(a=90, v=[1,0,0]) cylinder(h=size[0]+2,r=hole, c...
glb/cad_9992e2f0c7fd.glb
Create a toy stacking block by starting with a cube that measures 43.4mm on all sides. Center a vertical hole through the middle of the block from top to bottom with a diameter of 19.8mm; this hole should be rendered as a 20-sided prism. On three of the cube's side faces, create a 3x3 grid of spherical dimples. Each sp...
blockx = 43.4; blocky = 43.4; blockz = 43.4; hole = 19.8; numdimples = 3; dimplerad = 6; dimpleoff = 4; $fn = 40; module dimples(num,rad) { interval = blockx / numdimples; offset = interval/2; for (i=[0:num-1]) { for (j=[0:num-1]) { translate([i*interval+offset,0,j*interval+offset]) sphere(r=rad); } } ...
glb/cad_ae00109b5004.glb
Create a cylindrical container for a toy stacking train with a height of 43.4mm and an outer diameter of 43.4mm. The cylinder should have a 36-facet resolution. Remove a central vertical cylindrical hole with a diameter of 19.8mm that runs through the entire height of the object. Around the exterior of the main body,...
container_height = 43.4; container_dia = 43.4; holedia = 19.8; lid_height = 10; numrings = 4; numrods = 8; rod_dia = 4; ring_dia = 3; outdent = 2; ring_margin = 3; module torus(radius,thickness) { rotate_extrude(convexity = 10 , $fn = 36 ) translate([radius, 0, 0]) scale([1,1,1]) circle(r = thickness, $fn = 20); }...
glb/cad_d4673af2e45b.glb
Create a custom stacking block for a toy train. Start by constructing a cube with dimensions 43.4mm x 43.4mm x 43.4mm. Apply a 2mm fillet or bevel to all edges to soften the corners. Bore a cylindrical hole completely through the center of the block from the front face to the back face with a diameter of 19.8mm. The in...
octoscale = 0.45; blockx = 43.4; blocky = 43.4; blockz = 43.4; holesize = 19.8; module toyblock(size, radius, holedia) { x = size[0]-radius; y = size[1]-radius; z = size[2]-radius; hole = holedia/2; difference(){ minkowski() { cube(size=[x,y,z], center=true); sphere(r=radius,$fn=8); } translate([0,0,-5]) ...
glb/cad_fb46d651b0b4.glb
Create a filament drive idler arm pin by constructing a series of coaxial cylinders. Start with a base cylinder 3mm in length with a diameter of 4.5mm. Attached to this base, extend a main shaft with a diameter of 2.9mm for a length of 18mm. At the end of this shaft, add a flange consisting of two sections: first, a 1m...
rotate([90,0,0]) difference(){ union() { cylinder(3,4.5,4.5,$fn=100); cylinder(18,2.90,2.90,$fn=100); translate([0,0,19]) cylinder(4,4,0,$fn=100); translate([0,0,18]) cylinder(1,4,4,$fn=100); } translate([-5,1.5,-1]) cube([10,3,30]); translate([-5,-4.5,-1]) cube([10,3,30]); translate([-1,-4,12]) cube([2,8,11]...
glb/cad_0302934629b0.glb
Create a tank tread system consisting of a central wheel and a series of interlocking tread links. First, construct the wheel as a cylinder with a diameter of 22mm and a height of 8mm. Bore a 6mm diameter hole through the center of the cylinder. Around the outer circumference of the wheel, create 60 evenly spaced rad...
$fn = 60; treadLength = 16; i=0; for(i=[0:60:359]) { rotate([0,i,0]) translate([20,0,-8]) rotate([0,-90,0]) drawElement(); } translate([0,11,0]) drawWheel(); module drawWheel() { color("lightgreen") difference() { union() { for(i=[0:60:359]) { difference() { rotate([0,i,0]) translate([0,0,-3]...
glb/cad_0cd5051afd5d.glb
Create a Tiny Treads track link by starting with a rectangular base block measuring 6mm wide, 20mm long, and 2mm high. Carve three longitudinal channels into the top face of this block: one centered channel that is 2mm wide and 2mm deep, and two outer channels positioned 4.8mm from the center on each side, each 2mm wid...
$fn = 60; drawElement(); color("red") translate([9,0,0]) drawElement(); color("blue") translate([18,0,0]) drawElement(); color("green") translate([-9,0,0]) drawElement(); module drawElement() { difference() { cube([6,20,2]); translate([4.8,-0.1,2.3]) rotate([0,45,0]) cube([2,21,...
glb/cad_330c7efd7d53.glb
Create a Clip Plate for a Cell Phone Mount by combining a rectangular base with a clip attachment. Start by creating a rectangular plate that is 15mm wide, 14.5mm deep, and 3mm thick. Position this plate so its center is aligned with the origin on the X and Y axes, but offset it along the Y axis by 26.9mm. To this asse...
spacer_x = 15; spacer_y = 14.5; spacer_z = 3; import_stl( "01_Top_fixed.stl" ); translate( [ 0-(spacer_x/2), 26.9, 0 ] ) cube( [ spacer_x, spacer_y, spacer_z ] ); translate( [ -7.5, 26.9+spacer_y-11.5, 34.9+spacer_z ] ) rotate( [ 0, 90, 0 ] ) import_stl( "00_Clip.stl" );
glb/cad_89067541437b.glb