Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a dust collector fitting consisting of three stacked coaxial sections with a uniform wall thickness of 2.4mm. Start with a large base cylinder having an outer radius of 53.625mm and a height of 45mm; remove a concentric inner cylinder of the same height to create a hollow tube. On top of this base, add a transit...
$fn = 200; Large_End_Radius=53.625; Large_End_Height=45; Trans_Height=41; Small_End_Radius=30.75; Small_End_Height=35; Wall_Thickness=2.4; difference() { cylinder(h=Large_End_Height, r=Large_End_Radius, center=false); translate([0,0,-.1])cylinder(h=Large_End_Height+.2, r=Large_End_Radius-Wall_Thickness, cente...
glb/cad_908398db4b92.glb
Create a test funnel by revolving a thin-walled profile around a central vertical axis. The profile consists of a vertical stem and a wide bowl connected by a smooth curve. The stem starts at a radius of 5mm from the center and extends upward for 60mm. At the top of the stem, incorporate a curved transition with a radi...
bowl = 50; bowl_r = 50; stem = 60; stem_r = 5; neck_r = 10; thickness = .5; curve_r = 10; $fa = 5; $fs = 0.1; eps = 0.01; module profile() { hull() { translate([stem_r, 0]) square([thickness, eps]); translate([neck_r + curve_r, stem]) ...
glb/cad_74194c9f07b1.glb
Create a Hair Gel Bottle Joiner consisting of two identical mirrored cap sections joined at their narrow ends. For one section, create a cylinder with a diameter of 28mm and a height of 17.5mm. Remove a conical central void from this cylinder: the void should start at the top face with a diameter of 24.5mm and taper do...
include <../threads.scad>; include <../polyScrewThread.scad>; capInsideBottom = 22.0; capInsideTop = 24.5; capInsideDepth = 16.5; threadDiameter = 23.8; capHeight = capInsideDepth+1; capDiameter = 28; resolution = 180; capThroatInsideDiameter = 14.5; capThroatOutsideDiameter = 20.0; module cap() { diffe...
glb/cad_f4f0a0e679e0.glb
Create an ear headphone holder consisting of a base and an angled support arm. Start with a rectangular base block measuring 27mm in length, 3mm in width, and 11mm in height. At the top of this base, integrate a vertical support structure that extends upwards and angles away. On the top surface of the base, add a rec...
$fn = 70; rsh = 5.3; font = "Liberation Sans"; module letter(l) { linear_extrude(height =2) { text(l, size =7, font = font, halign = "center", valign = "center", $fn = 16);}} difference() { union(){ color("red") hull(){ translate([0, -1, 0])cube([21,2,1], center = false); translate([3, -1, 1.1]) cube([1,2,7.5...
glb/cad_06162606f8c8.glb
Create a screen cover for a Galaxy S5 in an OtterBox case. Start by creating a solid rectangular block with a length of 157mm, a width of 85mm, and a height of 6.75mm. Round the two corners on one of the shorter ends with a radius of 14mm. Inside this outer shell, carve out a central rectangular cavity to create a wa...
FN = 200; L = 155; W = 81; H = 5.75; THK = 2; R = 12; R_O = R+THK; cover(); module cover() { difference() { cover_body(); translate([THK,THK,THK]) S5_body([50,50,50]); } } module cover_body() { difference() { cube([L+THK,W+2*THK,H+THK]); { d...
glb/cad_8313ee24f425.glb
Create a parametric split-hub bearing consisting of an outer ring and a two-piece inner hub. The outer ring is a cylinder with an outer diameter of 22mm, a height of 7mm, and a central hole. Carve a circular track into the inner wall of this ring to house balls with a diameter of 4.5mm; the track should be a toroidal g...
id = 8; od = 22; width = 7; balld = 4.5; angle = 30; track_radius = id / 2 + balld / 2 + 1; $fs = .5; $fa = 2; %rotate_extrude(convexity = 5) translate([track_radius, width / 2, 0]) circle(balld / 2); difference() { linear_extrude(height = width, convexity = 5) difference() { circle(od / 2); circle(track_radiu...
glb/cad_2751f68b075a.glb
Create a storage box and a matching lid for Sugru molds. The main box is a rectangular container with external dimensions of 84mm in width, 112.2mm in length, and 54mm in height. The walls and the base of the box are 2mm thick. The interior of the box is hollowed out to a height of 50mm, leaving a 2mm floor. Inside thi...
nbr_sugru=19; external_walls=2; internal_walls=0.8; margin=0.5; sugru_width=80; sugru_height=50; sugru_thick=5.5; int_width=sugru_width; int_length=sugru_thick*nbr_sugru + internal_walls*(nbr_sugru-1); int_height=sugru_height; ext_width=sugru_width+external_walls*2; ext_length=int_length+external_walls*2; ext_height...
glb/cad_f084fe9e920b.glb
Create a Universal Phone Car Mount holder. Start with a main outer box measuring 132mm wide, 14.5mm deep, and 49.25mm high. Hollow out the center to create a shell with a wall thickness of 2mm, leaving a central cavity of 128mm by 10.5mm by 49.25mm. On the front face, center a large semi-circular cutout with a radius ...
iPhoneWidth = 128; iPhoneHeight = 63; iPhoneDepth = 10.5; slots = 2; mountThickness = 2; difference() { cube([iPhoneWidth+2*mountThickness,iPhoneDepth+2*mountThickness,3/4*(iPhoneHeight+mountThickness)]); translate([mountThickness,mountThickness,mountThickness]) cube([iPhoneWidth,iPhoneDepth,iPhoneHeight+mountT...
glb/cad_c9ff4c12adce.glb
Create a dovetail joint part by starting with a cube that is 10mm on all sides. From this cube, remove a wedge-shaped volume that passes completely through the center of the object along one axis. This void is created by extruding a triangular profile 20mm deep. The profile of this cutout is a triangle with a height of...
difference(){ cube(10,center=true); rotate(a=[0,90,0]) linear_extrude(height=20,center=true,convexity=10,twist=0) polygon(points=[[0,-3],[0,4],[8,0]],center=true); }
glb/cad_5d8db533a0c3.glb
Create a Diamond Hotend Mounting assembly. Start by constructing a central duct with a conical lower section that transitions from a radius of 12mm at the bottom to 22mm at the top. The duct should be hollowed out with a wall thickness of 1mm. At the top of the duct, integrate a square fan mounting plate 3.5mm thick w...
assembled = false; metalPartsOnly = false; ziptie_enable = true; blower_enable = true; tolerance = 0.1; $fn = 100; angle = 28; coldend_offset = (24.5-5)+7; flange_offset2 = -1; wall = 2.5; wall_thin = 1; fan_pos = 68.5; fan_plate = 3.5; fan_width = 50; flange_h = 24; radius_up = fan_width/2-2; radius_lo = 24/2;...
glb/cad_2bc5436181e0.glb
Create a GT2 2mm profile pulley with 80 teeth. The pulley consists of a cylindrical base with a diameter of 20mm and a height of 2mm. Above this base, create the toothed section with a height of 9mm and an outside diameter of approximately 11.88mm. At the center of the pulley, create a vertical hole with a diameter of...
teeth = 80; profile = 12; motor_shaft = 7.9; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 0; retainer_ht = 2; idler = 0; idler_ht = 2; pulley_t_ht = 9; pulley_b_ht = 2; pulley_b_dia = 20; no_of_nuts = 0; nut_angle = 90; nut_shaft_distance = 1.2; bolt_head_width = 12.77; bolt_head...
glb/cad_6c158ecfe25b.glb
Create a camera bracket for a Sony action cam skeleton frame. Start with a main rectangular body measuring 56.3mm in length, 18.75mm in width, and 8mm in height, featuring rounded corners with a 5mm radius. Hollow out the center of this body to create a recessed interior. In the center of the top face, create a hexago...
function in_to_mm(inches) = inches * 25.4; nut_width_flats = in_to_mm(7/16); nut_thickness = in_to_mm(7/32); nut_trap_r = nut_width_flats / 2 / cos(180 / 6) + 0.1; clearnce_hole_r = in_to_mm(.2570)/2; { translate([0,12.75,0]) { translate([0,0, .75]) difference() { cube([13.7,3.75,1.5],true); cub...
glb/cad_6dde2c65a61b.glb
Create a Dust Collector Cap by constructing a hollow cylinder with a height of 25mm. The outer diameter should be 62.1mm, and the inner diameter should be 61.5mm, resulting in a wall thickness of 1.2mm. The interior of the cylinder must be hollowed out from the top down to a base thickness of 1.2mm, leaving a solid cir...
$fn = 200; inner_radius = 30.75; wall_thickness = 1.2; outer_radius = inner_radius + wall_thickness; height = 25; difference() { cylinder(r=outer_radius, h=height, center=false); translate([0,0,1.2])cylinder(r=inner_radius, h=height, center=false); }
glb/cad_95ae49f5159f.glb
Create a Square Loop Design consisting of several curved and straight segments. First, construct a semi-circular ring by sweeping a 10mm square profile around a central point at a radius of 20mm, covering a 180-degree arc. Duplicate this semi-circular ring and position it 60mm away from the first along the X-axis to cr...
module end90() { rotate_extrude( angle=180, $fn=30) translate([20,0,0]) square(10); color([1,0,0]) translate([25,.05,5]) cube([10,.2,10], center = true); color([0,1,0]) translate([-25,.05,5]) cube([10,.2,10], center = true); } module end45() { rotate_extrude( angle=90, $fn=30) translate([20,0,0])...
glb/cad_0de5c60d7dd6.glb
Create a Hitch Cover designed for a 1.25-inch (31.5mm) receiver. The main body is a hollow square tube with an outer dimension of 31.5mm and a wall thickness of 1.5mm, extending to a total depth of 96.52mm. The corners of the tube are rounded with a 3mm radius. At the open end of the tube, add a solid end block that i...
receiver=1.23 * 25.4; rcv_depth=3.8*25.4; tong_dia=15; tongue=.7*25.4; hole_distance=2.8*25.4; hole_dia=14; bolthole=0; union() { $fn=50; difference() { { translate([0,0,rcv_depth/2]) difference() { receiverPipe(receiver, rcv_depth); ...
glb/cad_2eb899c9b7e1.glb
Create a filament feeder bracket for a RepRap Huxley by starting with a rectangular base measuring 120mm in length, 52mm in width, and 10mm in height. From this base, remove several cylindrical holes and rectangular cutouts. Position a large circular hole with a radius of 15mm centered at coordinates (33, 26) and a sma...
difference() { translate([0,0,0]) cube ([120,52,10]); translate([33.,26,-5]) cylinder(r=15, h=20); translate([63,26,-5]) cylinder(r=5, h=20); polyhedron ( points = [[-5, -5, -10], [-5, -5, 20], [-5, 20, -10], [-5, 20, 20], [40, -5, -10], [40, -5, 20]], triangles = [[1,0,3], [2,3,0], [0,1,4], [5,4,1], [4,5,3], [3,2,...
glb/cad_22ccc125bb09.glb
Create a Customizable Wet Palette consisting of a main tray and an optional lid. The main tray is a rectangular container with a total width of 80mm and a depth of 70mm. The walls and base have a thickness of 1mm. The interior is divided into sections. Create two symmetrical painting palette areas, each with a width ...
Tray_width = 80; Tray_depth = 70; Doubled = "yes"; Depth = 7; Wall_thickness = 1; Base_thickness = 1; Water_depth = 15; Water_width = 20; no_support_angle = 33; Show_parchment = "no"; Print_orientation = "no"; Show_lid = "no"; Lid_thickness = 1; parchment_buffer = 10; single_tray_width = Tray_width - Water...
glb/cad_b78b69ed3fc7.glb
Create a spindle filament spool bike bearing hub by constructing a hollow cylinder. Start with an outer cylinder that has a height of 102mm and a radius of 28.5mm. Remove a concentric inner cylinder to create a wall thickness, using an inner radius of 26.75mm and a height of 104mm, positioned so that it extends slightl...
difference(){ cylinder(h = 102, r = 28.5); translate([0, 0, -1])cylinder(h = 104, r = 26.75); }
glb/cad_dcc8297f655f.glb
Create a spindle filament spool bike bearing hub by constructing a hollow cylindrical shell. Start with a main outer cylinder that has a radius of 26.5mm and a total height of 16mm. Remove a concentric inner cylinder from the center to create a hole with a radius of 25.25mm, leaving a thin wall around the perimeter. At...
translate([0, 0, 0]) union(){ difference(){ cylinder(h = 3, r = 26.5); translate([0, 0, -1])cylinder(h = 5, r = 16); } difference(){ cylinder(h = 16, r = 26.5); translate([0, 0, -1])cylinder(h = 18, r = 25.25); } }
glb/cad_14fad23cc341.glb
Create a parametric spool bearing bushing. Start by creating an octagonal prism with a diameter of 26.5mm and a height of 8mm. At the base of this prism, add a thin octagonal flange with a height of 1mm and a diameter of 26.5mm. Remove a central octagonal hole from the entire height of the object to accommodate a bea...
bear_dia=22/2; bear_hght=7; spind_dia=53/2; out_in_dia=1.083; difference() { difference() { union () { cylinder(bear_hght+1,spind_dia,spind_dia, $fa=45); translate ([0,0,-1])cylinder(1,spind_dia+4,spind_dia+4); } union() { translate ([0,0,-1]) cylinder (bear_hght+1,bear_dia*out_in_dia,bear_dia*out...
glb/cad_e34cc96e3819.glb
Create a customisable post base consisting of a circular foundation and a central hollow sleeve. Start by creating a flat circular base with a diameter of 75mm and a thickness of 2mm. Centered on this base, add a spherical dome with a diameter of 100mm, but truncate it so only the segment from the base height up to 13m...
base_thickness = 2.0; base_diameter = 75.0; post_idiameter = 31.0; post_height = 20.0; post_thickness = 2.0; dome_diameter = 100; dome_height = 13; $fn = 64; module base() { cylinder(d=base_diameter, h=base_thickness); } module post() { cylinder(d=post_idiameter+post_thickness*2, h=post_height+base_thicknes...
glb/cad_835da8088f2b.glb
Create a webcam adapter for astrophotography consisting of a rectangular base and a central cylindrical sleeve. Start by creating a rectangular base plate measuring 48mm wide, 44mm deep, and 3mm thick. At each of the four corners of this plate, create a small cylindrical pillar with a height of 5mm and a radius of 4mm....
eyepieceDiameter = 31.75; diameterDeductMillimeter = 0.1; module ignore() { } eyepiece_r = (eyepieceDiameter-diameterDeductMillimeter)/2; height = 3; module base1() { translate([0,-1,0]) { cube(size=[48, 44, height], center=false); } } module base2() { base1(); tra...
glb/cad_e98f1c0f3cda.glb
Create a Webcam for Astrophotography adapter base. Start with a solid rectangular block measuring 48mm wide, 44mm deep, and 18mm high. Carve out a central rectangular cavity measuring 36mm wide, 28mm deep, and 7mm high, positioned 6mm from the left edge and 7mm from the front edge. Remove a smaller rectangular section ...
module base1() { difference() { translate([0,-1,0]) { cube(size=[48, 44, 18], center=false); } translate([6,7,0]) { cube(size=[36, 28, 7], center=false); } translate([4,2,7]) { cube(size=[40, 38, 11], center=false); ...
glb/cad_4ecb2142ea62.glb
Create a webcam adapter for astrophotography by constructing a rectangular base plate with a total height of 5mm. Start with a solid rectangular block measuring 48mm in width, 44mm in depth, and 5mm in height. From the top surface of this block, remove a central rectangular section measuring 40mm by 38mm with a depth o...
height = 5; module base1() { difference() { translate([0,-1,0]) { cube(size=[48, 44, height], center=false); } translate([4,2,3]) { cube(size=[40, 38, 2], center=false); } } } module base2() { base1(); translate([2,2,0]) c...
glb/cad_8f86b6bc860a.glb
Create a GoPro cards and batteries box. Start by creating a main rectangular block with a total height of 32mm, a width of 57mm, and a depth of 63mm. Within this block, carve out six identical battery compartments. Each compartment should be a rectangular hole measuring 13mm wide, 36mm deep, and 28mm high. Position t...
number_of_batteries=6; walls_thickness=3; battery_depth=36; battery_width=13; battery_height=28; tolerance=0.4; bat_d=battery_depth+tolerance*4; bat_w=battery_width+tolerance*4; bat_h=battery_height+tolerance*2; bat_nbr=number_of_batteries; walls=walls_thickness; $fn=100; module battery(depth,width,height){ cub...
glb/cad_eba3bb84a71b.glb
Create a Prusa i2 reinforced left X axis carriage designed to hold LM8UU linear bearings and a trapezoidal lead screw. Start with a main rectangular body. In the center, create a vertical housing that extends upward, featuring a U-shaped cutout at the top. Within the main body, carve out a central rectangular slot 17...
include <C:\Users\User1\Desktop\3D\11111\configuration.scad> corection = 1.17; module xendidler(){ difference(){ translate(v = [0,35,24.5]) union(){ difference(){ union(){ translate(v = [-25, -40, -16.6]) cube(size = [20,40,15.8], cent...
glb/cad_922f2cf4a881.glb
Create a screwdriver bit holder by starting with a rectangular block measuring 10mm wide, 11mm deep, and 18mm high. Carve a hexagonal hole through the center of the block to accommodate a 6mm hex bit; this hexagonal void should have a radius of 4mm and a height of 15mm, positioned 5mm from the side and 6.5mm from the f...
module ScrewdriverBit( r, h ) { linear_extrude(height=h) { rotate([0,0,30]){ polygon(points = [ [0,r], [r * cos(30),r * sin(30)], [r * cos(30),-r * sin(30)], [0,-r], [-r * cos(30),-r * sin(30)], [-r * cos(30),r * sin(30)], ...
glb/cad_2ccedbb910b9.glb
Create a 12 gauge shotgun shell model. Start by constructing the base as a composite of two cylinders: a thin bottom disc with a radius of 10.75mm and a height of 2mm, topped by a main cylinder with a radius of 9.75mm and a height of 19mm. Within this base section, remove a central vertical core by creating a hole with...
ffn = 100; color("Gold") { difference() { difference() { union() { cylinder(h=2, r=10.75, center=false, $fn=ffn); cylinder(h=19, r=9.75, center=false, $fn=ffn); } difference() { cylinder(h=.75, r=3, center=false, $fn=ffn); cylinder(h=.75, r=2, center=false, $fn=ffn); } } translate([0,0,15]) cylinder(h=4, r=8, center=f...
glb/cad_cfcc6bb7f25e.glb
Create a curtain track hook with a total height of 8mm. The main body is a rounded rectangular base formed by the hull of a 12mm diameter cylinder and a 4mm wide square, extending to a total length of 31mm. Cut a track slot through the center of this body. The slot is 5mm wide and 12mm high, consisting of a 5mm diame...
$fn=100; totalz=8; trackslotx=31; tracksloty=5; extraz=4; trackslotz=totalz+extraz; hookbod=7; trackslotxcutout=(trackslotx-10)+(tracksloty+hookbod); hookoffset=2; hooklength=((trackslotx+hookbod)-hookoffset)-4; module trackslot(){ translate([0,0,-2]) hull(){ cylinder(d=tracksloty, h=trackslotz); ...
glb/cad_60def3cb64bf.glb
Create a Perry the Platypus inaction figure by combining a main body with a beak, eyes, and four legs. Start with a rectangular body block measuring 120mm in length, 65mm in width, and 45mm in height. Remove two rectangular sections from this block: one at the rear for the tail and one at the front for the beak. Const...
translate([-70,0,0]) rotate([90,0,0]) difference(){ color([0,0.8,0.8]) cube([120,65,45]); union(){ translate([0,-1,25]) color([0,0.8,0.8]) cube([10,67,10]); translate([100,-1,0]) color([0,0.8,0.8]) cube([20,67,10]); } } translate([0,10,0]) color([0.93,0.78,0]) union(){ difference(){ translate([0,10,0]) minkowski()...
glb/cad_fb2afa44b6f1.glb
Create a filament spool holder consisting of a flat rectangular base with a central cylindrical sleeve. Start by creating a rectangular base plate with a width of 94mm and a depth of 94mm, with a thickness of 7mm. Round the vertical edges of this base with a radius of 4mm. In the center of the base, place a vertical h...
$fn = 90; width = 102; fudge = 0.1; wall_thickness = 4; mink_radius = 4; spindle_base_height = 3.5; s_b_h_adjustment = 0; spindle_diameter = 38; inside_spindle_diameter = 29; s_d_adjustment = 1; spindle_height = 75; spindle_extension_height = 25; spindle_base_diameter = width - (wall_thickness * 2); spool_diameter = ...
glb/cad_128a95481d4b.glb
Create a Flux Delta external filament spool holder. Start with a main rectangular block measuring 102mm wide, 43mm deep, and 146mm high. From this block, remove a large rear section to create a U-shaped channel. This cutout should leave 4mm thick walls on the sides and a 4mm thick floor at the bottom. The interior of...
width = 102; fudge = 0.1; wall_thickness = 4; spindle_base_height = 8; s_b_h_adjustment = 0; spindle_diameter = 37; s_d_adjustment = 0; spindle_height = 75; spindle_base_diameter = width - (wall_thickness * 2); spool_diameter = 205; spool_height = 72; spool_center_diameter = 53; gap_depth = 23; g_d_adjustment = 0; i...
glb/cad_56ef8e9a8fb6.glb
Create a stepper rack for a bucket crane. Start with a rectangular base that is 53mm wide, 22mm high, and 4mm thick. Add a central rectangular block on top of this base that is 66mm wide (extending 6.5mm beyond each side of the base) and 4mm high. On the sides of this combined structure, add two semi-cylindrical protru...
$fn=100; AL=100; AW=8; AT=6; BPR=12; TPR=1+(BPR-1)*100/180; TW=AT/2; BT=8; BW=20; BH=25; AR=2.5; SW=53; SH=22; SG=20; SRT=4; SAR=3; SABR=5.5; SAL=9; SAG=3; SANT=13; GRT=1; GD=16; GT=8; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([...
glb/cad_8588ad1567b2.glb
Create a replacement dowel for a table by constructing a solid cylinder with a total height of 27mm and a radius of 2.9mm. To add texture and grip to the part, remove 16 small vertical holes from the main body. Each of these holes should be a cylinder with a radius of 1mm and a height of 30mm. Position these holes in a...
difference(){ cylinder(8+19,2.9,2.9, $fn=60); }
glb/cad_a92824c15a34.glb
Create an x-carriage tensioner for a Greg's Wade extruder. Start by constructing a base composed of two horizontal bearing holders: one small and one long, positioned 45mm apart. Connect these with a hull that forms a central body, incorporating a rectangular block measuring 58mm by 1mm by 13.5mm and another measuring ...
E2Belt=2.4; DisRB=11; Bf=9.5; Lex=22; x_rod_distance = 45; use <bearing_xa.scad> module x_carriage_base() { translate([-33/2,+2,0]) rotate([0,0,90]) horizontal_bearing_base(1); translate([-33/2,x_rod_distance+2,0]) rotate([0,0,90]) horizontal_bearing_base(2); hull() { translate([-45.5,36,0]) cube([58,1,13.5...
glb/cad_62e8e7f015e0.glb
Create an x-carriage tensioner for a Greg's Wade extruder. Start with a base composed of two horizontal bearing holders positioned 45mm apart. The base structure is formed by a hull connecting a 58x1x13.5mm block and a 58x9x18mm block, with an additional 39x8x18mm block integrated into the center. Cut a central channe...
E2Belt=2.4; DisRB=11; Bf=9.5; Lex=22; x_rod_distance = 45; use <bearing_xa.scad> module x_carriage_base() { translate([-33/2,+2,0]) rotate([0,0,90]) horizontal_bearing_base(1); translate([-33/2,x_rod_distance+2,0]) rotate([0,0,90]) horizontal_bearing_base(2); hull() { translate([-45.5,36,0]) cube([58,1,13.5...
glb/cad_6e05bbcd00de.glb
Create a Christmas Tree cookie cutter by constructing three rectangular bars of varying lengths, all with a thickness of 1.5mm and a width of 7.5mm. Position the first bar, which is 38.25mm long, centered at the origin. Place the second bar, measuring 22.5mm in length, 27mm behind the first one along the Y-axis. Positi...
scale([1.5,1.5,1.5]) { import_stl("ChristmasTree.stl"); translate([0,0,.5])cube([25.5,5,1],true); translate([0,-18,.5])cube([31.5,5,1],true); translate([0,-29,.5])cube([13.5,5,1],true); }
glb/cad_af2f4f648d42.glb
Create a sliding door stopper extender. Start by forming a rectangular base that is 35mm long, 30mm wide, and 3mm thick. At both the front and back ends of this base, center a cylinder with a radius of 15mm and a height of 15mm. On one end of the base, create a larger concentric hole to hollow out the cylinder; this ho...
stoplength=35; rotate ([180, 0,0]) union(){ difference (){ union (){ cube ([stoplength, 30, 3]); translate ([0,15,0]) cylinder (3, 15, 15); translate ([stoplength,15,0]) cylinder (3, 15, 15); translate ([(stoplength-5),15,-12]) cylinder (15, 15, 13); } translate ([(stoplength-5...
glb/cad_109f414618fb.glb
Create a PV Wire Anchor designed to secure a wire to a flat surface. The main body is a block 10mm wide, 15.5mm deep, and 7.75mm tall. The top of this block is shaped into a semi-circular arch to hold a wire with a diameter of 4.75mm, leaving a wall thickness of 3mm around the wire. The base of the anchor extends outw...
wire_d = 9.5 /2; anchwid = 10; screw_d = 5 /2; screwhead = 7 /2; anch_thick = 3; OUTPUT = 1; if (OUTPUT == 1) { body(); } if (OUTPUT ==2) { translate([0, 0, anchwid/2]) rotate([0, -90, 0]) body(); } module body() { difference() { union() { hull() { translate([-(anchwid /2), 0, wire_d]) rotate([0, 90,...
glb/cad_6f52c33d4301.glb
Create an adapter hub for a side paddle wheel boat. Start with a central cylindrical base that has a diameter of 15mm and a total height of 23mm. On top of this base, center a wider, thinner cylindrical disc with a diameter of 30mm and a thickness of 8mm. Inside the central cylinder, create a hexagonal hole that exten...
shaft_pocket_len = 13; extension = 10; hex_shaft_across_flats_mm = 8.17; inner_hub_diameter_mm = 15; paddle_hub_diameter_mm = 30; paddle_hub_thickness_mm = 8; paddle_slot_thickness_mm = 1; numpaddles = 4; screw_hole_height = 3; tallness = shaft_pocket_len + extension; module cylinder_outer(height,radius,fn){ ...
glb/cad_575259c60b65.glb
Create an adapter hub for a side paddle wheel boat by starting with a square plate measuring 35mm by 35mm with a thickness of 3mm. Within this plate, create a 3x3 grid of nine hexagonal holes. Each hole should be centered within its respective grid cell, which measures approximately 11.67mm per side. The hexagonal hole...
wide=35; thick = 3; deep = 4; places = 3; step = wide / (places); holerange=2; hole_start=2.75; module cylinder_outer(height,radius,fn){ fudge = 1/cos(180/fn); cylinder(h=height,r=radius*fudge,$fn=fn); } difference () { cube ([wide, wide, thick]); holestep = holerange / (places * places); for (x = ...
glb/cad_efd629046d8a.glb
Create a customizable spool stand consisting of two primary components: bearing holders and an adjustable jigsaw spacer. First, create two identical bearing holders. Each holder is a block with a width of 15mm and a height of 15mm. Centered on the front and back faces of each block, create a circular cutout with a dia...
sw=70; sd=200; bw=7; bd=22; bh=5; export=1; bs=sd*sin(20); x=bs+bd+4; y=bw+2+2*4; z=4+2+bd/2; pw=sw-40; module holder() { union() { difference() { union() { cube([x,4,z]); translate([bd/2+2,0,4+2+bd/2]) scale([1,1,1.2]) rotate([-90,0,0]) cylinder(d=bd+4, h=4, $fn=50); ...
glb/cad_64617c0754b6.glb
Create a filament cooler consisting of a vertical rectangular housing and a circular base. Start by constructing a main vertical body that is 20mm wide, 18mm deep, and 60mm tall. Atop this body, add a smaller rectangular collar that is 20mm wide, 15mm deep, and 10mm tall. At the bottom of the vertical body, integrate ...
$fn=20; union(){ difference(){ union(){ hull(){ translate([-10,16,0]) cube([20,1,5]); translate([-10,38,0]) cube([20,1,5]); } translate([-10,38,0]) cube([20,18,60]); translate([-9,41,0]) cube([17.9,12.75,70]); cylinder(5,40/2,40/2); } translate([-8,42,1]) cube([16,11,70]); difference(){ translate([0,0,1]) cylinde...
glb/cad_2da4854d80da.glb
Create a filament cooler consisting of a main rectangular housing with a hollow center. The outer body is a block measuring 20.2mm in width, 18.2mm in depth, and 60mm in height. Remove a central rectangular volume from this block to create a hollow channel. At the top of the structure, integrate four vertical pillars...
$fn=50; rotate(180,[1,0,0]) difference(){ union(){ translate([1,58,40]) cube([3,10,10]); translate([-4,58,40]) cube([3,10,10]); translate([-14,34,40]) cube([28,26,10]); translate([0,0,5]) hull(){ translate([5,36,40]) cylinder(5,10/2,10/2); translate([5,20,40]) cylinder(5,10/2,10/2); translate([15,36,40]) cylinder(5,1...
glb/cad_c242224715a0.glb
Create an M6 endstop clamp by combining a cylindrical collar with a rectangular base. Start with a cylinder that has an outer diameter of 11mm and a height of 8mm. Remove a concentric inner cylinder with a diameter of 6mm and a height of 18mm to create a hollow ring. Cut a 90-degree wedge out of the ring's wall to crea...
X = 0; Y = 1; Z = 2; rod_diam = 6; clamp_diam = rod_diam + 5; open_angle = 90; width = 8; base_lx = 6.5; base_ly = 4; base_lz = width; zip_tie_holes = [clamp_diam, 1.5, 3]; open_x = 2*(rod_diam/2)*sin(open_angle/2); module Prusa_clamp() { union() { difference() { cylinder(r=clamp_diam/2, h=width); ...
glb/cad_0bd12a3150fe.glb
Create a two-part casting mold for a motor mount. Each mold half is a block measuring 58mm wide, 50mm high, and 10mm deep, with rounded corners using an 8mm radius. For both halves, subtract the geometry of the motor mount from the center of the block. The motor mount should be rotated 45 degrees and positioned at co...
model_filename = "Motor_Mount_remix-bb-v17-meshmixer-meshlab.stl"; model_rotate = [0,0,45]; model_translate = [123,-13,-.1]; model_scale = 1; mold_width = 58; mold_height = 50; mold_depth = 10; mold_spacing = 10; rounded_corners = true; edge_radius = 8; key_size = 4; key_fettle = 0.8; key_margin = 7; model_debug = f...
glb/cad_9712de3ecb9e.glb
Create a two-part casting mold for a motor mount. Each mold half is a rounded rectangular block measuring 58mm wide, 40mm high, and 10mm deep, with corner radii of 8mm. For both halves, subtract the geometry of the motor mount STL from the center of the block. The motor mount should be rotated 45 degrees and translat...
model_filename = "Motor_Mount_remix-v16-meshmixer-meshlab.stl"; model_rotate = [0,0,45]; model_translate = [123,-18,-0.5]; model_scale = 1; mold_width = 58; mold_height = 40; mold_depth = 10; mold_spacing = 10; rounded_corners = true; edge_radius = 8; key_size = 4; key_fettle = 0.8; key_margin = 7; model_debug = fal...
glb/cad_9e2f8c51ac45.glb
Create a two-part mold for a motor mount casting consisting of two identical rectangular blocks placed side-by-side. Each block should have a width of 58mm, a height of 48mm, and a depth of 10mm, with corners rounded to a radius of 8mm. For each block, carve out the negative space of the motor mount model, which is ro...
model_filename = "Motor_Mount_remix-sb-v17-meshmixer-meshlab.stl"; model_rotate = [0,0,45]; model_translate = [123,-15,-.1]; model_scale = 1; mold_width = 58; mold_height = 48; mold_depth = 10; mold_spacing = 10; rounded_corners = true; edge_radius = 8; key_size = 4; key_fettle = 0.8; key_margin = 7; model_debug = f...
glb/cad_ffa086914ca9.glb
Create a z-Motor-Holder consisting of two primary components: a base plate and a motor holder. First, create a base plate 80mm wide, 100mm high, and 6mm deep. Round the corners with a 3mm radius. Cut a central rectangular slot for the motor plate that is 43mm wide and 8mm deep. Remove two rectangular sections from th...
include <MCAD/motors.scad> printerShaftSize = 5.4; connectorNutSize = 6.5; connectorNutHeight = 5; connectorShaftSize = 3.4; connectorShaftLength = 8; extraBreakoutHeight = 12; extraBreakoutWidth = 10; switchShaftSize = 3.4; switchShaftDistance = 10; switchMountTop = 8; switchMountLeft = 5; baseWidth = 80; baseHei...
glb/cad_90b0a7bca33d.glb
Create an anti-vibration rod for a 3D printer Z-axis. Construct the main body as a cylinder with a diameter of 5.5mm and a height of 5mm. Attach a thin, flat circular base to the bottom of this cylinder with a diameter of 11mm and a thickness of 0.8mm. Finally, remove a central vertical hole from the entire assembly wi...
difference(){ union(){ cylinder(0.8,5.5,5.5,$fn=60); cylinder(5.5,5,5, $fn=60); } translate([0,0,-1]) cylinder(7,2.5,2.5, $fn=60); }
glb/cad_fd9283d3c6c3.glb
Create a connection clamp for a pool stand. The main body is a flat, elongated U-shaped bracket with a height of 10mm and a thickness of 3mm. The interior gap of the U-shape is 40mm wide. The base of the clamp consists of two parallel arms; the first arm is 50mm long, and the second arm is 25mm long. At the end of the...
height=10; breadth=3; gap_width=40; part1_length=50; part2_length=25; knob_diameter=6.7; knob_roundness=0.333; knob1_position=2; knob1_length=10.7; knob2_length=7; knob_distance=13.2; reinforcement_height=2; reinforcement_start=15; reinforcement_end=8; separator_thickness=2; separator_height=3; separator_start=5; $fn=...
glb/cad_145fe1625b12.glb
Create a Ketchup Dip and Squeeze Organizer consisting of a main holder, a lid, and a connector lock. For the main holder, create an open-top rectangular box with internal dimensions of 51mm width, 90mm length, and 180mm height. The walls should be 2.8mm thick. On the front face, create a semi-circular cutout with a r...
$fn=100; PieceToRender=5; Font=""; FontSize=8; FontDepth=.8; WidthOfPacket=51; LengthOfPacket=90; HeightOfHolder=180; WallThickness=2.8; Connectable=3; FrontLabel_Top="Ketchup"; FrontLabel_Mid=""; IncludeRamp=1; RampPercent=.6; RampHeight=15; LidDepth=3; LidCoversConnector=1; LidLabel="Ketchup"; LidLabel_P...
glb/cad_e0b88e6ceaf1.glb
Create a mounting plate for a duck fan and capacitive sensor. Start by creating a square base plate with a width and length of 12.7mm and a thickness of 3.175mm. At the center of the plate, create a vertical cylindrical bore with a diameter of 6.35mm that passes completely through the base. Position four screw hole...
include <boxes.scad> definition = 32; tolerance = 0.2; i1 = 25.4; i4 = 25.4/4; i8 = 25.4/8; i16 = 25.4/16; module modularHoseBall(mhBore) { mhBallOD = mhBore*2; mhOffsetToBallCenter=0.61 * mhBore; mhOffsetToTopOfBall=1.07 * mhBore; mhWideBore=mhBore * 1.6; mhBallID = mhBore * 1.6; mhOffsetToInnerBallCenter = 0...
glb/cad_1a4e85cbfb3e.glb
Create a customizable ruler with a total length of 76mm, a main body width of 20mm, and a height of 3mm. The base of the ruler features a beveled edge 5mm wide and 1mm high running along the length. On the beveled edge, engrave measurement markings: create major lines every 10mm and minor lines every 1mm, each 0.5mm w...
use<write/Write.scad> RulerText="Mark <3 RUSH"; RulerLength=76; RulerWidth=20; BevelWidth=5; FontSize=8; NumberSize=5; TextHeight=.6; HoleRadius = 2.2; RulerHeight=3; BevelHeight=1; LineDepth=0.4; LineWidth=.5; TextX=2; TextY=2; NumberOffset=2; difference(){ hull(){ translate([0,0,0]) cube([RulerLength,...
glb/cad_601cb7dc4873.glb
Create a car vent sunglass holder consisting of a ring and a ball-and-socket attachment. Start by creating a hollow cylinder with an outer diameter of 22mm, an inner diameter of 18mm, and a height of 10mm. Attached to the side of this ring, add a small cylindrical post with a diameter of 4mm and a length of 7mm, extend...
vent_fin_width = 3.2; length_of_fingers = 15; inner_diameter = 18; inner_radius = inner_diameter / 2; $fn = 100; union() { difference() { cylinder(h=10, r=inner_radius+2); translate([0,0,-0.5]) cylinder(h=11, r=inner_radius); } translate([inner_radius,0,5]) rotate([0,90,0]) ...
glb/cad_24c16fb3085a.glb
Create a Securing Hinges Pins Jig consisting of a rectangular base and a series of stepped vertical blocks. Start with a base plate that is 80mm long, 8mm wide, and 1mm thick. Along the center of this base, place a sequence of eight square blocks, each 8mm wide and 8mm deep. These blocks should be positioned side-by-si...
MinHeight = 3; MaxHeight = 10; HeightStep = 1; BaseHeight = 1; StepSize = 8; ClampLength = 10; HoleWidth = 3.5; UseClamps = 1; totalLength = (((MaxHeight - MinHeight) / HeightStep) +1) * StepSize + ( ClampLength * 2 * UseClamps ); stepOffset = ClampLength * UseClamps; module Jig( x, s, h ) { difference() { tran...
glb/cad_100b6d7f2845.glb
Create a headphone holder consisting of a curved support arm and a flat mounting base. Start by creating a curved arm that is 120mm wide and 5mm thick. The arm's profile is defined by a circular arc with a radius of 90mm and a height of 68mm. For the wall mounting section, create a curved plate 120mm wide and 70mm lo...
$fn = 365; support_height = 5; support_width = 120; cylinder_radius = 90; cylinder_height = 68; hilt_height = 2 * support_height; hilt_cylinder_radius = cylinder_radius; hilt_cylinder_height = support_height; wall_support_width = support_width; wall_support_length = 70; wall_support_height = support_height; wall_su...
glb/cad_4c5702c714a1.glb
Create an EKG Caliper Cover by constructing a hollowed-out rectangular shell with a rounded top. Start with a solid outer block measuring 13.9mm in width, 6.9mm in depth, and 37.6mm in height. Create a hollow interior cavity by removing a rectangular block from the center that is 11.5mm wide, 4.5mm deep, and 35mm high,...
height_inside = 35; width_inside = 11.5; depth_inside = 4.5; wall = 1.3; h_out = height_inside + 2*wall; w_out = width_inside + 2*wall; d_out = depth_inside + 2*wall; difference() { union () { cube(size = [w_out, d_out, h_out], center=false); translate([w_out/2, d_out, h_out]) {rotate(a=[90, 0, 0]) {cylinder(h=...
glb/cad_572cdc1138e3.glb
Create a Universal Filament Clip for 1.75mm filament. Start with a base rectangular block with rounded corners, measuring 9mm wide, 24.5mm long, and 3mm high. Carve a symmetrical, V-shaped channel through the center of the block along its length. The mouth of this channel at the edges should be 1.75mm wide, tapering ...
filamentDiam = 1.75; width = filamentDiam*4 + 2; length = 14*filamentDiam; height = 3; difference() { roundedCube([width, length, height], 1); translate([width/2,-0.1,0]) vcut(); translate([width/2,length+0.1,height]) rotate([180,0,0]) vcut(); } module vcut() { vBottomWidth = filamentDiam*.3; vBottomOffs...
glb/cad_9711620089d2.glb
Create a RepRap X-end for a leadscrew and bushing. Start by creating a central vertical cylinder with a height of 60mm and a radius of 9mm. Subtract a smaller concentric cylinder from the center with a radius of 5.18mm to create a hollow tube for a press-fit bushing. At the base of this cylinder, center a rectangular ...
include <configuration.scad> module bushing(stiff, lenght=11){ difference(){ union(){ translate(v=[-7.5,-8,0])cube(size = [15,8,lenght]); cylinder(h = lenght, r=7.5); } rotate(a=[0,0,45]) translate(v=[1,1,-1]) cube(size = [16,16,lenght+2]); if(stiff){ translate(v=[-4.8,-6,-1]) cube(size = [0.8,6,lengh...
glb/cad_d2cf3d48bfde.glb
Create a RepRap X-end designed to hold a leadscrew nut and a press-fit bushing. The main body is a block with a total height of 15.8mm, a length of 40mm, and a width of 15.8mm. At the center, create a vertical cylindrical cutout with a radius of 7.6mm to accommodate the leadscrew. Within this central area, incorporat...
include <configuration.scad> corection = 1.17; use <bushing.scad> use <teardrop.scad> axis_diameter_real=4; axis_diameter_larger=4.25; pressure_pad_height=1.8; add_strenght=1; xend_height=15.8; xend_length=40; solid_end_width=3; slot_width=1; pad_height=5.8; pad_width=7; pad_connector_height=3.3; bushing_support_widt...
glb/cad_4d75a90de6ef.glb
Create a RepRap X-end idler mount. Start with a base X-end structure and add a bearing column. The column is formed by combining a central block measuring 25.5mm by 7mm by 4.4mm, centered at [21, -21.5, 25.3], with a second block measuring 26mm by 5mm by 4.4mm, centered at [19, 12.5, 25.3]. To this assembly, add a vert...
include <configuration.scad> corection = 1.17; use <x-end.scad> module xendidler(linear){ xend(true,linear); translate(v = [0, 0, 12.5]){ mirror(){ difference(){ union(){ translate(v = [21, -21.5, 25.3]) cube(size = [25.5,7,4.4], center = true); translate(v = [19, 12.5, 25.3]) #cube(size = [26,5,4...
glb/cad_834cd3c5e7f2.glb
Create a RepRap X-end motor mount. Start with a main body that is 9mm thick. The overall structure is designed to support a NEMA 17 motor and Igus bushings. Construct a motor mounting plate with a square footprint of 43.18mm by 43.18mm (1.7 inches). Within this plate, create four mounting holes located at the corners....
include <configuration.scad> corection = 1.17; use <x-end.scad> difference (){ union () { mirror() xend(true,linear); translate(v = [0, 0, 0]) positioned_motor_mount(); } positioned_motor_mount_holes(); } nema17_hole_spacing=1.2*25.4; nema17_width=1.7*25.4; thickness=9; nema17_support_d=nema17_width-n...
glb/cad_89f72cd5b02d.glb
Create a Digital Flower sculpture by arranging a series of cylinders around a central axis. First, create a central base cylinder with a radius of 150mm and a height of 20mm. Then, generate a repeating pattern of 24 groups of cylinders. For each group, rotate the coordinate system by 15 degrees around the X, Y, and Z a...
$fn=30; a=24; b=4; c=55; rotate([0,-45,0]) { for(i=[1:1:a]) { rotate([360*i/a,360*i/a,360*i/a]) for(j=[1:1:b]) { translate([2*cos(360*j/4),2*sin(360*j/4),c*j]) cylinder(70,15,25); } } rotate([0,45,0]) translate([-20,0,0]) cylinder(125,150,20); }
glb/cad_8791062c68f0.glb
Create an FPV LCD bracket designed to mount to a handle. Start by creating a main clamp body that is 60mm wide and 22mm high (calculated from the handle diameter plus wall thickness). The clamp should feature a central cylindrical cutout with a diameter of 9.5mm to accommodate the handle. Add a front lip to the clamp ...
$fn = 32; tx_handle_width = 60; tx_handle_dia = 9.5; screw_dia = 3.1; screw_recess_dia = 7; thickness = 2; bottom_edge = 11; front_lip = 10; rear_hook_angle = 25; rear_hook_width = 7.5; rear_hook_inner_dia = 3.5; rear_hook_lip = 3.5; rear_hook_length = 32.5; clamp_height = tx_handle_dia+(thickness*2)+(screw_recess_...
glb/cad_2496900e8493.glb
Create a 3D model of a "loaf" shape from Conway's Game of Life, constructed from a collection of identical 1mm x 1mm x 1mm cubes. The overall structure is a cluster of these unit cubes arranged in a non-uniform, staggered grid. Position the cubes according to the following coordinates (x, y, z): - At z=0: (-3,-4,-2), ...
module skew_cube(a,b) { multmatrix(m = [ [1, 0, a, 0], [0, 1, b, 0], [0, 0, 1, 0] ]) cube(size=1.00001); } module span_cube(x1,y1,x2,y2,z) { translate(v=[x1,y1,z]) skew_cube(x2-x1,y2-y1); } union() { span_cube(-3,-4,-2,-4,0); span_cube(-3,-4,-4,-3,0); span_cube(-3,-4,-3,-3,0); span_cube(-3,-3,-2,-4,0); span...
glb/cad_c2437d452c5b.glb
Create a Crystal Quartz Jewelry Desk by arranging several hexagonal crystal prisms emerging from a faceted base. Start by creating a base sphere with a radius of 40mm, using a low facet count of 15 to give it a geometric, rocky appearance, and position it so its center is 15mm below the origin. Construct the crystals...
$fn=100; module Crystal_Quartz(h, r) { difference() { union() { hull() { translate([0, 0, h+r]) cylinder(h=1, r=0.1, $fn=6); cylinder(h=h, r=r, $fn=6); } } } } module JewelryDesk() { difference(...
glb/cad_0dff8e8b5a03.glb
Create a Pen Knob for SphereBot. Start by constructing a main cylindrical body with a total height of 12mm and a base diameter of 8.04mm. The bottom of the knob features a hexagonal recessed socket designed to fit a nut with a width across flats of 6.96mm and a thickness of 2.6mm. This socket is formed by a hexagonal c...
part = "clamp"; nut_width = 6.96; nut_thickness = 2.6; height=12; knurled_height=70; echo("nut_diameter",nut_diameter); diameter_1=100; function get_diameter_1()=hex_nut_diameter*diameter_1/100; diameter_2=140; function get_diameter_2()=get_diameter_1()*diameter_2/100; screw_hole_diameter = 55; function get_scre...
glb/cad_cb73ad1e6cee.glb
Create a Rotate Axis Knob for SphereBot. Start by creating a main cylindrical body with a height of 9mm and a diameter of 15.3mm. At the center of this cylinder, create a hexagonal hole that passes through the entire height. This hexagonal cutout should have a width across the flats of 13.2mm and a depth of 6.5mm, le...
part = "clamp"; nut_width = 13.2; nut_thickness = 6.5; height=9; knurled_height=90; echo("nut_diameter",nut_diameter); diameter_1=250; function get_diameter_1()=hex_nut_diameter*diameter_1/100; diameter_2=105; function get_diameter_2()=get_diameter_1()*diameter_2/100; screw_hole_diameter = 55; function get_screw...
glb/cad_44af10a9fb49.glb
Create a set of game pieces consisting of two distinct types: settlements and cities. For the settlement, create a cylinder with a diameter of 14.6mm and a height of 5mm, topped with a cone that has a base diameter of 14.6mm and a height of 5mm, tapering to a point. For the city, start with a base cylinder of 14.6mm di...
d = 14.6; h = 10; $fn = 100; module settlement(){ union(){ cylinder(r = d/2, h = h/2); translate([0,0,h/2]) cylinder(r1 = d/2, r2 = 0, h = h/2); } } module city(){ union(){ cylinder(r = d/2, h = 2); cylinder(r = d / 4, h = h); translate([0,0,h]) cylinder(r1 = d/4, r2 = 0, h = h/2); city_gates(d, d*0.75, h*0.75);...
glb/cad_458169d1cae1.glb
Create a 3D geometric sculpture consisting of three identical hollow triangular prisms. Each prism is formed from a 2D equilateral triangle with an outer diameter of 30mm and a wall thickness of 5mm, extruded to a total depth of 2mm. Position these three prisms so they are arranged symmetrically around a central axis...
depth = 2; size = 30; thickness = 5; lean = -30; div = 7; formGenerator(depth, size, thickness, lean, div); module triangle2D(dia = 20, thickness = 2) { translate([0,dia/2,0]) rotate([0,0,90]) difference() { circle(dia,$fn=3); circle(dia-thickness,$fn=3); } } module triangle3D(depth =...
glb/cad_f6a4f159ab30.glb
Create a Difference Engine v2.0 model consisting of several interlocking mechanical components. First, construct the figure wheels. Each figure wheel is a gear with 40 teeth, a 5mm bore, and a thickness of 10mm. Add a cylindrical outer shell with a radius of 32mm and a height of 20mm, with a concentric hole of 28mm r...
use <MCAD/involute_gears.scad>; use <pins/pins.scad>; $fn=50; tab_offset=0; sliding_tab_offset=0; bearing_thickness=0; view=0; bottom_plate_thickness=10; stack_height=80; module make_a_gear(number_of_teeth,axle_diameter,thickness){ gear (number_of_teeth,350,pressure_angle=28,clearance=0.2,gear_thickness=thickness,ri...
glb/cad_4be30e411b86.glb
Create a parametric vase by starting with a hexagonal base plate 5mm thick and 70mm in diameter. Centered on this base, construct a hollow vessel 160mm tall. The outer wall of the vessel begins as a hexagon with a radius of 33mm and linearly extrudes upward, scaling outward by a factor of 2 to increase the top diameter...
Flare = 2; Heigth = 160; Swirl=180; BaseThick = 5; module vase(){ module stem(){ linear_extrude(Heigth,scale=Flare,twist=Swirl,slices=60){ circle(33,$fn=6); circle(30,$fn=60); } } difference(){ stem(); linear_extrude(Heigth,scale=Flare){circle(29,$fn=60); }} } translate([0,0,BaseThick]){ vase(); } linear_extrude(Ba...
glb/cad_a6bec45fe157.glb
Create a hobbed bolt release tool by starting with a knurled cylinder that has a total height of 26.5mm and a diameter of 32mm. The exterior surface should feature a knurled texture with a width of 3mm, a height of 4mm, and a depth of 1.5mm. From the center of the bottom face, remove a series of concentric shapes to cr...
rc=10.5/2;hc=10; rhex=14.7/2.+0.4; hhex=6.5; $fn=50; ro=16; rremove=rhex+0.5; hover=10; PI=3.14; include <knurledFinishLib.scad> knurl_wd=3; knurl_hg=4; knurl_dp=1.5; e_smooth=2; s_smooth=0; module nut() { union() { cylinder(r=rc,h=hc,center=false); translate([0,0,hc])cylinder(r=rhex,h=hhex,cente...
glb/cad_2503d5b42bec.glb
Create a MakerFarm i3v RAMPS cooling fan mount. Start with a central square plate 40mm wide and 1.8mm thick. From this plate, remove a central circular area with a diameter of 39.1mm. Within the remaining corners of the plate, create four holes with a radius of 1.5mm, each positioned at a distance of approximately 22.6...
fanw = 40; holespacing = 32; m3holer = 1.5; plythick = 6.25; plydepth = 18; off = 20; thick = 1.8; $fn=72; function hypot(a,b) = sqrt(a*a+b*b); hrad = hypot(holespacing/2,holespacing/2); module fan(w,t,o) { difference() { translate([-w/2,-w/2,-t/2]) cube([w,w+o,t]); union() { cylinder(d=w-t/...
glb/cad_b3390c3e3e1b.glb
Create a coin storage system consisting of two tubes and two matching caps. For each tube, create a hollow cylinder with an outer radius of 15.45mm and a total height of 57.95mm. The wall thickness is 2mm. The interior cavity should have a radius of 14.45mm and a height of 53.95mm, starting 2mm from the base. To allo...
coin_type = 0; number_of_coins = 25; number_of_tubes = 2; generate_tube = 1; generate_cap = 1; tube_wall = 2; clearance = 0.4; fudge_factor = 0.975; coins = [ ["1 Euro", 23.25, 2.33], ["2 Euro", 25.75, 2.20], ["50 Euro cents", 24.25, 2.38], ["20 Euro cents"...
glb/cad_76d791405473.glb
Create a replacement end-stop switch spring. Start with a rectangular base plate measuring 12.5mm in length, 3mm in width, and 1mm in height. Attach a vertical side wall to one end of this plate that is 0.8mm thick, 2mm wide, and 6.2mm high. On the top surface of the base plate, add a rectangular arm measuring 15mm lon...
$fa=5; $fs=.5; module DM3_Switch(){ difference() { cube([12.8,6.5,5.7]); translate([3.15,1.5,-.1]) cylinder(d=2,h=6); translate([3.15+6.5,1.5,-.1]) cylinder(d=2,h=6); } translate([4.4,6.5,(5.7-2.9)/2]) cylinder(d=1.2,h=2.9); } module switchSpring(){ translate([3.15,1.5,.2]) cylinder(d=1.6,h=5.5); ...
glb/cad_38222e156ddc.glb
Create a D-Ring cable hanger consisting of a central semi-circular loop and two flat mounting feet. The main loop is formed by a ring with an outer diameter of 30mm, a width of 10mm, and a thickness of 2mm. This ring is flattened along one axis to a depth of 1mm, creating a thin, elongated oval profile. Add a supportin...
$fn = 30; RingWidth = 10; RingHeigth = 30; RingDepth = 1; RingThickness = 2; RibHeigth = 2; RibThickness = 1; ScrewShaftSize = 5; cutout1x = -50; cutout1y = 4; cutout1z = -15; cutout2x = 100; cutout2y = 30; cutout2z = 30; RingBig(); RingRib(); Feet(); module RingRib(){ minkowski() { difference(){ differ...
glb/cad_2a910c8c6ff7.glb
Create a cable hanger D-ring consisting of a curved main loop and two flat mounting feet. The main loop is formed by a hollowed-out cylinder with an outer diameter of 40mm and an inner diameter of 36mm, creating a wall thickness of 2mm. This loop is flattened along one axis to a depth of 1mm. Extend two rectangular m...
$fn = 30; RingWidth = 10; RingHeigth = 40; RingDepth = 1; RingThickness = 2; RibHeigth = 2; RibThickness = 1; ScrewShaftSize = 5; cutout1x = -50; cutout1y = 4; cutout1z = -15; cutout2x = 100; cutout2y = 30; cutout2z = 30; RingBig(); RingRib(); Feet(); module RingRib(){ minkowski() { difference(){ differ...
glb/cad_b33d27cff86d.glb
Create a hinged extruder drive fan mount consisting of two mirrored rectangular boxes connected by a hinge. Each box has an outer width of 44mm, a depth of 52mm, and a height of 10mm, with wall and bottom thicknesses of 1.5mm. For the bottom section, create a hollow box with a cutout in the front wall to accommodate a...
$fn = 100; width = 44; depth = 52; height = 10; wallThickness = 1.5; bottomThickness = 1.5; topThickness = 1.5; hingeOuter = 8; hingeInner = 3; hingeInnerSlop = 0.8; hingeFingerSlop = 1.5; fingerLength = hingeOuter/1.65; fingerSize = 6.5; topFingerSize = fingerSize; pos = -depth/2; latchWidth = 8; z = 0; difference(){...
glb/cad_2ffcad463f2c.glb
Create a ShapeOko DW660 Dust Shoe consisting of three primary components: a tool clamp top, a tool clamp bottom, and a brush section. Create the tool clamp bottom and top as two separate plates, each 10mm thick. The bottom plate is a complex polygon with a central cutout; subtract a magnet inset 1.5mm deep from the to...
tool_clamp_h = 10; brush_section_h = 10; brush_channel_h = 4; magnet_inset = 1.5; assembly = 0; fudge = 0.1; module tool_clamp_bottom_path(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-51.726238,-161.524183],[-49.200668,-146.811613],[-4...
glb/cad_cdb43d75039f.glb
Create a Clip Coffre Xsara Picasso consisting of four stacked geometric sections aligned on a central vertical axis. Start with a base blocker: a cylinder 2mm high with a bottom radius of 3.25mm and a top radius of 3.5mm, topped by a second cylinder 4.6mm high with a bottom radius of 3.5mm and a top radius of 3mm. Fr...
module sphereCap(a = 10, h = 4) { r = (a*a +h*h)/(2*h); translate([0,0,-r+h]) { difference() { sphere(r); translate([0,0,-h]) { cube(2*r,true); } } } } module tube(hauteur, rayon, epaisseur) { difference() { cylinder(hauteur,rayon,rayon); translate([0,0,-1]) { cylinder(hauteur+2,rayon-epais...
glb/cad_343ba9fe2a85.glb
Create a Captive Customizable Cable Holder designed to hold a 5mm diameter cable through a table with a thickness of 19.5mm. The model consists of an inner rotating barrel nested within an outer holder. Create the inner barrel as a cylinder with a radius of 4.5mm (cable radius 2.5mm plus 2mm neck thickness) and a tot...
show_seperate = "no"; cable_diameter = 5; table_thickness = 19.5; tolerance = 0.5; tab_length = 15; tab_thickness = 3; grip_height = 1; grip_width = 4; thumbwheel_height = 5; retainer_factor = 6; plane_cut_factor = 1; $fn = 50; neck_thickness = 2; holder_thickness = 4; barrel_lift_factor = 1/retainer_fact...
glb/cad_a45a1b6f2571.glb
Create a Wanhao i3 Fan Spacer and Grill. The model consists of a main rectangular base with a thickness of 3mm and an overall width of 40mm. At the center of the base, create a circular fan grill with a radius of 16mm and a height of 2mm. The grill should feature a series of thin radial slots and concentric circular ...
module Spacer(w=40,r=2,thick=9) { difference() { hull() for(x=[w/2-r,w/2-8+r]) for(y=[r,9-r]) translate([x,y]) cylinder(r=r,h=thick); } } module SpacerHole(thick=9) { translate([16,4.5,-1]) cylinder(d=3.4,h=thick+2); } module LowerHull(w,r,thick,d=0) { hull(...
glb/cad_2c6181d871f2.glb
Create a Duet rear bracket for a 3D printer. Start with a base plate that is 3mm thick, 40mm wide, and 55mm long. At one end of the base, create a vertical cylindrical pillar with a radius of 4mm and a total height of 23.5mm. This pillar should be integrated into the base plate. Drill a small hole with a 1mm radius int...
extrusion_width = 20; board_distance = 55; additional_height = 3.5; mount_width = 40; thickness = 3; hull() { translate([board_distance, 0, 0]) cylinder(h=thickness, r=thickness+1); translate([0, -mount_width/2, 0]) cube([thickness, mount_width, thickness]); } translate([board_distance, 0,...
glb/cad_ee0a95ed3ec0.glb
Create a weather-resistant enclosure consisting of a main box and a sliding cover. The main box is a rectangular shell with outer dimensions of 32.5mm length, 107mm width, and 28.5mm height. The walls and floor are 3.5mm thick, while the ceiling is 2mm thick. Hollow out the center to create an interior space of 25.5m...
part = "both"; inside_length = 25.5; inside_width = 100; inside_height = 24.5; side_wall_thickness = 3.5; ceiling_thickness = 2; floor_thickness = 2; slot_depth = .7; tolerance = .5; outside_length = inside_length + side_wall_thickness * 2; outside_width = inside_width + side_wall_thickness * 2; outside_height =...
glb/cad_5259633a69ff.glb
Create a support box consisting of a series of thin parallel plates. The overall dimensions of the box are 5mm in width, 15mm in depth, and 10mm in height. Construct the main structure by placing parallel plates along the 5mm width. Each plate must be 0.3mm thick with a gap of 1.2mm between them. These plates should ...
module draw_support_box( dim, trans_vec, cube_vec, plate_w, plate_gap, plate_color ) { n_iter = ceil( (dim-plate_w)/(plate_w+plate_gap) ) ; echo( n_iter ) ; plate_diff = (dim-plate_w)/n_iter - plate_w ; for (i = [0:n_iter] ) { translate(i * ( plate_w + plate_diff )*trans_vec) color( plate_color ) c...
glb/cad_24014e117630.glb
Create a tilt housing for a mercury switch consisting of a main body and a separate lid. For the main body, create a cylinder 40mm long with an outer diameter of 20mm. Hollow out the center with a 12mm diameter hole running the length of the cylinder. Attach a rectangular block to the side of this cylinder to serve a...
use <../libs/plib/fillet_cube.scad> module tilt_housing_lid() { difference() { union() { cylinder( h=8, d=23, $fn=100 ) ; } translate( [ 0, 0, -1 ] )union() { translate([0,0,3])cylinder( h=8, d=20.5, $fn=100 ) ; translate( [ -1.8, 0, 0 ] ) cylinder( h=7, d=4, $fn=100 ) ; translate( [ 1.8, 0, 0 ]...
glb/cad_eb3be946c995.glb
Create a speaker base for a bear alarm fence. Start by creating a rectangular base plate 40mm wide, 50mm long, and 5mm thick, with 3mm fillets on the corners along the width. In the center of this base, at position (20, 21), create a vertical cylindrical hole with a diameter of 15.5mm and a height of 7mm that passes th...
use <../libs/plib/fillet_cube.scad> translate( [ 5, -15, 0] )difference(){ fillet_cube( [ 30, 21, 7 ], 3, 1 ) cube( [ 5, -15, 0] ) ; translate( [ 5, 5, -1 ] ) cube( [ 20, 10, 9 ] ) ; } difference() { fillet_cube( [ 40, 50, 5 ], 3, [1, 0, 1] ) cube( [ 40, 50, 5 ] ) ; translate( [ 20, 21, -1 ] ) cylinder( h=7, d=1...
glb/cad_bce420a23320.glb
Create two separate cylindrical components for a fence wand: a top cap and a bottom tip holder. For the top cap, create a wide base cylinder with a diameter of 12.5mm and a height of 3mm. Centered on top of this base, add a second cylinder with a diameter of 9.8mm and a height of 10mm. Bore a hole through the center o...
use <../libs/plib/support_box.scad> module wand_ends() { translate( [ -13, 0, 0 ] ) { cylinder( h=3, d= 12.5, $fn=100 ) ; translate( [ 0, 0, 3 ] ) difference() { cylinder( h=10, d=9.8, $fn=100 ) ; cylinder( h=11, d=7, $fn=100 ) ; } } union() { difference() { cylinder( h=7, d=9.8, $fn=100 ) ; t...
glb/cad_4e8a99eac503.glb
Create a tilt housing and lid for a mercury switch. The housing is a cylinder 20mm in diameter and 40mm high. Remove a central vertical cavity 12mm in diameter starting 4mm from the base. On one side of the housing, create a vertical indentation 13mm in diameter and 42mm high that cuts through the wall. Add an attachm...
module tilt_housing() { difference() { cylinder( h=40, d=20.0, $fn=100 ) ; union() { translate([0,0,4]) cylinder( h=40, d=12, $fn=100 ) ; translate( [ -15, 0, -1 ] ) cylinder( h=42, d=13.0, $fn=100 ) ; } } translate( [ 0, 0, 10 ]) difference() { union() { cylinder( h=10, d=30.0, $fn=100 ) ; ...
glb/cad_eceec39b961b.glb
Create a Power Receptacle Mount with an overall width of 60mm. The main body is a rectangular enclosure with walls 3mm thick. Construct the enclosure using four walls: the bottom and two side walls are approximately 30mm by 30mm, while the top and back walls are larger to enclose the space. On the bottom wall, center...
$fn = 64; wt = 3; width = 58 + 2; m5hs = 0.6; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r / 2, r / 2, 0]) cylinder(r = r, h = h + 1, center = true); } } union() { tra...
glb/cad_93616fa88315.glb
Create a Kossel 250 V-Slot Spool Holder by constructing a T-shaped base. Start with a rectangular slab measuring 80mm in length, 5mm in width, and 20mm in height. Centered atop this slab, add a vertical rectangular block that is 20mm wide, 60mm long, and 20mm high, positioned 30mm from the slab's edge. To finish the pa...
$fn=100; rotate([90,0,0]) difference() { base(); mount_holes(); } module base() { union() { cube([80,5,20]); translate([30,5,0]) cube([20,60,20]); } } module mount_holes() { translate([7.5,-1,10]) rotate([-90,0,0]) cylinder(h=7,r=6/2); translate([80-7.5,-1,10]) rotate([-90,0,0]) cylinder(h=7,r=6/2); translate([40,58,...
glb/cad_514b6d2d543c.glb
Create a Kossel 250 V-Slot Spool Holder by constructing a hollow vertical cylinder. The outer wall should have a diameter of 30mm and a total height of 180mm. To create the interior cavity, remove a concentric cylinder from the center with a diameter of 22mm and a height of 182mm, positioned so that it extends slightly...
$fn=100; difference() { cylinder(h=180,d=30); translate([0,0,-1]) cylinder(h=182,d=30-8); }
glb/cad_e35dafba95ed.glb
Create a Kossel 250 V-Slot Spool Holder by starting with a base rectangular block 80mm wide, 5mm deep, and 20mm high. Attached to the top of this base, center a second rectangular block that is 50mm wide, 40mm deep, and 20mm high, positioned 15mm from the left edge of the base. To create the mounting points, remove two...
$fn=100; rotate([90,0,0]) difference() { base(); mount_holes(); rest_left(); } module base() { union() { cube([80,5,20]); translate([15,5,0]) cube([50,40,20]); } } module mount_holes() { translate([7.5,-1,10]) rotate([-90,0,0]) cylinder(h=7,r=6/2); translate([80-7.5,-1,10]) rotate([-90,0,0]) cylinder(h=...
glb/cad_d65cb19b64f0.glb
Create a motor support for a power hacksaw. Start with a base block measuring 100mm in length, 40mm in width, and 10mm in height. Centered on top of this base, add a rectangular riser measuring 70mm in length, 40mm in width, and 16mm in height. On top of the riser, place a cylinder with a radius of 35mm and a height o...
$fn=150; cy=40; cx=100; cz=80; mr=25.8; m6r=3.2; m6hr=5.5; m4r=2.2; module M6B() { cylinder(h=100, r=m6r); } module motor_support() { difference() { union() { cube([cx, cy, 10]); translate([15, 0, 10]) cube([cx-30, cy, 6+mr]); translate...
glb/cad_051970fbe048.glb
Create a handle for a power hacksaw. Start by forming a primary loop using a torus-like shape with a major radius of 30mm and a minor radius of 9mm, then scale this shape by 0.5 in the X and Y dimensions to create an oval profile. Integrate two semi-circular arcs with a radius of 9mm, scaled by 0.5 along one axis, posi...
$fn=150; cy=90; cx=100; cz=80; module handle() { difference() { { union() { difference() { translate([23.5, 47, 9-2]) scale([0.5, 0.5, 1]) rotate_extrude(convexity = 10) ...
glb/cad_d6782271d65f.glb
Create a Power Hacksaw base and support assembly. Start by creating a rectangular base block 110mm wide, 155mm long, and 14mm high. Subtract a central rectangular slot 30mm wide and 100mm long from the top, and a thin rectangular strip 30mm wide and 157mm long from the bottom. Add a cylinder with a radius of 10.6mm and...
use <motor support.scad> use <slider support.scad> use <saw support.scad> use <handle.scad> $fn=150; cx=120; cy=155; cz=14; module base() { difference() { union() { cube([cx-8-4-4-2, cy, cz]); translate([cx-8-2, 0, cz/2]) rotate([-90, 0, 0]) c...
glb/cad_0d62e9eaab6f.glb
Create a Power Hacksaw model consisting of a frame, guide rails, and a sliding mechanism. First, create two parallel cylindrical guide rails, each 300mm long with a radius of 5.1mm. Position these rails horizontally to act as the primary axes of the machine. Between and around these rails, construct a series of suppo...
$fn=100; cx=20; cy=20; cz=100; cx2=50; cy2=14; cz2=14; axis_b=60+5-1; axis_t=axis_b+26; stiffener=15; module axis() { color("white") { translate([-1, cy/2, axis_b]) rotate([0, 90, 0]) cylinder(h=300, r=5.1); translate([-1, cy/2, axis_t]) rotate([0, 90, 0]) c...
glb/cad_bd100c7f68ad.glb
Create a slanted LCD panel mount for a Flashforge Creator Pro. The main body is a hollowed-out shell with a base plate and a front face angled at 45 degrees. The overall outer dimensions of the base are approximately 170mm by 73mm with a thickness of 3mm and corner radii of 4mm. On the slanted front face, create a rec...
$fn=128; eps1=0.01; eps2=2*eps1; base_screw_space_x = 170; base_screw_space_y = 39.35; base_thickness = 3; base_corner_radius = 4; module rounded_cube(x, y, h, r) { dx = x/2-r; dy = y/2-r; hull() { translate([-dx, -dy, 0]) cylinder(r=r, h=h); translate([dx, -dy, 0]) cylinder(r=r, h=h); translate([-...
glb/cad_d3570b910855.glb