Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a slow cooker replacement knob starting with a cylindrical base 30mm in diameter and 6.5mm in height. The top edge of this base should be chamfered. On top of the base, create a finger hold by forming a hull between two cylinders, each 5mm in diameter and 6mm high, positioned symmetrically along the x-axis at 11...
outer_d = 30 /2; outer_h = 6.5; top_part_d = 10 /2; top_part_h = 6; d_stem_d = 6.8 /2; d_stem_len = 10.5; keyway_x_offset = d_stem_d /2; difference() { union() { difference() { cylinder(h=outer_h, r=outer_d, $fn=100); translate([0, 0, outer_h - 0.5]) for (n=[0:40]) rotate([0, 0, n * 15]) { trans...
glb/cad_1a4e3a78d51b.glb
Create a Banana Post Terminal Block by starting with a rectangular base measuring 86.2mm in width, 6mm in thickness, and 30mm in height. Center this block on the origin. Remove four cylindrical holes from the block to accommodate terminal posts; each hole must have a radius of 3.7mm and pass completely through the 6mm ...
thickness = 6; width = 86.20; holeheight = 15; holeradius = 3.7; feetlength = 20; feetpos = 22.5; difference() { linear_extrude(height = 30, center = false) square([width,thickness],true,true); translate([-30,0, holeheight]) rotate([90,0,0]) cylinder(r=holeradius, h=thickne...
glb/cad_3dbd8cdcc784.glb
Create a USB panel mount bracket. Start with a main rectangular plate measuring 58mm wide, 26mm deep, and 3.75mm thick. In the center of this plate, create a rectangular cutout 17.5mm wide, 12mm high, and 4mm deep. On the same face, place two circular holes with a diameter of 3.5mm, centered 14mm to the left and right ...
mount(); base(); translate([-27,-0,-9.75]) side(); translate([27,-0,-9.75]) side(); module mount () { difference () { translate([0,-2,0]) cube([58,26,3.75], center=true); translate([0,-1,0]) cube([17.5,12,4], center=true); translate([-14,-1,0]) cylinder(d=3.5, h=4, cente...
glb/cad_f91e2e0f5e13.glb
Create two parametric coin tubes and two matching caps designed for 1 Euro coins. For each tube, create a hollow cylinder with an outer radius of 13.65mm and a total height of 64.33mm. The wall thickness and bottom base should be 2mm. The inner cavity must have a radius of 12.65mm and a height of 60.33mm. To allow co...
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_4811c16861be.glb
Create a mounting adapter for a geared NEMA17 stepper motor. Start with a square block 42mm wide and 42mm long, with a total height of 29.5mm. Apply a 5mm chamfer to all four vertical corners of the block. Remove a central cylindrical cutout to accommodate the gearbox. This cutout consists of a 23mm diameter hole star...
adapter_w = 42; chamfer = 5; adapter_face_depth = 6; gearbox_d = 37; gearbox_pilot_d = 23; gearbox_h = 23.5; bracket_screw_hole_d = 2.5; bracket_screw_hole_depth = 20; bracket_screw_hole_spacing = 31; gearbox_screw_hole_d = 3; gearbox_screw_head_d = 6; gearbox_screw_head_h = 3.5; gearbox_screw_hole_spacing = 28; ff...
glb/cad_790536633dce.glb
Create a customizable pipe clamp designed to secure a tarp to a rod. The main body is a cylindrical shell with a height of 30mm, an inner radius of 12.5mm, and a wall thickness of 2.5mm. The shell is not a full circle; it is an arc that leaves an open gap of 80 degrees to allow for insertion. The ends of the clamp are...
inner_radius = 12.5; wall_thickness = 2.5; open_angle = 80; height = 30.0; $fn = 200; module pie_slice(r, start_angle, end_angle) { R = r * sqrt(2) + 1; a0 = (4 * start_angle + 0 * end_angle) / 4; a1 = (3 * start_angle + 1 * end_angle) / 4; a2 = (2 * start_angle + 2 * end_angle) / 4; a3 = (1 * sta...
glb/cad_7448ed401140.glb
Create a Zelda Crown headband by first constructing a thin, oval-shaped ring. The ring should be based on a head circumference of 540mm, with a band height of 12.7mm and a thickness of 3mm. The ring is not a perfect circle but an oval, scaled to fit the head. On the outer surface of the band, add five square mounting ...
$fn=128; BaseWidth=152*1; BaseLength=190*1; BandHeight_mm=12.7*1; BandThickness_mm=3*1; HeadCircumference_mm = 540; CircPercent = HeadCircumference_mm/540; CalcLength = BaseLength*CircPercent/2; CalcWidth = CalcLength*0.799; echo(CalcLength); echo(CalcWidth); module oval(w,h, height, center = false) { scale([1, h/...
glb/cad_fc5316a658b4.glb
Create a stackable workshop part tray by revolving a specific profile around a central axis. The tray has a total height of 15mm and a main body radius of 35mm. The cross-section profile begins at the center bottom (0,0) and extends to a radius of 33.7mm (35mm minus a 1.3mm horizontal inset) for the base. The wall ri...
$fn = 200; h = 15; r = 35; wall_thick = 1.5; tol = 0.3; horiz_inset = wall_thick + tol; vert_inset = 3; slant_dy = horiz_inset; fillet_r = h - wall_thick - vert_inset - slant_dy; text = "thing:2005869"; font_size = 5; module profile() { difference() { polygon([ [0,0], [r-hor...
glb/cad_cb4393bd0bc1.glb
Create a 30mm fan shroud and 40mm cooling fan duct. Start by constructing a fan mount base that is 4mm thick, consisting of a 38mm diameter circle merged with a 35mm square with rounded corners (6mm radius). Subtract four 3mm diameter holes from this base, positioned at the corners of a 32mm square. Build the duct by ...
module fan_mount(){ linear_extrude(height = 4) difference(){ minkowski(){ circle(d = 6, $fn = 20); square([35,35], center = true); } for (i = [-32/2, 32/2], j = [-32/2, 32/2]){ translate([i, j, 0]) circle(d = 3, $fn = 20); } circle(d = 38);...
glb/cad_8c005a0ecc58.glb
Create an enclosure for an Arduino Uno and CNC Shield consisting of a main box and a removable lid. Construct the main box as a hollow rectangular shell with outer dimensions of 78mm x 65mm and a wall thickness of 2mm. The box should have a height of 43mm. On the side walls, create vertical ventilation slots. Specifi...
module uno_pcb(h = 1.7) { difference() { linear_extrude(h) polygon([[0,0],[66,0],[66,2],[68.6,5],[68.6,37],[66,40],[66,53.3],[0,53.3]]); translate([14.7, 50.5, -1]) cylinder(d = 3.2, h = h + 2, $fn = 12); translate([13.6, 2.3, -1]) cylinder(d = 3.2, h = h + 2, $fn = 12); transla...
glb/cad_00af5123fccb.glb
Create a Druid Animal Miniature base. Start by creating a cylinder with a diameter of 20mm and a total height of 3mm. The bottom 1.5mm of the cylinder should be a standard cylinder, while the top 1.5mm should be a slightly smaller cylinder with a radius of 8.5mm, creating a stepped or beveled edge effect. In the cent...
base_diam = 20; slot_width = 2; multi_slots = 0; base_or_mini = 0; silhouette_filename = "minibase40_halfling.dat"; silhouette_scale = 1.0; rounded = 1*1; $fs=0.3*1; $fa=6*1; pi = 3.1415927 * 1.0; silhouette_width = 0.3*6.0; if(base_or_mini==0) { Base(base_diam); } else { Silhouette(silhouette_width);...
glb/cad_ec2bf2c6b4bd.glb
Create a Model Rocket Fin Alignment Tool with a total height of 17mm. The tool is based on a central cylinder with a diameter of 81.344mm (calculated as the rocket outer diameter of 76.2mm plus slop and tool thickness). From this central cylinder, extend four rectangular arms spaced equally every 90 degrees around th...
use_inches = 0; rocket_od = 76.2; rocket_num_fins = 4; rocket_fin_thick = 3.175; tool_thick = 2.54; tool_height = 17; tool_fin_len = 32; tool_glue_keepout_dia = 10; tool_slop = 0.127; $fn = 100; draw_fin_len = rocket_od / 2 +...
glb/cad_452a9ff41a2a.glb
Create an Empty Contact Lenses Box holder consisting of a base plate and two open-topped rectangular bins. Start with a base plate 50mm wide, 30mm deep, and 5mm high. Hollow out the center of this base to create a recessed area 48mm wide and 28mm deep, leaving a 1mm thick wall around the perimeter. Construct two verti...
height=5; width=50; depth=30; box_height=50; large_box_width=30; thickness=1; screw_head=3; delta_mount_y=4; invito=screw_head/4; delta_wall=delta_mount_y+thickness; small_box_width=width-large_box_width-4*thickness; depth_boxes=depth-4*thickness; *rotate([180,0,0]) translate([1.5*thickness,thickness+1,-box_height+he...
glb/cad_b054cf04f6f8.glb
Create a Razor Holder consisting of a main tray and a wall mount. First, construct the tray as a rectangular block with a total width and depth of 40mm and a height of 5mm. Hollow out the center of this block to create a square cavity measuring 36mm by 36mm, leaving a wall thickness of 2mm on all sides. Ensure all oute...
module round_cube(x,y,z,r){ hull(){ translate([r,r,r])sphere(r=r); translate([x-r,r,r])sphere(r=r); translate([r,y-r,r])sphere(r=r); translate([x-r,y-r,r])sphere(r=r); translate([r,r,z-r])sphere(r=r); translate([x-r,r,z-r])sphere(r=r); translate([r,y-r,z-r])sphere(r=r); ...
glb/cad_b959a2c85ba4.glb
Create a parametric ping pong paddle consisting of a blade and a handle. First, construct the blade as an oblong shape with a thickness of 6mm. The blade should have a width of 150mm and a length of 160mm, formed by a hull of two circles with a radius of 75mm positioned along the longitudinal axis to create rounded e...
handle_length = 100; handle_style = "flared"; handle_thickness = 30; handle_width = 45; handle_offset = 10; blade_width = 150; blade_length = 160; blade_thickness = 6; blade_shape = "oblong"; blade_texture = "smooth"; $fs = 1; $fa = 1; module paddle(handle_length=100, handle_style="straight", handle_thicknes...
glb/cad_6d16f6bd695a.glb
Create a DSLR camera battery holder consisting of a rectangular shell with three internal compartments. The overall outer dimensions of the block should be 65mm in depth, 42mm in width, and 40.9mm in height. The shell must have a uniform wall thickness of 1mm for the bottom and all four outer sides. Inside this shell, ...
$num_bats = 3; $bat_width = 40; $bat_height = 57; $bat_thick = 21; $height_perc = .7; $wall_thick = 1; $seperator_thick = 1; $depth_total = ($wall_thick*2) + ($seperator_thick*($num_bats-1)) + ($bat_thick*$num_bats); $width_total = ($wall_thick*2) + $bat_width; $height_total = $wall_thick + ($bat_height*$height_...
glb/cad_d05a7a358c83.glb
Create a fan adapter that transitions from a 30mm opening to a 40mm mounting frame. Start by creating a main body using a hull of eight small cylinders, each 2mm in diameter and 3mm high, positioned at the corners of a 30mm by 30mm square and a 38mm by 38mm square. From this body, remove a central conical void that t...
difference() { hull() { for(x=[-1,1]) { for(y=[-1,1]) { translate([x*30/2,y*30/2,1.999]) cylinder(d=2,h=3,$fn=30,center=true); translate([x*38/2,y*38/2,9.999]) cylinder(d=2.5,...
glb/cad_d9466d173211.glb
Create an assistive handle for a knob by starting with a main cylindrical ring that has an inner diameter of 41mm, an outer diameter of 56mm, and a thickness of 10mm. From the outer edge of this ring, extend a handle 90mm in length, tapering the width from the 56mm outer diameter of the ring down to a tip diameter of 1...
inner_diameter=41; outer_diameter=inner_diameter+15; Thickness=10; Handle_length=90; Handle_tip_diameter=15; Screw_diam=5; difference(){ union(){ hull(){ cylinder(Thickness,d=outer_diameter,center=false); translate([-Handle_length,0,0])cylinder(Thickness,d=Handle_tip_diameter,center...
glb/cad_cc4c36f55875.glb
Create a cupboard handle consisting of a horizontal grip and two vertical mounting shafts. The grip is formed by a circular extrusion with a radius of 8mm. This extrusion starts by extending 12mm perpendicularly away from the mounting surface, then executes a 90-degree turn with a corner radius of 15mm to run parallel ...
handle_radius = 8; screw_radius = 3.5 / 2; screw_hole_depth = 10; puncture_span = 96; corner_turn_radius = 15; pin_radius = 3; pin_length = 10; inner_radius_compensation = 0.35; q = 0.02; $fn = 100; module below_bed() { translate([ -200, -200, -200 ]) cube([ 400, 400, 200 ]); } module shaft() { shaft_height = 3...
glb/cad_4a8f774fc060.glb
Create a reservoir pot and saucer set featuring a decorative bird. Construct the main pot as a hollow truncated cone with a height of 90mm, a bottom outer radius of 39mm, and a top outer radius of 50mm. The walls should be 4mm thick. At the top of the pot, add a flat circular rim 9mm high with an outer radius of 50mm a...
translate([-75,-75,-.1]) %cube([200,200,.2]); %cube([200,200,130]); $fn=64; module pot( base_r=35, top_r=46, height=100, thickness=4, num_holes=6, hole_angle=60 ) { top_band = 0.1*height; hole = 0.75*base_r; hole_r = 4; translate([0,0,height-top_band]) difference() { cylinder(r=top_r+thickness, h=top_band); ...
glb/cad_26e016529c84.glb
Create a multi-socket holder designed to fit a cylindrical foot. Start by creating a hollow cylinder with an inner diameter of 58mm, an outer diameter of 62mm, and a height of 10mm. Cut this cylinder in half along its length to create a semi-circular C-clamp shape. At each open end of the C-clamp, add a rectangular m...
diameter = 58; outerdiam = 4; width = 2; height = 10; screw = 4; screwHolder = 10 + width; $fn = 50; part = 0; module screwSupport(right, supHeight, bigger) { difference() { cube([screwHolder, supHeight, height]); translate([screwHolder / 2 + (right * width / 2), supHeight * 2, height / 2]) rotat...
glb/cad_2c8699409104.glb
Create a rounded sail's protection clip. Start by constructing a hollow cylinder with an outer radius of 34mm, an inner radius of 30mm, and a height of 8mm, using a 90-facet resolution. Within this ring, place two intersecting rectangular blocks: one measuring 60mm by 10mm by 4mm centered on the X-axis, and another mea...
a=30; b=4; c=8; d=10; e=4; f=6; g=3; difference(){ union(){ difference(){ union(){ difference(){ cylinder (r=a+b, h=c,$fn=90); cylinder ( r=a, h=c,$fn=90);} translate([-a,-d/2,c-e]) cube([a*2,d,e]); translate([-d/2,-a,c-e]) cube([d,a*2,e]);} union(){ color("red") translate([-f/2,0,0]) cube([f,a+b+1,c]); c...
glb/cad_8a104b0c576d.glb
Create a case for a PIR HC-SR501 sensor. Start with a solid rectangular block measuring 42mm wide, 37mm deep, and 20mm high. Hollow out the center to create a cavity for the circuit board, leaving 2mm thick walls. This cavity should be 38mm wide, 28mm deep, and 18mm high, positioned 2mm from the left and 7mm from the f...
$fa=0.5; $fs=0.5; union() { difference() { cube([42, 37, 20]); translate([2, 7, 3]) { #cube([38, 28, 18]); } translate([-1, -1, 0.8]) { #cube([44, 6, 21]); } translate([-1, -1, -1]) { #cube([9.5, 6, 4]); } translate([33.5, -1, -1]) { #cube([9.5, 6,...
glb/cad_9c659168eec5.glb
Create a custom geometric stand consisting of two symmetrical side supports. For each support, create a main body with a thickness of 10mm and a wall thickness of 5mm. The overall depth of the base is 220mm, angled at 35 degrees. Construct the support by forming a series of interconnected geometric frames. Use a combi...
$fn=100; wallThick = 5; angleDeg = 35; baseDeep = 220; standWidth = 10; hookSpace = 12; hookLen = 6; fudge = 0.1; subDivs = 6; surfaceLen = cos(angleDeg) * baseDeep; topXCord = pow(surfaceLen,2)/baseDeep; topYCord = sqrt((baseDeep-topXCord)*topXCord); fieldWdth = (surfaceLen-(subDivs-1)*wallThick)/subDivs; e...
glb/cad_2a63079505f9.glb
Create a CNC machine base and frame. Start with a square bed plate measuring 260mm by 260mm with a thickness of 5mm. At each of the four corners, create a compound hole consisting of a 3mm radius cylinder 3.5mm deep and a 1.5mm radius cylinder 6mm deep. Position four support legs at the corners of the bed, with the fr...
include<F:\SCAD\linear_bearing_LM8UU.scad> include<CNC_leg.scad> include<CNC_xCarriage.scad> include<CNC_yCarriage.scad> bed(); translate([0,0,5]){leg("LEFT");} translate([240,0,5]){leg("RIGHT");} translate([20,260,5]){rotate([0,0,180]){leg();}} translate([260,260,5]){rotate([0,0,180]){leg();}} translate([10,5,104])...
glb/cad_a2a9e45115a3.glb
Create a CNC machine adapter set consisting of three distinct geometric components. First, create a thin cylindrical disc with a height of 2mm and a radius of 10mm, featuring a concentric circular hole through its center with a radius of 5mm. Second, create a similar thin cylindrical disc with a height of 2mm and a rad...
$fn = 100; difference(){ cylinder(h=2, r=20/2); translate([0,0,-.5]){cylinder(h=3, r=10/2);} } translate([30,0,0]){ difference(){ cylinder(h=2, r=20/2); translate([0,0,-.5]){cylinder(h=3, r=15/2);} } } translate([0,30,0]){ difference(){ cube([30,10,10]); translate(...
glb/cad_8c80a4eaadfc.glb
Create a Square to Square Mount clip with a total height of 7mm. The model consists of two C-shaped gripping arms connected by a central bridge. First, create the larger gripping arm. Start with a rectangular base 46.6mm wide and 36.3mm deep. Remove a central block 42.6mm wide and 36.3mm deep, leaving 2mm thick walls ...
ClipHeight = 7; BiggerWidth = 42.6; BiggerDepth = 36.3; BiggerClipSize = 2; BigTeethSize = 5; SmallerWidth = 40.5; SmallerDepth = 10.5; SmallerClipSize = 1.7; SmallerTeethSize = 2.5; ConnectorDepth = 10.5; ConnectorWidth = BiggerWidth; HoleWidth = SmallerWidth; HoleHeight = ClipHeight * .7; HoleCutOutWidth = HoleW...
glb/cad_94a9c3bdbb91.glb
Create a bottom PCB cover for a 4x4x4 LED cube. Start with a solid rectangular block measuring 76.2mm in width, 74.7mm in depth, and 18mm in height. Hollow out the center of this block by removing a rectangular volume of 73mm by 71.5mm with a depth of 17mm, leaving a wall thickness of 1.6mm on all sides and a base thic...
pcb_x=73; pcb_y=71.5; pcb_z=17; w = 1.6; b = 1.0; hole_w = 3; difference() { translate([-w,-w,-b-pcb_z]) cube([pcb_x+w*2,pcb_y+w*2,pcb_z+b]); translate([0,0,-pcb_z+0.01]) cube([pcb_x,pcb_y,pcb_z]); translate([pcb_x/2,0.5,-7.8]) rotate([90,0,0]) cylinder(h=w+1, r = 7, $fn ...
glb/cad_6cba56f027ba.glb
Create a small bottle organizer by starting with a rectangular base block. The block should have a total width of 165mm, a depth of 95mm, and a height of 17.5mm. Within this base, create four identical cylindrical cutouts to hold bottles. Each cutout must be a cylinder with a radius of 17.5mm and a depth of 85mm. Posit...
bottleDiameter = 35.0; bottleHeight = 85.0; numBottles = 4; edge = 10; bottleSpace = 5; module bottleStand() { L = (bottleDiameter + bottleSpace)*numBottles + edge*0.5; difference(){ cube([L, bottleHeight+edge, bottleDiameter*0.5], center = true); for(i=[0:1:numBottles-1]){ x = -L*0.5 + (b...
glb/cad_a9a976d0218b.glb
Create a small parts funnel tray with an external width of 60mm, length of 100mm, and height of 13mm. The main body is a rectangular box with rounded corners of 5mm radius. Hollow out the center to create a basin with a base thickness of 2mm and wall thickness of 2mm, ensuring the interior corners are also rounded. On...
width = 60; length = 100; height = 13; corner_radius = 5; wall_thickness = 2; base_thickness = 2; spout_base_width = 35; spout_tip_width = 25; spout_tip_height_fraction = 0.7; spout_tip_base_thickness = 0.8; spout_length_control = 20; left_hand = 0; $fn = 90; spout_vertical_angle = max(0, atan((height - he...
glb/cad_08d1e9e0a177.glb
Create a Fingerprint Reader Case by starting with a solid rectangular block measuring 29mm wide, 52mm long, and 11mm high. From this main body, remove several geometric sections to create a hollowed enclosure. First, carve out a central rectangular cavity that is 25.2mm wide, 47mm long, and 8mm deep, leaving a base and...
difference() { translate([-29/2,10,-3.01]) cube([29,52-0.01,11]); union(){ translate([-6.05,0,-1/2]) cube([12.1,20,4.6]); translate([-12.6,15,0]) cube([25.2,47,8]); translate([-9,15,-1.5]) cube([18,47.01,2]); translate([10,49,-5]) cylinder(r=1.75,h=10, $fn=6); translate([-10,49,-5]) cylinder(r=1....
glb/cad_98baf76078e4.glb
Create a Fingerprint Reader Case by starting with a solid rectangular block measuring 21mm in width, 33.5mm in depth, and 11mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 17.2mm by 32.5mm with a height of 10mm, leaving a base and walls. From the bottom of the model, remove...
difference() { translate([-2,-2,-3.51]) cube([21,33.5,11]); translate([-0.1,0,-2.5]) cube([17.2,32.5,10]); translate([-4,7,-0]) cube([25,6.6,10]); union(){ translate([10,49,-5]) cylinder(r=1.75,h=10, $fn=6); translate([-10,49,-5]) cylinder(r=1.75,h=10, $fn=6); }; } transla...
glb/cad_950f080781e5.glb
Create a Raspberry Pi Camera Adapter clamp. Start by creating a hollow cylinder with an outer diameter of 35mm, an inner diameter of 30mm, and a height of 15mm. Cut a 1mm wide vertical slit through the cylinder wall to allow for clamping. On one side of the cylinder, attach a rectangular block that extends from the cy...
od = 35; id = 30; height = 15; halfheight = 0.5*height; module nutpocket(){ difference(){ rotate([0,0,0])translate([-halfheight,-halfheight,0])cube([height,height,height],center=false); rotate([0,0,90])cylinder(d=13, h=height-1 ,center=false,$fn=6); cylinder(d=8, h=60 ,center=false); } } module klamp(){ union(){ di...
glb/cad_a8f324cbc82b.glb
Create a Raspberry Pi Camera Adapter by starting with a solid cylinder that has an outer diameter of 24.6mm and a height of 26mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 22.45mm, starting from a height of 8.72mm and extending through the top. At the base of th...
OD = 24.6; difference(){ cylinder(d = OD, h=26); translate([0,0,8.72])cylinder(d = 22.45, h=26); cylinder(d = 20.4, h=8.72); translate([0,0,28]) cube([1,30,30], center = true); }
glb/cad_14da38db599e.glb
Create a Raspberry Pi Camera Adapter consisting of a central cylindrical sleeve and a flat rectangular mounting plate. First, construct the objective sleeve. Create a hollow cylinder with an inner diameter of 25.7mm and a height of 15mm. On top of this, add a second cylindrical section with an outer diameter of 25.7m...
xs = 25.0; ys = 23.85; zs = 0.95; smt = 0.05; ID1 = 2.20; OD1 = 4.7; ID2 = 2.0; mhxc = 21.0; mhyc = 12.5; mhox = 2.0; mhoy = 2.0; hh = zs*2; ff = 0.3; MOd = 25.4+ff; MOz = 15; MOoff = 7.3; MOda = 25.4+ff; MOza = 5.0; BHwt = 2.0; BHz = MOz+4; BHod = MOd+2*BHwt; BHod2 = 19; fn=40; eps=0.03; module holes4(dia=2...
glb/cad_594aa9dc23ba.glb
Create a Raspberry Pi Camera Adapter lens cap by constructing a hollow cylinder with an outer diameter of 28mm and a total height of 10mm. From the center of the bottom face, remove a smaller concentric cylinder with a diameter of 25.4mm and a height of 40mm to create a deep internal bore, leaving a 1mm thick floor at ...
difference(){ cylinder(d=28,h=10); translate([0,0,1]) cylinder(d=25.4,40); }
glb/cad_937965aad595.glb
Create a Square Peg and Hole Fitment Test consisting of two separate parts. First, create a rectangular peg that is 30mm long, 5mm wide, and 5mm high. Second, create a flat rectangular base measuring 115mm long, 15mm wide, and 5mm high. In this base, carve out eleven square holes, each 5mm deep, spaced 10mm apart from ...
cube( [30, 5, 5] ); translate( [0, 20, 0] ) { difference() { cube( [115, 15, 5] ); translate( [5, 5, 0]) cube( [4.8, 4.8, 5 ] ); translate( [15, 5, 0]) cube( [4.9, 4.9, 5 ] ); translate( [25, 5, 0]) cube( [5, 5, 5 ] ); translate( [35, 5, 0]) cube( [5.1, 5.1, 5 ] ); ...
glb/cad_f2ac2564194c.glb
Create a PSU Cover and Switch assembly consisting of two separate parts: a terminal cover and a switch box. First, create the terminal cover as a rectangular shell measuring 110mm x 49mm x 25mm. Hollow out the interior to leave 2mm thick walls. On the bottom face, center a circular hole with a 10mm diameter. On the si...
m3_nut_rad = 6.3/2; switch_depth = 36; module terminal_cover() { difference() { cube([110,49,25]); translate([2,2,2]) cube([106,45,25]); translate([0,42,7]) cube([110,19,25]); translate([-1,15,20]) rotate([0,90,0]) cylinder(120,1.75,1.75,$fn=32); translate([10,7,-1]) cylinder(10,4,4,$fn=32); ...
glb/cad_ef4b401cf820.glb
Create a protective bellows consisting of a flexible folding body capped by two solid sleeves. The central body is 100mm tall and composed of 10 repeating folds. Each fold transitions between a rectangular profile of 25mm by 50mm and an expanded profile of 37.5mm by 75mm (calculated by a 1.5x multiplier), with corners ...
x = 25; y = 50; approx_z = 100; steps = 10; step = round(approx_z / steps); z=step*steps; step2 = floor(step * 2); ext = 1.5; radi = 1; verticalsegment = 0.2; sleeve = 20; sleeve_ext = 0; sleeveext = sleeve*sleeve_ext; sleeves(); body(); module sleeves() { hull() { translate([0, 0, verticalsegment+ sleeve]) pla...
glb/cad_2af1f8996b16.glb
Create a twisted container by extruding a square shape vertically. Start with a centered square that has a side length of 40mm. Extrude this square to a total height of 100mm, applying a total twist of 360 degrees over the course of the ascent. Use 144 slices to ensure the rotation is smooth. To create the walls of the...
Width = 30; Wall = 6; Diameter= 40 ; Height = 100; Slices = 144; Twist = 4 *90; difference() { color("blue")Twist(Width); difference(){color("red") Twist(Width-Wall); cube([Diameter+Width*2,Diameter+Width*2,Wall*2], center = true);} } module Twist(Width) { linear_extrude(height = Heigh...
glb/cad_166069f1ee4c.glb
Create a Bike Pump Adaptor Clip by designing a flat plate 10mm thick. Start with a central circular cutout with a diameter of 30mm. Around this central void, arrange three smaller circular holes, each 7.9mm in diameter. These three holes should be positioned equidistantly around the center, with their centers located 1...
pumpTubeDiameter = 29.8 + .2; accessoryScrewDiameter = 7.5 + .4; accessoryScrewHeight = 6; gap = 3; outside = 2; numAccessories = 3; module cutout() { circle(d = pumpTubeDiameter, $fn = 200); c = PI * (pumpTubeDiameter + accessoryScrewDiameter + gap * 2); accessoryWidth = gap + accessoryScrewDiameter; ...
glb/cad_e8a672a6651a.glb
Create a 1 watt Star LED holder by starting with a solid rectangular block measuring 40mm wide, 50mm deep, and 25mm high. Hollow out the center of this block to create a shell with walls 2.5mm thick, leaving the bottom face solid. In the center of the bottom face, create a circular hole with a radius of 10mm and a dept...
translate([0,0,12.5]) difference () { linear_extrude(height = 25, center = true, fn=$100) square(size = [40, 50], center = true); translate([0,0,12]) linear_extrude(height = 13, center = true, fn=$100) square(size = [41, 51], center = true); linear_extrud...
glb/cad_5b63cdfd2e8e.glb
Create a Topeak bike rack mounting system consisting of a guide holder and a moving latch. First, construct the guide holder. Create a rectangular base 48mm wide, 31mm high, and 16mm thick. In the center of this base, carve out a vertical slot to accommodate the latch, with a width of 10mm and a height of 35mm. At th...
lw = 34; td = 28; tt = 4; tl = 9.5; th = 10.8; ur = 7.9/2; uh = 54; ucw = 10; uch = 35; sgd = 6; gr = 8; gw = 48; gh = 31; gbh = 2; srt = 2; clearance = 1; sbd=8; scd=4; shd=3.3; if (1) { translate([0,30,0]) latch(); } if (1) { difference() { translate([-gw/2-10, -2, 0]) ...
glb/cad_8b64516a36fd.glb
Create a bike rack mounting sled consisting of a base plate and a wedge-shaped mounting block. Start with a rectangular base plate measuring 80mm wide, 50mm long, and 2mm thick. Centered on this plate, build a wedge that is 50mm long, with a height of 8.3mm. The wedge should taper in width from 54.3mm at the bottom to ...
wedge_maj = 60.1; wedge_min = 54.3; wedge_ht = 8.3; whole_len = 50; mount_wid = 80; mount_thick = 2; screw_dia = 7.8; nut_dia = 13.8; nut_ht = 5; translate([0,0,whole_len]) rotate([-90,0,0]) difference() { mount_solids(); for (x=[-1,1]) for (y=[-1,1]) translate([(wedge_min/4)*x,whole_le...
glb/cad_710dada6a21b.glb
Create a Shark Box consisting of a bowl and a lid, both based on a shark-shaped profile. To create the bowl, start with a shark silhouette and extrude it to a height of 3mm. Above this base, create a series of concentric shark-shaped ribs by repeating the silhouette, scaling it slightly larger for each layer, and tra...
shark_large_lid(); module shark_small_bowl() { translate([0,0,-60]) union() { translate([0,0,60]) linear_extrude(height=3) union() { poly_shark(3.9/5); draw2(shark,0,248,.95,3.9*(1/5)); } for ( j = [4:.1:6]) { translate([0,0,15*j]) linear_extrude(height=3) draw2(shark,0,248,.95,...
glb/cad_0ce4cf8e9cd7.glb
Create a Dolphin Box lid by constructing a stacked, ribbed geometric shape based on a dolphin silhouette. Start with a base dolphin polygon. Create a solid lid by extruding this silhouette to a height of 3mm. To form the ribbed structure, create a series of concentric offsets of the dolphin shape, scaling them slight...
dolphin_large_lid(); module dolphin_small_bowl() { translate([0,0,-60]) union() { translate([0,0,60]) linear_extrude(height=3) union() { poly_dolphin(3.9/5); draw2(dolphin,0,151,.95,3.9*(1/5)); } for ( j = [4:.1:6]) { translate([0,0,15*j]) linear_extrude(height=3) draw2(dolphin,...
glb/cad_13099c75b534.glb
Create a Simple Crown Headband by constructing a flat, oval-shaped ring. Start with a solid oval that has a total length of 193mm and a width of 153.2mm, with a uniform height of 13mm. From the center of this solid shape, remove an inner oval to create a wall thickness of 3mm. The inner cutout should have a length of 1...
BaseWidth=152*1; BaseLength=190*1; HeadCircumference_mm = 540; BandHeight_mm=13; BandThickness_mm=3; $fn=128; CircPercent = HeadCircumference_mm/540; CalcLength = BaseLength*CircPercent/2; CalcWidth = CalcLength*0.799; echo(CalcLength); echo(CalcWidth); module oval(w,h, height, center = false) { scale([1, h/w, 1...
glb/cad_4e1463d5ab1f.glb
Create a small sailboat model. Start with the hull by creating a cylinder with a height of 15mm, a bottom radius of 15mm, and a top radius of 25mm. Hollow out the center of this hull by removing a smaller cylinder from the top, starting 3mm up from the base, with a bottom radius of 15mm and a top radius of 25mm. Scale ...
$fn=144; module Boat(); { translate([ 18, 0,10])cube([10,17,3], true) ; translate([ -18, 0,10])cube([10,17,3], true) ; color("red") difference() { $fn=144; scale (v=[2,.5,1]) cylinder(h = 15, r1=15,r2=25); translate([0,0,3]) scale (v=[2,.4,1]) cylinder(h = 15, r1=15,r2=25);} } module Base_of_Pole(); { ...
glb/cad_94a5b569f70d.glb
Create a Google Glass Headphone Adapter and Mount. Start by constructing a rectangular sleeve with outer dimensions of 24.8mm in depth, 11.6mm in width, and 8.8mm in height. Hollow out the center of this sleeve to create a cavity measuring 23.2mm by 10mm by 8mm, leaving a wall thickness of 0.8mm on all sides. Attached ...
wall_width = .8; glass_width = 10; glass_height=8; glass_depth = 23.2; plug_diameter=10; plug_opening=8; plug_arm_offset= glass_height/4; gd= glass_depth+2*wall_width; gh = glass_height + wall_width; gw = glass_width+2*wall_width; pd= plug_diameter+2*wall_width; union(){ difference(){ cube(size=[gd,gw,gh]); ...
glb/cad_f8436feab9d5.glb
Create an XTS channel knob with a total height of 18.7mm. Start by constructing the base as a cylinder with a diameter of 16.48mm and a height of 1.5mm. Above this base, add a main body cylinder 11mm tall with a diameter of 12mm. Top the structure with a sphere having a radius of 8mm, positioned so its center is 10.7mm...
OverallHeight=18.7; HoleUpScale=1.15; BaseHeight=1.5; BaseDiam=16.48; BodyHeight=11; BodyDiam=12; HoleDiam=(2.92*HoleUpScale); Cube1Size=7; GougeDepth=7.85; GripNum=8; GougeHeight=15; GripSlotOffset=(6.21+(GougeDepth/2)); $fs=3; $fa=2; SphereRad=8; Degrees=(360/GripNum); module Cube1(){ cube(Cube1Size, center=false...
glb/cad_07ceb8a0c30d.glb
Create a Y Carriage Mounting Frame for LM8UU bearings. Start by constructing a rectangular grid frame centered at the origin with an outer dimension of 148mm by 112mm and a thickness of 2mm. Hollow out the center of this frame to create a border, leaving an inner cutout of 132mm by 104mm. At each of the four corners o...
include <lm8uu-holder-slim_v1-1.scad>; holder_length = body_length; holder_width = body_width; rod_dist = 140; frame_length = 120; frame_height = 2; nut_surround_thickness = 2; screw_holder_z_heigth=2; screw_holder_x_length=(holder_width)+(4*nut_surround_thickness)+(2*screw_head_dia); screw_holder_y_width=(2*nut_su...
glb/cad_f0dbc10d9821.glb
Create a parametric cable fastener. Start with a central base plate that is 14mm wide, 2mm thick, and 8mm high. At the center of this plate, create a semi-circular clip to hold a cable. This clip is formed by a hollow cylinder with an outer diameter of 9mm and an inner diameter of 5mm, with a total height of 8mm. Cut a...
echo(version=version()); cable_d = 5; meat = 2; height = 8; width = 14; screw_d = 2; tolerance = 0.25; two_screws = true; translate([0, 0, size/2]) { color("black") difference() { cylinder (h = height, r=cable_d/2 + meat, center = true, $fn=100); cylinder (h = height, r=cable_d/2, center = true, $fn=1...
glb/cad_b665cc691efd.glb
Create an LED strip track holder by starting with a solid rectangular block that is 230mm long, 14.7mm wide, and 3.75mm high, centered on the origin. Carve out a central channel to create a U-shaped trough. This internal void should be 231mm long, 10.7mm wide, and 1.75mm high. To create the opening for the LEDs, remove...
StripWidth = 10.7; StripHeight = 1.75; StripGap = 5.5; offset = 0.25; SideWall = 2; TopWall = 2; Length = 230; module remove() { union(){ cube([Length+1,StripWidth,StripHeight], center=true); translate([0,0+offset,(StripHeight-.01)]) cube([Length+1, StripGap, StripHeight], center=true); ...
glb/cad_5a349ea107c6.glb
Create a Bee Feeder designed to hold a canning jar and hook onto a hive. Start by creating a cylindrical threaded housing for the jar. For a regular mouth jar, use an inner radius of 35.5mm; for a wide mouth jar, use 43.5mm. The threaded wall should be 2mm thick with a depth of 15mm. Attached to this housing, constr...
create_part=0; resfactor=1.0; jar_threads=0; hive_entrance_height=19.05; hive_wall_thickness=19.05; from_jar_to_hive=22; tunnelShape=0; bee_size=9.5; threads_wall_thickness=2; threads_deapth=15; hook_height=6.35; hook_width=6.35; tunnel_floor_thick=1; gusset_thick=1.5; min_tunnel_spacing=0.1; threaded_ar...
glb/cad_cabac96ffba6.glb
Create a parametric string light winder with a uniform thickness of 4mm. Start by constructing the main body as a rectangular plate measuring 200mm in length and 90mm in width. Along the two long edges of this plate, create two exterior arms that are each 20mm wide, running the full 200mm length of the body. Inside t...
Thickness=4; MainBodyLength=200; MainBodyWidth=90; ExteriorArmWidth=20; InteriorArmSpacing=70; InteriorArmWidth=15; NotchDepth=5; VaryNotchPosition=0; NumberCenterSupports=2; CenterSupportWidth=10; module ExteriorArms(){ union(){ cube(([MainBodyLength,ExteriorArmWidth,Thickness])); translate([0, ((...
glb/cad_bf2c90a8f0ea.glb
Create a Grinder Adapter consisting of two concentric cylindrical components. First, create a main hollow cylinder with an outer diameter of 45.4mm (1.79 inches), an inner diameter of 38.1mm (1.5 inches), and a height of 12.7mm (0.5 inches). Cut a vertical slot completely through one side of this cylinder, creating a g...
cogpitch = 4; beltthickness = 0.63; cogdepth = 1.5; cogtipwidth = 1.2; cogvalleywidth = 2.3; holeradius = 0.25 *25.4 /2.0; height = 0.25 * 25.4; num_teeth = 12; deltaangle = 360 / num_teeth; radius = (num_teeth * cogpitch / 3.14159265/2)-beltthickness; topdelta = cogtipwidth/2; botdelta = (cogpitch-cogvalleyw...
glb/cad_3028f1150dab.glb
Create a V-Block Jig for collimating a laser collimator. The model consists of two identical V-shaped blocks connected by a central stretcher. Each V-block is a rectangular prism measuring 50mm wide, 10mm thick, and 30mm high. From the top of each block, remove a centered triangular notch to create a V-groove. This not...
OA = 82; Y = 10; H = 30; W = 50; L = 10; C = 10; S = OA - L - L; notch = 80.0 * sqrt(0.5); union() { vblock(Y); translate( [0.5*W-10,0.5*L,0] ) cube ( [C, S, C] ); translate( [-0.5*W,0.5*L,0] ) cube ( [C, S, C] ); translate( [0,L+S,0 ] ) vblock(Y); } module vblock( hV ) { difference() { translate( [-0....
glb/cad_fe2dfd7fb070.glb
Create a NEMA 23 gear motor bracket consisting of a base plate and a vertical support wall. Start with a rectangular base plate measuring 60mm by 68mm with a thickness of 8mm. At the four corners of this base, centered 20mm from the center point along the Y-axis and 10mm from the center along the X-axis, create four ve...
mitte_x = 10; mitte_y = 64/2; abstand_von_mitte = 20; difference() { translate([0,-2,0]) cube([60,68,8]); translate([mitte_x,mitte_y+abstand_von_mitte,0]) cylinder(r=4.2/2,h=10,center=true, $fn=25); translate([mitte_x,mitte_y-abstand_von_mitte,0]) cylinder(r=4.2/2,h=10,center=true, $fn=25); translate([mitte_x-abstand...
glb/cad_cc8894c423e3.glb
Create a NEMA 23 shaft adapter by starting with a central cube that is 12.5mm wide, 12.5mm high, and 24mm deep. Bore a horizontal cylindrical hole through the center of the cube along its depth with a radius of 4mm. Then, create a second vertical cylindrical hole with a radius of 1.5mm that passes completely through th...
innen_kant = 12.5; laenge_kant = 15; laenge_welle = 24; innen_welle = 7; r_welle = 8/2; m3_r = 3/2; difference() { translate([0,0,-5]) { cube([innen_kant,laenge_welle,3],center=true); } translate([0,5,-10]) { cylinder(r=m3_r,h=15,center=true,$fn=100); } } difference() { cube([innen_kant,laenge_welle,innen_kant],center...
glb/cad_b347b6ffddbf.glb
Create a Regler Box, which is a rectangular open-top container. Construct the main body as a hollow box with outer dimensions of 79mm in length, 37mm in width, and 3mm in wall thickness. The box is formed by three solid walls: two side walls measuring 78mm by 3mm and one end wall measuring 37mm by 3mm, all joined at ri...
rotate([90,0,0]) difference() { union(){ rotate([0,90,0]) translate([0,0,0]) cube([78,37,3]); rotate([0,90,0]) translate([0,0,79-3]) cube([78,37,3]); rotate([0,0,0]) translate([0,0,-79.3]) cube([79,37,3]); cube([79,37,3]); } translate([4,4,0]) cube([71,29,3]); }
glb/cad_b03e61d18a9e.glb
Create a 3D model consisting of a series of small cubes arranged in a cylindrical shell. Start with a single cube with dimensions 1mm x 1mm x 1mm, centered at the origin. Position this cube at an offset of 6mm along the X-axis. Generate 11 copies of this cube, spaced vertically along the Z-axis at intervals of 1.2m...
function node_cube_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([6,0,j*1.2]); module node_cube(i=0,j=0,k=0,l=0,m=0,n=0) { translate([6,0,j*1.2])cube([1,1,1],center=true); } function node_color_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = node_cube_matrix(i=i,j=j,k=k,l=l,m=m,n=n); module node_color(i=0,j=0,k=0,l=0,m=0,n=0) { { ...
glb/cad_d18bc78aad0d.glb
Create a mini quadcopter frame consisting of a central chassis and a separate rectangular bottom plate. For the main chassis, start with a central rectangular block measuring 50mm by 30mm with a height of 4mm. Hollow out the center of this block with a smaller rectangular cutout of 44mm by 24mm. At each of the four co...
arm_count=4; arm_width=1/cos(180/arm_count)*60/2; arm_height=4; base_xsize=50; base_ysize=30; motor_radius=8.6/2; motor_angle=5.0; module hexgrid( grid_width=50, grid_lenght=60, grid_height=5, hex_radius=5, hex_border_width=1, center=true) { ystep=2*sqrt(3/4*hex_radius*hex_radius); xst...
glb/cad_709f4fdd4895.glb
Create a Tiko Build Volume by constructing a solid prism with a height of 123mm. The cross-section of this prism is a rounded triangle formed by the convex hull of three circles, each with a diameter of 69mm. Position the centers of these three circles 53.5mm away from the central vertical axis, spaced equally at 120-d...
$fa=0.1; $dia=69; $trans=53.5; $height=123; color("RoyalBlue",.8)linear_extrude($height, center = true)hull() { rotate(+000)translate([0,$trans,0])circle(d=$dia); rotate(+120)translate([0,$trans,0])circle(d=$dia); rotate(-120)translate([0,$trans,0])circle(d=$dia); }
glb/cad_66c38487e6b4.glb
Create a Modified Go Pro bar mount consisting of a mounting bracket and a clamping ring. First, construct a triple-prong GoPro connector. This is a small block with a central hole of 5.5mm diameter and three protruding arms. The central section is 14.7mm wide and 10.35mm high, with a hexagonal recess for a locking nu...
gopro_primary="example"; gopro_secondary_what="triple"; gopro_secondary_rotated=0; gopro_ext_len=50; gopro_ext_th=3; 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= 31; gopro_bar_th= 3.2; gopro_bar_gap= ...
glb/cad_573ad0445e93.glb
Create a Laundry Machine Rail bracket designed to hold a circular magnet and attach to a board. Start with a rectangular base plate measuring 39mm wide, 26mm deep, and 0.5mm thick. Centered on this base, create a cylindrical cutout with a radius of 13mm and a depth of 5mm to accommodate the magnet. Construct two ide...
MAG_R=26/2; MAG_T=5; WOOD=20; THICK=(MAG_R*2-WOOD)/2; BTHICK=.5; SIDE_L=MAG_R*3; module test_wood() { wlen=200; color("tan") translate([-wlen/2,-WOOD/2,0]) cube([wlen,WOOD,3.5*25.4],false); } module test_magnet() { color("black") translate([0,0,BTHICK]) cylinder(MAG_T,MAG_R,MAG_R); } module base() { ...
glb/cad_22977ac950ae.glb
Create an HTC Vive Base Station Spigot Adapter consisting of a main mounting plate and a separate locking screw. For the mounting plate, start with a rectangular base 84mm wide, 44mm deep, and 5mm thick, with rounded corners of 9mm. Center a vertical cylindrical tower on this base. The tower's foundation is a frustum...
include <scad-utils/morphology.scad>; include <MCAD/nuts_and_bolts.scad>; include <threads.scad>; difference() { union() { difference() { linear_extrude(height=5) rounding(9) square([84, 44]); translate([10, 22, 2.1]) nutHole(5); translate([10, 22, 1]) cylinder(2.5,...
glb/cad_d48e3f3679e6.glb
Create a collision calibration ring by constructing a thin, flat cylinder with a height of 1mm and an outer radius of 96mm. Remove a smaller concentric cylinder from the center with a radius of 95mm and the same 1mm height to create a hollow ring with a consistent wall thickness of 1mm. Ensure the circular geometry is ...
Radius= 96; difference() { cylinder(h=1, r=Radius, center=false, $fn=200); cylinder(h=1, r=Radius-1, center=false, $fn=200); }
glb/cad_f8ca61a0fe5c.glb
Create a knurled handle for screwdriver bits by starting with a cylinder 10mm in diameter and 30mm in height. Apply a knurled texture to the exterior surface consisting of diamond-shaped ridges with a width of 2mm, a height of 2mm, and a depth of 0.5mm. Bore a hexagonal hole through the center of the cylinder that is 5...
use <knurledFinishLib_v2.scad> knurl_help(); if (1) difference() { knurl(k_cyl_hg = 30, k_cyl_od = 10, knurl_wd = 2,knurl_hg=2, knurl_dp = 0.5, e_smooth=0.5); cylinder(d=5.2, h=12, $fn=6); }
glb/cad_0affead26272.glb
Create a Double Breadboard Case for a Raspberry Pi. The case is a rectangular box with rounded corners, designed to house a PCB and two breadboards. The main body is a hollow shell with a wall thickness of 2.0mm. The internal dimensions are 86.0mm in length and 57.0mm in width. The total height of the case is determin...
use<write.scad> DRAWfull = 0; DRAWtop = 0; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 2; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangle...
glb/cad_c21030830623.glb
Create a simple rocket by combining several geometric primitives. Start with a main body consisting of a cylinder 40mm tall with a radius of 5mm. Top this with a conical nose cone 10mm in height that tapers from a 5mm radius to a point. At the base of the body, add a nozzle by attaching a smaller 5mm tall cylinder that...
cylinder(h=10, r1=5, r2=0); translate([0,0,-40]) cylinder(h=40, r1=5, r2=5); translate([0,0,-45]) cylinder(h=5, r1=5, r2=2.5); translate([-1.5,-10,-40]) cube([2,20,10]); translate([-10,-0.5,-40]) cube([20,2,10]); translate([-3,-3, -10]) sphere(2); translate([3,-3, -10]) sphere(2); translate([-3,3, -10]) sphere(2); ...
glb/cad_d639a8395506.glb
Create an E27 light bulb adapter consisting of a central hollow cylinder and three radiating arms. Start with a base cylinder 30mm in radius and 6mm in height. Centered within this base, create a hollow bore with a radius of 20.15mm that extends through the entire height of the model. Above the base, add a second conce...
ri = 20.15; re = 30; rp = 3; pd = 83-45; bth = 6; cth = bth+15; pth = bth+8; icth = 3; difference() { union() { cylinder(r = re, h = bth, $fn = 60); cylinder(r = ri+icth, h = cth, $fn = 60); linear_extrude(height = bth, $fn=36) for(i = [0 : 120 : 240]) rotate([0, 0, i]) hull() {...
glb/cad_b21ada824561.glb
Create a Ramps 1.4 holder for a Prusa i3 8mm frame. Start with a solid rectangular main body measuring 18mm wide, 60mm long, and 10mm high, centered on the origin. From this body, remove several rectangular sections to create the mounting slots. First, carve out a central channel measuring 11mm wide, 52mm long, and 15m...
module holder() { difference() { cube([18, 60, 10], center=true); translate([-7,0,0]) { color("green") cube([11, 52, 15], center=true); } translate([-4,0,0]) { color("grey") cube([6, 55, 15], center=true); } translate([5,0,0]) { color("red") cube([3, 53.5, 15], center=t...
glb/cad_43c0fbd0c24a.glb
Create a PCB hold-down jig starting with a rectangular base plate measuring 130mm by 110mm with a height of 2mm. Centered on this base, create a rectangular recess measuring 100.5mm by 70.5mm and 1.5mm deep to accommodate the board. Around this recess, build a surrounding wall that is 4mm high and 15mm wide on all si...
$fn=30; board_x = 100.5; board_y = 70.5; board_z = 1.5; flat_lip_size = 10; screw_dia = 2.5; edge_thickness = 15; item_height = 4; combi_x = board_x + edge_thickness+(flat_lip_size*2); combi_y = board_y + edge_thickness+(flat_lip_size*2); field_thickness = 2; module exterior() { difference() { transla...
glb/cad_972fb6d2bdc4.glb
Create a D&D Miniature Base Sign consisting of a base plate and a removable sign. For the base, create a square slab 25.4mm wide, 25.4mm deep, and 3mm thick. Carve a large circular indentation into the top surface with a radius of 14mm and a depth of 2mm. Additionally, carve two smaller circular holes with a radius of ...
PrintOption = "both"; BaseSize = 1; SignHeight = 10; Custom = 0; printBase(PrintOption, Custom > 0 ? Custom : BaseSize); module printBase(option, size) { if (option != "sign") { base(size * 25.4); } if (option != "base") { translate([0,-(SignHeight+5),0]) baseSign(size * 25.4); } } ...
glb/cad_83248a3f9bb7.glb
Create a vacuum hose adapter consisting of two concentric cylindrical shells connected by a conical transition. Start by creating a large base cylinder with an outer diameter of 63mm (59mm inside diameter plus 2mm walls on each side) and a height of 24mm. From the top of this base, create a conical section that transit...
wallThickness = 2; insideVacuum = 34; vacuumLength = 24; insideBandsaw = 59; bandsawLength=24; $fn=55; rotate([0,180,0]) difference() { union() { translate([0,0,bandsawLength+(vacuumLength+bandsawLength)/3]) cylinder(r=(insideVacuum/2)+wallThickness, h=vacuumLength); translate([0,0,bandsawLength]) ...
glb/cad_7059f9870537.glb
Create a captive sphere on a stand by designing a central sphere with a diameter of 20mm. Enclose this sphere within a larger cube that has a side length of 25mm, centered on the same origin. To create the outer cage, remove a sphere with a diameter of 30mm from the cube, and then constrain the entire resulting structu...
intersection() { difference() { translate([-12.5,-12.5,-12.5]) cube(25); sphere(15); } sphere(17.5); } sphere(10); difference() { translate([0,0,-25]) cylinder(r=10, h=12.5); translate([0,0,-25.5]) cylinder(r=8, h=14); }
glb/cad_d4adebaf9857.glb
Create a sponge holder with a total width of 100mm, a depth of 70mm, and a height of 15mm. The main body is a rectangular tray with walls 1mm thick. The base of the tray is not solid; instead, create 10 evenly spaced circular drainage holes across the floor, each with a diameter of 2mm. The back wall of the holder is...
accurate=true; height=15; width=100; depth=70; box_height=20; thickness=1; screw_head=3; delta_mount_y=4; carves=10; delta_smaller_box=4; large_box_width=width-delta_smaller_box*thickness; depth_boxes=depth-delta_smaller_box*thickness; invito=screw_head/4; delta_wall=delta_mount_y+thickness; steps=width/carves; s...
glb/cad_06bf3bfcdcdf.glb
Create a Solar Charge Box consisting of a main rectangular enclosure with a top plate and integrated mounting holes for electrical components. The overall footprint of the top plate is 127mm by 127mm. Construct the top plate with a thickness of 2.5mm. On this plate, create four distinct cutout sections to house switch...
use <write/Write.scad> case_wid = 127+0; case_len = 127+0; OUTPUT = 5; battery_switch = 3; Custom_Batt_Round_Switch = 20; Custom_Batt_Switch_Length = 29.5; battgenswllen = Custom_Batt_Switch_Length; Custom_Batt_Switch_Width = 22; battgenswwid = Custom_Batt_Switch_Width; Custom_Batt_Rotation = 0; Custom_Batt_Hori...
glb/cad_95114886b0f1.glb
Create a Sodastream Lever replacement part starting with a rectangular base 30mm wide, 98mm long, and 11mm high. At the front end of the base, carve out a rectangular hole 18mm wide, 30mm long, and 4mm deep, starting 2mm from the front edge. Directly behind this opening, extend the cavity to a total depth of 15mm, with...
x=30; y=98; z=11; $fn=50; bh_x=18; bh_ox=(x-bh_x)/2; bh_oy=2; bh_z=4; bh_y=30; bh2_z=15; bh2_y=13; hr=1.7; hr_y=7; hr_z=7; pb_r=x/2+5; pb_r2=37/2-3; pb_h=2.5; pb_h2=10+z; pb_y=y-pb_r; pb_x=x/2; union(){ difference(){ hull(){ cube([x,0.1,z]); translate([0,y-pb_r-0.1,0])cube([x...
glb/cad_5dcddcfc2c4f.glb
Create a CD datalogger adapter by starting with a thin circular base 15mm in height with a radius of 2.5mm. Centered on this base, place a larger cylinder 2mm high with a radius of 17mm. Rising from the center of that cylinder is a smaller vertical cylinder 8mm high with a radius of 7.5mm. To finish the part, remove a ...
difference(){ union(){ cylinder(2,17,17,$fn=60); cylinder(8,7.5,7.5,$fn=60); } translate([0,0,-1]) cylinder(15,2.5,2.5,$fn=60); rotate([90,0,0]) translate([0,5,-5]) cylinder(20,1.5,1.5,$fn=60); }
glb/cad_d9c4df802f8e.glb
Create a CD datalogger arm by starting with a rectangular base measuring 75mm in length, 10mm in width, and 3mm in height. At both ends of this base, center a vertical cylinder with a radius of 5mm and a height of 8mm. Within these cylinders, create a vertical hole with a radius of 4mm and a height of 4mm to allow for ...
difference(){ union(){ cube([75,10,3]); translate([0,5,0]) cylinder(10,8,8,$fn=60); translate([75,5,0]) cylinder(12,5,5,$fn=60); } translate([0,5,-1]) cylinder(15,4,4,$fn=60); rotate([90,0,0]) translate([0,5,-15]) cylinder(50,1.5,1.5,$fn=60); translate([75,5,10]) cylinder(5,2.3,2.3,$fn=60); translate([75,5,-1]) ...
glb/cad_1f3fe8ef19d7.glb
Create a CD datalogger base plate by starting with a rectangular block measuring 120mm in length, 50mm in width, and 3mm in height. Remove several cylindrical holes from this base to accommodate the motor and servo components. First, create a large central hole with a diameter of 22mm, centered at coordinates (25, 25...
difference(){ union(){ cube([120,50,3]); } translate([25,25,-1]) cylinder(5,11,11,$fn=60); translate([9.5,9.5,-1]) cylinder(5,1.5,1.5,$fn=60); translate([9.5,40.5,-1]) cylinder(5,1.5,1.5,$fn=60); translate([40.5,9.5,-1]) cylinder(5,1.5,1.5,$fn=60); translate([40.5,40.5,-1]) cylinder(5,1.5,1.5,$fn=60); translate([1...
glb/cad_663ad9ed76cf.glb
Create a Montessori grammar stencil as a flat plate measuring 83.9mm by 51mm with a thickness of 2mm and rounded corners with a 5mm radius. Cut the following geometric holes completely through the plate: a row of four equilateral triangles of increasing size, starting from a small 8mm triangle and scaling up to a large...
module triangle3d(w=1, d=1, h=1) { resize([w,d,h]) cylinder(h=1, r=1, $fn=3); } base_radius = 5; radius = 20; width = 88.9 - base_radius; height = 56 - base_radius; depth = 2; holes = depth*3; sm = 8; space = 5; difference() { union() { hull() { translate([base_radius,base_radius,0]) ...
glb/cad_16f96f9a764a.glb
Create a spiky gear for a ball chain by starting with a central cylinder that has a radius of 3.5mm and a total height of 8mm, centered on the Z-axis. Around this central core, arrange six identical rectangular spikes equally spaced every 60 degrees. Each spike must be a rectangular prism measuring 15mm in length, 3mm ...
spike_thick=4; shaft_rad = 3.5; module spike() { intersection () { rotate ([0,0,10]) cube([15,3,spike_thick],center=true); rotate ([0,0,-10]) cube([15,3,spike_thick],center=true); } } module spikes_round(c) { inc = 180/c; for ( z = [1:c]) { rotate(z*inc,[0,0,1]) spike(); } } translate ([0,0,spike_thic...
glb/cad_82170d8eb546.glb
Create a locking clip for a pet food bin. The main body is a rectangular block 155mm long, with a width of 148mm and a height of 14mm. Centered along the length of the block, integrate a cylindrical pin with a diameter of 4.5mm that extends 4.5mm outward from both the top and bottom ends of the block. The top surface...
w = 155; pinl = 4.5; pind = 4.5; idepth = 14; iheight = 18; curved = 4; taper = 1.5; tw = w - taper*2; twb = w - taper*4; $fn=36; h = curved; a = w; R = (pow(a/2,2)/h - h)/2; rotate([9,0,0]) rotate([0,90,0]) difference() { union() { translate([0,0,-pinl]) cylinder(d=pind, h=pinl); translate([0,0,w]...
glb/cad_32442ba384b2.glb
Create a vacuum outlet diffuser in the shape of a hollow cylinder with an outer diameter of 57.25mm and a total height of 115mm. The cylinder should have a uniform wall thickness of 2mm. Perforate the lower portion of the cylinder with a series of circular holes. First, create a pattern of holes on the flat bottom ba...
length=45+70; radius=57.25/2; wall=2; holes=2; portion=70; separate=9; baseholeradius=radius-separate; difference() { union() { cylinder(h=length,r=radius); } union() { translate([0,0,wall]) cylinder(h=length,r=radius-wall); for(raise = [0:separate:portion]) { f...
glb/cad_2470f5f775e9.glb
Create a cube with a side length of 70mm and rounded corners with a radius of 5mm. On each of the six faces, add an embossed Kufi calligraphy phrase that rises 2mm from the surface. On the top face, center the "Bismillah" phrase, scaled to approximately 38.5mm square. On the first side face, center the "Subhanallah" ...
use <bismillah.scad> use <subhan.scad> use <hamd.scad> use <shahadah.scad> use <takbir.scad> cube_size = 70; radius = 5; emboss = 2; eps = 0.1; module rounded_cube(cube_s,r) { hull() { q = cube_s-r; translate([r, r, r]) sphere(r); translate([r, q, r]) sphere(r); translate([q, q, r]) sphere(r); ...
glb/cad_0ea612cf99bb.glb
Create a 3D cube with a side length of 50mm. On each of the six faces, engrave Kufi calligraphy phrases by removing material to a depth of 2mm, leaving the raised lettering to form the phrases. On the top face, engrave "Bismillah". On the first side face, engrave "Subhanallah". On the second side face, engrave "Alham...
fudge = 0.1; module takbir(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-189.750000,175.500000],[-189.750000,161.000000],[-117.250000,161.000000],[-44.750000,161.000000],[-44.750000,175.500000],[-44.750000,190.000000],[-117.250000,190.000000],[-189.750000,190.000000],[...
glb/cad_6cc49e80671a.glb
Create a 3D cube with a side length of 50mm. On each of the six faces, engrave Kufi calligraphy phrases by removing material to a depth of 2mm, leaving the remaining surface flat. On the top face, engrave the phrase "Bismillah". On the first side face, engrave "Subhanallah". On the second side face, engrave "Alhamdul...
fudge = 0.1; module hamd(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-70.999975,0.000000],[-70.999975,-70.999999],[-64.499975,-70.999999],[-57.999975,-70.999999],[-57.999975,-58.000000],[-57.999975,-45.000000],[-51.499975,-45.000000],[-44.9...
glb/cad_a64b2444dba2.glb
Create a 3D cube with a side length of 90mm. On each of the six faces, embed Kufi calligraphy phrases as recessed or embossed geometric patterns. On the top face, place the phrase "Bismillah". On the first side face, place "Subhanallah". On the second side face, place "Alhamdulillah". On the third side face, place "L...
fudge = 0.1; module shahadah(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-947.000000,757.500000],[-947.000000,568.000000],[-884.000000,568.000000],[-821.000000,568.000000],[-821.000000,505.000000],[-821.000000,442.000000],[-884.000000,442.0...
glb/cad_d88780390ba2.glb
Create a square plaque featuring an intricate, geometric Kufi calligraphy design. The overall footprint is a square measuring 70mm by 70mm with a thickness of 1mm. The design is composed of a series of interconnected rectangular bars and right-angled paths that form a complex, maze-like pattern of Arabic script. Cons...
fudge = 0.1; module bismillah(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-276.250000,259.062500],[-276.250000,241.559970],[-201.240110,241.559970],[-126.230220,241.559970],[-126.396360,258.903720],[-126.562500,276.247470],[-201.406250,276.406250],[-276.250000,276.5650...
glb/cad_8dcc809ee58e.glb
Create a 3D cube with a side length of 50mm. On each of the six faces, embed recessed Kufi calligraphy phrases that are carved into the surface. On the top face, carve the phrase "Bismillah". On the first side face, carve "Subhanallah". On the second side face, carve "Alhamdulillah". On the third side face, carve "La...
fudge = 0.1; module subhan(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-158.125001,49.374999],[-158.125001,-60.000001],[-97.500000,-60.000001],[-36.874999,-60.000001],[-36.874999,-48.125001],[-36.874999,-36.250001],[-85.625000,-36.250001],[-134.375000,-36.250001],[-134...
glb/cad_41c2010d7e47.glb
Create an AnyCubic Prusa i3 X-Axis Idler part. Start with a main rectangular block 40mm long, 20mm deep, and 60mm high. On the sides, create two horizontal cylindrical voids for the X-rods, each with a diameter of 8.5mm. Position the first void at a height of 7.5mm and the second at 52.5mm. At the center of the block...
height = 60; xRodDiameter = 8.5; xRodDistance = 45; xRodLength = 40; xRodDepth = 20; xRodScrewDiameter = 2.8; xRodScrewOffset = 7; xRodY = xRodDepth / 2; xRod1Z = (height - xRodDistance) / 2; xRod2Z = (height - xRodDistance) / 2 + xRodDistance; xIdlerZOffset = 20; xIdlerXOffset = 4; xIdlerScrewDiameter = 3.5; xIdlerWid...
glb/cad_088808cba3c1.glb
Create a cat tree column support consisting of a main hollow cylinder and a wider base. Start by creating a solid cylinder with a diameter of 60mm and a height of 70mm. At the bottom of this cylinder, add a base disk with a height of 5mm and a diameter of 80mm. To create the internal cavities, remove a central vertic...
nut = 15.6+1.3; bolthole = 8.6; nutsides = 6; boltthick = 8.6; tube = 60; thick = 5; objHeight = 70; objBase = tube+(thick*4); flooroffset = boltthick*2; difference() { union() { cylinder(h=objHeight, d=tube); cylinder(h=thick, d1=objBase, d2=objBase-(thick*1.5)); } u...
glb/cad_03f57d364e1a.glb
Create a square plate with a width and length of 143mm and a thickness of 0.8mm. Centered on top of this plate, add a raised 3D relief of Kufic calligraphy. The calligraphy should be scaled up by a factor of 3.5 relative to its original design dimensions to fit the surface of the plate. Ensure the final model is a sing...
use <hamd.scad> plate_th = 0.8; plate_w = 143; scale(3.5) hamd(1); translate([0,0,-plate_th/2]) { cube([plate_w,plate_w,plate_th], center=true); }
glb/cad_307e7b22bb3e.glb
Create a square plate measuring 143mm by 143mm with a thickness of 0.8mm. Centered on the top surface of this plate, add a raised 3D relief of the Bismillah Arabic Kufic calligraphy. The calligraphy should be scaled to 90% of its original design size and have a uniform height of 3.5mm above the plate surface. Ensure th...
use <bismillah.scad> plate_th = 0.8; plate_w = 143; scale(0.90) bismillah(3.5/0.90); translate([0,0,-plate_th/2]) { cube([plate_w,plate_w,plate_th], center=true); }
glb/cad_c0987a253b0e.glb
Create a parametric evergreen tree model consisting of a central trunk and several stacked conical segments. Start by creating a central pentagonal prism trunk with a diameter of 5mm and a total height of 18mm. Around this trunk, place a series of stacked, five-sided conical frustums. Each frustum should have a height ...
NumSides = 5; $fn = NumSides; Height = 12; Spacing = 3; TrunkDiameter = 5; CylinderHeight = 5; RadiusValue = 1; for (i = [Height - 3:-1:4]) { translate([0,0,i*Spacing - (3*Spacing)]) { cylinder(h = CylinderHeight, r1 = (Height-i) * RadiusValue, r2 = 1); } } cylinder(h = ((Height - 6)*Spacing), ...
glb/cad_76ae8d016008.glb
Create a simple sprayer nozzle consisting of a hollow tube, a conical transition, and a flat circular face. Start by creating a hollow cylinder for the tube with an outer radius of 3.15mm, an inner radius of 2mm, and a height of 15mm. Attached to the bottom of this tube, create a conical section that transitions from t...
tube_od_radius=3.15; tube_id_radius=2; tube_length=15; hole_radius=0.75; face_radius=12.5; wall_thickness=1.5; cone_height=10; $fa=0.5; $fs=0.5; module generate_holes(num_holes=1, hole_offset=0) { for(i=[0:num_holes]) { rotate([0,0,i*360/num_holes]) translate([hole_offset,0,-0.1]) cylinder(r=hole_radiu...
glb/cad_6febaefa82df.glb
Create a sprayer nozzle consisting of a hollow tube, a conical transition, and a flat circular face. Start by creating a hollow cylinder for the tube with an outer radius of 3.05mm, an inner radius of 2mm, and a height of 15mm. Attached to the bottom of this tube, create a conical section that transitions from the tube...
tube_od_radius=3.05; tube_id_radius=2; tube_length=15; hole_radius=0.75; face_radius=12.5; wall_thickness=1.5; cone_height=15; $fa=0.5; $fs=0.5; module generate_holes(num_holes=1, hole_offset=0) { for(i=[0:num_holes]) { rotate([0,0,i*360/num_holes]) translate([hole_offset,0,-0.1]) cylinder(r=hole_radiu...
glb/cad_2a5facea36e2.glb
Create a webcam mounting post consisting of two main components: a frame mount and a camera clip. First, construct the frame mount as a vertical block 16mm wide, 32mm long, and 16mm thick. Integrate a cylindrical hole with a 4mm radius passing through the center of the block's width to accommodate a pole. At the top ...
$fs = 0.5; $fa=2; strutWidth = 8; strutDepth = 6; clipWidth = 16; grippyCylinderRadius = strutDepth/2; backCylinderRadius = 7; module rounder(innerR, outerR, length){ difference(){ cylinder(r=outerR, h=length, center=true); cylinder(r=innerR, h=length+2, center=true); translate([0,50,0]) cube([100,100,100], ...
glb/cad_2bbfeeb6cf0e.glb