Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a self-watering planter insert consisting of a conical base and a cylindrical neck. Start by creating a truncated cone for the base with a bottom diameter of 45mm, a top diameter of 17mm, and a height of 20mm. On top of this base, add a cylinder with a height of 30mm, a bottom diameter of 17mm, and a top diamete...
$fn=64; thickness = 3; outer_diam = 45; outer_height = 20; inner_diam_top = 17; inner_diam_bottom = 15; inner_height = 30; diff = 0.1; module net(x= 50, y= 50, d=0.6, period = 1){ for (i = [0:round(x/period)]) translate([-x/2 + i*period, -y/2, 0]) rotate([-90,0,0]) cylinder(r = d/2, h = y, $fn=8); ...
glb/cad_b6b5b7d0308b.glb
Create a LiPo 1S Battery Clip designed as a single continuous spring-like strip. The clip is based on a central axis and extends 35mm in total length. Start with a rectangular base measuring 47mm by 20mm with a thickness of 1mm. From this base, extend a thin wall with a thickness of 0.5mm that follows a specific geom...
EX = 0.5; Z = 6.1; CH = 35; SIDE = -1; FLEX = 9; $fn=48; module battery() { color("lightgrey") hull() { translate([(11-5.5)/2,0,0]) cylinder(d=5.5, h=33); translate([-(11-5.5)/2,0,0]) cylinder(d=5.5, h=33); } color([0.2,0.2,0.2,1]) translate([0,1.1/2,7.8/2 + 33]) cube([12.3, 6.6...
glb/cad_44ba17b09d6d.glb
Create a Picture Ring by constructing a thick-walled circular band. Start with a sphere of radius 11.95mm (calculated as the ring size of 15.9mm divided by 2, plus a thickness of 2mm). Hollow out the center by removing a cylinder with a radius of 7.95mm to create the finger hole. Modify the overall shape by slicing of...
use <write/Write.scad> ring_size = 15.9; c_r=ring_size/2; image_file = "image-surface.dat"; thick=2; ring_width=5; ring_angle=20; text_face="Macy"; text_size_face = 4; space_size_face=1.0*1; text="inverted"; text_size_interior = 3; space_size =1.0*1; part = "ring"; s_r=c_r+2*thick; x_offset=-thick; y_b=r...
glb/cad_e845e5cd4d56.glb
Create an Anaperture Single-Shot Anaglyph Aperture mask consisting of two thin circular discs designed to sandwich a filter. Each disc has a diameter of 48.75mm (calculated as the 49mm thread size minus a 0.25mm tolerance) and a thickness of 1mm. For each disc, create two circular aperture holes with a diameter of 11m...
thread_size = 490; focal_length = 50; f_number = 140; f_number_wanted = 1100; stereo_baseline = 8000; plate_thickness = 1000; tab_height = 5000; tab_angle = 45; two_piece = 1; label_part = 1; tolerance = 250; my_font = "MgOpen Modata:style=Bold"; $fn = 180; thread = thread_size / 10; length = focal_length;...
glb/cad_a1d84ad50c6b.glb
Create a PZ0420 camera mounting plate consisting of a main rectangular plate measuring 33mm wide by 3mm thick by 36.5mm high. On the front face of the plate, add four square standoffs, each measuring 5mm by 5mm by 6mm. Position two standoffs at the bottom corners and two at the top corners, specifically at coordinate...
mountholes=1; standoffs=0; frontmount=1; difference() { union() { translate ([-1,0,0]) cube([34.5,3,36.5]); if (mountholes==2) { translate([-1,10,-2]) rotate(a=[90,0,0]) cube([34.5,3,10]); } else { translate([-1,15,-2]) rotate(a=[90,0,0]) cube([34.5,3,15]); } if (standoffs==1) { if (frontmount...
glb/cad_07d8de21ca7f.glb
Create a Minecraft Creeper figure by combining a head, body, and feet. Start with a cubic head measuring 23mm on all sides. Carve out a mouth and face details by removing three rectangular blocks: one 7.5x6x3mm block at the center-bottom, one 8x6x6mm block slightly above it, and another 7.5x6x3mm block at the bottom. C...
union(){ difference() { translate([-22.5,-6.5,0]) cube([23,23,23]); translate([-8.5,-7,14]) cube([7.5,6,3]); translate([-11,-7,8.5]) cube([8,6,6]); translate([-8.5,-7,5.5]) cube([7.5,6,3]); translate([-17,-7,3]) cube([6,6,6]); translate([-17,-7,14]) cube([6,6,6]); } translate([-17,-4,3]) cube([3,3,3...
glb/cad_dd901426516a.glb
Create a stylized human figure composed of several rectangular prisms. Start with a central body block measuring 18mm wide, 9mm deep, and 27mm tall, centered on the origin. Place a head block measuring 17.5mm on all sides, centered horizontally and depth-wise, positioned 22mm above the origin. Within this head, carve o...
union(){ difference() { translate([0,0,22]) cube([17.5,17.5,17.5],true); translate([-4.3,8,22]) cube([4,2,2],true); translate([-5.3,6,22]) cube([2,2,2],true); translate([4.3,8,22]) cube([4,2,2],true); translate([5.3,6,22]) cube([2,2,2],true); } cube([18,9,27],true); translate([13,0,0]) cube([9,9,27],t...
glb/cad_9d76c7e03c88.glb
Create a Catapult with Text consisting of a base and a launching arm. First, construct the base as a rounded rectangular block with a width of 21mm, a length of 60mm, and a thickness of 3mm. Carve a rounded rectangular slot out of the center of the base, measuring 8.67mm wide and 30mm long, to allow the arm to pivot....
include <smallsidefont.scad>; projectile_diameter = 13; catapult_length = 100; catapult_thickness = 2; play = 0.5; buildBase = true; buildArm = true; margin = 2; cw = 2 * projectile_diameter/3; ct = catapult_thickness; rs = projectile_diameter/3; br = rs/3; fnrs = 32; hr = (projectile_diameter-1)/2; er = 1.4 * hr; h...
glb/cad_83ae840ef231.glb
Create a 2 Liter Bottle Holder and Cap. Start by creating a cylindrical cap with an outer diameter of 32.4mm and a height of 9mm. The interior of this cap must be hollowed out to accommodate a bottle neck. The internal void is defined by a cylinder with a diameter of 25.07mm and a height of 9mm, but it is modified by r...
part="cap"; clearance=0.4; bottleID=25.07; bottleOD=27.4; bottlePitch=2.7; bottleHeight=9; bottleAngle=2; threadLen=15; holderOD=bottleOD+5; holderOR=holderOD/2; funnelOD=100; funnelWall=2; threadHeight = bottlePitch/3; echo("thread height ",threadHeight); echo("thread depth ",(bottleOD-bottleID)/2); module bottle...
glb/cad_08ac1732d2b4.glb
Create a 2D fox silhouette by extruding a flat profile to a height of 5mm and a thickness of 1mm. The overall shape is a stylized fox head and neck. The outer boundary is defined by a series of vertices that form a pointed ear on the left, a rounded top of the head, and a tapered neck. Within this main silhouette, cr...
profile_scale = 25.4/90; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); h...
glb/cad_124690d92f63.glb
Create a 2D fox silhouette with a thickness of 1mm and an extrusion height of 8mm. The shape is a stylized, flat fox figure. The overall geometry is defined by a complex outer boundary and several internal cutouts to create a hollowed-out effect. The fox is positioned such that it is lying flat, with its tail curving u...
profile_scale = 25.4/90; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); h...
glb/cad_bb5c4a7bba6d.glb
Create a 3D model of a stylized fox silhouette, known as "Fox 2D," by extruding a complex 2D profile to a height of 10mm and a width of 1mm. The shape is a flat, artistic representation of a fox in a curled or leaping pose. The main body is a continuous, flowing organic form. The head is pointed, extending toward the ...
profile_scale = 25.4/90; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); h...
glb/cad_006b9dac9fd4.glb
Create a 3D model of a stylized fox silhouette, known as "Fox 2D," by extruding a complex 2D profile to a height of 5mm with a thickness of 1mm. The overall shape is a flat, artistic representation of a fox. The main body is a continuous, flowing organic form. The left side features a long, curved tail that sweeps upw...
profile_scale = 25.4/90; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); h...
glb/cad_67df6b4980e8.glb
Create a 2D fox silhouette with a thickness of 5mm and a width of 1mm. The model is a flat, extruded graphic consisting of two main joined components. The first component is a continuous, flowing outer boundary that forms the stylized head, ears, and a curved tail. The second component consists of several internal cuto...
profile_scale = 25.4/90; function min_x(shape_points) = min([ for (x = shape_points) min(x[0])]); function max_x(shape_points) = max([ for (x = shape_points) max(x[0])]); function min_y(shape_points) = min([ for (x = shape_points) min(x[1])]); function max_y(shape_points) = max([ for (x = shape_points) max(x[1])]); h...
glb/cad_913f353ec7a6.glb
Create a 3D Tangram puzzle in the form of a pyramid. The overall structure is based on a side length (L) of 75mm. Each of the seven pieces is created by taking a 2D tangram shape, extruding it to a height of 75mm, and then carving away the top to create a sloped, pyramidal face. The seven pieces to construct are: two ...
L=75; translate([-5,-5,0]) corner_triangle1(); translate([1,-5,0]) corner_triangle2(); translate([0,-4,0]) square(); translate([-5,0,0]) parallelogram(); translate([-2,-2,0]) middle_triangle(); translate([2,-2,0])large_triangle1(); translate([0,0,0])large_triangle2(); module remove_top() { rotate(63.4, [1, 0, 0]) tr...
glb/cad_6fd7fdec9d91.glb
Create a Cubelets Wire connector by constructing a cylindrical sleeve with a central hole. Start with a main cylinder that has an outer radius of 14.1mm (calculated as 27.8/2 + 0.2) and a height of 2mm. Inside this cylinder, create a hollow center by removing a smaller cylinder with a radius of 1.35mm (calculated as ...
$fn = 64; SIDE = 42; CORNER_RAD = 5; CONNECT_OUT_RAD = 27.8/2 + 0.2; CONNECT_IN_RAD = 12.88/2; CONNECT_HUB_RAD = 13.7/2; CONNECT_HEIGHT = 1.5; CONNECT_RECESS = 1.5; connect_thick = 1.6; gap = 0.1; washer_thick = 3 ; washer_in_rad = 13.6/2-gap ; washer_out_rad = 27/2+gap; hub_height = 10; hub_thick = 1.6; hub_rad = ...
glb/cad_fe25f9a8c166.glb
Create a Labeled Soma Cube puzzle set consisting of seven unique pieces, each constructed from cubes with a side length of 25mm. For each individual 25mm cube used in the assembly, create a centered cubic cutout of 17.5mm (0.7 times the side length) to allow for the insertion of a magnet. Construct the seven pieces as...
translate([-50,-50,-1.01]) %cube([100,100,1]); include <smallsidefont.scad>; $fn = 10; scale_=4.5; size= 25; depth=size/6; pathT_= 0.28; pathW=0.5; translate([35,24,0]) scale (25/25) rotate(90,[0,0,1]) { translate([-size*3-size/4,size*4+size/4,size/2]) rotate(180,[0,0,1]) corner("W"); translate([-size*3-size/16,si...
glb/cad_8600127ef91f.glb
Create a FilaBottle system consisting of a funnel, an adapter, and a comb. First, create a funnel for a 2-liter bottle. Start with a cylindrical base that has an outer diameter of 32.4mm and a height of 9mm. Inside this base, create a threaded hole with a diameter of 25.07mm and a pitch of 2.7mm. Above this base, add...
part="both"; half=0; clearance=0.4; $fn=64; bottleID=25.07; bottleIR=bottleID/2; bottleOD=27.4; bottlePitch=2.7; bottleHeight=9; bottleAngle=2; threadLen=15; bottleNeckID = 21.74; holderOD=bottleOD+5; holderOR=holderOD/2; funnelOD=100; funnelOR=funnelOD/2; funnelWall=2; funnelIR=bottleNeckID/2; funnelRim = 5; fi...
glb/cad_fd9358cd8335.glb
Create a Closet Maid shelf bracket consisting of two mirrored rectangular plates. Each plate should be 56mm wide, 45.5mm high, and 9mm thick, with all four corners rounded to a 2mm radius. In each plate, center a vertical hole with a 6mm diameter that passes completely through the thickness. On the front plate, crea...
$fn=30; width = 56; height = 45.5; thick = 9; vwSep = 22.25; hwSep = 26.2; wDiam = 6.4; nDiam = 3.04; slotTol = 0.5; cornerRad = 2; holeDiam = 6; headDiam = 10; headInset = 1.5; botJut = 1; outerToInner = 9.5; backSlotWidth = 14; backSlotDepth = 3; slotSupportBase = 3; slotSupportNum = 3; slotAdjust = 0.1; jutAngle = a...
glb/cad_3f0d9910c1b4.glb
Create a Mobius camera holder for a ZMR 250 frame. Start by creating a central rectangular block that is 9mm wide, 28.8mm long, and 25mm high. From this block, remove a central rectangular section that is 4.45mm wide, 33mm long, and 4mm high, rotated 15 degrees along the X-axis and shifted 8mm along the Y-axis and 4mm ...
$fn = 120; cyl1_radius = 3.5; cyl1_height = 3.1; cyl2_radius = 6.5; cyl2_height = 3; cub1_height = 21.8; cub1_height_half = cub1_height / 2; cub1_weight = 28.8; cub1_weight_half = cub1_weight / 2; cub1_thickness = 3; plate_thickness = cub1_thickness / 2 ; cube_holderX = 9; cube_holderY = 33; cube_holderZ = 25; spac...
glb/cad_7d0d04de19b9.glb
Create a geometric model representing a cube sectioned by planes. Start with a primary cube measuring 10mm on all sides. From this cube, remove two distinct volumes: first, a rectangular prism measuring 5mm by 11mm by 8mm, rotated 30 degrees around the X-axis and positioned at X=-5, Y=-0.5, Z=7; second, a rectangular p...
difference(){ difference(){ difference(){ difference(){ difference(){ cube(10,center=false); translate([-5,-0.5,7])rotate([0,30,0])cube([5,11,8]); }; translate([8.5,-2.0,6])rotate([0,-35,-40])cube([5,7,6]); } translate([1.50,2,8])sphere(0.5,$fn=100,center=false); } translate([1.50,8,8])sphere(0...
glb/cad_d55ee146e74b.glb
Create a double-sided thumb spanner for nuts with a total height of 14mm. The central body consists of a hexagonal prism with a flat-to-flat diameter of 15.8mm (calculated from a 9.8mm diameter plus 3mm wall thickness on each side). Cut two hexagonal holes through the center of this body, one at the top and one at th...
testing = 1; test_diameter = 8.5; upper_dia = 9.8; lower_dia = 9.8; handle_thickness = 5; handle_thickness_2 = 10; additional_thickness = 3; height = 14; length = 35; key_ring_dia = 4*1; key_ring_z_scale = 1*1; key_ring_res = 60*1; wrench_outer(); if (testing == 1){ test_cut_cylinder(); } module wrench_...
glb/cad_297ce029b634.glb
Create a Direct Drive extruder consisting of a main body and an idler assembly. Start with the main body: create a block 42mm wide, 42mm deep, and 19mm thick. Center a vertical cylindrical hole with a radius of 11.5mm through the body. Add a cylindrical brass insert at the center with a radius of 3.5mm and a height o...
include <../MCAD/stepper.scad> include <../MCAD/bearing.scad> thick=19; module top_extruder() { difference() { union() { translate([0,0,-10]) cylinder(h=10,r=3.5); translate([20,-5,-thick+1]) cube([10,14,thick]); translate([-21,-21,-thick+1]) cube([42,42,thick]); } translate([0,0,-thick+1]) cylinder(h=thic...
glb/cad_af8ded21a8de.glb
Create a linear actuator enclosure consisting of two main vertical cylindrical housings connected by a central rib. The first housing is a cylinder with an outer radius of 8mm and a height of 25mm, featuring a concentric inner bore of 3mm radius. This cylinder is hollowed out by two bearing housing rings: one at the ba...
$fn = (100 * 1); dist = 15; rib_thickness = 5; difference() { union() { difference() { cylinder(h = 25, r = 8); translate([0, 0, -2]) cylinder(h = 7, r = 6); cylinder(h = 40, r = 3); translate([0, 0, 21]) cylinder(h = 6, r = 6); } translate([dist, 0, 0]) { difference() { cylinder(h = 25, r ...
glb/cad_e4d87e95fbab.glb
Create a Travel Cotton Box consisting of a main cylindrical container and a separate lid. For the container, create a cylinder with an outer diameter of 62mm and a total height of 21.5mm. Hollow out the center by removing a cylinder with a diameter of 58mm and a height of 19.5mm, leaving a base thickness of 2mm. For ...
diameter = 58; height = 2.5; cotton = "COTTON"; bordure = 2; boite(7); color("Crimson") translate([0,0,-bordure]) couvercle(); module boite(n) { difference() { cylinder(h = height*n+2*bordure,d = diameter+2*bordure); cylinder(h = height*n+bordure,d = diameter); } } module couvercle() { ...
glb/cad_80e263922886.glb
Create an Autoguider mount for D Style Dovetail Plates consisting of two separate ring-based holders. For the front holder, create a ring with an inner diameter of 54.6mm and a wall thickness of 2mm, with a total depth of 35mm. Integrate two hexagonal nut-shaped cutouts into the ring walls, positioned 180 degrees apar...
draw_front_holder_main=1; draw_front_holder_side_piece=1; draw_back_holder_main=1; draw_back_holder_side_piece=1; front_ring_test_print=0; back_ring_test_print=0; nut_holder_test_print=0; screw_diam = 4.5; screw_diam = 5.2; nut_radius = 5.5; nut_radius = 5.6; front_inner_diam=54; front_inner_diam=54.6; bak_in...
glb/cad_131bf7320bc3.glb
Create a Wide Z holder for a Prusa Mendel Adjustable Z-opto end stop. Start with a base composed of a cylinder with a radius of 7.5mm and a height of 10mm, using a 20-facet resolution. Attach a rectangular block measuring 15.5mm by 15mm by 10mm to this cylinder, positioned so the cylinder's center is at the block's edg...
include <configuration.scad> module endstop(){ outer_diameter = m8_diameter/2+3.3; screw_hole_spacing = 19; opening_size = m8_diameter-1.5; mount_hole_location = 19; difference(){ union(){ translate([outer_diameter, outer_diameter, 0]) cylinder(h =10, r = outer_diameter, $fn = 20); translate([outer_diameter, 0,...
glb/cad_b810dc4a8fe8.glb
Create a customizable spool consisting of two identical mirrored halves. For each half, start with a circular plate 80mm in diameter and 1mm thick. Remove a central hole 10mm in diameter. On each plate, create a central winding cylinder with a height of 15mm and a diameter of 18mm. For the first half, this cylinder i...
full_diameter = 80; hole_diameter = 10; winding_diameter = hole_diameter + 8; winding_width = 15; outer_rim = 5; inner_rim = 2; plate_thickness = 1; through_hole_diameter = 1.5; arms = 3; arm_arc = 15; keyways = 3; interference = 0.15; inter_piece_gap = 2; reel_hole_edge_offset = 1; sector_filet_radius = ...
glb/cad_ea0f4d667f25.glb
Create a gel comb consisting of a rectangular base and a series of protruding teeth. Start by creating a base rectangular prism with a width of 141.1224mm, a length of 12.573mm, and a height of 2.8194mm. Centered on top of this base, add a second rectangular prism with a width of 130.2512mm, a length of 12.573mm, and a...
interTeethSpacing=9; toothWidth = 6.46; toothLength = 11.557; toothHeight = 0.889; interTeethSpace=interTeethSpacing-toothWidth; numberOfTeeth=14; baseWidth=141.1224; baseLength=12.573; baseHeight = 2.8194; topCubeWidth=130.2512; topCubeLength=baseLength; topCubeHeight =2.7; teethStartMargin=((interTeethSpacing*(nu...
glb/cad_bf06fe89f194.glb
Create an Extruder LED Strip Mount consisting of a main rectangular base and two upright mounting pillars. The base is 50mm wide, 10mm deep, and 15mm high. The top surface of the base features a recessed channel 10mm wide and 3mm deep, running centrally along the length to hold an LED strip. At each end of the base, p...
$fn = 25; X = 50; XB = 40; Y = 10; YF = 15; Z = 12.5; SD = 2.7; OFF = 3; RND = 1.5; LW = 10; LD = 3; WX = 5; WY = 5; WZ = 12; WD = 2; module rounded(size, radius, center) { size = (size[0] == undef) ? [size, size, size] : size; resize(size) if (center) { minkowski() { children(); sphere(r=radius); ...
glb/cad_7a86e0e703d8.glb
Create a ReprapWorld keypad 1.1 and LCD frame. Start by constructing a central rectangular base that is 63mm wide, 10mm high, and 3mm thick. At the center of the left and right edges, 23.5mm from the center point, create two vertical holes with a radius of 1.7mm that pass completely through the thickness of the base. ...
frame_width = 63; frame_zheight = 10; module soporte() { difference() { cube([frame_width,frame_zheight,3], center=true); union() { translate( [-23.5,0 ,-10]) rotate([0,0,0])cylinder(h = 400, r1 = 1.7, r2=1.7); translate( [23.5,0 ,-10]) rotate([0,0,0])cylinder(h = 400, r1 = 1.7, r2=1.7); } } } module c...
glb/cad_6896e38c834d.glb
Create a ReprapWorld keypad 1.1 and LCD panel. Start with a central rectangular base measuring 103mm by 39.2mm with a thickness of 3mm. Surround this base with an outer frame that extends the total dimensions to 112mm in height and 63mm in width, with a frame thickness of 10mm. At the four corners of the central base,...
panel_width = 200; panel_height = 100; board_width = 39.2; board_height = 103; button_diameter = 8; support_cylinder_diameter = 7; support_cylinder_height = 14; frame_width = 63; frame_height = 112; frame_zheight = 10; module support_cylinder() { difference() { cylinder(h = support_cylinder_height, r1 = s...
glb/cad_cf27d123b294.glb
Create a ReprapWorld keypad and LCD frame by starting with a solid rectangular base measuring 112mm in length, 63mm in width, and 10mm in height. Center a rectangular cutout through the middle of this base that is 97mm long and 40mm wide. To create ventilation and mounting gaps, remove two thin rectangular strips, each...
panel_width = 40; panel_height = 97; frame_width = 63; frame_height = 112; frame_zheight = 10; module panel_lcd() { difference() { union() { cube([frame_height , frame_width, frame_zheight], center = true); } union() { cube([panel_height , panel_width, 400], center = true); translate([0,25,3]...
glb/cad_5f062fd84d41.glb
Create a ReprapWorld keypad and LCD housing. Construct ten identical button caps. Each cap consists of a base cylinder with a diameter of 11mm and a height of 3.2mm. Centered on top of this base, add a smaller cylinder with a height of 1.2mm, featuring a bottom radius of 3.3mm and a top radius of 2.8mm. To create the f...
module button_hole() { translate([0,0,3.1]) cylinder(h = 1.2, r1 = button_diameter/2-0.2, r2=button_diameter/2-0.8-0.2); translate([0,0,0]) cylinder(h = 3.2, r1 = button_diameter/2-0.2, r2=button_diameter/2-0.2); translate([0,0,-2.7]) cylinder(h = 5.9-3.2, r1 = button_diameter/2+2, r2=button_diameter/2+2); } ...
glb/cad_1456636cfa7d.glb
Create a fan duct for a ZoneStar P802Q with a J-Head hotend. The main body is a rectangular block 49mm wide, 40mm deep, and 18mm high, centered on the X and Y axes. Carve a horizontal cylindrical tunnel through the center of the block along the Y-axis. This tunnel consists of an inner void with a radius of 8mm and an...
NUT=3.2; $fn=90; difference() { union() { difference() { translate([49/2-20,0,17/2-1]) cube([49,40,18],center=true); translate([-25,0,25/2]) rotate([0,90,0]) cylinder(r=16/2,h=100); translate([0,0,25/2]) rotate([0,90,0]) cylinder(r=20/2,h=100); hull() { translate([0,0,-1]) cylinder(r=37/2,h=2); ...
glb/cad_0f0ae7097114.glb
Create an x-Carriage for a RapidBot 1.0 with a bowden e3d hotend. Start with a main rectangular body measuring 44mm wide, 51.7mm deep, and 16mm high. Center a cylindrical cutout with a radius of 6.05mm and a height of 15mm through the center of the body. At the rear, add a belt clamp that is 44mm wide, 5mm thick, and...
hole_dia = 2.5; dist_x = 17.5 + hole_dia; echo(dist_x); dist_y = 17.5 + hole_dia; echo(dist_y); $fn = 150; difference(){ union() { difference() { translate([-22,42,-9]) cube([44,5,16]); translate([0,42.5,-1]) union(){ difference(...
glb/cad_5ea39a3db24d.glb
Create an x-Carriage for a RapidBot 1.0 with a bowden e3d hotend and an inductive proximity sensor mount. Start with a main carriage body that is a rectangular block measuring 44mm wide, 51.7mm deep, and 16mm high. Center a cylindrical hole with a 6.1mm radius and 32mm height through the center of the block. On the t...
hole_dia = 2.5; dist_x = 17.5 + hole_dia; echo(dist_x); dist_y = 17.5 + hole_dia; echo(dist_y); $fn = 150; difference() { union(){ translate([22+6.5,-26,-23]) cylinder(r=9, h=30); translate([22,-26-9,0]) cube([9-3,18,7]); translate([22+15-9,-26-9,-23]) cube([6+9,...
glb/cad_eaee7c36109f.glb
Create a city wall piece for a board game by constructing a rectangular hollow tray with crenelated edges. Start with a solid rectangular block measuring 15mm in width, 25mm in length, and 9mm in height. Hollow out the center by removing a rectangular section 11mm wide and 21mm long, starting from a height of 1mm and e...
width=11; length=21; height=7; thickness = 2; difference() { cube([width + thickness * 2, length + thickness * 2, height + thickness]); translate([thickness, thickness, 1]) cube([width, length, 100]); translate([-1, thickness, 2]) cube([width + thickness * 2 + 2, 9, 100]); for(a=[-2:2:2]) translate([width / ...
glb/cad_c431c8246bc4.glb
Create a spacer for SW06UU linear bearings by constructing a hollow cylinder. The main body should be a cylinder with an outer diameter of 22.09mm and a total height of 10.77mm. Remove a concentric inner cylindrical core with a diameter of 16.26mm to create a wall thickness of approximately 2.9mm. Ensure the geometry i...
EXTRA = 1.04; t = 0.2075 * 25.4; D = 0.625 * 25.4; dr = 0.375 * 25.4; L = 0.875 * 25.4; B = 0.6358 * 25.4; W = 0.0390 * 25.4; b = B - 2 * W; l = b - t; difference() { cylinder(r = D * 1.375 / 2, h = l, $fn = 100); cylinder(r = D * EXTRA / 2, h = 1.1 * l, $fn = 100); }
glb/cad_cb0466a6b060.glb
Create a model rocket transition consisting of three coaxial sections joined end-to-end. Start by creating a base cylinder with a diameter of 65.4mm and a length of 20mm. Directly on top of this base, add a conical transition section that is 120mm long, tapering from a bottom diameter of 66.1mm to a top diameter of 41....
shoulder1_diameter = 65.4; shoulder1_length = 20; transition_diameter_1 = 66.1; transition_length = 120; transition_diameter_2 = 41.6; shoulder2_diameter = 40.1; shoulder2_length = 30; $fn=150; union(){ translate([0,0,shoulder1_length/2])cylinder(shoulder1_length,shoulder1_diameter/2,shoulder1_diameter/2,center=true);...
glb/cad_c0379c6b91da.glb
Create a digiscoping adaptor consisting of a hollowed-out 20-sided polygonal prism. Start by creating a solid 20-sided prism with a total height of 53mm and a diameter of 48.5mm. From the center of this volume, remove two coaxial cylindrical sections to create a stepped interior. First, remove a cylinder with a diamete...
module digiscoping_adaptor(bottom_d, bottom_h, top_d, top_h) { bottom_d = 28.5; bottom_h = 13; top_d = 44.5; top_h = 40; overall_d = max(bottom_d, top_d) + 4; difference(){ cylinder( h = bottom_h + top_h, r = overall_d / 2, $fn = 20); translate([0, 0, bottom_h]) { cylinder( h = top_h, r = top_d / 2); } ...
glb/cad_34b41343b0b5.glb
Create a shopping cart trolley hacker consisting of two overlapping circular discs connected by a central rectangular bridge. The first disc has a diameter of 23.88mm and a thickness of 1.58mm. The second disc has a diameter of 26.48mm and a thickness of 1.92mm. Position the discs so that their centers are separated by...
Dia1=23.88; Thick1=1.58; Dia2=26.48; Thick2=1.92; MinWall=1.2; RingDia=5; $fn=50; Separation=max(Dia1,Dia2); Thick=min(Thick1,Thick2); MThick=max(Thick1,Thick2); difference(){ union(){ cylinder(d=Dia1,h=Thick1); translate([0,Separation,0])cylinder(d=Dia2,h=Thick2); translate([-(RingDia+M...
glb/cad_2f734907e922.glb
Create an eReader Grip designed as a supportive shell. Start with a base cube of 77mm x 77mm x 9.25mm. From this base, remove a central square section of 77mm x 77mm x 7.25mm to create a hollowed-out interior, leaving a wall thickness of 2mm on the sides. To form the grip's ergonomic shape, modify the outer perimeter...
BEZEL = 12; WIDTH = 9.25; SIZE = 75; FINGER_SPACE = 15; $fn=200; module grip() { intersection() { difference() { hull() { cube([SIZE+2,SIZE+2,WIDTH+4]); translate([0,0,WIDTH+4]) rotate([-90,0,0]) cylinder(r=2,h=SIZE); translate([0,0,WIDTH+4]) rotate([0,90,0]) cylinder(r=2,h=SIZE); ...
glb/cad_1a9d58360879.glb
Create a two-part protective enclosure for a Bus Pirate v4. The main body is a rectangular box with outer dimensions of 69mm in length, 41.5mm in width, and 8mm in height. The walls are 2mm thick, creating an internal cavity of 65mm by 37.5mm by 6mm. On one of the shorter sides, create a rectangular cutout measuring 8....
include <TextGenerator.scad> alto=6; ancho=37.5; largo=65; $fn=20; wall = 2; module pins() { pin_r = 2.5/2; clearance = 2; dist_y = 30.5; dist_x = 57.5; x0=wall+pin_r+clearance; y0=wall+pin_r+clearance; translate([x0,y0,2]) cylinder(h=4,r=pin_r); translate([x0+dist_x,y0,wall]) cylinder(h=4,r=pin_r); translate([x0...
glb/cad_d526b4e1bbda.glb
Create a Hall endstop mount consisting of a main holder and a post connector. First, construct the holder as a rectangular block measuring 31mm wide, 33mm deep, and 10mm high. Carve out a central slot for a circuit board starting 5mm from the left and 3mm from the front, with dimensions of 21mm wide, 30mm deep, and 1.7...
rod_radius = 4; m3_diameter = 4; m3_nut_diameter = 5.7; Main(); module Main() { render() union() { translate([0,0,33]) rotate([90,180,0]) holder(); translate([-7 - (31/2) ,-2,15]) rotate([270,0,0]) postConnector(); } } module holder() { render() difference() { cube([31,33,10],center =...
glb/cad_c77abc064b15.glb
Create a test3 model consisting of two mirrored parts joined at a central plane. For the top part, create a cylindrical base with a diameter of 5mm and a height of 1mm. On top of this base, add a "split teeth" connector. This connector starts with a central cylindrical hole of 2.7mm diameter and 1.8mm height. Around ...
top_type = "teeth"; bottom_type = "hex"; cll = .2; i_lock_rod_diam = 1.2; i_split_hole_width_top = 1; i_split_hole_width_bottom = 1; support_height_top = 1; support_height_bottom = 1; support_diam_top = 5; support_diam_bottom = 10; i_pcb_hole_diam = 2.7; i_pcb_thickness = 1.8; bend_max = 12; i_hex_inside =...
glb/cad_102232c22b38.glb
Create a Pomidori Box consisting of a cylindrical base and a matching cover. For the base, create a hollow cylinder with an outer diameter of 80mm and a height of 55mm, with a wall thickness of 1mm. Inside this base, integrate a circular speaker mount with an outer diameter of 51mm and an inner opening of 45mm. Add fou...
include <pins.scad>; $fn = 50; margin = .2; wall = 1; buttons = 4; button_size = 4; d = 80; h = 55; speaker_d = 45; speaker_d_out = 50; leds = 24; led_d = 66; led_d_in = 52.5; led_wall = .5; screen_pixels = [ 96, 64 ]; screen_inches = 0.955; screen_size = screen_pixels * ( screen_inches * 25.4 / sqrt( screen_pix...
glb/cad_d78f1ba47932.glb
Create a hydro starter box consisting of a 2x2 grid of open-topped square compartments. Each individual compartment is formed by a cube with an outer dimension of 43mm in width and depth, and a total height of 40mm. The walls and the bottom base of the holder are 1mm thick. To achieve this, create a solid block measuri...
i=2; j=2; a=41; b=1; c=1; h=40; for (i =[1:i],j=[1:j]) kostka(a,b,c,h,i,j); module kostka (a,b,c,h,i,j) { translate([(i-1)*(a+b),(j-1)*(a+b),0]) union(){ translate([b,b,0]) difference() { cube([a,a,c],false); translate([a/2,a*(1-sqrt(2))/2,0]) rotate([0,0,45]) cube([a,a,c],false); } difference() { cube([a+2*b,a+...
glb/cad_e83e887587b4.glb
Create a Filament Spool Holder Adapter consisting of two concentric cylindrical sections with a central hole. First, create a wide base cylinder with a diameter of 65mm and a height of 4mm. On top of this base, center a second cylinder with a diameter of 57mm and a height of 14mm. Finally, remove a central cylindrical ...
$fn=50; module spoolholder(id,od){ odrim = od +8; difference(){ union(){ cylinder(h=14,d=od); cylinder(h=4,d=odrim); } cylinder(h=14,d=id); } } spoolholder(30,57);
glb/cad_04e23a0b5b6f.glb
Create a Pipe Cover consisting of two identical symmetrical halves that fit together to form a hemispherical cap. For each half, start with a sphere of radius 12mm. Cut this sphere in half along the YZ plane and remove a central vertical cylinder with a radius of 6.5mm to create a hole for the pipe. To create the bas...
$fn = 70; RADIUS = 12; RADIUS_PIPE = 6.5; SURFACEDECO = 0; module moreBalls(ballRadius = 1) { ballNumber = 28; ballBands = RADIUS*1.5; for ( i = [0:ballBands-1] ) { rotate( i*360/ballBands, [0, 0, 1]) for ( j = [0:ballNumber-1] ) { if ( j>ballNumber*0.36 && j<ball...
glb/cad_7502e5f61ffd.glb
Create a customizable tape dispenser starting with a main rectangular base measuring 120mm in length, 45mm in width, and 50mm in height. Hollow out the center of this base by removing a rectangular volume of 110mm by 35mm, leaving a bottom thickness of 5mm. To form the outer structure, add a series of smaller rectang...
BaseWidth = 45; BaseLength = 120; BaseHeight = 50; OutsideLLength = 10; OutsideSLength = 5; BottomThickness = 5; MHoleWidth = 35; MHoleLength = 110; RPole = 5; difference(){ union(){ cube([BaseLength,BaseWidth,BaseHeight]); translate([-BaseLength/24,-OutsideSLength,0]){ cube([2...
glb/cad_29758d4c1e86.glb
Create a Juicer Pulp Guard consisting of a curved basin and a mounting lip. Start with a primary cylindrical ring with an outer diameter of 218.934mm (178.934mm plus a 20mm lip on each side) and an inner diameter of 178.934mm. The wall thickness of this main body is 3mm. The basin is a partial arc with a length of 141...
full_diam = 178.934; arc_len = 141.5; arc_offset = sqrt(pow(full_diam/2,2)-pow(arc_len/2,2)); lip_length = 40; lip_height = 4; lip_width = 5; lip_cutout_height = 2; lip_cutout_width = 3; slot_width = 3; slot_distance = 11; cover_height = 40; cover_thick = 2; cover_offset = sqrt(pow(full_diam/2+lip_length-lip_cutou...
glb/cad_f8b3787cb099.glb
Create a Pen Holder MK7 by starting with a main vertical cylinder that is 15mm high with a radius of 4mm. Attach a rectangular block to the side of this cylinder with dimensions of 8mm width, 10mm depth, and 12mm height, positioned so the block starts at the base. From this combined mass, remove a central vertical ho...
union () { difference () { union () { cylinder(h=15, r=4, center=false, $fn=100); translate ([-4,0,0]) cube(size=[8,10,12],center=false); translate ([-4,10,6]) rotate ([0,90,0]) cylinder(h=8, r=6, center=false, $fn=100); } cylinder(h=15, r=2, center=false, $fn=100); translate ([-5,10,6]) rotate ([0,90,0])...
glb/cad_d9ec1ca4e951.glb
Create a Servo Base holder by starting with a flat rectangular base plate 3mm thick. The main body should be approximately 27.5mm long and 16.2mm wide. In the center of this plate, remove a rectangular cutout measuring 24.1mm by 13.7mm to accommodate the servo motor. At each far end of the base plate, add a cylindrica...
$fn = 40; BIG = 200; wig = 0.01; clear = 0.6; sf = 25.4; servo_x = 0.899*sf+2*clear; servo_y = 0.489*sf+2*clear; screw_hole_off = 1.087*sf/2; screw_hole_d = 1.75; base_t = 3; base_wall = 2; base_x = servo_x + 2*base_wall; base_y = servo_y + 2*base_wall; leg_d = 5*sf/16 + clear; leg_od = leg_d+2*base_wall; leg_h = s...
glb/cad_4080fc7a8153.glb
Create a leg base consisting of a rectangular mounting plate and a cylindrical sleeve. Start with a rectangular base plate measuring 25mm in length, 11.7mm in width, and 3.5mm in height. Center two vertical holes with a diameter of 2.54mm through the plate, positioned at x = -6.375mm and x = 6.375mm. On top of this pla...
$fn = 60; BIG = 200; wig = 0.01; sf = 25.4; clear = 0.6; leg_id = 5*sf/16 + clear; leg_od = leg_id + 4; leg_h = sf/2; leg_tilt = 20; leg_rot = 30; base_t = max(3,leg_od*sin(leg_tilt)); base_l = 25; base_w = leg_od; hole_d = .1*sf; hole_off = (base_l+leg_od)/4; module base() { difference() { translate([0,...
glb/cad_2b7e1561306d.glb
Create a gyro cube consisting of three concentric nested shells. Each shell is based on a cube with a side length of 80mm (face radius of 40mm), but modified by intersecting it with a sphere of radius 56mm (outer radius) and subtracting an internal sphere of radius 44.2mm (inner radius). To further refine the shape, su...
numShells = 3; shellRatio = 0.83; faceRadius = 40*0.83; innerRadius = faceRadius * 1.3; outerRadius = faceRadius * 1.4; pinLength = faceRadius * 5.5 / 44.9; pinBaseRadius = faceRadius * 3 /44.9; pinTipRadius = faceRadius * 1 / 44.9; numRibs = 2; ribWidth = faceRadius/8; ribPitch = ribWidth*4; socketBulgeRadiusF...
glb/cad_c79d13038c7f.glb
Create a torus knot by generating a continuous sequence of 181 overlapping spheres, each with a diameter of 6mm. Position each sphere along a winding path where the coordinates are determined by a scale factor of 2 and a base radius of 5mm. The x-coordinate follows a cosine function based on a frequency of 3, the y-coo...
$fn=7; d=30; spars=180; pop=3; p=4; q=3; scale=2; s2=5; for (i = [0:spars]){ hull(){ translate([s2*(cos(scale*q*i) * (pop + cos(scale*p*i))),s2*(sin(scale*q*i) * (pop+ cos(scale*p*i))),s2*2*(sin(scale*p*i))]) sphere(3); translate([s2*(cos(scale*q*(i+1)) * (pop + cos(scale*p*(i+1)))),s2*(sin(scale*q*(i+1)) * (...
glb/cad_6ca0a9d3e4bd.glb
Create a trorus knot by generating a continuous, tubular path composed of 181 connected segments. Each segment is formed by creating a convex hull between two spheres, each with a diameter of 6mm. The centers of these spheres are positioned using a parametric formula where the x-coordinate is $15 \cos(12i) \cdot (3 + \...
$fn=7; d=30; spars=180; pop=3; p=4; q=3; scale=2; s2=5; for (i = [0:spars]){ hull(){ translate([s2*(cos(scale*q*i) * (pop + cos(scale*p*i))),s2*(sin(scale*q*i) * (pop+ cos(scale*p*i))),s2*2*(sin(scale*p*i))]) sphere(3); translate([s2*(cos(scale*q*(i+1)) * (pop + cos(scale*p*(i+1)))),s2*(sin(scale*q*(i+1)) * (...
glb/cad_6ca0a9d3e4bd.glb
Create a Build Box model representing a 3D printer's build volume of 200mm x 200mm x 200mm. Construct this by creating three thin boundary planes, each 1mm thick, aligned with the X, Y, and Z axes. For the Z-plane, create a horizontal plate 200mm by 200mm. Overlay a grid on this plate consisting of thin lines 0.3mm w...
use <Write.scad> build_box(); color("red") cube([5,4,200],center=false); module write_label(text) { font_height=8; font_thickness=1; font_space=1; font_name="letters.dxf"; write(text,h=font_height,t=font_thickness,font=font_name,space=font_space); } module build_box(rangeX=200,rangeY=200,rangeZ=200,Planes="XY...
glb/cad_6f85a2198f98.glb
Create a spherical pentagram by starting with a hollow sphere that has an outer radius of 32mm and an inner radius of 28mm. Remove a central vertical cylinder with a radius of 20mm and a height of 65mm to create a void through the center of the sphere. To form the star pattern, place five identical rectangular prisms, ...
difference() { union() { rotate([0,0,0])translate([-8,0,0])cube([3,50,34],center=true); rotate([0,0,72])translate([-8,0,0])cube([3,50,34],center=true); rotate([0,0,144])translate([-8,0,0])cube([3,50,34],center=true); rotate([0,0,216])translate([-8,0,0])cube([3,50,34],center=true); rotate([0,0,288])translate([-8,0,0])cu...
glb/cad_e23380861f43.glb
Create a parametric square embroidery hoop consisting of two concentric rounded-rectangle rings and a mounting holder. First, create an inner ring with a height of 10mm and a thickness of 5.4mm. The outer dimensions of this ring are 288.6mm by 158.6mm (calculated as length minus thickness and distance), with corner r...
length_=300; width_=170; height=10; thickness=5.4; roundedCornerRadius=40; length=length_-roundedCornerRadius; width=width_-roundedCornerRadius; distanceInnerOuter=1; holderLength=40; holderThickness=30; holderHeight=height; extrusionHoleDistance=20; extrusionBoltSize=5; boltHeadHeight=5; boltHeadDiameter=8.5; lockBo...
glb/cad_d95e638dac0e.glb
Create a Speed Handle for a PanaVise Jr. consisting of a circular face and a central mounting fixture. Start with a thin circular disc 85mm in diameter and 3mm thick. Along the outer perimeter of this disc, create 16 evenly spaced circular cutouts (flutes), each 21.25mm in diameter, centered on the edge. In the center...
D = 85; H = 3; flute_d = D / 4; kd1 = 15.8; kd2 = 16.0; kw = 6.7; kl = 40.0; kh = 9.5; t = 2.5; screw_diam = 4; fudge = 1; module knob_outline(knob_radius, flute_radius) { difference() { circle(r = knob_radius, $fn = 100); for (a = [0 : 1 : 15]) { rotate([0, 0, a * ...
glb/cad_e5354c4ffeee.glb
Create a support for a Taranis antenna plug consisting of two symmetrical halves. Each half is derived from a central core and a connector assembly. The core features a central cylinder with a diameter of 14mm and a total height of 9.9mm. This core is surrounded by a larger outer cylinder with a diameter of 21.7mm. Th...
part = "demo"; tol = 0.31; wall = 1.5; flange = 6.0; screw_dia = 3.0; screw_thr = 2.5; screw_head = 6.0; screw_nut = 5.5; screw_tol = 0.25; d = 0.01; outer_dia = 21.7; outer_wall = 1.5; inner_dia = 14.0; core_tot = 9.9; core_h1 = 2.5; core_h2 = 5.7; core_ring = 2.0; core_bas = 1.9; core_bxr = 1.6; ctr_dia = 6.25; ...
glb/cad_64db3afeeb68.glb
Create a cable grommet cap consisting of a circular top plate and a supporting cylindrical barrel. The top plate is a flat cylinder with a diameter of 87.5mm (80mm hole diameter plus 7.5mm overlap on each side) and a thickness of 1.25mm. Centered in this plate is a circular hole with a diameter of 20mm. Attached benea...
print_cap = 1; print_grommet = 0; grommet_hole_diameter = 80; grommet_depth = 12.75; cable_hole_diameter = 20; thickness = 1.25; cap_overlap = 7.5; cap_thickness = 1.25; bottom_overlap = 4; bottom_overlap_angle = 60; number_of_clips = 2; spacing ...
glb/cad_6ab09895237b.glb
Create a Deltaprintr Hotend Retainer designed to secure a hotend in place. Start by constructing a central vertical shaft with a diameter of 16mm and a height of 10mm. On top of this shaft, add a wider cylindrical cap with a diameter of 20mm and a height of 4mm. To allow for the hotend and wire passage, remove two con...
Diameter_Hotend = 16; Big_Diameter = 20; little_Diameter = 16; Cone = 1; Upper_Height = 4; Lower_Height = 10; Tra = "on"; xdis=17.5; ydis=8.3; traxdia=7.5; $fn= 100; difference(){ whole(); minus(); } d1= Diameter_Hotend+0.5; h1= Lower_Height; d2= little_Diameter; d3 = Big_Diameter; h2= Upper_Height; cone = Co...
glb/cad_eb0edaad9bd9.glb
Create a magnetic stackable card and figure tray for Catan. Construct a rectangular box with an outer footprint of 53.2mm by 83.2mm and a total height of 23mm. The walls should be 1.8mm thick. The interior cavity should be a flat-bottomed open box with dimensions of 45mm by 71mm. The exterior corners of the box must b...
use <write/Write.scad> $fa=5; $fs=1; dMagnet = 5.6; dMagnet2 = 5.1; magnetWidth = 6; magnetMultiple = 0.75; magnetDistance = 1; magnetDeep = 1.8; bevel=1; cwidth=45; cheight=71; nrSlot = 5; wall = 1.8; height = 23; height2 = 2; gap = 0.5; printing_height=0.3; module body(){ difference(){ union(){ ...
glb/cad_1d8e4f3c1f1a.glb
Create a toothbrush mount consisting of three identical circular stations arranged in a row. Each station is based on a tapered cylinder with a bottom radius of 27.25mm, a top radius of 20.65mm, and a total height of 29.6mm. From each tapered base, remove a central core to create a socket. This core consists of a cyli...
resolution = 100; t =0.5; num=3; inner_r = t+ 20.8/2; outer_r = t+ 38.9/2; outer_h = 12; inner_h = 20; inner_z = 10; hole_r = t+ 2.8/2; hole_h = 30; base_r1 = t+ 46.5/2 + 4; base_r2 = outer_r + 1.2; base_h = 29.6; gap = t + 1.2; cut_phi = 11.5; pipe_r = 1.5/2; pipe_len = (outer_r-inner_r)/2; puzzle_r = 3; puzzle_...
glb/cad_6954849a271f.glb
Create a toothbrush head mount consisting of three identical, aligned conical bases. For each base, create a truncated cone with a height of 30mm, a bottom radius of 26mm, and a top radius of 22mm. Within each conical base, carve out a central vertical void to create a socket. This void consists of two stacked cylind...
resolution = 30; num=3; inner_r=10; outer_r=20; outer_h=10; inner_h=20; inner_z=10; hole_r=1; hole_h=30; base_r1=26; base_r2=22; base_h=30; gap=2; dist=(2*outer_r+gap); module single_cut() { cylinder( r=inner_r, inner_h,center=true, $fn=resolution ); translate( [0,0,inner_z] ) cylinder( r=outer_r, outer_h, center...
glb/cad_5f3d0537f0b2.glb
Create a toothbrush head mount consisting of three identical circular ports aligned in a row. For each port, start with a conical base that has a bottom radius of 23.25mm and a top radius of 20.1mm, with a total height of 29.6mm. From each conical base, remove a central composite volume to create the socket. This vol...
resolution = 100; f =1; t =0; num=3; inner_r = t+f* 20.8/2; outer_r = t+f* 38.9/2; outer_h = f* 12; inner_h = f* 20; inner_z = f* 10; hole_r = t+f* 2.8/2; hole_h = f* 30; base_r1 = t+ f* 46.5/2; base_r2 = outer_r + f* 1.2; base_h = f* 29.6; gap = t + f* 1.2; cut_phi = 13.5; pipe_r = f* 1.5/2; pipe_len = (outer_r-...
glb/cad_175dfce60db7.glb
Create a toothbrush head mount consisting of three identical circular base units aligned in a row. Each unit starts with a tapered cylinder base that has a bottom radius of 23.25mm and a top radius of 20.65mm, with a total height of 29.6mm. From each base, subtract a central composite void to create the holder. This v...
resolution = 100; t =1; num=3; inner_r = t+ 20.8/2; outer_r = t+ 38.9/2; outer_h = 12; inner_h = 20; inner_z = 10; hole_r = t+ 2.8/2; hole_h = 30; base_r1 = t+ 46.5/2; base_r2 = outer_r + 1.2; base_h = 29.6; gap = t + 1.2; cut_phi = 13.5; pipe_r = 1.5/2; pipe_len = (outer_r-inner_r)/2; puzzle_r = 10; puzzle_h = 4...
glb/cad_fab1f7cefc5f.glb
Create a toothbrush head mount consisting of a tapered cylindrical base with a hollowed-out center. The main body is a truncated cone with a bottom radius of 27.25mm and a top radius of 20.65mm, reaching a total height of 29.6mm. Inside this body, create a central vertical void. This void is formed by removing a cyli...
resolution = 100; t =0.5; num=3; inner_r = t+ 20.8/2; outer_r = t+ 38.9/2; outer_h = 12; inner_h = 20; inner_z = 10; hole_r = t+ 2.8/2; hole_h = 30; base_r1 = t+ 46.5/2 + 4; base_r2 = outer_r + 1.2; base_h = 29.6; gap = t + 1.2; cut_phi = 11.5; pipe_r = 1.5/2; pipe_len = (outer_r-inner_r)/2; puzzle_r = 3; puzzle_...
glb/cad_1ae89747f5a7.glb
Create a Notebook Ring by constructing a toroidal shape with a circular cross-section. Start with a ring that has an outer diameter of 25.4mm. The cross-section of the ring should be a circle with a diameter of 5.25mm. To ensure the center is open, remove a cylindrical core from the middle of the ring with a radius of ...
diameter_of_ring=25.4; resoultion = 42; two_halves_or_whole = 1; x_rot = 0; y_rot = 0; z_rot = 0; units_entered = 1; desired_units_for_output = 1; module make_disk(x_pos=0, y_pos=0, z_pos=0, half = two_halves_or_whole){ translate([x_pos,y_pos,z_pos]){ difference(){ union(){ difference(){ minkowski(){...
glb/cad_833132ef5cd6.glb
Create an extruder cable organizer bracket with a total height of 10mm and a wall thickness of 1.6mm. The overall footprint is a rectangle approximately 20mm wide by 16mm deep. Construct the outer perimeter by forming a U-shaped channel that is open at the front. The side walls and the back wall should be 10mm high. On...
$fn = 20; T = 1.6; H = 10; SD = 4.1; SH = 3; difference() { union() { translate([-10, 16-5-T, 0]) cube([10+T, T, H]); translate([-10, 0, 0]) cube([T, 16-5, H]); translate([-10, 0, 0]) cube([19.75, T, H]); translate([8.25, 0, 0]) cube([T, 8, H]); translate([0, 16-5-T, 0]) cube([T, 5+T, H]);...
glb/cad_f5f91bec9755.glb
Create an extruder cable organizer consisting of a thin-walled, open-ended bracket with a height of 10mm and a wall thickness of 1.6mm. The footprint is a complex polygon formed by a base rectangle measuring 31.6mm in width and 22mm in depth. The shape features a central cutout: the front and back walls are 1.6mm thick...
$fn = 20; T = 1.6; H = 10; SD = 4.1; SH = 3; difference() { union() { translate([0, 22-T, 0]) cube([12, T, H]); cube([T, 22, H]); cube([15.25, T, H]); translate([15.25-T, 0, 0]) cube([T, 8, H]); translate([12-T, 22-6-T, 0]) cube([T, 6+T, H]); translate([12-T, 22-6-T, 0]) cube([18+T, T, H])...
glb/cad_c176718610a4.glb
Create an extruder cable organizer bracket with a total height of 20mm and a wall thickness of 1.6mm. The main body is an L-shaped enclosure. Construct a base plate 22mm wide and 20mm high. Add a vertical wall 22mm high and 1.6mm thick along one side, and a second vertical wall 20mm high and 1.6mm thick along the oppos...
$fn = 20; T = 1.6; H = 20; SD = 4.1; SH = 3; difference() { union() { translate([0, 22-T, 0]) cube([12, T, H]); cube([T, 22, H]); cube([(66-10)/2+12, T, H]); translate([(66-10)/2+12-T, 0, 0]) cube([T, 4, H]); translate([12-T, 22-6-T, 0]) cube([T, 6+T, H]); translate([12-T, 22-6-T, 0]) cube([1...
glb/cad_66a9df08464c.glb
Create an extruder cable organizer bracket with a total height of 30mm and a wall thickness of 1.6mm. The overall footprint is a U-shaped channel with an outer width of 28mm and a depth of 16mm. Construct the side walls as vertical plates 30mm high and 1.6mm thick. The base of the U-shape is 16mm deep, but the bottom 3...
$fn = 20; T = 1.6; H = 30; SD = 4.1; SH = 3; difference() { union() { cube([T, 4, H]); translate([(66-10)/2-18.5, 16-T, 0]) cube([18.5, T, H]); translate([(66-10)/2-T, 0, 0]) cube([T, 16, H]); cube([(66-10)/2, T, H]); } { translate([(66-10)/2-6.5, -10, SH]) rotate([-90, 0, 0]) cylinder(d=SD,...
glb/cad_68b85a691705.glb
Create an extruder cable organizer bracket with a total height of 30mm and a wall thickness of 1.6mm. The main body is a U-shaped channel with an outer width of 23mm and an outer depth of 16mm. The base of the U-shape is a flat plate 1.6mm thick, and the two side walls rise vertically to 30mm. On the back wall of the...
$fn = 20; T = 1.6; H = 30; SD = 4.1; SH = 3; difference() { union() { cube([T, 4, H]); translate([(66-10)/2-18.5, 16-T, 0]) cube([18.5+5, T, H]); translate([(66-10)/2-T+5, 0, 0]) cube([T, 16, H]); cube([(66-10)/2+5, T, H]); } { translate([(66-10)/2-6.5, -10, SH]) rotate([-90, 0, 0]) cylinder...
glb/cad_9b21faa5b9ab.glb
Create a rectangular prism with a width of 3mm, a length of 5mm, and a height of 1mm.
height=1; width=3; length=5; cube([width,length,height]);
glb/cad_9404201712d7.glb
Create a Makergear M2 fan bracket by constructing a composite base and removing two cylindrical holes. Start with a central rectangular block 18mm wide, 3mm thick, and 8mm high, centered on the origin. Attach a second rectangular block measuring 8mm by 3mm by 8mm, centered at x=-7.5, y=5.5, and z=0. Add a third rectang...
difference () { union () { cube ([18,3,8],center=true); translate ([-7.5,5.5,0]) rotate ([0,0,90]) cube ([8,3,8],center=true); translate ([12.18,-3.80,0]) rotate ([0,0,-45]) cube ([12,3,8],center=true); } translate ([-7.5,1.5+4,0]) rotate ([0,90,0]) cylinder (h=5,r=1.6,$fn=100,center=true); translate ([12,-4.75,0...
glb/cad_74d74b5febf2.glb
Create a Deluxe Parametric Compartment Box drawer consisting of a base and walls that form a grid of storage compartments. The overall outer dimensions of the drawer are 195mm in width, 195mm in depth, and 120mm in height. Construct the main body as a solid block with a thickness of 1.8mm for outer walls and 0.8mm fo...
include <MCAD/boxes.scad> $fn = 24; module myRoundedBox(size, radius, sidesonly, center) { if (radius == 0) { cube(size, center = center); } else { if (center == true) { roundedBox(size, radius, sidesonly); } else { translate(size / 2)roundedBox(size, radius, sidesonly); } } } modul...
glb/cad_e31d11a5ae7c.glb
Create a cantilever window lock pad with a total length of 49.5mm and a width of 16mm. The main body is a low-profile base 2mm thick, which transitions into a thicker section 5.75mm high at one end. Integrate a cylindrical pin running lengthwise through the center of the body with a diameter of 2.8mm. At one end, add a...
length = 49.5; width = 16; pin_dia = 2.8; slit_width = 2; slit_len = 20; lever_height = 11.5; lever_thick = 3; lever_angle = 20; narrow_height = 2.0; max_height = 5.75; difference() { union() { hull() { translate([0,width/2 - 8, max_height/2]) cube([22,4,max_height], center...
glb/cad_57cbc67eb7a7.glb
Create a ceiling clothes dryer pulley consisting of two separate components. The first component is a stepped circular piece: start with a base cylinder 25mm in diameter and 1mm high. Centered on top of this base, add a truncated cone that transitions from a 10mm diameter at the bottom to a 15mm diameter at the top ove...
$fn=100; difference() { union() { cylinder(d=25, h=1); translate([0, 0, 1]) cylinder(d1=10, d2=15, h=8); translate([0, 0, 9]) cylinder(d=8.8, h=1.2); } translate([0, 0, -1]) cylinder(d=5.2, h=40); } translate([30, 0, 0]) difference() { cylinder(d=25, h=1); translate([0, 0, ...
glb/cad_3d4ccb96f803.glb
Create a Stevenson screen cap for a weather station. Start by creating a cone with a height of 50mm, a base radius of 45mm, and a top radius of 0mm. Remove a smaller concentric cone from the center with a height of 51.5mm and a base radius of 45mm to create a hollow shell. Next, construct a cylindrical sleeve to hold...
Clear=0.175; difference () { cylinder (h=50,r1=45,r2=0,$fn=100); translate ([0,0,-1.5]) cylinder (h=50,r1=45,r2=0,$fn=100); } difference () { cylinder (h=43,r1=6+Clear,r2=6+Clear,$fn=100); translate ([0,0,-0.05]) cylinder (h=40,r1=4+Clear,r2=4+Clear,$fn=100); translate ([0,0,39.9]) cylinder (h=4,r1=4+Clear,r2=0...
glb/cad_156d049769e9.glb
Create a Stevenson screen cap for a weather station. Start by creating a cone with a height of 50mm, a base radius of 45mm, and a top radius of 0mm. From the center of this cone, remove a smaller concentric cylinder with a height of 51.5mm and a radius of 45mm to hollow out the base. Next, construct a sleeve to hold a ...
Clear=0.175; difference () { cylinder (h=50,r1=45,r2=0,$fn=100); translate ([0,0,-1.5]) cylinder (h=50,r1=45,r2=0,$fn=100); } difference () { cylinder (h=43,r1=6+Clear,r2=6+Clear,$fn=100); translate ([0,0,-0.05]) cylinder (h=40,r1=4+Clear,r2=4+Clear,$fn=100); translate ([0,0,39.9]) cylinder (h=4,r1=4+Clear,r2=0...
glb/cad_d70c894cbd59.glb
Create a Stevenson screen cap for a weather station designed to fit a 6mm carbon rod. The main body is a hollow, dome-like shell created by rotating a square profile of 1mm by 1mm, scaled by 14.1 in width and 28.3 in height, and rotated 45 degrees, around a central axis. The shell has a wall thickness of approximately ...
Clear=0.175; intersection () { difference () { union () { runddach (); for (w=[0,60,120,180,240,300]) { rotate ([0,0,w]) translate ([10-0.1,0,1]) cube ([10+0.1,2,2],center=true); rotate ([0,-90,w]) translate ([2,0,5-0.1]) cylinder (h=8+0.0,r1=1,r2=1,$fn=20); for (i=[-30,30]) { rotate ([0,0,w]) translate...
glb/cad_a0a935f3916b.glb
Create a GPS mounting bracket consisting of a main rectangular body and a tilted base. Start by creating a rectangular block for the body that is 20mm wide, 124mm long, and 20mm high. From the center of this body, remove a rectangular section to create a hollow receptor tray that is 20mm wide, 121.8mm long, and 15.8mm ...
$fn=60; module EXTRUDER(){ linear_extrude(15.8){ translate([-17,-61,-10]){ square([20,121.8]);}}} module BODY(){ translate([-20,-62,-2.1]){ linear_extrude(20){ square([20,124]);}}} module POWER(){ translate([-17,28,-4]) cube([20,30,4]); }; module HOLDER(){ difference(){ BODY(); EXTRUDER(); }} difference(){...
glb/cad_75d05cc07458.glb
Create a parametric cap for a pipe by constructing a hollowed cylindrical vessel with a height of 20mm. The outer shell should be a cylinder with a base diameter of 31.5mm and a top diameter of 31.5mm. Inside this shell, remove a cylindrical core to create a cavity. This inner void must start 5mm from the bottom, leavi...
inner_diam_top = 25.5; wall_thickness_top = 3; inner_diam_base = 25.5; wall_thickness_base = 3; height = 20; floor_thickness = 5; $fn = 50; AKRoundCap(inner_diam_top,wall_thickness_top,inner_diam_base,wall_thickness_base,height,floor_thickness); module AKRoundCap(idt,wtt,idb,wtb,h,ft) { outer_radius_base = ...
glb/cad_97288ddc31c1.glb
Create an LED Terminator Eyeball by starting with a sphere that has a diameter of 17.5mm. Position the sphere so that its center is 5mm above the origin on the Z-axis. Clip the bottom of this sphere using a cube with a side length of 35mm, positioned from -17.5mm to 17.5mm on the X and Y axes and starting from the base...
iDiam = 17.5; iSheer = 5; LED_D = 12; LED_H = 12; difference() { intersection() { translate([0,0,iSheer]) sphere(iDiam); translate([-iDiam,-iDiam,0]) cube(iDiam*2); } cylinder(LED_H,LED_D/2,LED_D/2,center); }
glb/cad_946ffcea236e.glb
Create a customizable screw jack consisting of a base, a nut, a bolt, and a swivel top. Construct the base by combining a cylinder of 25mm height and 25mm radius with a second cylinder on top of it that is 25mm tall with a 12.5mm radius. Center a hexagonal hole with a width of 14.75mm and a height of 7mm through the ...
part = 0; baseDiameter = 50; baseTotalHeight = 50; baseTaperHeight = 25; baseTaper = 0.5; jackTopDiameter = 20; jackTopHeight = 30; jackTopOption = 1; swivelClearance = 1; boltKnobKnurlNum = 20; boltKnobKnurlDepth = 1.5; boltKnobKnurlWidth = 1.5; boltKnobKnurlAngle = 120; boltHoleScale = 1.1; boltDiameter ...
glb/cad_d7ac5e916a59.glb
Create a wall hook consisting of a cylindrical arm and a rectangular mounting plate. Start by creating a cylinder with a radius of 6mm and a length of 40mm to serve as the front section of the hook. At the end of this cylinder, add a sphere with a 6mm radius to create a rounded tip. From the other end of the front cyli...
$fa = 0.5; $fs = 0.5; hook_radius = 6; turn_radius = 15; tilt = 5; backplate_radius = 30; backplate_x = 50; backplate_y = 20; backplate_height = 5; length_to_plate = 55; length = 40; module corner(turn_radius, hook_radius) { difference() { rotate_extrude(angle = 90, convexity = 10) translate([tu...
glb/cad_61e5d5dd2218.glb
Create a case for an M12864 transistor tester consisting of a bottom base and a top cover. The main body is a rectangular enclosure with a wall thickness of 1.5mm. The internal cavity must accommodate a PCB of approximately 63.5mm by 84.6mm and a 9V battery compartment measuring 54mm by 26mm by 17mm. The top section f...
part = "demo"; wall = 1.5; tol = 0.5; knob_inner_dia = 5.6; d = 0.01; i2m = 25.4; pi = 3.1415926; batt = [54.0, 26.0, 17.0]; slant = 4.5; pcb_x = 2.48*i2m; pcb_y = 2.97*i2m; pcb_z = 0.065*i2m; pcb_below = 4.0; mnt_dia = 3.25; mnt_x1 = 0.075*i2m + mnt_dia/2; mnt_y1 = pcb_y - 0.078*i2m - mnt_dia/2; mnt_y2 = 0.43*...
glb/cad_53a513ca9c1d.glb
Create a solar filter box consisting of a main container and a separate lid. For the container, create a smooth cylinder with a diameter of 58mm and a height of 23mm. Hollow out the center by removing a cylinder with a diameter of 56mm and a height of 23mm, starting from 2mm above the base to leave a 2mm thick bottom f...
$diametreBoite=58; $hauteurBoite=23; $diametreCouvercle=$diametreBoite+3; $hauteurCouvercle=11; $fn=360; difference(){ cylinder(h=$hauteurBoite, d=$diametreBoite); translate([0,0,2]){ cylinder(h=$hauteurBoite, d=$diametreBoite-2); } } union(){ translate([60,0,0]){ difference(){ ...
glb/cad_a7c141841cae.glb
Create a solar filter holder for binoculars based on a tube diameter of 62mm. The model consists of a hollow cylindrical sleeve. First, create a base ring with an outer diameter of 62mm and an inner diameter of 42mm, with a height of 1mm. Centered on this base, build a main cylindrical wall with an outer diameter of 63...
module cover(diam) { union() { translate([0,0,0.5]) { cylinder(h=1,d1=diam+1.5,d2=diam+1.5,center=true,$fn=200); } translate([0,0,3.5]) { difference() { cylinder(h=7,d1=diam+2.5,d2=diam+2.5,center=true,$fn=200); cylinder(h=8,d1=diam+1.5...
glb/cad_b437caec0086.glb
Create a Customizable Cardboard Game Card Box by constructing a rectangular open-top container. Start with a solid rectangular base measuring 45mm in width, 131mm in length, and 2mm in height. Build four vertical walls with a thickness of 1.5mm and a height of 25mm, extending upwards from the edges of the base to creat...
width = 42; length = 128; heigth = 25; wallthick = 1.5; basethick = 2; $fn=300; cube([width+2*wallthick,length+2*wallthick,basethick]); difference (){ cube([width+2*wallthick,wallthick,heigth+basethick]); translate ([width/2+wallthick,-0.1,heigth+basethick]) rotate([-90,0,0]) cylinder(wallthick+...
glb/cad_cab5a69dbaed.glb
Create a 40 Watt CO2 Laser Tube Clip designed as a semi-cylindrical mounting bracket. Start by creating a main body based on a cylinder with a radius of 36.25mm and a height of 25mm. Cut this cylinder in half and remove a central core with a radius of 26.25mm and a height of 26mm to create a C-shaped clip. To refine ...
Vert_Hanger_X = 55; Vert_Hanger_Y = 6.75; Vert_Hanger_Z = 0; Top_Hanger_X = 17.5; Top_Hanger_Y = 50; Top_Hanger_Z = 0; Bottom_Hanger_X = 15; Bottom_Hanger_Y = -42.5; Bottom_Hanger_Z = 0; Bottom_Thickness = 8; module hanger(){ difference(){ union(){ rotate([0,0,-45+180]){ d...
glb/cad_44833d4674b2.glb
Create a knurled knob for a CO2 laser tube clip. Start with a main cylinder that has a radius of 14.5mm and a height of 5.73mm. In the center of this cylinder, create a hexagonal cutout to accommodate a nut, where the distance from the center to each point of the hexagon is 5.5mm. Additionally, bore a circular hole t...
knob_radius = 14.5; dent_radius = 2; knob_height = 5.73; num_dents = 20; dent_offset = 1; nut_hole_radius = 2.6; nut_size_radius =5.5; module knob() { translate([0, 0, 0]) { difference() { cylinder(h = knob_height, r = knob_radius); for (i = [0:(num_dents - 1)]) { translate([sin(360*i/num_dents)*(knob_radiu...
glb/cad_ed0f8ef09061.glb
Create a Bopla Bocard Box Cylinder Lock Replacement consisting of two stacked cylindrical sections. Start with a base cylinder 8.8mm in diameter and 2.5mm in height. Cut a rectangular slot through the center of this base, 1.5mm wide and 10mm long, extending 2.4mm deep into the base. On top of this base, center a second...
$fn=300; difference(){ cylinder(2.5,8.8/2,8.8/2); translate([-0.75,-5,0]) cube([1.5,10,2.4]); } translate([0,0,2.5]) cylinder(34,6.9/2,6.9/2); translate ([-1,0,6.5]) cube([2,5.5,3]); translate ([-1,0,31.5]) cube([2,5.5,5]); translate ([0,0,28]){ intersection(){ cylinder (1.5,7.4/2,7/2); ...
glb/cad_4e2ff1b046c8.glb
Create an adjustable mini height sensor board mount for a differential IR probe. Start with a main body that is 30mm wide, 15.5mm deep, and 6.5mm thick. The outer shape is defined by a central rectangular block 30mm by 6mm, flanked by two 6mm diameter cylinders centered 3mm from the left and right edges at a depth of 3...
difference() { hull() { translate([3,3.25,0]) cylinder(d=6, h=6.5, $fn=25); translate([3+(30-6),3.25,0]) cylinder(d=6, h=6.5, $fn=25); translate([0,9.5,0]) cube([30,6,6.5]); } translate([0,6,2.5]) cube([30,18,6]); translate([(30/2)-(18/2),3.25...
glb/cad_3b08206db388.glb
Create a Blackboard Physics Mechanics strip by starting with a flat rectangular plate that is 300mm long, 20mm wide, and 3mm thick. The ends of the plate should be rounded with a radius of 10mm to form a capsule shape. Through the center of this plate, create a series of circular holes, each with a radius of 3.5mm. The...
thickness=3; height=20; size=300; difference() { hull() { translate([(size/2)-height,0,0]) cylinder(r=height/2 , h=thickness); translate([(-size/2)+height,0,0]) cylinder(r=height/2 , h=thickness); } translate([0,0,-1]) cylinder(r=3.5, h=thickness*2); for(i=[-13:13]) { translate([i*10,0,-1]) cylinder(r=3.5, h...
glb/cad_7141d9f9ee3a.glb
Create a series of 20 identical small caps designed to hold axles. Each cap is based on a rectangular block measuring 12mm wide, 3mm high, and 3mm deep. From this block, remove a central vertical cylindrical hole with a radius of 3mm that passes through the entire 3mm height. Additionally, remove a horizontal cylindric...
l=150; w=22; h=20; t=1; g=40; pegnumber=10; $fn=100; tolerance=0.1; indent_hole_radius=6.5; thickness=2; axle_radius=3; axle_length=20; cutout_height=16; indent_thickness=3; tolerance=0.2; module cap() { difference() { translate([-axle_radius*2, axle_radius/2,0]) cube([axle_radius*4,axle_radius,indent_thicknes...
glb/cad_c6cbe83c3899.glb