Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a 3DRAG syringe extruder jacket. Start by constructing a main hollow cylindrical sleeve with an outer radius of 31mm and a total height of 74.15mm. The inner cavity of this sleeve must accommodate a syringe with a radius of 9.6mm and a wall thickness of 0.5mm. Ensure the sleeve has a minimum wall thickness of 3m...
use<camicia.scad>; use<tubo esternoDD.scad>; R_Siringa=9.6; SpessorePareteSiringa=0.5; R_camicia=31; SpessoreMinimoCamicia=3; H_camicia=74.15; SpessoreMinimoSup=4; DEBUG=0; r_axis=4.35; H=12; union(){ CreaCamicia(R_Siringa,SpessorePareteSiringa,R_camicia,SpessoreMinimoCamicia,H_camicia,SpessoreMinimoSup,DEBUG); ...
glb/cad_fbfe2b80c81c.glb
Create a short, wide cylinder with a radius of 15mm and a height of 1mm. The cylinder should be constructed with a facet resolution of 30 sides, giving it a slightly polygonal rather than perfectly smooth circular cross-section.
$fn = 30; cylinder (h = 1, r = 15);
glb/cad_77b275818f5e.glb
Create a 3DRAG double syringe extruder body. Start with a central rectangular block measuring 50mm in width (X), 41mm in depth (Y), and 80mm in height (Z), centered on the origin. Within this block, create two parallel vertical cylindrical chambers to hold syringes. Each chamber has an outer radius of 17.6mm and an in...
height=80; r_sir=9.6; spessore_camera=0.5; r_est=r_sir+8; y_cube=2*r_est+5; x_cube=4*r_est+12; cut=height+10; eccentricita=6; dist_cam=3; use<barretta.scad>; use<tubo esternoDD pieno.scad>; difference(){ union(){ cube([x_cube,y_cube,height],center=true); translate([-x_cube/2-5,0,0]) barretta(); rotate([0,180,0...
glb/cad_e9aaf761f536.glb
Create a rectangular plate measuring 10mm wide, 60mm long, and 2.5mm thick. Center the plate on the origin. Remove three cylindrical holes, each with a radius of 1.75mm and a depth of 30mm, passing through the thickness of the plate. Position the first hole at the center of the plate. Position the second hole 20mm alon...
barretta(); module barretta(){ difference(){ cube([10,60,2.5],center=true); translate([-1,0,0]) cylinder(h=30,r=3.5/2,$fn=100,center=true); translate([-1,20,0]) cylinder(h=30,r=3.5/2,$fn=100,center=true); translate([-1,-20,0]) cylinder(h=30,r=3.5/2,$fn=100,center=true); } }
glb/cad_121089c5b799.glb
Create a 3DRAG double syringe extruder base. Start with a central rectangular block measuring 140mm in length, 45mm in width, and 20mm in height, centered on the origin. At the front end of the block, integrate a cylindrical section with a radius of 22.5mm and a height of 41mm. Within this section, create a vertical ...
x_cube=140; y_cube=45; raggiodado=7.9; altezzadado=7.1; raggio_cuscinetto=7.85; rasse8mm=4.4; thickness=20; cut=thickness+20; r_sirin=9; rett_sirin=10.8; dist_asta=45; dist_siringa=-56; dist_Ysiringa=5; dist_seager=14; z_cusc=thickness+1+14*2; difference() { union(){ cube([x_cube,y_cube,thickness],center=true);...
glb/cad_3bbcf8d00e18.glb
Create a 3DRAG double syringe extruder mounting block. Start with a central rectangular base measuring 90mm in width, 75mm in depth, and 10mm in thickness. Carve several cylindrical holes through the entire thickness of the block. Position a motor shaft hole with a radius of 3.5mm at coordinates (-10, -13.1, 0). Arou...
blocMotDx(); module blocMotDx(){ x_cube=90; y_cube=75; thickness=10; cut=thickness+20; r_axis=4.5; r_motorshaft=3.5; r_motorbolt=3.8/2; r_vite=5.5/2; bolt_distance = 31; r_boltplates=1.6; y_motor=-y_cube/5.71; x_motor=x_cube/9; difference(){ translate([-5,0,0]) cube([x_cube,y_cube,thickness],center=true); transl...
glb/cad_b6f99a0fad11.glb
Create a 3DRAG double syringe extruder component by constructing a composite vertical geometry based on three stacked cylindrical sections, all with a facet resolution of 30. First, create a central cylinder with a height of 21mm and a radius of 5mm, centered on the Z-axis. To this central piece, add a conical section ...
tuboesterno(5,21,4.5,5,30); module tuboesterno(l2,l3,rag1,rag2,resolution){ difference(){ difference(){ union(){ translate([0,0,16]) cylinder(h=l3,r=rag1,$fn=resolution,center=true); translate([0,0,5]) cylinder(h=l2,r1=rag1,r2=rag2,$fn=resolution,center=true); ...
glb/cad_48844504a416.glb
Create a 3DRAG double syringe extruder base plate. Start with a central rectangular block measuring 90mm in width, 75mm in depth, and 10mm in thickness. Remove several cylindrical holes from this block to create mounting points and shafts. Position a central shaft hole with a radius of 3.5mm at coordinates (10, -13.1...
blocMotSx(); module blocMotSx(){ x_cube=90; y_cube=75; thickness=10; cut=thickness+20; r_axis=4.5; r_motorshaft=3.5; r_motorbolt=3.8/2; r_vite=5.5/2; bolt_distance = 31; r_boltplates=1.6; y_motor=-y_cube/5.71; x_motor=x_cube/9; difference(){ translate([-5,0,0]) cube([x_cube,y_cube,thickness],center=true); transl...
glb/cad_20869f4f8501.glb
Create a Zapfknopf ProfiTap replacement part. Start by creating a main cylinder with a radius of 7.5mm and a height of 20.8mm. At the base of this cylinder, add a wider, flat circular disc with a radius of 12mm and a thickness of 2mm. From the top of the main cylinder, remove a smaller concentric cylinder with a radi...
group() { group(){ difference() { difference() { union() { cylinder($fn = 0, $fa = 12.000000, $fs = 2.000000, h = 20.8, r1 = 7.5, r2 = 7.5, center = false); multmatrix([[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, -2.0], [ 0, 0, 0, 1]]){ cylinder($fn = 0, $fa = 12.000000, $fs = 2....
glb/cad_ea56dcded86d.glb
Create a grill fixing for a VW T25. Start by constructing a base consisting of a rounded rectangle with dimensions 12mm by 18mm and a height of 2.85mm, using a corner radius of 0.667mm. Centered on this base, build a vertical clip. The clip's profile transitions through several stages: the bottom section is a cylinde...
difference() { difference() { union () { color ("Aquamarine") hull() { translate ([0,0,-2.25]) color ("grey") roundedRect ([12,6.5,1.5],0.667); translate ([0,0,-1.25]) color ("grey") roundedRect ([12,18,1.5],0.667); } translate ([0,0,0]) color ("DodgerBlue") roundedRect ([8.3,10.1,2.25]...
glb/cad_33f8476400a0.glb
Create a Coin Sorter for GBP coins consisting of a base box, a top board, and collection tubes. Construct a base box with a height of 50mm. The box should be hollowed out to accommodate a top board, with the walls and bottom having a thickness of 2mm. Integrate four dovetail joints on the sides to allow the top board ...
currency = "gbp2"; height = 50; pattern = "no"; image = 0; part = "all"; understand = 1; coin_1_diameter = 30.61; coin_1_thickness = 2.15; coin_2_diameter = 26.50; coin_2_thickness = 2.00; coin_3_diameter = 24.26; coin_3_thickness = 1.75; coin_4_diameter = 21.21; coin_4_thickness = 1.95; coin_5_diameter = 0...
glb/cad_0e4421be6948.glb
Create a Peugeot 205 interior light anchor. Start with a rectangular base frame measuring 61.7mm in length, 28mm in width, and 2mm in height. The center of this frame should be hollowed out with a rectangular cutout measuring 12mm by 18mm. At each end of the frame, construct vertical support structures. On the left si...
module pestana(){ cube([6,2,2]); difference(){ translate([0,0,2]) cube([6,3,3]); translate([0,3.4,4.8])rotate([45,0,0])cube([12,4.2,4.8], center=true); } } translate([0,28,0])rotate([0,0,180]){ difference(){ cube([22,28,2]); translate([5,5,0])cube([12,18,2]); } translate([0.5,0,2])pestana(); translate([6...
glb/cad_2325e9f634d2.glb
Create a game piece consisting of a central cylinder and two concentric toroidal rings. The main body is a cylinder with a radius of 47.5mm and a height of 25mm. Surround this cylinder with two rings created by rotating a circle with a 2.5mm radius around the Z-axis; position the first ring's center at a diameter of 95...
$fn=50; module tire( diameter, csDiameter ) { render() { rotate_extrude(convexity = 10) translate([diameter/2, 0, 0]) circle(r = csDiameter/2, $fn=20); } } unicorn_file = "unicorn.dat"; rainbow_file = "rainbow.dat"; $fa = 6; $fs = 1.5; image_width = 74.5; image_length = 74.5; image_padding = 4; emboss_he...
glb/cad_586f6cbff109.glb
Create a Garden Connect 4 game piece by starting with a thin cylinder that has a radius of 47.1mm and a height of 1.2mm. On the top surface of this cylinder, create an embossed image based on a rainbow pattern. The embossed area should be scaled to a width and length of 74.5mm and have a height of 1.6mm. To finish the ...
$fn=100; unicorn_file = "unicorn.dat"; rainbow_file = "rainbow.dat"; trooper_file = "trooper.dat"; bones_file = "bones.dat"; sloth_file = "sloth.dat"; sloth2_file = "sloth2.dat"; $fa = 6; $fs = 1.5; image_width = 74.5; image_length = 74.5; image_padding = 4; emboss_height = 1.6; module plate(image_name) { scale...
glb/cad_6a97584f7f48.glb
Create a hollowed-out cylindrical ring with a total height of 25mm and an outer diameter of 100mm. The main body is formed by a thick outer wall with an inner diameter of 90mm, creating a wall thickness of 5mm. The ring is not a simple tube; it features a complex internal stepped profile. From the bottom up, create a...
$fn=100; module tire( diameter, csDiameter ) { render() { rotate_extrude(convexity = 10) translate([diameter/2, 0, 0]) circle(r = csDiameter/2, $fn=20); } } unicorn_file = "unicorn.dat"; rainbow_file = "rainbow.dat"; $fa = 6; $fs = 1.5; image_width = 74.5; image_length = 74.5; image_padding = 4; emboss_h...
glb/cad_bb6f5fdfbeae.glb
Create a Ciclop Simplified 3D scanner mount. Start with a central rectangular block measuring 80mm wide, 30mm deep, and 45mm high, centered on the origin. From this block, remove a camera housing cavity. This cavity is formed by the union of a hull between a 12mm by 52mm by 3mm centered box and a 20mm diameter sphere,...
module camera(){ difference(){ union(){ hull(){ minkowski(){ translate([0,15,1.5]) cube([12,52,3], center=true); cylinder(r=10, $fn=64); } minkowski(){ translate([0,15,16]) cube([2,40,1], center=true); cylind...
glb/cad_9acc71642591.glb
Create a Ciclop Simplified scanner base. Start with a main rectangular body 122mm long, 32mm wide, and 3mm thick. On top of this base, add a central longitudinal ridge 4mm wide and 10mm high, running the full 122mm length. Along the side of this ridge, add a smaller 6mm wide and 3mm high strip. At the front end, add a ...
difference(){ union(){ translate([0,0,0]) cube([122, 32, 3]); translate([0,0,0]) cube([122, 4, 10]); translate([0,35-4,0]) rotate([0,0,-1.5]) cube([122, 4, 10]); translate([0,35-6,0]) rotate([0,0,-1.5]) cube([122, 6, 3]); translate([0,0,0]) cube([6, 35, 18]); translat...
glb/cad_4ecc11ec2e7c.glb
Create a Ciclop Simplified scanner base. Start by constructing a main body that is a hybrid shape: a central block 80mm wide, 40mm deep, and 12mm high, with rounded edges created by a 5mm radius. On top of this, add a centered platform 40mm wide and 40mm deep with a height of 1mm, also with 5mm rounded edges. Integrate...
difference(){ union(){ hull(){ minkowski(){ translate([0,0,6]) cube([80,40,12], center=true); cylinder(r=5, $fn=36); } minkowski(){ translate([0,0,45]) cube([40,40,1], center=true); cylinder(r=5, $fn=36); ...
glb/cad_0b02c98c5993.glb
Create a Ciclop simplified scanner part by starting with a central block. Form the main body by combining a centered rectangular prism of 80mm width, 15mm depth, and 11mm height with a second, smaller centered rectangular prism of 45mm width, 15mm depth, and 1mm height positioned 25mm above the base. Smooth the edges o...
difference(){ union(){ hull(){ minkowski(){ translate([0,0,5]) cube([80,15,11], center=true); cylinder(r=5, $fn=36); } minkowski(){ translate([0,0,25]) cube([45,15,1], center=true); cylinder(r=5, $fn=36); ...
glb/cad_c3cd794daf02.glb
Create a Ciclop Simplified scanner base. Start with a central cylinder 16mm high with a radius of 28.5mm. Around this center, add four symmetrical arms extending outwards. Each arm is formed by a hull connecting a 15mm radius cylinder 14mm high at the center to a 7.5mm radius cylinder 6mm high positioned 50mm from the ...
difference(){ union(){ translate([0,0,0]) cylinder(h=16, r=28.5, $fn=100); for(i=[45:90:360]) hull(){ translate([0,0,0]) cylinder(h=14, r=15, $fn=100); rotate([0,0,i]) translate([50,0,0]) cylinder(h=6, r=7.5, $fn=64); } } translate([0,0,...
glb/cad_c5b2b5542659.glb
Create a Ciclop Simplified scanner part. Start with a central vertical axis. Construct a base cylinder with a radius of 10mm and a height of 8mm. Above this, add a second cylinder with a radius of 8mm and a height of 17mm. On top of that, add a thin transition disk with a height of 1mm that tapers from a radius of 8mm ...
difference(){ union(){ translate([0,0,0]) cylinder(h=17, r=8, $fn=64); translate([0,0,17]) cylinder(h=1, r1=8, r2=7, $fn=64); translate([0,0,0]) cylinder(h=8, r=10, $fn=64); } translate([0,0,-1]) cylinder(h=20, r=2.7, $fn=24); for(i=[0:90:360]) rotate([0,0,i]) translate(...
glb/cad_de3f13642b37.glb
Create a Ciclop Simplified scanner part. Start by constructing a main cylindrical body with a radius of 10mm and a height of 12.5mm, using 64 facets for the circular cross-section. On top of this base, center a second, narrower cylinder with a radius of 3.8mm and a total height of 18mm. This upper cylinder should trans...
difference(){ union(){ translate([0,0,0]) rotate([0,0,22.5]) cylinder(h=12.5, r=10, $fn=64); translate([0,0,0]) cylinder(h=18, r=4-0.2, $fn=36); translate([0,0,18]) cylinder(h=1, r1=4-0.2, r2=3, $fn=36); } translate([0,0,0]) cube([22,3.3,18], center=true); } translate([0,0,9]) cube([...
glb/cad_2a2774acb293.glb
Create a mounting plate for an Arduino UNO. Start with a rectangular base measuring 58mm by 68mm with a thickness of 2.5mm. At each of the four corners of the base, add a cylindrical pillar with a height of 6mm and a radius of 3mm. Each of these four pillars must have a concentric vertical hole through its center with ...
y=-2; x=55.5; difference(){ union(){ translate([0,0,0]) cube([58,68,2.5]); translate([x-2.5,y+14,0]) cylinder(h=6, r=3, $fn=24); translate([x-2.5-5.1,y+14+1.3+50.8,0]) cylinder(h=6, r=3, $fn=24); translate([x-2.5-5.1-27.9,y+14+1.3+50.8,0]) cylinder(h=6, r=3, $fn=24); transla...
glb/cad_333821ba3d95.glb
Create a crayon-shaped cookie cutter with a total length of 120mm and a height of 20mm. The main body is a hollow shell with walls 1.5mm thick. The shape consists of a rectangular base that transitions into a pointed tip. The tip is formed by a polygon that starts at a width of 33mm (the base width) and tapers to a poi...
base_length = 120; quantity_to_print = 2; base_width_factor = 0.275; base_height = 20; tip_length_factor = 0.25; tip_width_factor = 0.03; wall_thickness = 1.5; handle_height = 15; buttress_radius = 6; handle_radius = 2; paper_padding = 7; width = base_width_factor*base_length; tip_length = tip_length_factor*...
glb/cad_90cc8396f287.glb
Create a shopping key clip consisting of a circular chip holder attached to a rectangular handle. Start by creating a cylinder with a diameter of 23.2mm and a height of 2mm to serve as the main chip body. Attached to the side of this cylinder, create a rectangular handle measuring 15mm wide by 25mm long with a thickn...
chip_type = 1; chip_clip = 2; chip_d = chip_type == 1?23.2:25.7; chip_thick = 1.5; keyring_hole = 5; key_length=25; key_width=15; key_tick=chip_thick; grip_grooves_count=5; grip_grooves_width=key_length/(grip_grooves_count*2+2); grip_grooves_tick=key_tick-(key_tick/10); grid_grooves_length = key_width-((key_width/1...
glb/cad_6595448de877.glb
Create a Simple PCB Holder by starting with a central vertical cylinder 30mm high with a 6mm radius. Attach a base formed by the convex hull of two cylinders, each with a 10mm radius and 6mm height, positioned 30mm apart from each other along the y-axis (at y=15 and y=-15) and centered on the x-axis. From this combined...
difference(){ union(){ translate([0,0,0]) cylinder(h=30, r=6, $fn=64); hull(){ translate([-4,-15,0]) cylinder(h=6, r=10, $fn=64); translate([-4,15,0]) cylinder(h=6, r=10, $fn=64); } } translate([10,0,30]) cube([15,20,2.5],center=true); translate([0,0,8.5]...
glb/cad_0f9b010f7973.glb
Create a Power Balance Weight designed as a low-profile circular ring. The main body is a cylinder with an outer diameter of 17.26mm (calculated as 85% of the 20.3mm rod diameter multiplied by 2, minus a small offset) and a height of 4.15mm. At the center of this cylinder, remove a concentric cylindrical hole with a ...
include <batteryPack1.2.scad> DiaD=18.4+0.4; Seg=1; protectionHead=5.05; Height=64.8*Seg+0.15+protectionHead; BatHedH=0.0; BatHedDia=DiaD-0.0; NoBatt=10; RodD=20.3+0.07; fn=100; pitch=1.00; trench_width=4.5; trench_depth=5.5; Mscrew=RodD*.85*2+0.02-trench_width; echo(Mscrew); Tn=5; fn2=180; plate_TK=3.2; top_plate(); ...
glb/cad_5d28d78074bb.glb
Create a Power Balance Weight designed to hold 18650 batteries. The object is a low-profile cylindrical ring with a total height of 3.2mm. The outer boundary is a cylinder with a radius of approximately 8.6mm (based on 85% of the 20.3mm rod diameter minus small offsets). Inside this outer cylinder, remove a concentri...
include <batteryPack1.2.scad> DiaD=18.4+0.4; Seg=1; protectionHead=5.05; Height=64.8*Seg+0.15+protectionHead; BatHedH=0.0; BatHedDia=DiaD-0.0; NoBatt=10; RodD=20.3+0.07; fn=100; pitch=1.00; trench_width=4.5; trench_depth=5.5; Mscrew=RodD*.85*2+0.02-trench_width; echo(Mscrew); Tn=5; fn2=180; plate_TK=3.2; bottom_plate()...
glb/cad_6e301def44fa.glb
Create a center of mass demonstration model by starting with a flat plate 1mm thick. The plate's footprint is defined by a polygon with vertices at [60,0], [120,0], [120,110], [40,110], [0,50], and [60,50]. From this base shape, remove three distinct holes. First, create a circular hole with a radius of 10mm centered a...
difference(){ linear_extrude(height=1)polygon( points= [ [60,0],[120,0],[120,110],[40,110],[0,50],[60,50] ], paths= [ [0,1,2,3,4,5]] ); translate([60,80,-1])linear_extrude(height=3)circle(r=10, center=true, $fn=100); translate([120,80,-1])linear_extrude(height=3)circle(r=20, center=true, $fn=100); hull(){...
glb/cad_580486aa236f.glb
Create a hobbing tool holder by combining two rectangular blocks. First, create a base tool holder block measuring 20mm in width, 40mm in length, and 11.73mm in height. Attached to the side of this, center a second bearing block that is 15.47mm wide, 40mm long, and 26.6mm high. From this combined structure, remove sev...
tool_holder_x = 20; bearing_diameter = 22.6; bearing_height = 8; bolt_diameter = 9; bolt_height = 60; hobbing_width = 30; block_z = bearing_diameter+4; block_x = block_z/1.5; block_y = hobbing_width+(bearing_height*2)+5; tool_holder_y = block_y; tool_holder_z = block_z/2; spacer=0.1; hobbing_tool(); module hobbing_to...
glb/cad_466e00d42abe.glb
Create a Voron CoreXY Fan Cover with a total thickness of 1mm. Start by constructing a square plate with rounded corners, 40mm in diameter, featuring four circular screw holes with a diameter of 3.2mm. These holes should be positioned with a center-to-center spacing of 32mm. In the center of the plate, carve out a hex...
t_wall = 1.0; d_fan = 40; ls_fan = 32; ds_fan = 3.2; voron_scaler = 0.8; voron_support_width = 0.41; voron_length = d_fan*voron_scaler*13.6/16.8; voron_width = d_fan*voron_scaler*2.1/16.8; voron_height = t_wall; $fn = 90; makePlate(); makeVoronSymbol(voron_length, voron_width, voron_height); module makeVoronSymbol...
glb/cad_608ffb5c6245.glb
Create an ultrasonic level sensor sonic cone. Start by constructing a hollow conical frustum with a height of 70mm, a bottom radius of 28mm, and a top radius of 18mm. The interior of this frustum must be hollowed out by a smaller conical frustum with a height of 70mm, a bottom radius of 22mm, and a top radius of 6.5mm....
difference () { { translate([0, 0, -70]) cylinder(h = 70, r1 = 28, r2 = 18, center = false); translate([0, 0, -70]) cylinder(h = 70, r1 = 22, r2 = 6.5, center = false); }} difference () { { translate([0, 0, 0]) cylinder(h = 30, r1 = 18, r2 = 18, center = false); translate([0, 0, 0]) cylinder(h = 30, r1 = 8, r2...
glb/cad_7fb6724ea189.glb
Create a death star model by starting with a sphere that has a radius of 15mm. Add a cylinder with a radius of 5mm and a height of 5mm, positioned at coordinates (13, 7, 7) and rotated 100 degrees on the X-axis, 390 degrees on the Y-axis, and 310 degrees on the Z-axis. Finally, add a smaller cylinder with a radius of 1...
sphere(15); translate([13,7,7]) rotate([100,390,310]) cylinder(5, 5); translate([14,8,7]) rotate([100,390,310]) cylinder(1, 1);
glb/cad_e31f4505cf44.glb
Create a Star Fidget Spinner with 5 points. The body is 7mm thick with rounded corners of 3mm radius. At the center, create a cylindrical hole 22mm in diameter to accommodate a 608 bearing. From the center, extend 5 arms spaced equally at 72-degree intervals. Each arm consists of a hull connecting the center area to ...
points = 5; whichWeight = "5/16 hex nut"; radius = 3; cutouts = "yes"; bearingGlueGroove = 0; weightsGlueGroove = 0; $fn = 60; x = 0; y = 1; z = 2; inch = 25.4; bearing = [22, 22, 7]; sae = [.577*inch, .5 * inch, 7]; sae38 = [.650*inch,.562*inch, 7]; sae12 = [.866*inch, .75*inch, 7]; metric8 = [15, 13, 7]; metri...
glb/cad_fcb02197d8cc.glb
Create a Pineapple Planter by constructing a hollow, tapered vessel with a total height of 250mm. The outer form is built by stacking 10 layers, each 25mm thick. For each layer, create a centered cube that gradually increases in size from the base toward the top, where the maximum width reaches 400mm. To create the tex...
height = 250; layers = 10; width = 400; thickness = 60; spin = 2; base = 60; magicsause = 50; growth = height/layers; difference(){ union(){ difference(){ for (stackcount = [0:growth:height]) { tempwidth = (stackcount/ (stackcount + magicsause))*width; intersection(){ unio...
glb/cad_942d5c0eab07.glb
Create a geometric assembly consisting of a central cube, a cylinder, and a cone. Start by creating a cube with side lengths of 10mm, centered on the origin. Drill a cylindrical hole with a radius of 1.1mm and a height of 11mm through the center of the cube along the Y-axis. Position a cylinder with a radius of 5mm an...
$fn =50; yA=[$t*10,0,0]; xA=[0,$t*20,0]; y=[10,0,0]; x=[0,10,0]; z=[0,0,10]; translate( [0,50,0] ) { explode(xA, center=true,enable=true) { part1(); rotate ([180,0,0]) part1(); } explode(yA, center=false,enable=true) { part2(); part3(); part...
glb/cad_53fe4ba9cc62.glb
Create a Pagoda 2 antenna cover by constructing a revolved profile that is then split in half. The profile is defined by a series of connected points starting from the bottom center. Begin with a base radius of 6.3mm, extending outward to 7.8mm (base radius plus a 1.5mm wall). The profile rises vertically through sever...
topDiameter = 23; middleDiameter = 23; bottomDiameter = 12.6; topThickness = 2; middleThickness = 2; bottomThickness = 2; topDistance = 2.6; bottomDistance = 2.7; wall = 1.5 ; overhang = 0.8; fine = 100; cutPoints = [ [ bottomDiameter / 2 - overhang , 0 ], [ bottomDiameter / 2 + wall , 0 ], [ middleDiameter / 2...
glb/cad_3a0994e79831.glb
Create a Customizable Shutter Crank Hook consisting of a mounting base and a cylindrical holder. Start with a rectangular mounting plate measuring 60mm wide, 20mm high, and 5mm thick, with rounded corners on the top face. In this plate, create two chamfered screw holes centered at +/- 20mm from the middle along the wid...
module chamfered_screw_hole(screw_diameter, screw_length, head_diameter, head_length) { cylinder(h = screw_length,d = screw_diameter); translate([0, 0, screw_length]) cylinder(h = head_length,d2 = head_diameter, d1 = screw_diameter); } $fs = 0.01; module roundedcube(size = [1, 1, 1], center = false, radius = ...
glb/cad_16e78fdf9813.glb
Create a Yin Yang necklace pendant with a total thickness of 5mm and an overall diameter of 50mm. The main body is a disc based on the Taijitu symbol, where the shape is split into two interlocking, swirling halves. To form the geometry, start with a cylinder 50mm in diameter and 5mm thick. Divide this disc into two ...
module yinyang (length, rotation,thick,hole,cutangle){ linear_extrude(height = length, center = true, convexity = 10, twist = rotation) difference() { union() { difference() { circle (r=thick/2,center=true); translate([0,thick/2,0]) square ([thick,thick],center=true); translate([thick/4,0,0]) circle(...
glb/cad_2035fe8b1aae.glb
Create a power box with overall dimensions of 53mm width, 70mm length, and 32mm height. The main body is a rectangular shell with a wall thickness of 2mm. Round the corners of the top face with a 2mm radius. Hollow out the center of the box, leaving the walls and the top face intact, but leave the bottom open. Cut a r...
include <../common/roundedcube.scad> include <../common/prism.scad> PLUG_WIDTH = 27; PLUG_HEIGHT = 19; PLUG_SCREW_DIAMETER = 3; PLUG_SCREW_SPACE = 42 - PLUG_SCREW_DIAMETER; TOLERANCE = 0.2; BUTTON_WIDTH = 29; BUTTON_HEIGHT = 22; BOX_WIDTH = BUTTON_WIDTH + 24; BOX_HEIGHT = BUTTON_HEIGHT + 10; BOX_LENGTH = 70; BOX_R...
glb/cad_c92d804595c7.glb
Create a Laboratory pH Probe Mount and Guard by constructing a hollow vertical cylinder with an outer radius of 12.5mm and an inner radius of 6.5mm, extending to a height of 50mm. At the top of this cylinder, add a tapered cap that transitions from the 12.5mm outer radius down to a 10mm radius over a height of 10mm, wh...
difference () { { translate([0, 0, 0]) cylinder(h = 50, r1 = 12.5, r2 = 12.5, center = false); translate([0, 0, 0]) cylinder(h = 50, r1 = 6.5, r2 = 6.5, center = false); translate([-20, -5, 0]) cube ([40,10,10], centre = false); translate([-5, -20, 0]) cube ([10,40,10], centre = false); translate([-20, 0, 10]...
glb/cad_4b36e999fbf4.glb
Create a Laboratory pH Probe Mount and Guard consisting of three stacked coaxial sections with a continuous central hole. Start with a bottom section that is 10mm high, tapering from a base radius of 10mm to a top radius of 12.5mm, with a central hole of 6.5mm radius. Place a middle section on top of this, which is a c...
difference () { { translate([0, 0, 0]) cylinder(h = 30, r1 = 12.5, r2 = 12.5, center = false); translate([0, 0, 0]) cylinder(h = 30, r1 = 6.5, r2 = 6.5, center = false); }} difference () { { translate([0, 0, 30]) cylinder(h = 20, r1 = 15, r2 = 15, center = false); translate([0, 0, 30]) cylinder(h = 20, r1 = 6....
glb/cad_80cd5337764e.glb
Create a Large iPad Docking Station with a footprint of 100mm width, 100mm depth, and 40mm height. Start with a base consisting of a 100mm by 100mm by 10mm rectangular slab. Add a front support piece that is 25mm wide, 100mm long, and 35mm high, tilted back at a 15-degree angle. Behind this, place a back support bloc...
difference () { union() { difference () { union () { rotate ( [ 0 , 15, 0 ] ) translate ( [ 0, 0 , 10 ]) cube ( size = [25, 100, 35] ) ; translate ( [2.5 , 0 , 0] ) ...
glb/cad_ee42573fa37e.glb
Create a spool holder consisting of two symmetrical mirrored brackets. For each bracket, start with a base block that is 55mm wide, 10mm deep, and 15mm high. Round the edges of this block using a 1mm radius. On the inner face of the block, create a central rectangular cutout 50.5mm wide, 4mm deep, and 18mm high to ac...
module base() { minkowski() { minkowski() { cube([55, 10, 15], center=true); difference() { sphere(r=1, $fn=32); translate([0,-1,0]) cube([2,2,2], center=true); } } } } module routed_base() { difference() { base();...
glb/cad_ec1d28bf5f0c.glb
Create a MIDI Bass Pedal Controller consisting of a pedal and a supporting bed. For the pedal, create a main body with a length of 100mm (for black keys) or 160mm (for white keys), a width of 25mm, and a height of 10mm. Hollow out the interior to dimensions of 94mm by 19mm by 5mm. At the front end, integrate a bumper...
PrintTOP = true; PrintBOTTOM = true; CutBumperTop = false; largo= 100; ancho = 25; alto = 10; largo2= largo-6; ancho2 = ancho-6; alto2 = alto-5; Space=8; LargoBed=largo+6; AltoBed=4; AnchoBed=ancho+6; Gap=9; BumperLenght = 22; BumperRadius = ancho/2; r = 6; r2 = 5; Air = 0.12; if (PrintTOP == true) { translate ...
glb/cad_c14aa3c64c33.glb
Create a threaded ring with an outer male thread and an inner female threaded hole. The overall height of the object is 30mm. First, construct the main body as a male ISO thread with a major diameter of 50mm, a pitch of 3mm, and a thread angle of 40 degrees. The resolution should be set to 60 segments per rotation to ...
function _numSections(numTurns) = 1+numTurns*$fn; extrusionNudge = 0.001; function threadPoints(section,radius,numTurns,lead) = let (n=len(section), m=_numSections(numTurns) ) [ for (i=[0:m-1]) for (j=[0:n-1]) let (z=i/$fn*lead, angle=(i%$fn)/$fn*360, ...
glb/cad_5e07d27c0c61.glb
Create a Parametric Lens Mount Ring designed to secure a lens to a tripod. Start by creating a main ring with an inner diameter of 65mm, an outer diameter of 73mm, and a width of 17.5mm. On one side of the ring, integrate a clamp mechanism. This clamp consists of a block that extends outward from the ring, featuring ...
use <write/Write.scad> use <utils/build_plate.scad> ring_model = 65.01; ring_custom_dia = 0; ring_tolerance = 0; add_alignment_marks = "Yes"; clamp_side = 1; clamp_bolt_hole_dia = 6.35; foot_width = 40; foot_length = 55; foot_to_ring = 12; tripod_screw_dia = 6.35; tripod_screw_thread_hardware = "tnut"; t_nu...
glb/cad_b86cf44c4b8a.glb
Create a coffee filter paper holder by constructing a hollow, tapered bin with a flat rectangular base. Start with a solid rectangular base plate measuring 100mm wide, 36mm deep, and 1.6mm thick. Centered on this base, build a tapered shell with a wall thickness of 1.5mm. The interior cavity of this shell should start ...
width_b = 55.0; width_t = 165; depth = 30.0; height = 70.0; wall = 1.5; base = 100.0; module shell(wb,wt,h,d) { hull() { translate([-wb/2,d/2,0]) rotate([90,0,0]) cylinder(d,2,2); translate([+wb/2,d/2,0]) rotate([90,0,0]) cylinder(d,2,2); translate([-wt/2,d/2,h]) rotate([90,0,0]) cylinder(d...
glb/cad_fb37e26a53e5.glb
Create a 2.5" HDD-Holder designed to stack two hard drives. Start by creating a rectangular base plate with dimensions 119mm in length, 45mm in width, and 4mm in thickness. At each of the four corners of this base plate, construct vertical support pillars. Each pillar must be a rounded cube with a footprint of 24mm b...
hddwidth = 83; hddlength = 111; hddheight = 16.4; thk = 4; th2 = thk*2; spacerheight = 75; cutoutxy = 20; spacerxy = cutoutxy+thk; offset = 40; $fn=64; Spacer(150); module Spacer(size=150, $fn=50){ difference(){ spacer(); translate([thk,thk,thk]) cutout(); translate([thk,thk,spacerheig...
glb/cad_dd2ef0890fa5.glb
Create a blade guard with a main body length of 155mm and a total width of 18mm. The body is formed by a hull connecting two 10mm diameter cylinders positioned at the start and end of the width, and a larger cylinder with a 21mm diameter at the far end. Carve a central slot through the body to accommodate a blade tha...
use<Writescad/write.scad> mainLength = 155; Text1 = "Blade Guard"; Text2 = "by D.Viejo"; mainWidth = 18; bottomHeight = 11; bladeWidth = 4.15; wallWidth = (mainWidth - bladeWidth) / 2; topHeight = 10; totalHeight = bottomHeight + topHeight; endDiam = totalHeight*2; textHeight = 2; textSize = 6; charLength = textSiz...
glb/cad_f92fcdd57d94.glb
Create a Raspberry Pi holder for a Samsung TV. The model consists of two primary components: a TV mounting section and a Pi enclosure section. For the TV mounting section, create a base structure using a thickness of 2.7mm. Construct a main body by combining a cube of 2.7mm x 2.7mm x 2.7mm with an adjacent block of 8....
create=1; pi_type = 1; samsung_slots = 3; holder_thick = 3; holder_samsung_thick=holder_thick-(holder_thick/10); pi_width = pi_type == 1 ? 65: 72; pi_height = pi_type == 1 ? 29.3 : 11; pi_length = pi_type == 1? 90:35; holder_quarrection_length = pi_type == 1?17*samsung_slots:5*samsung_slots; holder_pi_poor_rotation=...
glb/cad_a5ab8d8c2354.glb
Create a customizable distance holder by constructing a hollow cylinder. Start with a solid outer cylinder that has a height of 6mm and an outer diameter of 6mm. Remove a concentric inner cylinder from the center to create a hole with a diameter of 3mm and a height of 6mm, resulting in a tube with a consistent wall thi...
$fn=128; height = 6; od = 6; id = 3; difference () { cylinder(h=height, d=od); cylinder(h=height, d=id); }
glb/cad_1b26ab19b936.glb
Create an inlet adapter for a submersible aquarium pump. Start with an outer ring that is a cylinder 10mm high with a radius of 20mm. This ring has a central hole with a 10mm radius extending through its height. The outer ring features a rim detail: a cylinder of radius 22mm and height 2.7mm is positioned at z=2, while...
nozzle(); resolution=64; radius=20; height=10; difference() { difference() { cylinder(h=height, r=radius, $fn=resolution); difference() { translate([0, 0, 2]) { cylinder(h=2.7, r=radius+2, $fn=resolution); } translate([0, 0, 1.9]) { cylinder(h=2.7, r=radius-2, $fn=resolution); cylinder(h=1....
glb/cad_261fb8f8ca41.glb
Create a pair of self-adjusting glasses frames with a total thickness of 5mm. The front consists of two circular lens housings, each with an outer diameter of 53.5mm and an inner cutout diameter of 48.5mm. Position these lenses so that their inner edges are connected by a nose bridge created by rotating a 2.5mm radius ...
Lens_Diameter=48.5; Pupil_to_Pupil=70; Nose_Bridge_Length=20; Head_Width=151; Syringe_Tube_Diameter=4.5; Stem_Width=5; Stem_Thickness=3; Hinge_Pin_Diameter=1.75; Hinge_Width=6; Hinge_Length=5; Hinge_Thickness=5; Res=50; Frame_Thickness=5; module Glasses(); { translate([(Pupil_to_Pupil)/-2,0,0]) Lens_Right(); ...
glb/cad_4008363d7b63.glb
Create a glasses stem with a hinge mechanism. Start by forming the main arm using a hull of a cylinder with a radius of 1.5mm and a length of 100mm, combined with a rectangular section 5mm wide, 6mm long, and 5mm thick. At the end of the arm, incorporate a curved section with a radius of 5mm and a length of 30mm. For ...
Stem_Length=100; Stem_Width=5; Stem_Thickness=3; Stem_Curve_Length=30; Hinge_Pin_Diameter=1.75; Hinge_Width=6; Hinge_Length=5; Hinge_Thickness=5; Slider_Thickness=4; Tube_Diameter=11; Tube_Inner_Diameter=8; Tube_Compressed_Thickness=1.2; Tube_Compressed_Width=18; Tube_Holder_Wall_Thickness=3; Outlet_Tube_Inner_Diameter...
glb/cad_4f71356f692b.glb
Create two window shade hanger brackets. Each bracket has a base 20mm wide and 25mm high, with a total thickness of 12mm. The base is a rectangle with 3mm rounded corners that extends into a pointed tip, reaching a total length of 32mm. The top and bottom surfaces of the bracket are not flat; instead, the thickness i...
height = 25; width = 20; tip = 32; thickness = 12; plastic_thickness = 6; corner_radius = 3; screw_head_radius = 4; screw_head_depth = 3.5; screw_shaft_radius = 2.25; angles = 50*2; cutaway_polygon = [[tip,thickness],[tip-10,thickness],[width-2,plastic_thickness],[0,plastic_thickness],[0,0],[width,0],[tip-8,th...
glb/cad_7746d9def42b.glb
Create a power switch bracket with a total thickness of 3mm. The main body is a flat plate with a complex polygonal footprint. Start with a rectangular section that transitions into a wider base. On the wider base section, place four circular mounting holes, each with a radius of 2.5mm; two holes are positioned at x=14...
height = 3; translate([63,20,height]) rotate([0,180,0]) difference() { translate([0,14,0]) difference() { union() { linear_extrude(height=height) polygon(points=[[0,-14], [40,-14], [40,50], [-7,90], [-30,50], [0,20]]); translate([-63,0,-4]) rotate([0,90,60]) translate([0,0,60]) difference() ...
glb/cad_c15f99c90e80.glb
Create a power supply mounting bracket for a Mendel printer. Start by constructing a base block 16mm wide, 25mm deep, and 5mm thick. At the center of the back edge, add a semi-cylindrical protrusion with a radius of 8mm and a height of 5mm, using a 20-facet resolution. From this combined base, remove a central cylindri...
include <d:/!r/openscad-2011.12.30/libraries/mcad/teardrop.scad> mirror([1,0,0]) union() { difference() { union() { translate([8,25,0]) cylinder(r=8, h=5, $fn=20); cube([16,25,5]); } union() { translate([8,25,0]) cylinder(r=4, h=5, $fn=20); translate([4,0,0]) cube([7.5,25,5]); transla...
glb/cad_727987711bc6.glb
Create a Super Simple Fidget Spinner consisting of two mirrored body halves and two end caps. For each body half, create a central cylindrical hub 27mm in diameter and 6.2mm high. Subtract a central hole from the hub with a bottom diameter of 20mm and a top diameter of 22.4mm to accommodate a bearing. Extend two arms...
difference(){ union(){ translate([0,30,0]) cylinder($fn=50, h=6.2, d=27); translate([23.5,30,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,30,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,30,0]) cylinder($fn=50, $fs=.5, h=5.5, d=4.9); translate([-23.5,30,0]) cylinder($fn=50, $fs=.5, h=5.5, d=4.9); transl...
glb/cad_b84d75f20459.glb
Create a Super Simple Fidget Spinner consisting of a central hub, two outer bearing mounts, and two removable caps. Start with a central hub: a cylinder 9mm high with a bottom diameter of 27mm tapering to a top diameter of 25mm. Remove a central vertical hole from this hub with a bottom diameter of 22mm and a top dia...
difference(){ union(){ translate([0,0,0]) cylinder($fn=50, h=9, d1=27,d2=25); translate([23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translate([-23.5,0,0]) cylinder($fn=50, $fs=.5, h=10.5, d=8); translat...
glb/cad_459eb5e6d7b5.glb
Create a Super Simple Fidget Spinner consisting of a central body and two removable caps. For the body, start with a central cylinder 24mm in diameter and 9mm high. Add a rectangular block across the center measuring 46mm wide, 8mm deep, and 2mm thick, centered on the cylinder. At each end of this block, 23.5mm from th...
difference(){ union(){ translate([0,0,1]) cube([46,8,2], center =true); translate([0,0,0]) cylinder($fn=50, h=9, d=24); translate([23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([-23.5,0,0]) cylinder($fn=50, h=2.5, d=10); translate([23.5,0,0]) cylinder($fn=50, h=10.5, d=8); translate([-23.5,0,0]) cylinder($fn=50...
glb/cad_41e089dd769a.glb
Create an E3D Titan Mount for a Prusa i3 Mk2 X carriage. Start with a base rounded rectangle measuring 64mm by 28mm with a height of 10mm and corner radii of 5mm. Add a vertical mounting wall by creating a rounded rectangle of 55.5mm by 50mm with a height of 18mm and corner radii of 5mm, positioned at X=17.5, Y=-1.5,...
module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(x/2)-(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(-x/2)+(radius/2), (y/2)-(radius/2), 0])...
glb/cad_97f9ec61e40d.glb
Create a ball clip by combining a sphere and a rectangular handle, then removing specific geometric volumes to create a socket. Start by joining a sphere with a diameter of 10.4mm and a rectangular prism measuring 100mm in length, 5mm in width, and 4mm in height, positioned so the prism extends from the sphere. To form...
difference (){ union (){ translate ([0,-2.5,-2]) cube (size = [100,5,4]); sphere(5.2, $fn=100); } sphere(4, $fn=100); rotate([0,0,45]) translate ([0,0,-4.5]) cube (size = [15,15,5], center = true); rotate([0,0,45]) translate ([0,0,-3]) ...
glb/cad_1ed47777efdb.glb
Create two sliding closet door pull cups. Each cup is a hollowed-out cylinder with a total height of 11mm. The main body of the cup has an outer radius of 21.6mm and a wall thickness of 1.25mm, creating an internal void with a radius of 20.35mm. This main cylindrical body extends to a height of 8.7mm, where it is toppe...
cups_to_print = 2; total_height = 11; cup_height = 8.7; cup_outer_radius = 21.6; lip_overlap = 5; wall_thickness = 1.25; radial_segmets = 100*1; cups_per_row = 3*1; cup_center = cup_outer_radius+lip_overlap; function cup_offset(i) = [ floor(i/cups_per_row)*((cup_center*2)+5), (i%cups_per_row)*((cup_center*2)...
glb/cad_d60f17f43ed8.glb
Create a Shopping Cart Token consisting of a central disc and a series of surrounding flattened elliptical shapes. Start by creating a smooth cylinder with a radius of 12mm and a height of 2mm, centered on the Z-axis. To form the decorative wing-like elements, place a series of flattened cylinders, each 2mm thick, exte...
union() { translate(v = [0,-1,0]) cylinder($fn=120,h = 2, r1 = 12, r2 = 12, center = true); translate(v = [2.5, 12.5, 0]) rotate(a=[0,0,20]) scale(v = [0.5, 0.25, 1]) cylinder($fn=120,h = 2, r1 = 12, r2 = 12, center = true); translate(v = [5, 18.5, 0]) rotate(a=[0,0,20]) scale(v = [0.75, 0.25, 1]) ...
glb/cad_8f9619abe6ef.glb
Create a Sliding Closet Door Bottom Guide. Start with a base plate that is 23mm wide and 5.25mm thick. The base length is determined by a central post width of 5mm, two outer post widths of 5mm, and a gap of 38mm between the posts, with 5mm of padding on the ends. The ends of the base are rounded with a radius of 11.5m...
total_height = 32; base_height = 5.25; base_width = 23; post_thickness = 5; distance_between_posts = 38; screw_hole_radius=2; screw_sink_depth=2; screw_sink_radius=4; overlap_pad = 1*1; base_padding = 5*1; function center_post_dimensions() = [post_thickness,9,total_height+overlap_pad]; function outside_post_dim...
glb/cad_a8c5165bffd5.glb
Create a Circle Mapping Function model consisting of a central point and several linear arms. Start by creating a thin ring with a radius of 100mm, constructed from 36 segments of 10-degree arcs, where each segment is a hull between two 1mm cubes positioned 100mm from the center. From the center of this ring, extend th...
amplitude = 100; pi = 3.14159265358979323846; waveform_sin = (sin($t*360))*amplitude; waveform_cos = (cos($t*360))*amplitude; color("purple") hull() { cube(1,center=true); translate([(waveform_cos),(waveform_sin),0]) cube(1,center=true); } color("blue") hull() { cube(1,center=true); translate([(wave...
glb/cad_d8254fd45274.glb
Create a heart-shaped planter with a total height of 30mm. The main body is formed by a heart shape with a size of 30mm, extruded to the full height. The heart is hollowed out by removing a smaller heart shape from the center, leaving a wall thickness of 2mm. To complete the planter, add a vertical cylindrical hole wit...
$fn=60; h_height=30; hc_height=10; h_size = 30; t = 2; support_r=3; support_h=3; planter = 1; module flat_heart( h, s) { square(s); translate([s/2, s, 0]) circle(s/2); translate([s, s/2, 0]) circle(s/2); } module heart( h, s){ difference() { linear_extrude(height=h) flat_heart( h, s); ...
glb/cad_0bf389c51d3b.glb
Create a Socket Block by starting with a rectangular base measuring 32mm wide, 64mm long, and 16mm thick. On the top face, create four identical rectangular slots for USB connectors. Each slot should be 17.6mm wide, 8.8mm long, and 8.8mm deep, spaced evenly along the length of the block. To allow the blocks to inter...
BLOCK_LENGTH=64; BLOCK_WIDTH=32; BLOCK_THICKNESS=16; TAB_THICKNESS=6; TAB_DIAMETER=4; TAB_SLOT_THICKNESS=TAB_THICKNESS*.66; TAB_SLOT_LENGTH=2; TAB_SLOT_WIDTH=TAB_DIAMETER/2; TAB_LENGTH=TAB_SLOT_LENGTH+(TAB_DIAMETER/2); TAB_NOTCH_TOLERANCE=1.1; USB_BASE_WIDTH=16; USB_BASE_LENGTH=7.5; USB_BASE_DEPTH=8; USB_TOLERANCE=1...
glb/cad_f608c09d9850.glb
Create a rectangular prism with dimensions of 25mm in length, 60mm in width, and 40mm in height. On the faces of the prism, engrave the following labels and area calculations into the surface at a depth of 0.5mm: - On the front and back faces (length x height), engrave the length "5 m" and the area "A = 40 m^2". - On...
length = 5; width = 12; height = 8; scale = 5; labelDepth = .5; units = "m"; labelOffset = 2; labels = "True"; lengthLabel =str(length, " ", units); widthLabel = str(width, " ", units); heightLabel = str(height, " ", units); lengthLabelLength = 8.208*len(lengthLabel); widthLabelLength = 8.208*len(widthLabel); heigh...
glb/cad_c9a09752006a.glb
Create a right triangular prism with a base triangle of 36mm by 15mm and a prism length of 36mm. The prism is oriented such that its length extends along the Y-axis. On the three rectangular faces of the prism, embed the following labels as recessed text with a depth of 0.5mm: on the face corresponding to the 15mm si...
triangleBase = 12; triangleHeight = 5; prismHeight = 12; units = "mm"; scale = 3; labelOffset = 2; labelDepth = .5; hypLabelLocRatio = .3; triAngle = atan(triangleBase/triangleHeight); triangleBaseLabel = str(triangleBase, " ", units); triangleHeightLabel = str(triangleHeight, " ", units); prismHeightLabel = str(prism...
glb/cad_7a05156bd448.glb
Create a lamp stem assistant by designing a small, flat handle with a central hole. Start with a base shape that is a combination of a 10mm wide by 20mm deep rectangle and two semi-circles with a 5mm radius attached to the opposite ends, resulting in an oblong pill shape with a total length of 20mm and a width of 10mm....
difference() { translate([-5, -10, 0]) cube([10,20,5]); translate([0,0,-1]) cylinder(h=10, r=3.1, $fn=50); } translate([0,-10,0]) difference() { translate([0,0,0]) cylinder(h=5,r=5,$fn=50); translate([-5,0,-1]) cube([20,20,20]); } translate([0,10,0]) rotate([0,0,180]) difference() { translate([0,0,0]) ...
glb/cad_0c4141ba9ddd.glb
Create a Plotter Pen by revolving a specific profile around a central vertical axis. The total height of the object is 44mm. Starting from the bottom tip (0mm), the profile begins with a very sharp point, expanding rapidly to a radius of 0.925mm at 2.5mm height, then stepping out to 1.75mm at 2.85mm height. It continue...
module plotter_pen(height=44) { pen_diameter = 11.5; band_full_thickness = 2; band_edge_thickness = 1.3; band_full_diameter = 16.5; band_edge_diameter = 13.5; band_mid_height = 28.3; profile = [ [0,0], [0.1, 0], [0.2, 0.1], [0.925, 2.5], [0.925, 2.85], [1.75,...
glb/cad_a78cd37b5926.glb
Create a Simple Center Finder tool consisting of a central rectangular bar with two cylindrical pegs at each end. The main bar should be 142mm long, 8mm wide, and 1.5mm thick. Center a circular hole with a 3mm diameter through the thickness of the bar at its exact midpoint. At both ends of the bar, attach a cylinder wi...
$fn=75; minimumBarW = 3; minimumBarH = 2; minimumBarL = 9; minimumHoleD = 1; cylinderDiameter = 8; cylinderHeight = 9; holeDiameter = 3; toolLength = 150; minimumCylinderW = holeDiameter * 2 > minimumBarW ? holeDiameter * 2 : minimumBarW; minimumCylinderH = minimumCylinderW/2; barHeight = toolLength / 100; cylind...
glb/cad_6c3b4ece61ce.glb
Create a storm door bracket starting with a rectangular base measuring 40mm by 40mm with a thickness of 7.5mm. On top of this base, add a triangular prism with a length of 40mm and a height of 65mm, extruded to a depth of 16mm, positioned at coordinates (0, 28, 5). Additionally, attach a rectangular block measuring 15m...
$fn = 100; rotate([0,-90,0]){ difference(){ union(){ cube([40,40,7.5]); translate([0,28,5]){ rotate([90,0,0]){ triangle(65,40,16); } } translate([0,12,45]){ cube([15,16,25]); } ...
glb/cad_252b4238c5f3.glb
Create a Nanopore Poster Tube Cover designed as a low-profile circular rack. Start with a base cylinder that has a diameter of 97.5mm and a height of 5mm. From the center of this base, remove a large central cylindrical hole with a diameter of 49.1mm and a depth of 40.4mm to accommodate the main tube. Around this cen...
ptd=82.5; td=ptd/1.67; th=40; rt=5; tc=10; xw=0.4; ww=2; tg=5; pl=td/4; pc=24; pa=(360/(pc*2)); ts=td*2; ys=sqrt(ts*ts - (ts*ts/4)); difference(){ union(){ #cylinder(d=ts, h=rt); } translate([0,0,rt*0.25]) cylinder(r=(td+pl*2+xw)/2, h=th+xw); } function pp(px) = [px,sin(pa/2)*px]; function npp(px)...
glb/cad_44cfa457bed3.glb
Create a differential screw consisting of a main cylindrical body and a hexagonal adjustment knob. Start with a main cylinder 25mm in diameter and 68mm high. At the top, add a hexagonal knob 35mm in diameter and 16mm high, connected to the main body by a 3mm high conical taper that transitions from 25mm to 35mm in diam...
include <screw_thread_library.scad> rotate([0, 180, 0]) translate([0, 0, -72]) difference() { union() { translate([0, 0, 0]) cylinder(d = 25, h = 68, $fn = 160); translate([0, 0, 56.0]) cylinder(d = 35, h = 16, $fn = 6); translate([0, 0, 53.0]) cylinder(d1 = 25, d2 = 35, h = 3, $fn = 6)...
glb/cad_3787e1704ec1.glb
Create a differential screw consisting of a hexagonal knob and a threaded shaft. Start by creating a hexagonal prism for the knob with a diameter of 25mm and a height of 6mm. Centered on top of this knob, add a cylindrical shaft with a diameter of 20mm and a height of 2mm, starting at a height of 5.9mm. On this shaft, ...
include <screw_thread_library.scad> union() { difference() { union() { translate([0, 0, 0]) cylinder(d = 25, h = 6, $fn = 6); translate([0, 0, 5.9]) cylinder(d = 20, h = 2, $fn = 160); translate([0, 0, 5.9]) thread(2.25, 20, 3, 20, 0, false); } transl...
glb/cad_676c15eaf283.glb
Create a differential screw output shaft by starting with a main cylinder 16mm in diameter and 25mm in height. At the base of this cylinder, centered at a height of 1mm, remove a spherical void with a diameter of 5.6mm. To prevent rotation, add three linear guide pins, each 2mm in diameter and 25mm long, positioned 8mm...
include <screw_thread_library.scad> union() { difference() { translate([0, 0, 0]) cylinder(d = 16, h = 25, $fn = 160); translate([0, 0, 1]) sphere(d = 5.6, $fn = 100); } translate([8, 0, 0]) cylinder(d = 2, h = 25, $fn = 100); rotate([0, 0, 120]) translate([8, 0, 0]) cylinder(...
glb/cad_849d5fd0a22f.glb
Create an adapter for a submersible aquarium pump by constructing a hollow vertical tower with a continuous central hole 10mm in diameter. Start with a base cylinder 40mm tall with an outer radius of 7mm. Add three conical sections, each 10mm tall, positioned along the vertical axis to create flared ridges. The first c...
resolution=64; difference() { union() { cylinder(h=40, r=7, $fn=resolution); stopper(2, 7, 8); stopper(9, 7, 8); stopper(16, 7, 8); } translate([0, 0, -0.1]) { cylinder(h=41, r=5, $fn=resolution); } } module stopper(z, ra, rb) { translate([0, 0, z]) { cylinder(h=10, r1=ra, r2=rb, $fn=resolution); } ...
glb/cad_462e4201b8b6.glb
Create a rectangular protection cover for an mcHF transceiver by constructing a hollow shell. Start with a solid rectangular block measuring 194.2mm in length, 80.3mm in width, and 26mm in height. From the center of this block, remove a smaller rectangular volume measuring 190.2mm by 76.3mm by 24mm. Position this inner...
difference(){ cube ([194.2,80.3,26], center=true); #translate([0,0,1])cube ([190.2,76.3,24], center=true); }
glb/cad_345a9330049a.glb
Create an Enhanced Parametric Shaft Collar by starting with a main cylinder that has a radius of 22.7mm (the sum of a 12.7mm shaft radius and 10mm collar width) and a height of 15mm, centered on the Z-axis. Remove a hexagonal prism from the center with a height of 15mm and a radius of 12.7mm divided by the cosine of 30...
shaft_diameter = 25.4 / 2; collar_width = 15; collar_height = 15; bolt_diameter = 3; nut_width = 6; nut_thickness = 4; nut_inset=2; split_width = 1; two_piece=true; hex_shaft=true; shaft_radius = shaft_diameter / 2; difference() { cylinder ( r = shaft_radius + collar_width, h = collar_height, center = true); if (...
glb/cad_5f76a187b782.glb
Create a coffee stir holder consisting of a hexagonal container with a tapered profile. The main body is formed by a hexagonal ring with an outer diameter of 88mm and an inner diameter of 86mm, extruded to a height of 64mm. The walls should taper slightly inward toward the base. Along the upper inner rim, add six sma...
module bump(x,r){ rotate(r) polyhedron( points=[[-.6*x,0,0], [.6*x,0,0], [.6*x,0,.4*x], [-.6*x,0,.4*x], [-.4*x,.1*x,.35*x], [.4*x,.1*x,.35*x]], faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]] ); } union(){ difference() { rotate([180,0,0]) ...
glb/cad_608413fc122d.glb
Create a coffee stir holder consisting of a tapered hexagonal vessel. The main body is formed by two stacked hexagonal sections. The bottom section is a hollow hexagonal prism with a height of 64mm, an outer diameter of 88mm, and a wall thickness of 1mm, tapering slightly inward. The top section is a hollow hexagonal p...
union() { difference() { rotate([180,0,0]) translate([45, -39,-63.9]) linear_extrude(64, scale=.89) circle(44,$fn=6); rotate([180,0,0]) translate([45, -39,-64]) linear_extrude(63.05, scale=.89) circle(43,$fn=6); } difference() { translate([45, 39,61]) linear_ex...
glb/cad_199d8ee625ce.glb
Create a Bed Center Calibration tool with a total height of 0.2mm. The design is centered on the origin and based on a modified bed size of 180mm by 180mm (90% of a 200mm square bed). First, create a solid rectangular base measuring 180mm in width, 180mm in depth, and 0.2mm in height. From this base, remove four small...
echo(version=version()); bedWidth = 200; bedDepth = 0; rectangle_ratio = 1.0; nozzle_line_width = 0.4; print_height = 0.2; printModifier = 0.9; union(){ tolerance = 0.5; calcBedWidth = printModifier * bedWidth; calcBedDepth = printModifier * (bedDepth == 0 ? bedWidth*rectangle_ratio : bedDepth); calcR...
glb/cad_916267d95769.glb
Create a blender jug lid plug by starting with a main cylinder 40mm high with a radius of 23.5mm. At a height of 26mm, add a wider, thin cylindrical stopper disk with a radius of 26mm and a thickness of 2mm. On top of the entire assembly, place a flattened spherical cap with a radius of 27mm and a height of 4.05mm, cen...
fn = 100; cylinder(h=40, r=23.5, $fn=fn); translate([0, 0, 26]) cylinder(h=2, r=26, $fn=fn); translate([-24.5, 0, 12]) scale([3, 7, 4]) cube(size=1, center=true); rotate(a=[0, 0, 120]) translate([-24.5, 0, 12]) scale([3, 7, 4]) cube(size=1, center=true); rotate(a=[0, 0, -120]) translate([-24.5, 0, 12]) scale([3, 7...
glb/cad_cc0ac49c9543.glb
Create a Loki-X2 Racing Drone Camera Mount. Start with a main rectangular body measuring 18mm wide, 11mm deep, and 6mm high. From this body, remove a central camera cavity that is 14mm wide and 7mm deep, tilted upward at a 15-degree angle. This cavity should include a recessed interior space and a cylindrical cutout wi...
$fn=100; difference(){ translate([-9,-7,0]) cube([18,11,6]); translate([0,0,-5]) camera(); translate([3.6,-10,0.5]) rotate([15,0,0]) cube([4,10,10]); } difference(){ hull(){ translate([8,7,0]) cylinder(4,3,3); translate([8,-4.5,0]) cylinder(1,3,3); } translate([8,7,-1]) cylinder(20,2.1,2.1); translate([-8,7,-1]) c...
glb/cad_e197b242bcf6.glb
Create a Bed Smartphone Holder by constructing a hollowed-out vertical sleeve with rounded corners. Start with a solid block that has an overall height of 95mm, a total length of 87mm, and a total width of 27mm. The vertical walls and the base plate should each have a thickness of 3.5mm. To form the main body, create...
lang = 80.0; breed = 20.0; wand = 3.5; lang1 = lang+2*wand; breed1 = breed+2*wand; hoek = 4.0; wand = 3.5; plaat = 4.5; hoog = 95.0; klemb = 80.0; klemd = 35.0; $fn = 75; color("lightblue") difference() { B1(); W1(); } module B1() { hull() { translate([0.5...
glb/cad_ef02c2ec7cac.glb
Create a multi-attachment adapter for a vehicle air vent phone holder. Start by creating a main cylinder with a diameter of 42mm and a height of 6.7mm. On top of this base, add a second cylinder with a diameter of 48mm and a height of 6.8mm, positioned so its bottom sits at the top of the base cylinder. To refine the t...
$fn = 60; d1 = 48; d2 = 42; h1 = 13.6 - 6.8; difference() { union() { translate([0, 0, h1]) { intersection() { cylinder(d=d1, h=6.8); scale([d1*1.2, d1*1.2, 12]) sphere(d=1); } } cylinder(d=d2, h=h1+0.1); } ...
glb/cad_ed559ba588d4.glb
Create a Customizable Cable Organizer consisting of a central spool and an outer housing. First, construct the inner spool. Create a central cylinder with a height of 16mm and a diameter of 33mm. Add a tapered transition section 2mm high that expands the diameter to 35mm, topped with a 1mm thick flat border of 35mm d...
innerDiametor = 29; outerDiametor = 33; spoolHeight = 16; maxDiametor = 35; angleHeight = 2; borderHeight = 1; wireDiametor = 3; wireOffset = 0.25; channelWidth = outerDiametor - innerDiametor; extraRingWidth = 1; extraRingHeight = 2; wireVerticalOffset = 3; bodyDiametor = 58; bodySphereScale = 0.7; bodyThikness = ...
glb/cad_8e7cdf392b9f.glb
Create a Customizable Cable Organizer consisting of two symmetrical halves. For each half, start with a central spool body. The core is a cylinder with a height of 16mm, an inner diameter of 29mm, and an outer diameter of 33mm. Add a tapered transition section 2mm high that expands the diameter to a maximum of 35mm, to...
innerDiametor = 29; outerDiametor = 33; spoolHeight = 16; maxDiametor = 35; angleHeight = 2; borderHeight = 1; wireDiametor = 3; wireOffset = 0.25; channelWidth = outerDiametor - innerDiametor; extraRingWidth = 1; extraRingHeight = 2; wireVerticalOffset = 3; bodyDiametor = 58; bodySphereScale = 0.7; bodyThikness = ...
glb/cad_b8ed4a49a8f5.glb
Create a crosshair calibration script tool. Start by constructing the main body as a hull encompassing two cylinders, each 16mm in diameter and 15mm high, with one centered at the origin and the other shifted 7mm along the Y-axis and 8mm along the Z-axis. Add a rectangular base block measuring 16mm by 23mm by 50mm, cen...
module body(){ hull() { translate([0,0,8])cylinder(d=16,h=15,center = true); translate([0,16-9,8])cylinder(d=16,h=15,center = true); } translate([-8,3.5,-9.5])cube([16,23,50],center= true); translate([-25,-26+16,-35.5])cube([50,50,5],center= true) ; } module hole1(){ translate([0,0,-8])cylinder(d=11,h=1...
glb/cad_26f9aad68d2e.glb
Create a Post-It Box consisting of a flat rectangular base and a hollow container centered on top of it. First, create the base as a solid rectangular prism measuring 97mm in length, 67mm in width, and 2mm in height. On top of this base, construct a hollow rectangular container with outer dimensions of 91mm in length...
thickness = 2; paper_width = 57; paper_length = 87; box_height = 50; slit = true; slit_width = 20; base_width = 67; base_length = 97; base_height = 2; box_length = paper_length + thickness * 2; box_width = paper_width + thickness * 2; module slit(){ translate([0, slit_width/2, 0]) cylinder(d=slit_width, h=thickn...
glb/cad_0716a10277de.glb
Create a Netipot for nasal cleaning by constructing a primary rectangular base measuring 40mm wide, 60mm deep, and 40mm high. Attach a spout to this base by adding a rectangular prism measuring 10mm wide, 70mm deep, and 10mm high, positioned at coordinates [0, 55, 3] and rotated 30 degrees along the X-axis. Hollow out ...
module potje () { cube(size=[40,60,40]); } module snuitje () { translate(v=[0,55,3]) rotate(a=[30,0,0]) cube(size=[10,70,10]); } module netipot () { snuitje(); potje(); } module HELEDING () { difference() { netipot(); translate(v=[5,5,5]) cube(size=[30,50,30]); translate(v=[5,5,35]) cube(size=[30,20,5]); ...
glb/cad_31640bb6177f.glb
Create a Spring Tube decorative support by constructing a coiled, spring-like geometry. Start with a rectangular base measuring 80mm in length and 2mm in thickness. From this base, extend two symmetrical, winding paths upward to a total height of 72mm (calculated as 4 coils with a spacing of 18mm each). Each coil is f...
th = 2; dt = 15; ss = 18; bl = 80; sl = dt + 2*th; sc = 4; wi = sl; module halfCircle(diameter = 20, thinkness = 2, orient = 0) { translate([0, (diameter + thinkness)/2, 0]) difference(){ circle(d = diameter + thinkness); circle(d = diameter - thinkness); rotate([0, 0, orient]) translate([0, -(diameter + thin...
glb/cad_d444656d6aed.glb
Create a Classy Octopus model by combining a base octopus figure with a top hat and a monocle. Position a top hat on the head, consisting of a wide cylindrical brim with a radius of 13mm and a height of 15mm, topped with a narrower cylindrical crown with a radius of 3mm and a height of 20mm. Rotate this hat assembly 15...
union(){ import_stl("octopus.stl"); translate([2,25,32]){ rotate([0,15,45]){ cylinder(25,13,15); cylinder(3,20,20); } } translate([-10,-12,23]){ rotate([90,0,0]){ difference(){ cylinder(2.5,7,7,center=true); cylinder(4,5,5,center=true); } } } }
glb/cad_51400dd53351.glb
Create a Pythagoras Cup consisting of a tapered vessel with a hidden internal syphon. The main body is a truncated cone with a height of 65mm, an internal base diameter of 30mm, and an internal top diameter of 40mm. The walls and the base are 5mm thick. Inside the cup, integrate a syphon tube with a radius of 1.5mm. ...
h=60; d2=40; d1=30; t=5; b=5; f=38; w=5; o=15; q=1.5; a=7; z=-2; m=1.375; $fn=50; module handle(w) { translate([(d1+d2)/4+t/2,0,h/3+b+z])rotate([90,-50,0])scale([2,1,1])rotate_extrude()translate([o,0,0])scale([0.5,1,1])circle(w); } module cup(t,l) { translate([0,0,l])cylinder(r1=(d1*(h-(l-b))/h+d2*(l-b)/h)/2+t,r2...
glb/cad_6a1ba9bd0365.glb
Create a heli gear enforcement ring by starting with a centered cylinder that has a radius of 10mm and a height of 4mm. From this main body, remove a smaller centered cylinder with a radius of 5.5mm and a height of 10mm to create a central hole. Cut a rectangular slot through the center of the ring using a cube that me...
helifix2(); module helifix2() { difference() { cylinder(r=10,h=4,center=true); cylinder(r=5.5,h=10,center=true); cube([13,6,10],center=true); rotate([0,90,0])cylinder(r=1,h=100,center=true); } }
glb/cad_39315d4f8131.glb
Create six identical heat bed glass clamps. Each clamp is based on a cube measuring 10mm in length, 8mm in width, and 8mm in height. From each cube, remove a central rectangular section to create a slot that is 10mm long, 10mm wide, and 4mm high, positioned 2mm from the bottom face and centered along the width. This re...
for(i= [0:3]) { translate([i*12,8,0]) rotate([90,0,0]) difference() { cube([10,8,8]); translate([4,-1,2]) cube([10,10,4]); } } for(i= [0:3]) { translate([i*12,-2,0]) rotate([90,0,0]) difference() { cube([10,8,8]); translate([4,-1,2]) cube([10,10,4]); } }
glb/cad_a70024d9084f.glb
Create a potentiometer knob with a total diameter of 10mm and a height of 12mm. The main body is a cylinder with a rounded top edge created by a 2mm fillet. At the center of the knob, create a vertical round socket with a diameter of 6.2mm and a depth of 10mm. On the top surface, centered over the socket, add a recta...
Knob_Diameter=10; Knob_Height=12; Axis_Lenght=10; Rounded=2; Ajustment=0.1; $fn=50; flatted_socket=false; add_turner_bar=true; difference() { union() { cylinder(r=Knob_Diameter/2,h=Knob_Height-Rounded); translate([0,0,Knob_Height-Rounded]) cylinder(r=Knob_Diameter/2-Rounded,h=Rounded); trans...
glb/cad_c84b1b5c5905.glb