Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a fast-clamp pen holder consisting of a rectangular base with integrated mounting posts. Start with a base block that is 49mm long, 18mm high, and 4.5mm thick. At one end of the base, create a rounded corner by removing a cylindrical section with a 6mm radius from the corner of the block. Along the length of th...
use <fast-clamp06.scad>; large = 18; long = 49; module forclip(mode = 0) { if (mode==0) { cylinder (h= large, r= 2, $fn =28); translate([14,0,0])cylinder (h= large, r= 2, $fn =28); } else { translate([7,5,large/2])rotate([90,0,0]) cylinder(h=15, r=2,$fn =32); translate([7,-3,large/...
glb/cad_9896beb45523.glb
Create an Ikea Tertial camera mount consisting of a ball joint assembly and a lamp adapter. First, construct the ball joint by creating a sphere with a radius of 16.205mm. Subtract a central cylindrical hole with a radius of 3.2mm that passes through the center of the sphere. At the top of the sphere, add a cylinder ...
tolerance = 0.25; ball_radius = (24.25 + 8.16*2)/2; holder_inset = 1; holder_length = 5; holder_height = 9; holder_gap = 0; adapter_height=9; draw_holder = 1; draw_ball_joint = 1; draw_lamp_adapter = 1; draw_knob = 1; draw_camera_knob = 1; draw_cap = 1; if(draw_lamp_adapter) translate([0,0,-44]) rotate([0,0,90]) lam...
glb/cad_51aa2b317c64.glb
Create a tripod replacement platform by constructing a composite base and removing specific voids. Start with a main body formed by the convex hull of a cylinder with a 25mm diameter and 12mm height, centered at [0, -17.5, 0], and a horizontal cylinder with a 12mm diameter and 30mm length centered at [-12.5, 8, 6]. Add...
$fn=72; mirror([1,0,0]) difference() { union() { hull() { translate([-12.5,8,6]) rotate(a=[0,90,0]) cylinder(d=12,h=30); translate([0,-17.5,0]) cylinder(d=25,h=12); } translate([0,-25,10]) rotate(a=[90,0,-10]) hull() { cylinder(d=25,h=5.5); tra...
glb/cad_0c1206abfae3.glb
Create a "Got Filament" sign by starting with a rectangular base plate 80mm wide, 50mm deep, and 0.3mm thick. At the center of the back edge, add a circular hanger ring with an outer diameter of 5mm and an inner hole of 3mm, maintaining the 0.3mm thickness. On the face of the plate, add two lines of embossed text with ...
thickness = 0.3; baseWidth = 80.0; baseDepth = 50.0; ringDiameter = 5.0; text1 = "Got"; text2 = "Filament?"; textHeight = 1.0; fontSize = 10; $fn = 360; module hanger() { ringRadius = ringDiameter / 2; translate([0, baseDepth + ringRadius - 1, 0]) difference() { ...
glb/cad_53ead0e64003.glb
Create an extrusion mount base by combining three geometric elements. First, create a central rectangular block measuring 20mm wide, 7mm deep, and 14mm high, with all vertical edges rounded by a 3mm radius. To this, add a flat rectangular base plate measuring 26mm wide, 3mm deep, and 15mm high, positioned so it extends...
use <../library/mount.scad> slide_clearance = 0.5; slide_thick_side = 15; slide_thin_side = 10; slide_thickness = 5; slide_depth = 12; module base() { extrusion_mount(); translate([0,-10,0]) minkowski() { cube([20, 7, 15-1]); cylinder(r=3,h=1); } translate([-3,-3,0]) cube([26, 3, 15]); } module slide_in(...
glb/cad_a8a3bc5f31e8.glb
Create a protective electronics box for an Arduino and RAMPS board with a total height of 40mm, a width of 75mm, and a length of 110mm. Construct a base plate with an outer height of 5mm and rounded corners (radius 7.5mm). The base must feature a hollowed interior with a height of 3mm and a clearance of 0.4mm. On the...
use <base.scad> use <mounts.scad> outer_dia = 15; inner_dia = 10; inside_dia = 7; outer_height = 5; inner_height = 7; inside_height = 3; total_height = 40; clearance = 0.4; top_layer_thickness = 2; top_holes_x = 4; top_holes_y = 7; top_holes_spacing = 15; top_holes_dia = 10; width = 75; length = 110; wire_hole_dia...
glb/cad_b55446fb3324.glb
Create a protective electronics box for an Arduino and RAMPS board with a total height of 65mm, a width of 75mm, and a length of 110mm. Construct a base plate that features a hollowed-out center to accommodate the electronics. On the underside of this base, integrate four slide-in mounting clips designed for aluminum...
use <base.scad> use <mounts.scad> outer_dia = 15; inner_dia = 10; inside_dia = 7; outer_height = 5; inner_height = 7; inside_height = 3; total_height = 65; clearance = 0.4; top_layer_thickness = 2; top_holes_x = 4; top_holes_y = 7; top_holes_spacing = 15; top_holes_dia = 10; top_holes_vertical = 3; width = 75; leng...
glb/cad_72bee3d353fc.glb
Create a Balance Board dome by starting with a sphere 150mm in diameter. Scale the sphere along the Z-axis by a factor of 0.75 to create a squashed ellipsoid, then slice it in half along the XY plane to keep only the top half. Hollow out the center of this dome by removing a smaller concentric ellipsoid, leaving a wall...
hollow = true; outer_wall_thickness = 7; sphere_diameter = 150; scrunch_factor = 0.75; screw_diameter = 4; screw_top_diameter = 7.5; wood_screw = true; screw_head_taper_height = 3; screw_wiggle_room = 1.5; screw_count = 5; mount_height = 5; resolution = 100; fill_hole_radius = 15; sphere_radius = sphere_di...
glb/cad_5217d840bfc6.glb
Create a sonar mount for an Arducopter. Start by constructing a U-shaped clamp with a total width of 56mm, a height of 50mm, and a base thickness of 3mm. The inner cutout of the clamp should be a rectangular void measuring 12.7mm wide and 50mm high, leaving 3mm thick walls on the sides. Extend a flat mounting arm fro...
arm_size=25.4*0.5; wall_thickness=3; arm_thickness=2; arm_length=80; arm_width=12; rib_width=4; clamp_width=50; sonar_width=20; sonar_length=23; extra=0.1; screw_diam=3.2; bolt_pattern_width=12.6; bolt_pattern_length=17; difference() { union() { difference() { cube([arm_size+2*wall_thickness,clamp_width,...
glb/cad_e20f810ea08d.glb
Create an M6 T Slot Nut by starting with a base rectangular block measuring 20mm in length, 6mm in width, and 3mm in height. Attach a second rectangular block to the bottom of this base, centered along the width, measuring 20mm in length, 12mm in width, and 5.5mm in height, positioned so it extends from the bottom of t...
difference(){ union() { cube([20, 6, 3]); translate([0, -3, 2.5]) cube([20, 12, 2+3.5]); } translate([10, 3, 3]) cylinder(d=12,h=7,$fn=6); translate([10,3,0]) cylinder(d=6.2,h=15,$fn=100); translate([-1,-12.5,10]) rotate([-45,0,0]) cube([22,10,15]); tra...
glb/cad_9454122eacca.glb
Create a customizable storage module and drawer system. The main module is a rectangular box with an outer shell of 4mm thickness. The overall module dimensions are based on a 30mm unit grid, specifically 90mm wide by 60mm high by 100mm deep. The module features a hollow interior to house drawers. The exterior walls i...
part = "all"; settingMode = "drawer"; requestedHorzUnitNb = 3; requestedVertUnitNb = 2; requestedModuleDepth = 100; requestedDrawerDivWidth = 23; requestedDrawerDivHeight = 23; requestedDrawerDivDepth = 12; requestedDrawerSpaceAbove = 40; divType = "circle with punch"; divHorzNb = 3; divVertNb = 3; intWalls...
glb/cad_f0b8caf6f11d.glb
Create a Torchclamp by starting with a central rectangular block measuring 24mm wide, 25mm deep, and 18mm high, centered on the origin. Carve a horizontal cylindrical void through the center of the block with a radius of 10.5mm and a length of 26mm, oriented along the Y-axis. Create two vertical holes for bolts; each h...
torchclamp(); module torchclamp() { difference() { cube([24, 25, 18], center = true); translate([0,0,9]) torch(); translate([0,7,-3.2]) bolt(); translate([0,-7,-3.2]) bolt(); translate([0,0,-3]) tie(); translate([0,0,-5]) roundedge(); } } module torch() { rotate([90,0,0]) cylinder(r=10.5,h=26,cente...
glb/cad_417919923cef.glb
Create a small fence consisting of a rectangular base with vertical slats. Start with a solid rectangular base measuring 36mm in length, 26mm in width, and 3mm in height. Carve out six rectangular slots from the top of this base, each measuring 3mm wide by 20mm long. Space these slots evenly so that there is a 3mm gap ...
$fn=50; block_width=3; block_length=20; block_count=6; r1=1; l=2; difference (){ cube([block_count*block_width*2,block_length+2*block_width,block_width]); for (i=[0:block_count-1]) translate([i*2*block_width,block_width,-0.1]) cube([block_width,block_length,block_width+0.2]); tran...
glb/cad_586d4db75f5a.glb
Create a Toyota Blank Dash Plate consisting of a rectangular base plate and two mounting clips. The main plate is 24mm wide, 42mm high, and 3mm thick. On the back of the plate, add a raised gusset frame that is 2mm high. This frame should be inset from the outer edges by 4mm. At the top and bottom centers of the pla...
translate([0,9,1]) cube([6,6,5],center=true); translate([0,-9,1]) cube([6,6,5],center=true); $Width=24; $Height=42; $Thickness=3; $Gusset_Inset=4; $Gusset_Height=2; $Gusset_Thickness=2; $Clip_Length=14; $Clip_Height=3; $Clip_Width=12; $Center_Support_Height=5; $Clip_Pedistal_Height=4; $Use_Clip_Support=1; $Use_Full_Cl...
glb/cad_871982ded3db.glb
Create a battery holder set for two AAA cells. Start by designing a single cell compartment as a hollow rectangular box with outer dimensions of 47.5mm in length, 12.2mm in width, and 12.2mm in height. The walls of this compartment should be 1.2mm thick. To create the hollow interior, remove a central block measuring 4...
l = 44.5; w = 10.7; cells = 2; space = 1.5; length = l + space; width = w + space; wall = 1.2; for(i = [0:cells-1]){ translate([0,(width+wall/2)*i,0])single(); } module single(){ difference(){ cube ([length+wall, width+wall, width],center=true); cube ([length, width, width],center=true); translate([0,0,width/1.2])ro...
glb/cad_ae02d62c5e5e.glb
Create a pillbox day tag by starting with a rectangular base measuring 27mm in length, 20mm in width, and 1.5mm in height. Cut through the entire thickness of the base with two mirrored text engravings, each 12mm in size using a sans-serif font like Arial. Center the first text "Su" on the top face of the plate. On the...
$fn=30; x=27; y=20; z=1.5; f="Arial"; s=12; text1="Su"; text2="We"; difference() { cube([x,y,z],false); translate([x/2,(y-s)/2,4*(z/5)]) { cube([1,1,0],false); linear_extrude(height = z) { text(text1,font=f,s,halign="center"); } } translate([x/2,(y-s)/2,-(z/3)*2]) { ...
glb/cad_6355cfac156d.glb
Create a parametric Arduino case with an integrated shelf for a joystick shield. Start by constructing a main exterior box with dimensions 58mm wide, 73mm long, and 8mm high. Hollow out the center to create a recessed interior space that is 54mm wide, 69mm long, and 7mm deep, leaving a bottom floor thickness of 1mm and...
tol=1.0; arduino_width = 54+tol; arduino_length = 69+tol; arduino_usb_width = 13; arduino_usb_height = 15; arduino_usb_x = 9.5; arduino_power_width = 9.5; arduino_power_height = 15; arduino_power_x = 3.5; wall_thickness = 2; wall_height = 7; bottom_thickness = 1; side_shoulder = 12; shelf_length = 30; shelf_width = ...
glb/cad_38d5742e4075.glb
Create a Spinning Stars gimbal ornament consisting of seven concentric, nested star-shaped rings. Each ring is a 6-pointed star with a thickness of 4mm and a height of 6mm. The outermost ring has an outer radius of 20mm and an inner radius of 13mm. Each subsequent inner ring is scaled down proportionally. The rings ar...
points = 6; num = 7; outerR1 = 20; innerR1 = 13; clearance = 0.75; thick = 4; height = 6; pin_clearance = 0.25; corner_fudge = 0.8; bevel = 0.7; do_loop=true; innerRd = thick+clearance*1; outerRd = innerRd*(outerR1/innerR1); rotation = 360/points; isEven = (points%2) ? false:true; star_assembly(); *difference() { ...
glb/cad_82a9bfe72ebd.glb
Create a Cubical Clock Hanger designed to fit over a wall. Start by constructing a U-shaped bracket with a uniform thickness of 5mm. The top horizontal section should be 60mm wide (50mm for the wall thickness plus 5mm of overhang on each side) and 35mm deep. The back vertical section should be 5mm thick, 35mm wide, and...
wall_thickness = 50; back_height = 50; front_height = 100; resolution = 32; $cf=resolution; hanger_width = 35; hanger_thickness = 5; hook_diameter = 7; hook_depth = 2; bar_diameter = 5; bar_depth = 2; edge_radius = 1; main(); module main(){ translate( [-wall_thickness / 2, front_height / 2, hanger_width /...
glb/cad_563069b731e3.glb
Create a Mobius gimbal holder for an H-frame. Start by constructing the main holder base as a flat plate 2mm thick. This base is composed of a central rectangular section 10mm wide and 99mm long, with a 55mm by 12mm rectangular extension protruding from the side. Add two 10mm by 12mm rectangular tabs at the ends of the...
$height = 2; $length = 55; translate([15, 30, 0]) smallCube(); translate([28, 30, 0]) smallCube(); translate([15, 61, 0]) smallCube(); translate([28, 61, 0]) smallCube(); mainHolder(); module smallCube() { difference() { cube([8, 8, 5]); translate([8/2, 8/2, 0]) cylinder(r=2.8/2, h=5, $fn=50); } } module main...
glb/cad_8095ff07897e.glb
Create a complex open-top box with a material thickness of 5mm. The base is a rectangle measuring 120mm in width and 80mm in length. Construct the back wall with a height of 80mm and the front wall with a height of 40mm. The left and right side panels are defined by a custom polygon that connects the front and back w...
$fn = 150; inch = 25.4; width = 120; length = 80; heightB = 80; heightF = 40; Thikness = 5 ; E = 20; ft = "Stencil"; S = 5; x = width; cx = (E < x/2 ? floor((x/2)/E ) : ( E>=x-2*Thikness ? 0 : 1 ) ); nx = cx+1; Ex = ( cx!=0 ? (x-(cx*E))/nx : 0 ); echo(str("\n\tThe width is: ", x, "mm.", "\n\tThere is "...
glb/cad_3f59965a7b91.glb
Create a wall mount for a Ubiquiti Tough Switch PoE PRO 8 Port. The final object is a symmetrical frame consisting of four identical corner brackets. For each bracket, start with a central block measuring 20mm wide, 17mm deep, and 51.25mm high. Integrate a base foot that is 20mm wide, 35mm deep, and 5mm thick, centered...
x=210; y=185; z=41; difference () { union () { *halter (); mirror ([1,0,0]) {halter ();}; *mirror ([0,1,0]) {halter ();}; *mirror ([1,0,0]) {mirror ([0,1,0]) {halter ();};}; }; #minkowski () { hull () { #translate ([0,0,-z/2+31]) cube ([x,y,0.01],center=t...
glb/cad_492b16405d65.glb
Create a Keystand by first constructing a flat base that combines a rectangular stem and a circular head. The stem is 10mm wide, 32mm long, and 3.2mm thick. At the end of the stem, attach a circular head with a diameter of 25.4mm and the same 3.2mm thickness. This head must have a centered circular hole with a diameter...
stemLength=32; stemWidth=10; jackDia=3.2; jackHeight=9 + stemWidth/1.5; height=jackDia; pegSpacing=3.2; keyTopDia=25.4; keyholeDia=5; angle=30; $fn=60; difference() { union() { hull() { cylinder(r=stemWidth/2, h=height); translate([0, stemLength+5, 0]) cylinder(r=stemWidth/2, h=height); ...
glb/cad_8f90d55142a7.glb
Create a 3D model of a set of logic gate components. Use a consistent track width of 10mm, a wall thickness of 2mm, and a height of 12mm for all elements. First, create a NOT gate by constructing a rectangular block 14mm wide, 30mm long, and 12mm high. Remove two internal rectangular channels, each 10mm wide and 10mm ...
track_width = 10; wall_thickness = 2; track_height = 12; input_number = 2; rotation = input_number == 1? 0:-90 ; $fn = 36; module not_gate(){ difference(){ cube([track_width+2*wall_thickness,2*track_width+wall_thickness,track_height]); translate([wall_thickness,0,wall_thickness]) cube([t...
glb/cad_e0a2ba020e46.glb
Create a Screen Door Strike Plate by starting with a base rectangular plate measuring 25.6mm wide, 154.31mm high, and 3.15mm thick, with all four corners rounded to a 3mm radius. Carve out two screw holes and two latch openings from this base. The screw holes are rounded rectangles measuring 7.4mm wide and 5.5mm high...
Hole_Above = 5.34; Hole_Width = 7.4; Hole_Height = 5.5; Hole_Below = 12.06; Latch_Width = 10.4; Latch1_Height = 62.72; Latch_Separator = 4.25; Latch2_Height = 64.4; Reinforcement_Walls = 2.5; Reinforcement_Depth = 4; Plate_Thickness = 3.15; Left_Width = 12.15; Right_Width = 3.15; include <MCAD/shapes.scad> module ...
glb/cad_f477e4da5c4a.glb
Create a two-way hexagonal shelf bracket. Start with a central hub shaped as a triangular prism with a height of 25mm. The base of this prism is an equilateral triangle with a side length of 11mm (calculated as the shelf thickness of 5mm plus two wall thicknesses of 3mm each). Remove a cylindrical hole with a diameter ...
shelf_thick = 5; wall_thick = 3; wall_length = 25; depth = 25 ; bracket_thick = shelf_thick+wall_thick*2; screw_dia = 4.75; tri_height = sqrt(pow(bracket_thick,2)-pow(bracket_thick/2,2)); centroid = tan(30) * (bracket_thick/2); closed = false; corner_rad = 1; floor_thick = 3; $fn=16; echo(centroid); module wall() { ...
glb/cad_d094302b40b5.glb
Create a socket for IN-18 and IN-4 tubes. Start with a base plate 7mm thick. The main body is formed by a hull connecting two cylinders, each 7.5mm in diameter, positioned 40mm apart along the X-axis, and then rotated 302.5 degrees around the Z-axis. Remove a central vertical hole 7mm in diameter. Around this center,...
screw_hole_diameter = 3.5; screw_hole_offset = 4; start_angle = 16.5; step_angle = 24.5; module rsh31() { difference() { rotate(302.5, 0, 0) { difference() { hull() { hull() { cylinder(h = 7, d = 33, $fn = 64); translate([20, 0, 0]) c...
glb/cad_eab5ecfcfdb7.glb
Create a geometric vase composed of a series of stacked, hollowed-out extruded polygons. Start with a base that is an 8-sided polygon with a radius of 50mm and a wall thickness of 3mm, extruded to a height of 5mm. Build upward by creating alternating sections of twisted bodies and flat rims. The first body section sh...
radius= 50; sides=8; thickness=3; bodyheight=45; bodytwist=60; bodyflare=1.1; baseheight=5; slope=0.9; numberslices=60; translate([0,0,baseheight]) linear_extrude(height= bodyheight, twist=bodytwist, scale=bodyflare, slices= numberslices) potatoe(solid=""); translate([0,0,baseheight+bodyheight]) linear_extrude(he...
glb/cad_ed4ff395ab60.glb
Create a 3D model of the "King" Penrose tiling arrangement. This assembly consists of three darts and two kites. First, create three dart tiles. Each dart is a 2mm thick prism with a base polygon defined by the points [0,0], [12*(1+phi)*cos(36°), -12*(1+phi)*sin(36°)], [12*(1+1/phi), 0], and [12*(1+phi)*cos(36°), 12*(...
phi = (1 + sqrt(5))/2; ca = cos(36); sa = sin(36); $fn = 40; kscale = 12; hkite = 2; hmark = 2; bigmark = 2; littlemark = 1.5; explode = 2; king(kscale, hkite, hmark, bigmark, littlemark,explode); module sun(kscale, hkite, hmark, bigmark, littlemark,explode) { for (i = [0, 1, 2, 3, 4, 5]) { rotate(72*i, [0,0,1])...
glb/cad_a2f71de2a0f0.glb
Create a mounting standoff for an MKS Gen-2Z V1.1 board. Start by creating a rectangular base frame measuring 142mm by 84mm with a height of 1.3mm. The frame should have rounded outer corners with a 2mm radius and a central rectangular cutout measuring 128mm by 70mm, leaving a 7mm border around the perimeter. At each o...
$fn=70; lengde = 142; bredde = 84; height = 1.3; inset = 7; mountheight = 4; ytreDia = 7.6; indreDia = 4; module mountcyl(xpos, ypos) { translate([xpos,ypos,0]) cylinder(h=height+mountheight,d=ytreDia); } module mounthol(xpos,ypos){ translate([xpos,ypos,0]) cylinder(h=height+mountheight,d=indreDia);...
glb/cad_14cd3507b7c5.glb
Create a preassembled double foldable hinge. The assembly consists of four identical hinge segments aligned linearly along a central axis. Each individual hinge segment is based on a cylinder with a diameter of 6.35mm. For each segment, construct a central core by combining a cylinder of height 1.5mm and radius 3.175...
hinge_dia = 635; hinge_gap = 40; $fn = 90; module hingepair() { union() { cylinder(h=0.25, r=0.5); translate([0,0,0.25]) cylinder(h=0.25, r1=0.5, r2=0.25); translate([0,0,1]) cylinder(h=0.25, r1=0.25, r2=0.5); translate([0,0,1.25]) cylinder(h=0.25, r=0.5); } } module hingecore(gap) { union() { differen...
glb/cad_396425d48fcc.glb
Create a lemon juice bottle lid consisting of a hollow cylindrical cap with an internal thread. Start by creating a main outer cylinder with a diameter of 20mm and a height of 10mm. Remove a central cylindrical core from this shape with a diameter of 14.4mm, leaving a base thickness of 2mm at the bottom to form a ring....
use <ISOThread.scad> translate([0,0,-10]) difference() { cylinder(10,10,10,$fn=60); translate([0,0,2]) cylinder(9,7.2,7.2,$fn=60); } translate([0,0,-8]) cylinder(2.4,0.8,0.5,$fn=60); translate([0,0,-8]) thread_in_pitch(15.3,8.8,2.8);
glb/cad_74b99f2fe0d3.glb
Create a 3D stamp called "Escher Sand Birds" designed to impress a bird silhouette into a surface. The model consists of a flat base with vertical walls that trace the complex, interlocking outlines of stylized birds. The overall length of the model is 200mm. Create a base plate with a thickness of 2mm. From this base...
use<scad-utils/morphology.scad>; Length = 200; Maximum_wall_width = 3; Minimum_wall_width = 1; Wall_height = 20; Base = 2.0; Cookie_mode = "yes"; Inner_height = 10; show_tesselated = "no"; Delta = 0.1; profile_scale = 25.4/90; s = Length / 11; echo(s); min_width = Minimum_wall_width / profile_scale / s /2; max...
glb/cad_60b82e250bfb.glb
Create a Flashforge Creator Pro Improved Extruder Plate. Start with a base slab 7.5mm thick. The slab's footprint is a symmetrical polygon defined by the points: (0,0), (23.4,0), (28.4,5), (28.4,31.4), (37.75,41.47), (37.75,54.9), (32.6,54.9), (32.6,45.11), (14.23,45.11), (14.23,54.9), (9.15,54.9), (5,41.6), (4,32), an...
$fn=60; base_thickness = 7.5; eps1=0.001; eps2=2*eps1; tube_hole_diameter = 6.2 + 0.5; screw_hole_diameter = 3.0 + 0.5; clamp_hole_diameter = 11; clamp_offset = 32; clamp_height = 24; module solid_funnel(d1, d2, h, k, n) { h0 = h - eps1; for (i =[0:n-1]) { h_1 = h0 * i / n; h_2 = h0 * (i+1) / n; ...
glb/cad_26aaee5d154f.glb
Create a Multiple Ring Fancy Pencil Holder. Start by constructing a main body as a thick, low-profile cylinder with a height of 18.6mm. The outer wall of this cylinder should taper slightly, with a bottom radius of approximately 61.5mm and a top radius of 57.5mm. Hollow out the center of this body by removing a smaller...
number_of_pencils_on_outer_ring = 36; pencil_slope_angle = 30; rings = 2; include_handle = "yes"; show_pencils = "no"; pencil_dia = 8.1; pencil_rad = pencil_dia/2; slope_in = 5-pencil_slope_angle; inner_angle_mod = 0.15; base_rad = pencil_dia + (number_of_pencils_on_outer_ring * (3+pencil_dia))/6.282; holder_heig...
glb/cad_866c8ac830d3.glb
Create a Dishwasher Wheel Clip consisting of two separate components: a clip body and a pin. First, construct the clip body. Start with a rectangular block measuring 14mm wide, 2.5mm thick, and 21.4mm high. Center a cylindrical hole with a diameter of 10.5mm through the thickness of the block, positioned 7.7mm from t...
include <pins.scad> $fn = 50; body_x = 14; body_y = 2.5; body_z = 21.4; peg_hole_diameter = 10.5; peg_hole_z_offset = body_z/2 - peg_hole_diameter/2 - 2; clip_z = 7.5; clip_support_y = 28; clip_hole_diameter = 6.35; clip_hole_y_offset = 5.5; clip_outer_diameter = 10.5; wheel_hole_diameter = 10; wheel_shaft_length...
glb/cad_ab6d87b846bf.glb
Create a parametric divided box with a sliding lid. The main body is a rounded rectangular container with outer dimensions of 40mm width, 60mm depth, and 25mm height. The walls are 2mm thick with corner radii of 3mm. The interior is hollowed out to leave a 2mm wall thickness, but the top is open to accommodate a slidin...
boxX = 40; boxY = 60; boxZ = 25; cornerRad = 3; wallThick = 2; xCompartments = 3; yCompartments = 2; dividerThick = 1; lidSnugness = 0.5; wallSub = 2 * wallThick; fudge = .001; include <MCAD/boxes.scad> snugness = 0.5; module lid(cutter = false) { snugness = cutter==false ? 1 : lidSnugness; lidX = (bo...
glb/cad_2b98380d79bd.glb
Create a Wilson II X-Carriage End. Start with a main rectangular block measuring 17mm by 45mm by 65mm (calculated from a rod distance of 50mm plus 15mm height). Integrate a vertical bearing holder that consists of a cylinder with a radius of 11mm (bearing diameter 19mm plus 4mm extra cut) and a height of 65mm. Add a ...
include <configuration.scad> rod_distance = 50; pushfit_d = 10.3; bearing_diameter = 19; bearing_cut_extra = 0.4; thinwall = 3; height = rod_distance+15; center_z = 30.25 -1; tensioner_size_z = 12; bearing_size = bearing_diameter + 2 * thinwall; module vertical_bearing_base(){ translate(v=[-2-bearing_size/4,0,heig...
glb/cad_fbec753714de.glb
Create a Perfect Change Coin Holder designed as a flat plate with a total length of 81mm, width of 49mm, and thickness of 2.25mm. The object consists of five circular coin slots arranged in a symmetrical pattern, each featuring a raised outer rim and a recessed center to hold a coin. Position two slots for quarters (2...
Length=85; Width=53; Thickness=2.25; NDia=21.19; NThick=1.81; DDia=18.01; DThick=1.19; QDia=23.88; QThick=1.58; WallWidth=3.75; $fn=40; module CoinHole(Diameter){ translate([0,0,-Thickness/2])cylinder(r1=Diameter*0.49,r2=Diameter*.51,h=Thickness/2); translate([0,0,0])cylinder(r1=Diameter*0.51,r2=Diameter*.49,h=Thick...
glb/cad_df1daf36fa3d.glb
Create a Canadian coin holder with a total thickness of 2.42mm. The overall footprint is a rounded rectangle measuring 84mm by 49mm. The design features five circular coin slots arranged in two rows. In the bottom row, place three slots centered at Y = -13.2mm, located at X = 0mm, X = 30.6mm, and X = -30.6mm. In the ...
Length=88; Width=53; NDia=21.19; NThick=1.81; DDia=18.01; DThick=1.19; QDia=23.88; QThick=1.58; LDia=26.48; LThick=1.92; TDia=27.94; TThick=1.67; WallWidth=3.75; Thickness=LThick+0.5; $fn=40; module CoinHole(Diameter){ translate([0,0,-Thickness/2])cylinder(r1=Diameter*0.49,r2=Diameter*.51,h=Thickness/2); translate([...
glb/cad_039c987ad476.glb
Create a Canadian coin holder with a total footprint of 92mm by 56mm and a thickness of 2.42mm. The object consists of five circular coin slots arranged in two rows. In the bottom row, place three slots centered at Y = -14mm, located at X = 0mm, X = 32mm, and X = -32mm. In the top row, place two slots centered at Y = 1...
Length=92; Width=56; NDia=21.19; NThick=1.81; DDia=18.01; DThick=1.19; QDia=23.88; QThick=1.58; LDia=26.48; LThick=1.92; TDia=27.94; TThick=1.67; WallWidth=3.75; Thickness=LThick+0.5; $fn=40; module CoinHole(Diameter){ translate([0,0,-Thickness/2])cylinder(r1=Diameter*0.49,r2=Diameter*.51,h=Thickness/2); translate([...
glb/cad_6dded2a68a7f.glb
Create a 3D model of the Empire State Building using a series of stacked and adjacent rectangular prisms and cylinders. Start with a wide, flat rectangular base of 75mm by 50mm by 5mm. Build upward by adding symmetrical rectangular blocks on the left and right sides of the base, each 30mm by 35mm by 5mm, and two larger...
$fn=150; rotate([0,90,0]) cube([5,75,50], center=true); translate([0,30,20]) rotate([0,0,90]) cube([5,30,35], center=true); translate([0,-30,20]) rotate([0,0,90]) cube([5,30,35], center=true); translate([0,20,25]) rotate([0,0,90]) cube([18,40,51], center=true); translate([0,-20,25]) rotate([0,0,90]) cube([18,40,51...
glb/cad_0c427a956efd.glb
Create a 45 rpm record adapter with a total height of 8.5mm. Start by creating a main outer cylinder with a diameter of 37.9mm and a height of 8.5mm. Remove a central vertical hole with a diameter of 7.65mm that runs through the entire height of the object. Inside the main body, create a recessed inner chamber starti...
$fn = 128; rpm45_hole = 37.9; rpm33_hole = 7.65; height = 8.5; thickness = 2; difference() { union() { difference() { cylinder(d = rpm45_hole, h = height); translate([0,0,thickness]) difference() { cylinder(d = rpm45_hole-thickness, h = height-thickness)...
glb/cad_0a897e4d32ea.glb
Create a protective case for a DSO138 oscilloscope. The model consists of a top cover and a bottom base. Construct the bottom base as a rectangular tray with walls 2mm thick. The main internal cavity should be sized to fit a PCB of approximately 117mm by 77mm. Within this base, create a dedicated rectangular compartme...
part = "top"; with_batt = false; pcb = [4.6*25.4+0.2, 3*25.4+0.2, 1.1]; pcbmntdia = 1*3.1; pcbthrdia = 2.9; pcbmntdx = pcb[0]-3.5*2-3.1; pcbmntdy = pcb[1]-3.5*2-3.1; batt = [26.0, 54.0, 17.0]; lcdwinsize = [50.0+2, 37.0+2]; lcdpos = [pcb[0]/2-lcdwinsize[0]/2-27.5, 17.5-(pcb[1]/2-lcdwinsize[1]/2)]; lcdpcb = [53+2*10, ...
glb/cad_74cd69f77713.glb
Create a spice shelf consisting of a shallow tray with a high back wall. The base of the tray is a rectangular slab with rounded corners, measuring 215mm in length and 47mm in width, with a thickness of 5mm. The interior of the tray is hollowed out to create a recessed area 200mm long, 37mm wide, and 15mm deep, leaving...
container_diameter = 42; container_margin = 5; container_count = 4; wall_thicknes = 5; tray_height = 20; back_height = 55; print_part(); module print_part() { inner_size_x = container_count * (container_diameter + container_margin); inner_size_y = container_diameter + container_margin; inner_size_z = tr...
glb/cad_744112724843.glb
Create a spacer for a mecanum wheel rover. The object is a cylinder with a total height of 38.1mm and a radius of 5mm, constructed with a 20-facet resolution. First, create the main body by removing a central vertical hole with a radius of 2.2mm that extends through the bottom 30.1mm of the cylinder. Then, add a ca...
screw_6_32_r = 4.4/2; slop = 0.01; total_height = 1.5 * 25.4; module spacer() { difference() { cylinder(r = 10/2, h = total_height - 8, $fn = 20); translate([0, 0, -slop]) cylinder(r = screw_6_32_r, h = total_height - 8 + 2*slop, $fn = 20); } translate([0, 0, total_height - 8 - slop]) difference()...
glb/cad_275f6a491744.glb
Create a rover body frame with a thickness of 4mm. The main chassis is a flat plate featuring a pattern of hexagonal cutouts. The overall width of the central frame area is 90mm. At each of the four corners of the frame, add a motor holder bracket. Each bracket consists of a base block measuring 25mm by 18mm by 4mm, w...
slop = 0.01; ps = 0.1 * 25.4; frame_w = 90; hub_motor_distance = 12; wheel_attachment_thickness = 10.3945; wheel_distance = hub_motor_distance + wheel_attachment_thickness/2; frame_thickness = 4; module screw_hole_6_32() { translate([0.5 * ps, 0.5 * ps]) circle(r = 10/2, $fn = 20); } module motor_preview() { ...
glb/cad_17a5c4ed7419.glb
Create a flat electronics holder frame with a thickness of 3mm. The frame is designed as a series of interconnected rectangular slots and strips to hold various circuit boards. First, create a central holder for an LPCXpresso board consisting of two parallel rectangles: one measuring 2.54mm by 69.6mm and another meas...
slop = 0.01; ps = 0.1 * 25.4; module pin_strip(min_x, min_y, max_x, max_y) { translate([(min_x) * ps, (min_y) * ps]) square([(max_x - min_x + 1) * ps, (max_y - min_y + 1) * ps]); } module lpcxpresso_holder() { translate([-5 * ps, -12.5 * ps]) square([ps, 69.6]); translate([4 * ps, -12.5 * ps]) square([p...
glb/cad_b38a5c869ff8.glb
Create an electronics cover for a rover. Start by defining a base outline that incorporates several rectangular holders: a central LPCXpresso holder (1mm by 69.6mm), two motor driver holders (each 1mm by 21.3mm), a Bluefruit holder (1mm by 21.3mm), and a voltage regulator holder (13.5mm by 1mm). Expand this outline w...
slop = 0.01; ps = 0.1 * 25.4; module pin_strip(min_x, min_y, max_x, max_y) { translate([(min_x) * ps, (min_y) * ps]) square([(max_x - min_x + 1) * ps, (max_y - min_y + 1) * ps]); } module lpcxpresso_holder() { translate([-5 * ps, -12.5 * ps]) square([ps, 69.6]); translate([4 * ps, -12.5 * ps]) square([...
glb/cad_937163f4b847.glb
Create an electronics cover for a Bluetooth serial module. Start by creating a central rectangular holder with a width of 2.54mm and a height of 21.3mm. Extrude this shape to a total height of 38mm. The main body should be a hollow shell created by subtracting a smaller inner rectangle, offset by 1.5mm, from a larger o...
slop = 0.01; ps = 0.1 * 25.4; module pin_strip(min_x, min_y, max_x, max_y) { translate([(min_x) * ps, (min_y) * ps]) square([(max_x - min_x + 1) * ps, (max_y - min_y + 1) * ps]); } module bluefruit_holder() { square([ps, 21.3], center = true); } linear_extrude(height = 38) difference() { offset(r = 2...
glb/cad_477721f978d1.glb
Create a Kamen Rider Wizard Ring Snap consisting of a ring and a fastening snap. Start by constructing a ring with an inner diameter of 18.14mm and a width of 9.36mm. The ring's cross-section should be an octagon with a wall thickness of 2.8mm. Cut a rectangular notch out of the ring's band to create an opening. Posit...
include <MCAD/shapes.scad> ring_size = 18.14; ring_width = 9.36; ring_thickness = 2.8; inner_diameter = ring_size; inner_radius = inner_diameter/2; translate([0,0,ring_width/2]) ring(); module ring() { difference(){ difference(){ difference(){ translate([0,0,0]) octagon(inner_diameter+ring_thickne...
glb/cad_5400fef61df8.glb
Create a Parametric Mecanum Wheel Hub. Start with a main cylindrical body with a radius of 20mm and a height of 10mm, centered on the Z-axis. Hollow out the center of this cylinder to create a ring with a wall thickness of 2mm. At the center of the hub, create a keyed motor shaft hole. This consists of a cylinder with...
include <wheel_parameters.scad> use <wheel_shape.scad> wheel_spoke_length = wheel_axle_radius - hub_outer_radius + hub_thickness; module hub() { difference() { union() { for(wheel_num = [1: num_wheels]) { rotate([0, 0, 360/num_wheels * (wheel_num-1)]) rotate([0, 45, 0]) translate(...
glb/cad_791e985681b1.glb
Create a nested puzzle object consisting of three concentric spheres with radii of 50mm, 35mm, and 17.15mm. For each sphere, create three identical square through-holes that pass completely through the center of the sphere along the X, Y, and Z axes. Each square hole must have a side length equal to 90% of that specifi...
unit(50); unit(35); unit(25); unit(17.15); module unit(radius) { difference() { sphere(r=radius); hole(radius); rotate([90,0,0])hole(radius); rotate([0,90,0])hole(radius); } } module hole(radius) { squareSize =radius*0.9; rotate([0,0,45])translate([-1*squareSize/2,-1*squareSize/2, -1*radius])cube([squareSize, squa...
glb/cad_bcfd50a4b6b4.glb
Create a two-part protective case for a Freetronics USBASP board. The board dimensions are 46.75mm in length and 22.55mm in width with a thickness of 1.57mm. For the bottom shell, create a rounded rectangular box with a width of 24.95mm and a length of 48.55mm. The outer corners should have a radius of 4.55mm. The tot...
fudge_factor=0.75; board_length=46 + fudge_factor; board_width=21.8 + fudge_factor; board_thickness=1.57; board_corner_radius=3.3 + fudge_factor/2; board_clearance_top=1; board_clearance_bottom=2; clearance_top=10; usb_width=8; usb_height=3.1; cutout_icsp_width=0; cutout_icsp_length=0; icsp_distance_board_edge=5.0...
glb/cad_b3da68f18513.glb
Create a No-Jam Pulley consisting of a central bearing dress and two identical flanking shells. Start by creating the central bearing dress as a cylinder with a height of 8mm and a diameter of 31.2mm (1.3 times the bearing diameter of 24mm). Remove a concentric inner cylinder with a diameter of 24.24mm and a height of ...
$fn = 100; part = "all"; bearing_diameter = 24; bearing_height = 8; bearing_hole = 8; plate_side = 100; draw(); module draw() { if (part == "flangia") { translate([0,0,bearing_height]) flangia(); } else if (part == "gola") { translate([0,0,bearing_height / 2]) gola(); } else if (part == "all") { transla...
glb/cad_2e6ce68cf653.glb
Create a Customizable Cell Phone Charger Pad Holder. Start with a rectangular base measuring 154mm by 75mm with a thickness of 2mm. The base should have rounded side edges with a 5mm radius. At each of the four corners of the base, add a vertical support block measuring 15mm by 15mm with a total height of 13.125mm. Th...
PHONE_LENGTH = 144; PHONE_WIDTH = 71; PHONE_THICKNESS = 7.5; PAD_DIAMETER = 100; PAD_THICKNESS = 11; BASE_THICKNESS = 2; WALL_THICKNESS = 5; CORNER_SIZE = 15; FIT_CLEARANCE = 2; $fn = 120; totalLength = PHONE_LENGTH + 2 * WALL_THICKNESS + 2 * FIT_CLEARANCE; totalWidth = PHONE_WIDTH + 2 * WALL_THICKNESS + ...
glb/cad_6ab4c204bc22.glb
Create a Christmas Tree Topper Star Base. The main body is a hollow truncated cone with a total height of 135mm, a bottom diameter of 60mm, and a top diameter of 90mm, featuring a wall thickness of 2mm. At the bottom, add a smaller hollow truncated cone extending downwards for 13mm, tapering from 60mm at its top to 40m...
height=135; base_diam=90; wall_thick=2; mount_height=60; mount_id=28; $fn=100; difference() { union() { dock_ring(); hollow_cone(60,base_diam,wall_thick,height,5); translate([0,0,height-mount_height]) cylinder(d1=mount_id+4,d2=base_diam,h=mount_height); } translate([0,0,height-mount_height+5]...
glb/cad_4a78aafeacdb.glb
Create a set of three cutting templates for a Warrior Trike. Each template begins as a solid cube measuring 50.8mm on all sides. From each cube, remove a central rectangular core measuring 38.1mm by 38.1mm and extending through the bottom to create a hollow sleeve with 6.35mm thick walls. For the first template, remov...
translate([-2.05*25.4,-2.1*25.4,0]) { difference(){ cube([2*25.4,2*25.4,2*25.4]); translate([0.25*25.4,0.25*25.4,-25.4])cube([1.5*25.4,1.5*25.4,4*25.4]); translate([1*25.4,0.5*25.4,2.1*25.4])rotate([90,45,0])cube([1.5*25.4,1.5*25.4,4*25.4],true); } translate([2.1*25.4,0,0])difference(){ cube([2*25.4,2*25.4,...
glb/cad_1f41111c2125.glb
Create a name tag by starting with a rectangular base measuring 45mm in length, 15mm in height, and 3mm in thickness. Apply a corner radius of 3mm to all four corners of this base. Center the text "My Name" on the face of the tag. The text should have a font size of 7.5mm and be extruded to a height of 2mm from the s...
xSize = 45; ySize = 15; zSize = 3; holeDia = 3.5; textHeight = 2; textSize = 7.5; myFont = "Liberation Sans"; myColor = "yellow"; myText = "My Name"; holeRad = holeDia/2; baseSize = [xSize, ySize, zSize]; include <MCAD/boxes.scad> module textExtrude() { color(myColor) linear_extrude(height = textHeight) ...
glb/cad_001cfe4c2a62.glb
Create a Wavetek DM27XT Back Support Arm starting with a main rectangular block measuring 89.17mm in width, 45.26mm in depth, and 5mm in height. Carve out a rectangular central void measuring 55.5mm by 39.5mm with a depth of 10mm, centered at X=29.45 and Y=3. Remove two sections from the main body: first, a block 26....
body(); module cyd_left() { translate([3.15/2+.1,6.3-2,3.15/2+.1]) { rotate (a=-90, v=[1,0,0]) { cylinder(h = 3.2+2, r = 3.15/2, $fn=40); } } } module body () { union() { difference() { cube([89.17, 45.26,5]); translate([-1,6.24,-0.5]) { cube([26.17, 32.62,8]); } rotate(a=-10, v = [0,1,0]...
glb/cad_154c81a60570.glb
Create a linear bearing consisting of two identical mirrored halves. For each half, start with a cylinder 12mm high with an outer diameter of 14.8mm and a concentric inner hole with a diameter of 8mm. Carve seven rectangular slots radially through the walls of each half-cylinder. These slots should be centered vertic...
outer_diameter = 14.8; outer_radius = outer_diameter / 2; inner_diameter = 8; inner_radius = inner_diameter / 2; sidewall_thickness = 2; height = 12; split_bearing = "Yes"; resolution = 200; fudge = .1; module half_bearing() { rotate([0,0,-15]) difference() { cylinder(r = outer_radius, h = height, $fn = resol...
glb/cad_de9ef1e4903e.glb
Create an Air Compressor Quick Connect Male Coupler consisting of a series of stacked, concentric cylinders with a central longitudinal hole. Start by creating a main base cylinder with a radius of 5.83mm and a height of 30.36mm. At the bottom of this base, add a conical transition section that flares outward from a ra...
mirror([0,0,1]) { translate([0,0,-44.78]) { difference() { union() { translate([0,0,14.42]) { cylinder(h = 44.78-14.42, r = 11.66/2, $fn=100); } translate([0,0,14.42-2.73]) { cylinder(h = 2.73+0.00001, r1 = (7.77/2)-0.00001, r2=11.66/2, $fn=100); } translate([0,0,5.33]) { translat...
glb/cad_f70027a4c546.glb
Create a stylized robot figure composed of blocky, rectangular sections. For the head, create a central cube measuring 6mm by 10mm by 10mm. Attach two small 2mm by 2mm by 2mm cubes to the top corners of the head to serve as ears, and a 2mm by 6mm by 2mm rectangular strip across the lower front of the face. For the bod...
translate([10,-5,6]){ rotate([0,90,0]){ translate([4,8,10]){ cube([2,2,5]); } translate([4,0,10]){ cube([2,2,5]); } cube([6,10,10]); translate([-2,6,6]){ cube(2,2,2); } translate([-2,2,6]){ cube(2,2,2); } translate([-2,2,2]){ cube([2,6,2]); } translate([0,-5,-20]){ cube([6,20,20]); } translate([2,-9,-15...
glb/cad_8085a19a7d4b.glb
Create a chair leg foot protector consisting of a rounded cap and a tapered sleeve. Start by creating a sphere with a diameter of 20mm. Attached to the bottom of this sphere, construct a vertical sleeve composed of four stacked conical sections. Each section is 2mm high. The first section starts at the base of the sphe...
echo(version=version()); color("black") difference() { translate([0, 0, -19]) cylinder(h=19, d=13); translate([0, 0, -19.1]) cylinder(h=20, d=7.5); } difference() { color("black") translate([0, 0, -4]) cylinder(h=2,d1=13 ,d2=16.5 ); translate([0, 0, -4.1]) cylinder(h=2.2, d=7.5); } difference() { ...
glb/cad_477d991abb1b.glb
Create a 9V battery case by starting with a solid rectangular block measuring 69mm in length, 33mm in width, and 24mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 65mm by 27mm by 30mm, positioned 2mm from the front, side, and bottom edges, to create a shell with walls 2mm t...
difference(){ cube([69,33,24]); translate([2,3,2]) cube([65,27,30]); translate([0,3,21]) cube([65,27,4]); translate([0,2,20]) cube([65,29,2.1]); translate([-5,16.5,5]) rotate([0,90,0]) cylinder(10,2,2,$fn=30); translate([-5,9,10]) cube([15,15,7]);}
glb/cad_d27836e434aa.glb
Create a universal picavet for low-weight cameras. Start by constructing a central cross shape consisting of two intersecting rectangular prisms, each 140mm long, 8mm wide, and 8mm thick, positioned perpendicularly to one another and centered on the origin. Add a central cylinder with a diameter of 22mm and a height of...
diameter=140; thickness=8; bolt=6; picavet_all(); module picavet() { color([0,1,0]); color([0,1,0]) cube([diameter,thickness,thickness],center=true); rotate([0,0,90]) color([0,1,0]) cube([diameter,thickness,thickness],center=true); color([0,0,1]) cylinder(d=thickness*2+bolt,h=thickness,center=true); ...
glb/cad_f14648115a7e.glb
Create a nested tube table with an overall width of 50mm, depth of 30mm, and height of 20mm. The structure is built using square tubes with a thickness of 1mm and a wall gauge of 1/8mm, featuring rounded corners with a radius of 1/8mm. Construct the four vertical legs as hollow square prisms, each 20mm tall with a 1mm...
table_width = 50; table_depth = 30; table_height = 20; foot_rest_height = 5; tube_thickness = 1; tube_gauge = 1/8; tube_corner_radius = 1/8; qr_code = true; layout = false; $fn = 20; table_z_size = table_height; foot_rest_z_position = foot_rest_height - tube_thickness; module leg() { difference() { t...
glb/cad_416789d72e8c.glb
Create a marble bearing filament holder by constructing a hollowed-out cylindrical ring. Start with a main outer cylinder that has a diameter of 50mm and a height of 12mm. Remove a smaller concentric cylinder from the center with a diameter of 48mm and a height of 13mm, positioned so that it creates a thin-walled outer...
difference() {cylinder(12,50,50); translate([0,0,-2]) cylinder(30,25,25); translate([0,0,1]) cylinder(12,48,48);} difference() {cylinder(12,25,25); translate([0,0,-2])cylinder(30,23,23);}
glb/cad_901fe6e3aad4.glb
Create a 15mm extrusion clamp designed to attach to the side of a rail. The main body is a rounded, organic block approximately 15mm wide and 40mm long. On the inner face, create a rectangular cutout to fit over the 15mm extrusion rail. This cutout should be 15mm wide and 15mm high, with a slightly tapered interior t...
m3nutRad = 5.5/2/cos(30); clamp15lower(); *difference() { rotate([75,0,0]) clamp15lower(); translate([0,0,-10.2]) cube([40,40,10],center=true); } module clamp15upper() difference() { union() { translate([ 0,0,9]) scale([4.3,4.3,14]) sphere(1,$fn=48); translate([-18,0,1]) scale([5,10, 2]) sphere(1,$f...
glb/cad_3b5a741777fe.glb
Create a Box for Cube Puzzle by starting with a solid cube that measures 34mm in width, 34mm in depth, and 32mm in height. From this solid volume, remove a smaller rectangular block to create a hollow interior. This interior cutout should measure 32mm in width and 32mm in depth, with a height of 35mm, and be positioned...
difference() { cube(size = [34, 34, 32]); translate([1, 1, 1]) cube(size = [32, 32, 35]); }
glb/cad_27036bf65b10.glb
Create a portable spool holder by first constructing a vertical support beam as a rectangular prism measuring 10mm wide, 102mm long, and 5mm thick, centered along the X-axis. On the side of this beam, add two flat triangular plates, each 5mm thick, that extend 85mm in length. These plates should be hollowed out by remo...
include </Users/shawn/SourceCode/3D-Designing/MCAD/regular_shapes.scad> holder_height=85; translate([-5,-holder_height/2,0]) cube([10,holder_height*1.2,5]); difference(){ linear_extrude(height = 5, center = false, convexity = 10, twist = 0, slices = 20){ difference() { triangle(holder_height); triangle(ho...
glb/cad_ce04a8cf7da3.glb
Create a Portable Spool Holder by constructing a rectangular base plate that is 177.8mm long, 28mm wide, and 10mm thick. From this main body, remove a central rectangular slot to create two parallel outer rails. This slot should be 157.8mm long and 8mm wide, centered along the length of the plate, leaving two outer wal...
supportWidth=177.8; supportThickness=10; translate([0,0,0]) cube([5,supportWidth,supportThickness]); translate([5,0,0]) cube([13,10,supportThickness]); translate([5,15.5,0]) cube([13,10,supportThickness]); translate([13,20,0]) cube([5,supportWidth-40,supportThickness]); translate([5,supportWidth-10,0]) cube([13,10,su...
glb/cad_e92bc898e0f7.glb
Create a tick puller tool. Start with a central base block that is 100mm wide, 200mm long, and 9mm thick. On the top surface of this base, construct a ring with an outer radius of 20mm and a cross-sectional radius of 9mm. Cut a rectangular notch out of the center of this ring to create an opening. Extend a handle f...
a=100; translate([0,0,-9])one(); translate([0,0,-9])two(); module ramps(){ translate ([30,0,0])hull(){ translate([0,0,10])cylinder(r=.5, h=1, $fn=a); cylinder(r=50, h=.1,$fn=a); } translate ([-30,0,0])hull(){ translate([0,0,10])cylinder(r=.5, h=1, $fn=a); cylinder(r=50, h=.1, $fn=a); ...
glb/cad_b1634f1813e5.glb
Create a cutting template for a Warrior Trike rear fork. Start by constructing a solid block that is 44.45mm wide, 44.45mm deep, and 63.5mm tall. From the center of this block, remove a square column of material to create a hollow square tube with an outer dimension of 39.6875mm by 39.6875mm and a wall thickness of 2.3...
INCHES=25.4; FUDGE=3/64; PIPE=(1.5+FUDGE)*INCHES; THICK=(1.75*INCHES/2)-(PIPE/2); module steelpipe(height) { difference() { union() { cube([1.75*INCHES,1.75*INCHES,height]); translate([0,0,0]) { difference() { cylinder(h=0.4, r=4); translate([0,0,-1])cube([4,4,2]); } } translate([1.75*...
glb/cad_f4c023c3c9bd.glb
Create a cube with equal dimensions of 5mm in length, width, and height.
punkt1=[5,5,5]; cube([punkt1[0],punkt1[1],punkt1[2]]);
glb/cad_91da9dd28a1c.glb
Create an Icicle Ornament by constructing four spiraling, extruded rectangular ribbons that converge toward a point. Each ribbon should be 100mm tall, centered vertically at 50mm, and taper from its base to 20% of its original size at the top. The first ribbon starts as a 20x10mm rectangle and twists 371 degrees; the s...
union(){ difference(){ union(){ translate([0,0,50])linear_extrude(height = 100, twist = 371, scale = 0.2, center = true, slices = 200)square([20,10], center = true); translate([0,0,50])linear_extrude(height = 100, twist = 311, scale = 0.2, center = true, slices = 200)square([23, 3], center = true); trans...
glb/cad_d8d9f730b845.glb
Create a V wheel and bolt assembly. Start by constructing a central vertical cylinder with a radius of 4mm and a total height of 20mm, centered on the origin. Above this cylinder, create a wheel by rotating a specific profile around the Z-axis. This profile is a polygon defined by the points [4,0], [6,0], [8,2], [6,3],...
module module1() { { rotate_extrude( convexity = 10, $fn = 100) polygon(points = [ [4.00,0.00] ,[6.00,0.00] ,[8.00,2.00] ,[6.00,3.00] ,[8.00,4.00] ,[6.00,6.00] ,[4.00,6.00] ] ,paths = [ [0,1,2,3,4,5,6]] ); } } translate([0,0,4]){ module1(); } cylinder(h=20,r=4,center=true,$fn=100); uni...
glb/cad_e19455cb2f01.glb
Create a choke lever for a snowmobile. Start by constructing a central vertical rectangular pillar with a width and depth of 5.6mm and a total height of 63mm. At the bottom of this pillar, attach a rectangular base block measuring 10mm wide, 16mm deep, and 8mm high, centered on the pillar. Within this base block, cre...
difference(){ cube([10,16,8], center=true, $fn=100); translate([0,5.5,0]) rotate(v=[1,0,0],a=90) cylinder(d=4.5, h=5, center=true, $fn=100); translate([0,-5.5,0]) rotate(v=[1,0,0],a=90) cylinder(d=4.5, h=5, center=true, $fn=100); translate([0,-6,-2.5]) cube([1.5,4,3],center=true,$fn=100); translate(...
glb/cad_a29bf22546df.glb
Create a choke lever for a snowmobile. Start by creating a base plate with a height of 12mm, centered on the Z-axis. The footprint of this plate is defined by a polygon with vertices at [0,0], [19,0], [40,6], [40,11], [9.5,11], [8,13], [-1,13], and [0,0]. From this base, remove a cylindrical hole with a diameter of 3mm...
difference(){ linear_extrude(height = 12, center = true, convexity = 10, twist = 0) polygon(points=[[0,0],[19,0],[40,6],[40,11],[9.5,11],[8,13],[-1,13],[0,0]]); translate([8.5,3.5,0]) cylinder(d=3,h=12,center=true,$fn=100); translate([8,4,0]) cube([19,8,6.5],center=true,$fn=100); translate([-3,9,0]) rotate(v=[0,0,1],...
glb/cad_f6c8756874ce.glb
Create a 3D model of a Koch snowflake prism with a wall thickness of 0.7mm and a total height of 90mm. Start by constructing the 2D base as a Koch snowflake. Begin with an equilateral triangle with a side length of 60mm. Apply the Koch curve fractal transformation to each side for 4 iterations, where each segment is ...
$fn=40; side=60; h=90; T=0.7; corr=0.1; iter=4; module triangle_outer(iter, basex1, basey1, base_l, base_th,maxi) { d=T/sin(30); l=base_l/3; x1=basex1+l*cos(base_th); y1=basey1+l*sin(base_th); x2=x1+l*cos(base_th+60); y2=y1+l*sin(base_th+60); x3=basex1+2*l*cos(base_th); y3=basey1+2...
glb/cad_bd7faad6f185.glb
Create an Advanced Composition Explorer model consisting of a central bus and four extending solar arrays. Start with the central bus: create a cylindrical base with a radius of 19.5mm and a height of 6.5mm. Above this, add a side section that is a 40mm cube with a height of 18.5mm, with the four vertical corners cho...
use <MCAD/shapes.scad> topw=40; toph=4; topchop1=16.2; topchop2=12.5; sideh=18.5; antr=10.5; anth=7; antt=1.5; feeda=45; feedr=3; feedt=1.5; baser=19.5; baseh=6.5; magw=4.5; magh=2.5; magbl=44.5; magbw=1; magbbasew=4; arrayl=44; arrayw=20; arrayt=1; strutw=4; strutl=4; strutoffset=5.5; strutclearance=0.1; strutt=...
glb/cad_e376216246d6.glb
Create a tripod mount for an HS-422 servo motor. Start with a rectangular base plate 2mm thick. On this base, build a hollow rectangular box with outer dimensions of 21.8mm by 43.5mm and a height of 34mm. The walls of this box should be 1mm thick. Cut a central slot through the front and back walls of the box that is...
mm_per_in = 25.4; interference_offset = 0.02; box_x_size = 19.8 - interference_offset; box_y_size = 41.5 - interference_offset; box_z_size = 26; plug_x_size = 7; cable_width = 4; cable_height = 1; nut_radius = 5; nut_height = 5; thread_diam_in = 1/4; thread_radius_mm = thread_diam_in/2 * mm_per_in; base_thickness = ...
glb/cad_da9bd11fb13d.glb
Create a keyfob for an RFID tag by designing a flat, asymmetric housing with a thickness of 3mm. The main body is formed by the convex hull of two cylinders: a large primary cylinder with a radius of 12mm and a smaller secondary cylinder with a radius of 6mm positioned 12mm away from the center along the x-axis. Center...
module basic_fob(Rbig=12, H=3, Rsmall=6, Cdist1=12, Rhole=2.5, Cdist2=13) { difference() { hull() { cylinder(r=Rbig, h=H, center=true); translate([Cdist1,0,0]) cylinder(r=Rsmall, h=H, center=true, $fn=16); } translate([Cdist2,0,0]) cylinder(r=R...
glb/cad_803912a1f279.glb
Create a self-aligning drop nut by starting with a central rectangular block that is 20.14mm long, 5mm wide, and 3mm high, centered on the origin. Trim the four corners of this block by removing two smaller cubes, each 14.14mm long, 5mm wide, and 3mm high, rotated 45 degrees and positioned at the ends of the main body ...
screwHoleWidth=2.5; hexNutHoleWidth=4.2; hexDepth=2.2; slotWidth=10; length=sqrt(2)*slotWidth; width=5; height=3; x = sqrt(2)*(length + width)/2; difference(){ cube([sqrt(2)*length+width, width, height], center=true); translate([x, 0, 0]) rotate([0, 0, 45]) cube([length, width, height], center=true); ...
glb/cad_c8d982f2028b.glb
Create a two-color calibration cube by constructing a main cube with dimensions 19.99mm x 19.99mm x 9.99mm, centered on the Z-axis at 5mm. To divide this volume into two interlocking parts, create a secondary geometric shape that intersects the main cube. Position a rectangular prism measuring 20mm x 20mm x 5mm, cent...
module calibCube2(thisIsPartA=true) { if (thisIsPartA) echo("parta"); translate([0,0,thisIsPartA?7.5:2.5])cube([20,20,5],center=true); } module calibCube3(thisIsPartA=true) { translate([0,thisIsPartA?-5:5,5])cube([20,10,10],center=true); } module calibCube4(thisIsPartA=true) { translate([0,thisIsPartA?-5:5,2.5])cub...
glb/cad_7c9fd956cfa7.glb
Create a 3D model of a Turtle Spiral by extruding a 2D polyline to a height of 5mm. The 2D shape is generated as a continuous path of connected line segments, each with a width of 1mm and rounded caps. Start the path at coordinates (0,0) facing 0 degrees. Draw the first segment with a length of 100mm. For every subse...
height = 5; beginning_length = 100; decreasing_step = 0.5; angle = 89; ending_length = 5; line_width = 1; module line(point1, point2, width = 1, cap_round = true) { angle = 90 - atan((point2[1] - point1[1]) / (point2[0] - point1[0])); offset_x = 0.5 * width * cos(angle); offset_y = 0.5 * width * sin(angle)...
glb/cad_54ba31f2eefa.glb
Create a Modelcraft RS-2 servo model. Start with a main body that is 40.3mm long, 32.7mm high, and tapers slightly from a width of 20.1mm at the base to 19.5mm at the top. On the bottom surface, place two mounting tabs, one at each end. Each tab is a block 19.5mm wide, 8mm long, and 2mm thick. In each tab, center two...
$fs=0.3; module wedge(width, length, height) { polyhedron( points=[ [0, 0, 0], [0, length, 0], [0, length, height], [width, 0, 0], [width, length, 0], [width, length, height] ], triangles= [ [0, 1, 2], [3, 5, 4], [1, 4, 2], [4, 5, 2], [0, 3, 4], [0, 4, 1], [0, 2, 5], [0, 5, 3] ...
glb/cad_4bdd920dba44.glb
Create two identical bar clamps designed to secure 8mm rods. For each clamp, start with a primary body formed by a cylinder with a radius of 7.3mm and a height of 14.6mm, using a 20-facet resolution. Merge this cylinder with a rectangular block measuring 17.5mm in length, 14.6mm in height, and 14.6mm in width, centered...
include <configuration.scad> outer_radius=m8_diameter/2+3.3; clamp_length=17.5; clamp_height=2*outer_radius; slot_width=2; close = 4.9; module half_barclamp() { difference() { union() { cylinder(h=outer_radius*2,r=outer_radius, $fn = 20,center=true); translate([outer_radius, 0, 0]) cube([clamp_l...
glb/cad_ebbde9f03aea.glb
Create an improved bar clamp for joining 8mm rods. The main body consists of two identical mirrored halves. For each half, start with a cylinder of radius 7.3mm and height 14.6mm, using 20 facets. Attach a rectangular block to the side of this cylinder measuring 17.5mm in length, 14.6mm in height, and 7.3mm in width. ...
include <configuration.scad> endstop = 1; outer_radius=m8_diameter/2+3.3; clamp_length=17.5; clamp_height=2*outer_radius; slot_width=2; close = 4.9; module half_barclamp() { difference() { union() { cylinder(h=outer_radius*2,r=outer_radius, $fn = 20,center=true); translate([outer_radius, 0, 0]) ...
glb/cad_c0c1dfbeb2d0.glb
Create a Build Volume Tray consisting of a hollow rectangular basin and a single vertical column. First, construct the basin as a rectangular box measuring 130mm in width (X), 110mm in depth (Y), and 15mm in height (Z). Hollow out the center of this box by removing a smaller rectangular volume of 127mm by 107mm, leavin...
tray_x = 130; tray_y = 110; tray_z = 15; tray_base_thickness = 3; column_xy = 6; column_z = 96; union(){ difference() { cube([tray_x, tray_y, tray_z], center = true); translate([0,0,tray_base_thickness]) cube([tray_x-3, tray_y-3, tray_z], center = true); } translate([-tray_x/2+column_xy/2,0,column_z/2-tray...
glb/cad_ed268fa6eb48.glb
Create a Parametric Cylindrical Mount for a geared extruder. Start with a main cylinder that has a height of 15mm and an outer radius of 20.65mm (the sum of a 18.15mm gear box radius and a 2.5mm clamp thickness). Hollow out the center of this cylinder with a radius of 18.15mm. To secure the mount to an extrusion beam,...
ClampHeight=15; GearBoxRadius=18.15; ClampThickness=2.5; ExtrudedBeamWidth=20; M3HeadHeight=3.1; MainCylinderFn=64; ClampRadius=GearBoxRadius+ClampThickness; module extruderClamp() { difference() { union() { color( "blue", 1) cylinder(h=ClampHeight, r=ClampRadius, $fn=MainCylinderFn); h...
glb/cad_463ecb645a3d.glb
Create a door knob by combining a sphere and a cylinder. First, create a sphere with a radius of 15mm centered at the origin. Then, place a cylinder with a radius of 10mm and a height of 30mm vertically on top of the sphere so that the cylinder's base is centered at the origin, causing the bottom half of the cylinder t...
cylinder(30,10,10); sphere(15);
glb/cad_dde2eccc28c5.glb
Create an Inverse Turners Cube by constructing a series of five concentric spherical shells. For each shell, starting from an initial radius of 5mm and increasing the radius of each subsequent shell according to a power law where the radius is multiplied by 3 for each step, create a sphere. From each of these spheres, ...
module col(u,n,p,vs) { r = u*pow(n,p); v = vs*r; difference () { sphere(r=r); rotate (45,[0,0,1]) cube (size=[v,v,r*3], center=true); rotate (45,[0,1,0]) cube (size=[v,r*3,v], center=true); rotate (45,[1,0,0]) cube (size=[r*3,v,v], center=true); } } module inverseTernerCube(w,p,vs,s,n) { ...
glb/cad_5adfb3a5a70f.glb
Create a Turners Cube by starting with a solid cube that is 40mm on each side, centered at the origin. From this cube, remove a series of concentric cylinders along each of the three primary axes (X, Y, and Z). For each axis, remove four cylinders centered on that axis. The cylinders for each axis should be spaced 5mm ...
module cyls(u,du,n) { union() for (i=[1:n]) translate ( v=[0,0,i*u-u] ) cylinder (h = 2*u, r = i*du*u, center=false); } module turnersCube(u,du,n) { cr = 2*n*u; difference(){ cube( size=[cr,cr,cr] , center = true ); cyls(u,du,n); rotate ( 90, [0,1,0] ) cyls(u,du,n); rotate (...
glb/cad_935516046e3b.glb
Create a boat propeller consisting of a central axle and multiple swept blades. First, construct the axle by combining a cylinder with a radius of 100mm and a length of 270mm, capped at one end with a hemisphere of the same 100mm radius. Bore a concentric hole through the center of this axle with a radius of 50mm. T...
use <naca4.scad> use <Naca_sweep.scad> use <splines.scad> N = 100; R_axis = 100; r_bore = 50; size = .1; slices = false; ty = 50; A = [ [0, ty, 60, -25, 0, 300, .12, .1], [-50, ty, 200, -50, 0, 600, .2, .08], [-100, ty, 500, -75, 0, 700, .1, .06], [00, ty, 660...
glb/cad_aa3a285a7bcb.glb
Create a Christmas T-ball ornament by starting with a central sphere 50mm in diameter. Add a thin circular ring with a 2mm diameter and a 6mm inner radius, centered 25mm above the sphere's origin. To create the wing structures, rotate the following components 30 degrees along the X-axis: place two hexagonal rings on op...
sphere(d=50); rotate([30, 0, 0]) union(){ translate([-26, 0, 0]) rotate([0, 90, 0]) difference(){ cylinder(2, d=57.5, $fn=6); cylinder(0.2, d=55, $fn=6); } translate([24, 0, 0]) rotate([0, 90, 0]) difference(){ cylinder(2, d=57.5, $fn=6); translate([0.2, 0, 1.8]) cylinder(1, d=55, $fn=6); } } tra...
glb/cad_4ab01d3951c7.glb
Create a saddle clamp for a 1-1/4 inch pipe. Start by forming a semi-cylindrical band with a height of 15mm and an inner diameter of 34mm. The band should be constructed using a low-facet resolution to appear as a faceted polygonal arc rather than a smooth curve. Extend two flat rectangular mounting tabs, known as dog-...
difference () { cylinder(15,19,19); translate([0,0,-1]) cylinder(17,17,17); rotate([0,0,44]) translate([-17.5,3,-1]) cube ([35,35,17]); } difference () { rotate([0,0,44]) translate([-37,-5,0]) cube([20,24,15]); rotate([0,0,44]) translate([-39,-7,-1]) cube([20,24,17]); translate([-35,-5,7.5]) rotate([90,20,44]) cylinde...
glb/cad_9937c4a5b01b.glb
Create a Raspberry Pi V2 or B+ parametric enclosure consisting of a bottom base and a top lid. The main internal cavity is sized for a PCB of 85mm by 56mm. For the bottom section, create a rectangular tray with a wall thickness of 1.2mm and rounded corners of 1.2mm. The floor should be 4mm below the PCB level. Add fou...
part = "bottom"; have_plugrow = 0; have_open_plugrow = 0; have_camera = 0; have_sdcard_support = 1; have_leds = 1; mil2mm = 0.0254; pcb = [85.0, 56.0, 1.5]; pcb2floor = 4.0; pcb2roof = 17.0; pcbmntdia = 2.75; pcbmnt1dx = pcb[0]/2 - 3.5; pcbmnt1dy = 3.5 - pcb[1]/2; pcbmnt2dx = pcb[0]/2 - 3.5 - 58.0; pcbmnt2dy = pcb[...
glb/cad_1f081a95b7c3.glb
Create a shop play-set consisting of a base platform, support pillars, and shelving. Start with a large rectangular base plate measuring 2000mm by 2000mm with a thickness of 10mm. Construct two vertical support structures on opposite sides. Each structure consists of two cylinders with a radius of 40mm; one cylinder ...
dicke_stand = 40; dicke_auflage = 14; module kasse(){ translate([-70, 260, 300]){ cube([230, 180, 150], center=false); } } translate([-500, -500, -10]){ color( "SaddleBrown", 1) cube([2000, 2000, 10], center=false); } module ablagen() { translate([-100, 0, 0]){ rotate([4...
glb/cad_c5dc49da7a6a.glb
Create a teddy bear composed entirely of spheres. Start with a central body sphere with a radius of 14mm centered at coordinates (10, 10, 0). Place a head sphere with a radius of 17mm centered at (10.5, 35, 0). For the limbs, add two arm spheres with radii of 8mm, positioned at (8, 0, 0) and (20, 0, 0). Add two leg sph...
translate([10,10])sphere(14); sphere(8,0); translate([20,0])sphere(8,0); translate([10.5,35])sphere(17); translate([-7,30])sphere(5); translate([28,30])sphere(5); translate([22,50.8])sphere(6.5); translate([-0.5,50.8])sphere(6.5);
glb/cad_a9bddf81e71b.glb