Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a checker game piece with a base diameter of 26mm and a total height of approximately 14mm. Start by creating a solid cylinder for the base with a diameter of 26mm and a height of 1mm. Above this base, construct a rounded, bowl-like body that transitions from the 26mm diameter at the bottom to a narrower top. Th...
a = 26; b = 1; r1 = 5; r7 = 1; fn=100; r5 = r1*(sqrt(2)-1); difference(){ union(){ translate([0,0,b]) rotate_extrude(convexity = 10, $fn = fn) difference(){ translate([0.5*a-r1, 0, 0]) circle(r = r1, $fn = fn); translate([-2*r1,-r1,0]) square([2*r1,2*r1],center=false); translate([...
glb/cad_c9bac4727927.glb
Create a replacement panel for a chest fridge controller. Start with a rectangular base measuring 55mm wide, 160.5mm long, and 3mm thick, with rounded corners using a 6mm radius. Cut a rectangular opening in the center of the panel measuring 30mm wide by 70.5mm long and 20mm deep. Create two mounting holes centered a...
module fridge_panel(size, radius) { x = size[0]; y = size[1]; z = size[2]; mount_spacing = 148; t_height = z - .5; difference() { 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])...
glb/cad_6785ad3a51c1.glb
Create a customizable ring with a rounded profile. The ring should have an inside diameter of 20mm, a wall width of 5mm, and a total height of 10mm. The main body is a rounded band formed by a torus-like cross-section. The outer diameter is 30mm. The ring's profile is rounded on the top and bottom edges. Incorporat...
use <write/Write.scad> text = "TEXT"; rounded_text = "yes"; letters_inside = "no"; text_font = "write/Letters.dxf"; font_Width = 3; text_percent_of_height = 70; letter_spacing = 22; inside_diameter = 20; Width = 5; Height = 10; band_OD_percent = 70; band_ID_percent = 100; band_type = "rounded"; split_band = "no"; s...
glb/cad_77ec736bb7d7.glb
Create a parametric cable chain consisting of a series of interlocking links. Each individual link has a width of 16.6mm, a height of 13mm, and a length of 25mm. Construct each link as a rounded rectangular frame. The main body is a block with a semi-cylindrical outer edge with a radius of 6.5mm. The link should feat...
use <text_on.scad> ChainDef = [[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,30],[1,30],[1,30],[1,30],[1,30],[1,30],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0],[1,0]]; Type = 2; Round = 1; width = 16.6; height = 13; length = 25; if((!Type && !Start...
glb/cad_979c45a47329.glb
Create an Elongated Trek Clip by constructing a central stem and an integrated clip. The main body is a rectangular stem measuring 0.11mm by 2.25mm with a height of 0.5mm. At the center of this stem, create a vertical cylindrical bore that passes through the height of the object; the bore starts with a diameter of 0.16...
defaultY = 2.25; defaultZ = .5; clipX = .75; clipY = 1.75; clipZ = .12; stemX = .11; stemY = defaultY; stemZ = .4; stemEndX = .24; stemEndY = .12; stemEndZ = defaultZ; stemBoreD1 = .16; stemBoreD2 = .21; stemBoreDiameter = stemEndX; stemBoreHeadZ = .10; edgeR = .05; $fn=50; module cubeR(size, r) { newX = siz...
glb/cad_4d5c44a0cc5f.glb
Create an OpenForge Multifloor Frame consisting of a grid of four rectangular cells arranged in two rows and two columns. The overall footprint is a solid block measuring 50mm in width and 50mm in depth, with a height of 7.5mm. Each individual cell is defined by a rectangular outer boundary of 50mm by 50mm. From each ...
element_x = 2; element_y = 2; rows = 2; columns = 2; left_edge = "false"; right_edge = "false"; front_edge = "false"; back_edge = "false"; module frame_square(x,y,l,r,f,b) { difference() { union() { translate([-l,-f,0]) cube([25*x+r+l,25*y+f+b,7.5]); } translate([3.6-l,3.6-f,-0.1]) cube([25*x+r+l-7...
glb/cad_591f2e7e111d.glb
Create a Quick Tension Knob system consisting of three parts: a knob, a pulley carrier, and a mount. First, create the knob. Start with a cylindrical worm gear base 11mm in diameter and 35mm tall (40mm total height minus a 5mm floor thickness). Add external threads with a 3mm pitch. Top this with a conical neck 6mm hi...
parts = ["knob", "pulley_carrier", "mount"]; for_printing = true; carrier_tolerance = 0.55; worm_tolerance = 0.075; knob_with_logo = true; knob_logo_depth = 0.6; knob_dia = 35; knob_height = 12; knob_detent_dia = 15; knob_detent_depth = 2; detent_count = 6; knob_neck_height = 6; use <ISOThreadUM2.scad>; pulley_s...
glb/cad_ed93001fe1cf.glb
Create a 30mm fan cooling bracket for a heat sink. Start with a central cube measuring 30mm x 30mm x 31mm. Remove a cylindrical core from the center of the cube along the Z-axis with a diameter of 25mm and a height of 33mm to accommodate the heat sink. Create a second cylindrical cutout passing through the center alo...
out_cube_x = 30; out_cube_y = 30; out_cube_z = 31; cut_cube_offset_factor = 0.70; cyl_cut_diameter = 25; cyl_cut_z = out_cube_z + 2; hole_cuts_diameter = 3; hole_cuts_z = 40; hole_cuts_seperation = 23.75; cut_fan_diameter = 28.5; cut_fan_z = out_cube_x + 2; finished_article(); module finished_article(){ diffe...
glb/cad_2848384f6864.glb
Create a Mini PCI-E Half Length Adapter by starting with a rectangular base plate measuring 29mm wide, 33mm deep, and 1mm thick. At the rear edge, centered 30mm from the front, place two small cylindrical pegs with a radius of 1.5mm and a height of 3mm, positioned 2.5mm from each side edge. On the front face of the bas...
difference() { union(){ cube(size = [29,33,1]); translate([2.5,30,0.5]) { cylinder(h=3, r=1.5, $fn=20); } translate([26.5,30,0.5]) { cylinder(h=3, r=1.5, $fn=20); } } translate([4.5,26,-0.5]) { cube(size = [20,7.5,2]); } translate([3,4.5,-0.5]) { cylinder(h=2, r=1.25, $fn=20); } translate([26.5,4...
glb/cad_c8baefa7f9f5.glb
Create a remote control holder by starting with a solid rectangular base measuring 80mm by 150mm with a thickness of 5mm. On top of this base, center a rectangular block that is 60mm wide, 130mm long, and 50mm high. From this upper block, carve out four separate rectangular sockets, each 50mm deep, starting from a heig...
foot = 10; thick = 5; height = 50; module RMC_LG_long() { cube([ 49, 25, height ]); } module RMC_Samsung_long() { cube([ 49, 31, height ]); } module RMC_HyRoad_normal() { cube([ 51, 29, height ]); } module RMC_Speaker_normal() { cube([ 51, 20, height ]); } difference() { union() { cube(...
glb/cad_d879cf954fde.glb
Create an Open Hardware Logo Bookmark. Start by constructing a rectangular base 80mm wide, 30mm deep, and 1mm thick, centered on the origin. Carve out a central rectangular slot 70mm wide and 2mm high, positioned 10mm from the center in both the positive and negative Y directions, and remove a 2mm wide section from one...
module gear_tooth_2d(d) { polygon( points=[ [0.0,10.0*d/72.0], [0.5*d,d/15.0], [0.5*d,-d/15.0], [0.0,-10.0*d/72.0] ] ); } module oshw_logo_2d(d=10.0) { rotate(-135) { difference() { union() { circle(r=14.0*d/36.0,$fn=20); for(i=[1:7]) rotate(45*i+45) gear_tooth_2d(d); } circle(r=10.0*d/...
glb/cad_0f5620e72ea8.glb
Create a hexagonal card box consisting of a main body and a separate lid. For the main body, create a hexagonal prism with a radius of 48mm (from center to vertex) and a height of 35mm. Hollow out the center by removing a hexagonal prism with a radius of 45mm and a depth of 24mm, leaving a 3mm thick wall and a 11mm t...
height = 35; lid_height = 5; lid_cutout = 3; box_inner_depth = 24+lid_cutout; sides = 6; r = 90/2; box_thickness = 3; assembly_clearance = 0.4; star_size = 14; star_height = 3; mini_star_size_outer = 2; mini_star_size_inner = 1; mini_star_dia = 50/2; difference(){ linear_extrude(height){ polygon(ngon(sid...
glb/cad_b2d164b922f0.glb
Create a Linear Stage guide consisting of a base and four walls. Start with a rectangular base plate measuring 2.5mm by 2mm with a thickness of 0.375mm. Add two end plates, one at the front and one at the rear, each measuring 0.375mm by 2mm with a height of 0.875mm. Construct two side walls running the length of the ba...
len = 2.5; dtap = 0.201+0.01; dth = 0.25+0.05; dcs = 0.375+0.05; show_guide = 1; show_lowcarriage = 0; show_uppcarriage = 0; show_rod = 0; show_knob = 0; if(0) { color([1,0,0]) cube([1,0.1,0.1]); color([0,1,0]) cube([0.1,1,0.1]); color([0,0,1]) cube([0.1,0.1,1]); } if(show_guide) { difference() { union() { ...
glb/cad_9e249535e07c.glb
Create a robotic leg component for the Chevaline vehicle consisting of two main sections: an upper leg and a lower leg. For the upper leg, create a rectangular block with dimensions 40mm in length, 12mm in width, and 11.25mm in height. Center this block and remove a central rectangular slot measuring 8mm by 4mm by 10...
include <parameters.scad>; include <servo.scad>; pad = 0.01; leg_upper(); module leg_upper() { union() { difference() { translate([0,0,bolt/2]) { difference() { cube([leg_upper_length,servo_d1*1.5,servo_disk_h*3+bolt], center=true ); translate([-leg_upper_length/3,0,0]) cube([servo_w1+bolt, servo_disk_r*2-4, 1...
glb/cad_84e4cd1d7f2f.glb
Create a post fairing replacement consisting of two separate parts: a large main collar and a small insert piece. For the main collar, create a base cylinder with a radius of 40mm and a height of 5mm. On top of this base, add a second cylinder with a bottom radius of 40mm and a top radius of 15mm, with a height of 10...
difference() { union() { rotate([0,0,0]) translate([ 0,0,0]) cylinder(r1=40, r2=40, h=5,$fn=128); rotate([0,0,0]) translate([ 0,0,5]) cylinder(r1=40, r2=15, h=10,$fn=128); rotate([0,0,0]) translate([ 0,0,23]) cube([38,38,28], center=true); } rotate([0,0,0]) translate([ 0,0,25]) cube([27,27,60...
glb/cad_a89099f818d3.glb
Create a rod cover for a Hesine XI3 printer by constructing a hollow cylinder. The outer shell should be a cylinder with a diameter of 7mm and a height of 15mm. Remove a concentric cylindrical core from the center with a diameter of 3.5mm and a height of 15mm to create a tube. Ensure the circular facets are rendered wi...
$fn = 50; difference() { cylinder(d=7, h=15); cylinder(d=3.5, h=15); }
glb/cad_4454e3afe5d6.glb
Create a small rectangular block for a Hesine XI3 spare part with overall dimensions of 17mm in length, 9.6mm in width, and 8mm in height. The four vertical edges of the block must be rounded with a radius of 1mm. From this main body, remove a rectangular slot measuring 2mm by 6.9mm, centered along the width and posi...
$fn = 40; module roundedcube(xdim, ydim, zdim, rdim) { hull() { translate([rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); } } le = 17; we = 9.6; ...
glb/cad_31a5647c9710.glb
Create a rod cover by starting with a solid base formed from the convex hull of two cylinders, each with a diameter of 9.2mm and a height of 4.5mm. Position the first cylinder at the origin and the second cylinder at x = 21.4mm, with their centers aligned on the X-axis. From this solid shape, remove two vertical cylind...
$fn = 50; difference() { hull() { cylinder(d=9.2, h=4.5); translate([21.4-9.2/2,0,0])cylinder(d=9.2, h=4.5); } union() { cylinder(d=3.4, h=20, center=true); translate([21.4-9.2/2,0,0])cylinder(d=3.4, h=20, center=true); } }
glb/cad_6e1cdde03e37.glb
Create a rod cover spare part with a thickness of 7.6mm. Start by creating a semi-circular base with a radius of 40mm. From this base, remove several geometric sections to create the final profile. First, remove a rectangular block measuring 40mm by 40mm by 10mm from the left side, and another 40mm by 40mm by 10mm bloc...
$fn = 50; br = 40; module base() { difference() { translate([br,0,0])cylinder(r=br, h=7.6); union() { translate([br,0,-1])cube([40, 40, 10]); translate([0,-br,-1])cube([40, 40, 10]); translate([br,-br,-1])cube([40, 40, 10]); } } } difference() { base(); union() { translate([7.25,0,-1])cube([12.5, 8.1,...
glb/cad_84d9905585aa.glb
Create a rectangular plate for a Hesine XI3 spare part with overall dimensions of 41.75mm in width, 29.95mm in height, and a thickness of 6mm. The four vertical corners of the plate must be rounded with a radius of 1.5mm. Center a circular hole with a diameter of 3.45mm through the entire thickness of the plate, posi...
include <shapes.scad> $fn = 30; module roundedcube(xdim, ydim, zdim, rdim) { hull() { translate([rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); } }...
glb/cad_a121d107ef02.glb
Create a rod cover by constructing a solid shape that is the convex hull of two cylinders. The first cylinder has a diameter of 14.75mm and a height of 4.45mm, positioned with its center at x=22.55mm, y=0, z=0. The second cylinder has a diameter of 12.7mm and a height of 4.45mm, centered at the origin (0,0,0). Once thi...
$fn = 50; difference() { hull() { translate([29.65-14.75/2 -12.7/2,0,0])cylinder(d=14.75, h=4.45); cylinder(d=12.7, h=4.45); } cylinder(d=3.6, h=10, center=true); }
glb/cad_f416af063ffd.glb
Create a Hesine XI3 spare part by starting with a base shape that combines a rounded rectangular prism and a cube. The main body is a rounded rectangular prism with dimensions 28.35mm in width, 23.2mm in depth, and 7.54mm in height, with corner radii of 1.5mm. Attached to the right side of this prism is a cube measurin...
$fn = 30; module roundedcube(xdim, ydim, zdim, rdim) { hull() { translate([rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); ...
glb/cad_44e76d6f4f09.glb
Create a rectangular mounting plate for a Hesine XI3 endstop. Start with a solid block measuring 50.3mm in width, 22.7mm in depth, and 7.55mm in height. Round the four vertical corners of this block with a radius of 1.5mm. Remove four cylindrical holes that pass completely through the height of the block. Place two m...
$fn = 30; module roundedcube(xdim, ydim, zdim, rdim) { hull() { translate([rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); } } wi = 50.3; he = 22.7;...
glb/cad_01d37893e556.glb
Create a small rectangular block with dimensions 17.1mm in width, 13.75mm in depth, and 7.6mm in height. Round the two front corners of the block with a radius of 1mm. Carve out two rectangular slots from the top face: one measuring 3.5mm by 100mm (extending through the height) positioned at x=7.8mm, y=3.3mm, and ano...
$fn = 40; module roundedcube(xdim, ydim, zdim, rdim) { hull() { translate([rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,rdim,0])cylinder(r=rdim, h=zdim); translate([rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); translate([xdim-rdim,ydim-rdim,0])cylinder(r=rdim, h=zdim); } } module 2cornerswitho...
glb/cad_93ff14eda0c3.glb
Create a children's rattle by combining a hollowed-out octahedron with a topped cylinder. Start by creating a large octahedron with a radius of 20mm. Hollow this shape out by removing a smaller concentric octahedron with a radius of 15mm. Centered on the top face of this hollowed octahedron, add a vertical cylinder wit...
s = 20; h = 40; hh = 46; union() { difference() { sphere(r=h/2, center=true,$fn=4); sphere(r=h/2-5, center=true,$fn=4); } translate([0,0,h/2-5+hh/2]) cylinder(r=s/8,h=hh,center=true); translate([0,0,h/2-5+hh]) sphere(r=5,center=true); }
glb/cad_02281e055bcd.glb
Create a Handlebar Cupholder consisting of three main components: a handlebar mount, a swivel mount, and a cup holder. First, create the handlebar mount. Start with a cylinder of radius 21.95mm (based on a 12.7mm handlebar radius and 19.05mm mount thickness) and height 19.05mm. Cut a central cylindrical hole with a ra...
inch=25.4; slop=0.2; m5_head_rad=5+slop; m5_thread_rad=2.5+slop; m5_thread_thickness=.8; m5_locknut_height=5; m5_locknut_rad=(8/cos(180/6))/2; m3_thread_rad=2; m3_locknut_height=4; m3_locknut_width=5.5/cos(180/6); m3_head_height=1.65+slop; m3_head_width=5.5+slop; $fn=360; cupholder_height=114; cupholder_top_ring_height...
glb/cad_bca98bd22de2.glb
Create a screwdriver consisting of a cylindrical handle and a long, tapered shaft. Start by creating a cylindrical base with a radius of 14mm and a height of 50mm, using a 36-facet resolution. Centered on top of this base, extend a shaft upwards with a total height of 80mm. The main body of this shaft should be a squar...
base_r = 14; base_h = 50; cyl_h = 80; cyl_r = 7.5/2; taper_l = 20; resolution = 36; pad = 0.03; cyl_w = cyl_r; taper_t = atan(cyl_w/taper_l); module screwdriver() { union() { cylinder( r=base_r, h=base_h, center=true, $fn=resolution ); translate([ 0,0,base_h/2+cyl_h/2 ]) { difference() { ...
glb/cad_37b0faa80657.glb
Create a Parametric Coin Storage Tube set consisting of two main tubes and two matching caps. For the tubes, create two identical hollow cylinders. Each cylinder should have an outer radius of 13.65mm and a total height of 63.33mm. The walls and the bottom base must be 2mm thick. The inner cavity should have a radius...
coin_type = 0; number_of_coins = 25; number_of_tubes = 2; generate_tube = 1; generate_cap = 1; tube_wall = 2; clearance = 0.4; fudge_factor = 0.975; coins = [ ["1 Euro", 23.25, 2.33], ["2 Euro", 25.75, 2.20], ["50 Euro cents", 24.25, 2.38], ["20 Euro cents"...
glb/cad_940312fee52f.glb
Create a GPS-Dome for a quadcopter with a 30.5mm x 30.5mm footprint. First, construct the cover dome. Create a top plate 1mm thick with rounded corners (radius 2.75mm). At each of the four corners, add a cylindrical leg with a height of 18mm and a diameter of 5.5mm. Connect the legs with a 1mm thick border wall along...
visible = "all" ; Support = 0 ; fhd = 30.5 ; h_dome = 18.0; h_Plate = 1.0 ; h_Bord = 2.0 ; tophole_dia = 0 ; Cyl_Dia = 5.5 ; Cyl_Wall = 1.2 ; M3_Dia = 3.5 ; M3_Sink_dia = 5.9 ; M3_Sink_ht = 10 ; M3_Head_Chamfer = 0.2 ; z_level = 9 ; h_level = 1.1 ; Gap_level = 0.2 ; level_dia = 22 ; if (visible == "all...
glb/cad_d85dfcf8f889.glb
Create a Ratchet Cam by constructing a cylindrical gear-like shape with a total height of 10mm. The object is composed of 10 primary teeth distributed evenly around a central axis. Each of these 10 teeth is further subdivided into 11 smaller radial slices, creating a total of 110 incremental steps around the circumfere...
module RatchetCam(toothcount, lowradius, highradius, height, resolution){ if(round(resolution/toothcount)!=resolution/toothcount){for(i=[1:100]){echo("YOU MUST CHANGE YOUR RESOLUTION");}} its = resolution / toothcount; inc = (highradius - lowradius) / its; module slice(rad1, rad2, degrees){ opp=sin(degrees)*rad...
glb/cad_f11dd5c0c5c0.glb
Create a customizable game cartridge holder designed to hold 8 cartridges. Start by constructing a solid base block that resembles a set of stairs. This overall structure should have a total width of 120mm (117mm for the cartridge plus a 3mm wall) and a total depth of 171mm (8 cartridges multiplied by a 21mm step heigh...
cartridgeX = 117; cartridgeY = 21; holderDepth = 18; wallWidth = 3; numCartridges = 8; module cartridge() { cube([cartridgeX,cartridgeY,holderDepth]); } module stadium(levels, width, stairsize) { for ( l = [0 : levels]) { translate([0,0,l*(stairsize/2)]) cube([width, (levels*stairsize)-(l*stairsize), stairsi...
glb/cad_016ae99b6f9a.glb
Create a Smart Wheel consisting of a main outer rim and a set of individual spokes. First, construct the wheel rim as a hollow cylinder with an outer radius of 45mm, a width of 40mm, and a wall thickness of 7mm. Along the outer circumference of this rim, create 33 rectangular openings to accommodate the spokes. These...
wheel_r = 45; wheel_w = 40; wheel_t = 7; spokes_t = 11; spokes_w = 3; spoke_w = 9; spoke_a_w = 8; spoke_a_h = spoke_a_w; spoke_l = 49; spoke_h = spoke_w; brace_offs = 8; brace_r = 2; res = 40; notch_h = 10; notch_w = 2.5; pad = 0.01; module wheel() { difference() { cylinder(r=wheel_r, h=wheel_w, cent...
glb/cad_2ff6ec91f0cc.glb
Create a custom turntable foot consisting of two stacked concentric cylindrical sections. Start by creating a wide base cylinder with a diameter of 24mm and a height of 5mm. Remove a central vertical hole from this base with a diameter of 12mm and a depth of 12mm. On top of this base, centered at the same axis, add a s...
$fn=50; difference(){ cylinder(5,25,24); cylinder(6,12,12); } translate([0,0,5]){ difference(){ cylinder(10,16.5,16.5); cylinder(16,15,15); } }
glb/cad_e73b784fca5e.glb
Create a PTFE tube holder with a height of 8mm. Start by forming a base shape that combines two cylinders connected by a rectangular middle section. The first cylinder, centered at the origin, has an outer diameter of 9mm and a hole through its center with a diameter of 6mm. The second cylinder is positioned along the ...
topHoleDiameter = 4.1; bottomHoleDiameter = 6; wallThickness = 1.5; tubeLength = 8; distanceBetweenHoles = 4; difference() { epsilon=0.1; union() { cylinder(d=bottomHoleDiameter + wallThickness * 2,h=tubeLength,$fn=50); translate([0,-topHoleDiameter/2-wallThickness,0]) cube([botto...
glb/cad_f3789ad305a3.glb
Create a Customized SpeakerGen enclosure by constructing a hollow rectangular box. The exterior dimensions are approximately 123mm x 121mm x 184mm, with a uniform wall thickness of 7mm. On the front face, center a circular speaker mounting hole with a diameter of 80mm that penetrates the wall. Around this central hole...
use<write/Write.scad>; showSpecs = "yes"; manualBoxVolume = 1.68; boxThickness = 7; boxHeightRatio = 1.1; boxWidthRatio = .9; boxDepthRatio = 1.7; speakerHoleDiameter = 80; speakerScrewHoleSpacing = 94; numberOfSpeakerScrewHoles = 4; speakerScrewHoleDiameter = 3.25; enableClosedBoxCalc = "no"; boxQ = 0.9; driv...
glb/cad_ab1b67df5f1a.glb
Create a Plywood Filament Spool consisting of two circular flanges connected by a hexagonal core. Each flange is a disk with an outer diameter of 250mm and a central circular cutout of 50mm in diameter. The core is formed by six rectangular segments, each 50mm wide and 3.2mm thick, arranged to create a hexagonal peri...
flange_od = 250.0; flange_id = 50.0; core_od = 120.0; core_width = 50.0; core_side_count = 6; hole_id = 5.0; material_thickness = 3.2; screw_length = 15.0; screw_hole = 3.2; nut_af = 5.4; nut_thickness = 3.0; core_side_length = core_od*sin(180/core_side_count) - 2*material_thickness; core_across_flats = core_od*cos(1...
glb/cad_56c6399d3b36.glb
Create a Wire Guide consisting of a thin, angular bracket. Start by forming a base U-shape using three walls, each 2mm thick and 8mm high. The long back wall should be 34mm long. The two side walls are 15mm wide; one is positioned at the far end of the back wall, and the other is positioned 10mm beyond the opposite end...
largo=34; ancho=15; grosor=2; altura=8; difference(){ union(){ cube([largo,grosor,altura]); cube([grosor,ancho,altura]); translate([-10,ancho-grosor-1,0]){ cube([10+grosor,grosor+1,altura]); } translate([largo-grosor,0,0]){ cube([grosor,9,altura]); } } union(){ translate([-5,ancho-2*grosor,altura/2]){ rotate([...
glb/cad_57ad7801b3ab.glb
Create an Outlet Stabilizer consisting of a flat rectangular frame with two protruding cylindrical mounting tabs. The main body is a rectangular plate measuring 96mm in height and 56mm in width, with a thickness of 6mm. At each end of the height axis, centered along the width, create a circular mounting tab with a di...
OuterThickness1 = 10; OuterThickness2 = 10; OuterThickness = max(OuterThickness1,OuterThickness2); InnerThickness = 6; OuterWidth = 56; OuterHeight = 96; OuterBoreOffsetCenter = 83/2; BraceWidth = 18; BraceHeight = 10; ScrewHoleSize = 4; $fs=.1; module drawCBrace() { %union() { cube(size=[OuterHeight,Ou...
glb/cad_20e23058518c.glb
Create a grid of 12 identical cubes, arranged in 3 rows and 4 columns. Each cube must have dimensions of 10mm x 10mm x 10mm. Position the cubes so that there is a consistent gap of 3mm between them along the x-axis and a gap of 4mm between them along the y-axis. The entire assembly should be centered around the origin,...
XbyY(maxX=3,maxY=4,bounds=10,spacing=3) cube(10); module XbyY(maxX = 1, maxY = 1, boundsX = 10, boundsY = 10, spacingX = 10, spacingY = 10, bounds = -1, spacing = -1) { bX = (bounds == -1) ? boundsX : bounds; bY = (bounds == -1) ? boundsY : bounds; sX = (spacing == -1) ? spacingX : spacing; ...
glb/cad_c9ee896f3cd2.glb
Create a lockable ball and socket joint assembly consisting of a ball-ended shaft and a matching threaded nut. First, construct the shaft component. Start with a base consisting of a cylinder 20mm in diameter and 10mm high, featuring an external metric thread with a 4mm pitch. Centered within this threaded base, crea...
include<ISO_metric_screw_thread.scad>; $fn=50; ballrad=7; threadod=20; threadlen=10; shaftrad=3.5; shaftrad2=5.5; taperlen=3; shaftlen=16; difference() { union() { difference() { metric_thread (diameter=threadod, pitch=4, length=threadlen, thread_size=2, groove=true); t...
glb/cad_0c435e29e35c.glb
Create a lockable ball and socket camera mount consisting of two primary components: a socket arm and a threaded locking nut. First, construct the socket arm. Start with a central shaft that has a radius of 7mm and a total length of 22mm. At the top of this shaft, create a spherical ball with a radius of 7mm. Above th...
include<ISO_metric_screw_thread.scad>; $fn=50; scale=0.975; ballrad=7; threadod=20; threadlen=10; shaftrad=7; shaftrad2=9; taperlen=3; shaftlen=12; union() { difference() { translate([0,0,threadlen+shaftlen+taperlen+5])rotate([0,180,0])union() { difference() { ...
glb/cad_a8b28d94ed31.glb
Create a phone camera mount consisting of a rectangular cradle and a ball-joint attachment. Start with a main body block measuring 132mm wide, 26mm high, and 14mm thick. Carve out a central phone slot that is 126mm wide, 26mm high, and 8mm deep, leaving a wall thickness of 3mm on the sides and bottom. Round the four in...
pwidth=126; pthk=8; prad=7; height=26; thk=3; chole=12; coffx=116.7; coffy=-.5; width = pwidth + 2*thk; tthk = pthk+2*thk; ballrad=7; shaftrad=3.25; shaftrad2=5; taperlen=4; shaftlen=14; $fn=50; difference() { union() { difference() { translate([width/2,0,tthk/2])union() ...
glb/cad_e4d113b67d78.glb
Create a Laser Head to Laser Head Base. Start by constructing a laser head component: create a base shape by combining a polygon with vertices at [0,0], [0.5,0], [1.5,1], [4.3,1], [4.3,2.5], [3,4.2], [2,4.2], and [0.5,2.5], and a rectangle of 1mm by 0.5mm positioned at [4,1,0], then extrude these to a height of 1mm and...
translate([-2.5,-2,0]) laserHead(); rotate([0,0,180]) translate([-6,-5.25,4]) base(); translate([-5,1,1]) linear_extrude(height=3, twist=90, slices=100) translate([5,0,0]) circle(.75, center=true, $fn=20); translate([4.5,0,1]) linear_extrude(height=3, twist=90, slices=100) translate([-4,.5,0]) circle(.75, center=tru...
glb/cad_dfb31f9b0a36.glb
Create a regulator rectifier connector by starting with a solid rectangular block measuring 33mm wide, 11mm deep, and 25mm high. From this main body, remove several geometric sections to create the internal cavities and external notches. First, remove four identical 5mm by 5mm square prisms, each 20mm tall and rotate...
module stekkerFH012AA() { difference() { cube([33, 11, 25]); translate([-1, -sqrt(5*5/2)-0.5, 0]) rotate([0, 0, 45]) cube([5, 5, 20]); translate([-1, 11-sqrt(5*5/2)+0.5, 0]) rotate([0, 0, 45]) cube([5, 5, 20]); translate([34, 11-sqrt(5*5/2)+0.5, 0]) rotate([0, 0, 45]) cube([5, 5, 20]); ...
glb/cad_ee462adba311.glb
Create a door knob insert shim by starting with a main cylinder that has a diameter of 53.75mm and a height of 28.75mm. From this main body, remove several geometric volumes to create the necessary clearances. First, carve out a central vertical hole with a diameter of 21mm that runs through the entire height of the cy...
e = 0.01; pin_dia = 7.5; pin_spread = 41.5; pin_center_dia = 21; center_width = 16; center_width_rivet = 20; center_ = 19.3; center_height = 21.45; hole_dia = 53.75; door_thick = 34.75 - 6; difference(){ cylinder(h=door_thick, d=hole_dia, $fn=500); union(){ translate([0,0,-e]) cylinder(...
glb/cad_5b06f64ad8e3.glb
Create a personalized keychain tag with a thickness of 2mm. The main body is a rectangular plate with a total width of 20mm and rounded ends. On the right side of the plate, integrate a circular hole with a radius of 7mm to allow for a keyring. On the flat surface of the tag, emboss two lines of text using a bold mon...
Width = 20; Thickness = 2; Text_Size = 1.0; Line1 = "Cort's"; Line2 = "Tesla S"; Line3 = ""; $fn=80; Hole_Radius = (Width-6)/2; Filet = 5; Border = 2; Text_Indent = 1.3; BIG_NUMBER = 1000; Lines = [ for (line = [Line1,Line2,Line3]) if (line != "") line ]; key_tag_3d(); module key_tag_3d() difference() { line...
glb/cad_09a77353bb72.glb
Create a BowdenFeeder Repair Kit clamp. Start with a main rectangular block measuring 74mm in width, 18.5mm in thickness, and 36mm in height. Round all exterior edges to ensure they are smooth. Carve a large rectangular channel out of the bottom and center of the block to create a U-shaped profile. This channel should...
debug = false; screwclr = 0.15; rscrew = 3/2 +screwclr; clear = 0.15 * 2; zwoodmotor = 14; zplastictip = 14.3; zclamp = 8; overx = 2; tpmin = 6; twood = 15.5; eps = 0.05; t = twood + 2*tpmin; h = zwoodmotor+ zplastictip + zclamp; w = 72 + overx; xgear = 59; zgear = -35; rgear = 69/2; rgearcut = rgear + 5; xstep ...
glb/cad_123aff4788c3.glb
Create a BowdenFeeder Repair Kit clamp. Start with a main rectangular body with rounded edges, measuring 74mm in width, 21.5mm in height, and 36.3mm in depth. Carve a large rectangular channel through the center of the body from the top, with a width of 15.5mm and a depth of 14mm, to accommodate the material feed mec...
debug = false; screwclr = 0.15; rscrew = 3/2 +screwclr; clear = 0.15 * 2; zwoodmotor = 14; zplastictip = 14.3; zclamp = 8; overx = 2; tpmin = 6; twood = 15.5; eps = 0.05; t = twood + 2*tpmin; h = zwoodmotor+ zplastictip + zclamp; w = 72 + overx; xgear = 59; zgear = -35; rgear = 69/2; rgearcut = rgear + 5; xstep ...
glb/cad_cf1d54e80172.glb
Create a Mini Kossel groove mount by starting with a main cylinder that has a radius of 18mm and a thickness of 6mm, centered on the origin. Remove a central cylindrical hole with a radius of 6.25mm that spans the full thickness of the mount. Create a shallow lip by removing a cylindrical section with a radius of 8.1mm...
include <configuration.scad>; mount_radius = 18; mount_thickness = 6; hole_radius = 12.5; slot_radius = 6.25; lip_radius = 8.1; lip_thickness = 1; $fn = 40; difference() { cylinder(r=mount_radius, h=mount_thickness, center=true); for (hole_angle = [0:60:360]) { translate([sin(hole_angle)*hole_radius,cos(h...
glb/cad_01a8d9894603.glb
Create a RepRapPro extruder drive for a NEMA14 stepper motor. Start with a main drive block that is roughly rectangular but features a flattened end for a frame clamp. Incorporate a central bore for the motor shaft and two motor mounting holes spaced 26mm apart, each with a diameter of 6.6mm. Create a filament path c...
use <library.scad>; use <gears.scad>; include <config.scad> $fn=64; filament_d=1.75+0.2; filament_offset_x=(5/2+filament_d/2+2.5); echo("filament_offset_x:",filament_offset_x); drive_offset_y=17; bite=-0.5; motor_hole_pitch=26; frame_clamp = true; echo("da8", da8); dx=filament_offset_x+filament_d/2+5.6/2-bite; dy=dr...
glb/cad_4d0d8f87e136.glb
Create a NEMA14 spacer as a thin square plate with a thickness of 2mm and a side length of 35mm. At the center of the plate, create a circular hole with a diameter of 23mm that passes completely through the thickness. Add four mounting holes to the corners. Each hole should have a radius of 1.6mm and a height of 2....
hole_pitch=26; thickness=2; body_size = 35; body_diag = 46; center_dia = 23; diag = body_size * sqrt(2); coner_diag=body_size*sqrt(2)-body_diag; module NMEA14_spacer(){ difference(){ translate([0,0,thickness/2]) cube([body_size,body_size,thickness],center=true); for (i=...
glb/cad_7a18f59a301b.glb
Create a RepRapPro extruder drive mount plate with a thickness of 6mm. The main body is a rectangular plate with a total length of 118.5mm and a width of 20mm. At the left end of the plate, create a semi-circular cutout with a radius of 22.5mm centered on the edge. Within this area, create two aligned holes with a ra...
r=6; rd=39; w=20; l=w/2+19.5+50+rd+w; t=6; tol=0.25; M3=3.4; dual=true; k8=1+sqrt(2); ro8=sqrt(k8/(k8-1))/k8; module ext_edge_cuter(){ difference(){ translate([0,-w/2-0.1,0]) cube([w+0.1,w+0.2,t+0.2]); translate([0,0,-0.2]) rotate([0,0,22.5]) cylinder(r=w*r...
glb/cad_2f510208dfdc.glb
Create a stepper driver trimpot aligner tool consisting of three separate components: a handle, a slotted tip, and a phillips tip. For the handle, create a base cylinder with a radius of 8mm and a height of 8mm. Stack a frustum on top that transitions from a radius of 8mm to 7mm over a height of 5mm, followed by anot...
module tip() { translate([-0.95,-0.95,0]) cube([1.9,1.9,30]); translate([0,0,30]) { hull() { translate([-0.95,-0.95,0]) cube([1.9,1.9,0.1]); translate([0,-0.85,5]) cube([0.1,1.7,0.1]); } } } module philips_tip() { translate([-0.95,-0.95,0]) cube([1.9,1.9,30]); translate([0,0,30]) { hu...
glb/cad_2d4f88cc1ce3.glb
Create a stackable spur gear with a total thickness of 10mm. Start with a central cylindrical core that has a diameter of 10mm and a height of 10mm. Surrounding this core, create a larger main cylinder with a diameter of 27.25mm and a height of 10mm. To form the gear teeth, add 11 rectangular protrusions equally spaced...
gd = 129/4; th = 5; tw = 3; nt = 11; xw = 0.25; gt = 10; pd = 10; hd = pd+3; difference() { union() { translate([0,0,gt * 2/3]) cylinder(r=pd/2-xw, center = true, h = gt, $fn = 40); cylinder(r=gd/2-th, h = gt, center = true, $fn = 40); translate([0,0,-gt*1/6]) for(i=[1:nt]){ rotate([0,0,360/nt * i]) in...
glb/cad_f35f7cc4d12b.glb
Create a Customizable Cage Platform consisting of a central rectangular plate and two supporting rail holders. The main body is a centered rectangular slab measuring 100mm in length, 40mm in width, and 6mm in height. Position two identical rail holders on the underside of the plate, spaced 26.9mm apart from center to ...
length_x = 100; Width_y = 40; Height_z = 6; Rail_Diameter = 6; Rail_Spacing = 26.9; Number_of_Holes = 3; Hole_Diameter = 6; difference(){ Put_Together(); make_holes(Hole_Diameter); } module Put_Together(){ union(){ make_rodholder(); mirror ([1,0,0])make_rodholder(); mirror ([...
glb/cad_04575f8e74b9.glb
Create a parametric project box with rounded corners. The main housing is a hollow rectangular shell with exterior dimensions of 66mm in width, 84mm in depth, and 37mm in height. The walls are 2mm thick, and the four vertical exterior corners are rounded with a 3mm radius. The interior cavity is 60mm by 80mm with a dep...
wall_width = 2; holewall_width = 1.5; holetaper = 0.9; interior_z = 35; interior_x = 60; interior_y = 80; corner_radius = 3; mounthole_radius = 1; mount_inset_x = 5; mount_inset_y = 5.5; mount_z = 6; lidfastenhole_radius = 1; lidfastenhole_inset = 5; exterior_z = interior_z + wall_width; exterior_x = interior_x + li...
glb/cad_61dc1b8aa868.glb
Create a Hermaphrodite Caliper consisting of two identical flat arms, each 3mm thick. For each arm, start with a cylinder of 8mm radius at the base. Extend the shape from this base to a smaller cylinder of 1.5mm radius located 100mm away along the x-axis, creating a smooth, tapered hull. At the wide base of each arm, c...
$fn=100; difference(){ union(){ hull(){ translate([0,0,0]) cylinder(r=8,h=3); translate([100,0,0]) cylinder(r=1.5,h=3); } } translate([0,0,0]) cylinder(r=2,h=3); } translate([95,0,0]) cube([2,5,3]); #translate([96,5.2,0]) cylinder(r=1,h=3); translate([0,30,0]){ difference(){ union(){ hull(){ tr...
glb/cad_4704ddab008d.glb
Create a Minimal Tablet Stand. Start by forming a base shaped as a flattened, elongated oval (an ellipse scaled 2:1 on the X-axis) with a thickness of 3mm and rounded edges with a radius of 2mm. Carve a wide, symmetrical channel through the center of this oval to create two parallel rails. Within these rails, cut a p...
x=255; y=155; z=9; w=x*0.4; t=3; e=2; p=z*1.2; a=20; te=t-e; r=w/2; module base(){ difference(){ scale([2,1,1]) cylinder(h=w*2.5,r=r, $fn=64); translate([-te,0,-1]) scale([2,1,1]) cylinder(h=w*2.5+2,r=r-te, $fn=64); translate([0,-w,-1]) cube([w*3,w*2,w*3]); } } module cut(){ translate([t,-w,0]) rotate...
glb/cad_61bb6a66e490.glb
Create a simple headphone stand consisting of a base, a top support, and two vertical bars. First, create the base as a rectangular plate 120mm long, 80mm wide, and 5mm thick. Round the four corners with a radius of 2mm. In the center of this plate, create a pentagonal hole with a circumradius of 12mm. Second, creat...
$fn = 80; fnForConnector=5; baseHeight=120; baseWidth=80; baseThickness=5; baseTopDelta=2; topHeight=80; topWidth=35; topThickness=5; topDelta=0; headphoneWidth=50; barHeight=100; barOuter=12; barThickness=3; barBetweenGap=0.5; barInner=9; barDelta=4; barInner=barOuter-barThickness-barBetweenGap; barLocker=25; barLo...
glb/cad_b3ceed32c920.glb
Create a Cake Divider tool designed to split a circular object into 7 equal wedges. Start by creating a central vertical cylinder with a radius of 2.5mm and a total height of 23mm. The bottom 5mm of this cylinder should be a cone that tapers from the 2.5mm radius to a sharp point at the base. From the center of the cy...
$fn=100; sides=7; flange_height=18; flange_length=40; flange_width=1; number_thickness = 3; number_font_size = 15; text_scale_factor_x = 0.5; text_scale_factor_y = 0.5; text_scale_factor_z = 0.5; central_cylinder_radius=2.5; spike_height=5; text_dodgy_length = 55 * text_scale_factor_x; text_dodgy_width = 20 * text_s...
glb/cad_6ada0b6416e8.glb
Create a filament drive bracket as a flat plate with a thickness of 6mm and a width of 20mm. The total length of the plate is 138.5mm. At one end of the plate, create two circular mounting holes for rods with a diameter of 6mm. These holes are centered relative to the width and positioned to allow the plate to slide o...
Print_dual=1; Rods_diameter=6; Top_rods_distance=39; Wide=20; Thicknes=6; Length=138.5; Tolerance=0.25; r=Rods_diameter; rd=Top_rods_distance; w=Wide; l=Length; t=Thicknes; tol=Tolerance; M3=3.4; dual=Print_dual; k8=1+sqrt(2); ro8=sqrt(k8/(k8-1))/k8; module ext_edge_cuter(){ difference(){ translat...
glb/cad_1ef3d9e1f9b0.glb
Create a parametric shelf peg by first constructing a base rectangular block with a length of 9mm, a width of 11mm, and a thickness of 2mm. Add a second rectangular block of the same thickness (2mm) and width (11mm), but with a length of 2mm, positioned to extend from the base. From this combined structure, remove a ce...
length=9; width=11; thickness=2; hole_size=4.5; hole_depth=7; cube(size=[length,width,thickness], center=false); translate([0,0,0])cube(size=[thickness,width,length], center=false); difference(){ translate([0,(width-thickness)/2,0])cube(size=[length,thickness,length], center=false); rotate([0,45,0])translate([-leng...
glb/cad_0bb33a969b64.glb
Create a Bobblehead figure assembly consisting of a base, legs, torso, and head. Start with a circular base 80mm in diameter and 10mm thick. Add a rectangular block 50mm wide, 10mm deep, and 15mm high centered on the front edge of the base. On the top surface of the base, create two pin-holes to accept the legs. Con...
include <../pin_connectors/pins.scad> include <../bitmap/bitmap.scad> spring_inner_diameter = 9; tolerance = 0.3; part = "assembly"; spring_inner_radius = spring_inner_diameter/2; white = [255/255, 250/255, 240/255]; black = [100/255, 100/255, 100/255]; red = [200/255, 0/255, 0/255]; yellow = [255/255, 255/255, 102/...
glb/cad_5e92d38d5b33.glb
Create a set of Imperial Arduino Mega Standoffs by constructing a hollow cylindrical spacer. Start with a solid cylinder that has an outer diameter of 5.5mm and a total height of 4mm. Center a smaller cylindrical hole vertically and horizontally through the middle of the shape, with an inner diameter of 3.5mm, to creat...
$fn=60; h_measurement = 4; ha_measurement = 0; D1_measurement = 5.5; D1a_measurement = 0; D2_measurement = 3.5; D2a_measurement = 0; difference(){ translate([0,0,0]) cylinder(h_measurement+ha_measurement, (D1_measurement+D1a_measurement)/2, (D1_measurement+D1a_measurement)/2, center=true); translate([0,0,0]) cy...
glb/cad_de812fde55ff.glb
Create a PCB clamp consisting of two identical jaw pieces and two end caps. For each jaw, start with a base formed by combining a 100mm x 4mm x 10mm rectangular block and a 100mm x 40mm x 5mm rectangular block. From this combined base, remove a central slot that is a hull of two 2.5mm radius cylinders with a height of ...
difference() { union() { cube([100,4,10]); cube([100,40,5]); translate([15,15,0]) cylinder(r=7.5,h=10,$fn=200); translate([85,15,0]) cylinder(r=7.5,h=10,$fn=200); } union() { translate([0,36,-5]) rotate([45,0,0]) cube([100,5,5]); translate([15,15,0]) cylinder(r=5.4,h=10,$fn=200); transla...
glb/cad_65a6ff8769f0.glb
Create a Combined Object Printing Plate consisting of three distinct parts: a strap holder and two packaging halves. First, construct the strap holder by creating a rounded cuboid with external dimensions of 55mm length, 42mm breadth, and 8mm height, using a corner radius of 5mm. Hollow out the center to leave 3mm wal...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; curve_f_holder=3; int_l_holder=47; int_b_holder=34; int_h_holder=8; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=30; belt_t_holder=2; belt_tol_holder=1; loop_int_sep=2; ext_l_holder=int_l_holder+2*(int_tol_...
glb/cad_a8c3cd9ad222.glb
Create a Combined Object Printing Plate consisting of three distinct parts: a belt loop holder and two packaging halves (top and bottom). First, construct the belt loop holder. Create a rounded cuboid with external dimensions of 55mm length, 42mm breadth, and 8mm height, using a corner radius of 5mm. Hollow out the ce...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; curve_f_holder=3; int_l_holder=47; int_b_holder=34; int_h_holder=8; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=30; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; ext_l_holder=int_l_holder+2*(int_tol_...
glb/cad_da32e82cdce3.glb
Create a Combined Object Printing Plate consisting of three distinct parts: a belt loop holder and two packaging halves. First, construct the belt loop holder. Create a rounded cuboid with internal dimensions of 47mm length, 34mm breadth, and 8mm height, with a corner radius of 4mm. The walls should be 3mm thick. On t...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; curve_f_holder=3; int_l_holder=47; int_b_holder=34; int_h_holder=8; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=28; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; short_axis_loops=0; long_axis_loops=1;...
glb/cad_83c28d60658d.glb
Create a Dual i3 Bowden JHead Hotend Mount. Start with a main rectangular block measuring 58mm in width, 22mm in depth (14mm base plus 8mm offset), and 12mm in height. Along the length of the block, create three vertical holes with a radius of 1.75mm, positioned at the left edge (5mm from the side), the center (29mm)...
include <hardware.scad> include <functions.scad> module xCarriageClamp() { difference() { union() { translate([0,8,0]) cube([58,14,12]); translate([5,4,0]) fanTab(); translate([5+20,4,0]) fanTab(); translate([5+20+8,4,0]) fanTab(); translate([5+20+8+20,4,0]) fanT...
glb/cad_41618764342c.glb
Create a Dual i3 Bowden JHead Hotend Mount. Start with a rectangular base plate measuring 58mm in width, 30mm in depth, and 5mm in height. On top of this base, add a central mounting block that is 58mm wide, 15mm deep, and 15mm high, positioned 8mm from the back edge. Further extend the geometry by adding a pneumatic...
include <hardware.scad> include <functions.scad> include <hotend mount clamp v2.scad> module xCarriageMount() { difference() { union() { cube([58,30,5]); translate([0,8,0]) cube([58,15,15]); hull() { translate([0,23,0]) cube([58,7,5]); translate([17.5,30,14]) ro...
glb/cad_efe0229b6be1.glb
Create a Quad JHead Adaptor consisting of two mirrored mounting sections. Each section is based on a primary block measuring 58mm x 30mm x 12mm. For each section, create a main body that includes a rectangular base of 58mm x 15mm x 12mm and a pneumatic fitting mount formed by a hull of a 58mm x 7mm x 5mm base and two...
include <hardware.scad> include <functions.scad> include <hotend mount clamp v2.scad> include <hotend mount v2.scad> module modifiedXCarriageMount() { difference() { union() { translate([0,8,3]) cube([58,15,12]); hull() { translate([0,23,3]) cube([58,7,5]); translate([17...
glb/cad_ef3564a9cac6.glb
Create a RAMPS 1.3 Case with overall dimensions of 105mm in length, 65mm in width, and 46mm in height. The main body is a hollow rectangular shell with a wall thickness of 2mm. On the interior, add two PCB mounting ridges to support the board. The left ridge should be 7.5mm high, and the right ridge should be 5mm hig...
c=false; th=2.0; length=105.0; width=65.0; height=46.0; fh=2.0; mrlh=7.5; mrh=5.0; rth=th+1; mrw=3.0; mrd=2.0; soh=6.0; ch=5.0; cd=5.0; dxf="Ramps case.dxf"; shell="shell"; bottom="cover"; standoffs="standoffs"; scale=1.0; i=2; if (i==1) { difference() { rampsCover(); translate( [10.5,-15,0] ) cube( size=[4*cd,...
glb/cad_fa33e4a25149.glb
Create a name tag plate for a Foldarap printer by starting with a rectangular base measuring 140mm in length, 20mm in width, and 4mm in height. Center the text "Foldarap #" on the top surface of the plate using a stencil-style font with a thickness of 6mm and a height of 10mm. To finish the piece, add two circular hole...
use <write/Write.scad> text="Foldarap #"; fontName="write/stencil.dxf"; module NamePlate() { cube([140, 20, 4]); } difference() { NamePlate(); translate([20, 10, 0]) cylinder(r=2.8, h = 8); NamePlate2(); translate([120, 10, 0]) cylinder(r=2.8, h = 8); NamePlate3(); translate([70,10,2 +0])write(text, t=6, h=10,font...
glb/cad_025a500b33f2.glb
Create a Canon EF Mount Module consisting of a series of stacked concentric cylinders and bayonet lugs. Start with a base cylinder 68.5mm in diameter and 5mm high. On top of this base, add a second cylinder 54mm in diameter and 2mm high, followed by a third cylinder 50.5mm in diameter and 4mm high, positioned at a heig...
module EFmount() { $fa = 1; union() { cylinder(h = 5, r = 68.5/2); translate([0, 0, 7]) cylinder(h = 4, r = 50.5/2); translate([0, 0, 5]) cylinder(h = 2, r = 54/2); translate([0, 0, 11]) cylinder(h = 1.5, r = 41.5/2); translate([0, 0, 12.5]) cylinder(h = 3.2, r1 = 39.7/2, r2 = 39.5/2); transla...
glb/cad_69b983f4fb5f.glb
Create a Sliding Lid Box consisting of a main enclosure and a removable lid. For the main box, create a rectangular shell with external dimensions of 85mm length, 50mm width, and 27mm depth. The walls should be 1.4mm thick with 2mm rounded side edges. The box is open at one end to allow the lid to slide in. Along the...
OutL = 85; OutW = 50 ; OutD = 27 ; PCBgap = 2 ; PCB1 = 12 ; PCB2 = 20 ; PCB3 = 0 ; Screws1 = 23 ; Screws2 = 0; WallT = 1.4 ; BRad = 2 ; Ridge = 0; Sdepth = 1.2 ; Swidth = 3.1 ; RHeight = 3 ; RWidth = 2 ; ScrewD = 7 ; ScrewW = 6 ; Allow = 0.5; translate([0,-OutW/2-5,OutD/2]) pboxlid() ; translate([0,OutD/2+5,Ou...
glb/cad_bbac7aa4623c.glb
Create a WIMU holder by constructing a hollowed-out, rounded rectangular frame. Start with a main body that is 53.4mm long, 40mm wide, and 8mm high, featuring rounded corners with a radius of 4.2mm. Hollow out the center of this body to create a cavity measuring 47.2mm by 34.2mm, leaving a wall thickness of 3mm. To th...
force_fit=0.2; hold_fit=0.3; slide_fit=0.4; free_fit=0.5; a_bit=0.1; curve_f_holder=3; int_l_holder=47; int_b_holder=34; int_h_holder=8; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=25.4; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; short_axis_loops=0; long_axis_loops=...
glb/cad_7f8d3345a60f.glb
Create a WIMU holder by constructing a hollowed-out rounded rectangular shell. The main body should have external dimensions of 44.7mm in length, 38.7mm in breadth, and 15mm in height, with a corner radius of 7.2mm. Create a central internal cavity measuring 38.7mm in length, 32.7mm in breadth, and 15mm in height, wi...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.5; int_b_holder=32.5; int_h_holder=15; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=25.4; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; short_axis_loops=0...
glb/cad_cc955d3b53d2.glb
Create a WIMU holder consisting of a central rectangular block and four cylindrical discs positioned at the corners of its base. First, create a central rectangular prism with dimensions 20mm in length, 10mm in width, and 5mm in height, centered at the origin. Next, add four identical cylinders to serve as "mouse e...
z_resolution=0.30; mouse_ear_diameter=10; total_x=20; total_y=10; total_z=5; union(){ mouse_ears (total_x, total_y, 2*z_resolution, mouse_ear_diameter); translate(v=[0,0,total_z/2]) cube(size=[total_x,total_y,total_z], center=true); } module mouse_ears (ear_offset_x, ear_offset_y, ear_height, ear_diameter){ trans...
glb/cad_bdc68e6cba0d.glb
Create a WIMU holder by constructing a rounded rectangular shell with a hollow center. The outer dimensions of the main body are 44.66mm in length, 38.7mm in width, and 15mm in height. The corners of this body should have a radius of 8mm. Create a hollow internal cavity centered within the body with dimensions of 38.6...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=15; int_r_holder=4; int_tol_holder=0.2; ext_h_holder=3; wall_t_holder=3; belt_w_holder=25.4; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; short_axis_loops=...
glb/cad_4a8646c39c17.glb
Create a WIMU holder by constructing a hollowed-out rounded rectangular sleeve with integrated belt loops. Start with a main body that has an external length of 45.66mm, an external breadth of 36.7mm, and a total height of 15mm. The internal cavity should be a rounded cuboid measuring 38.66mm in length, 32.7mm in bread...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=15; int_r_holder=4; int_tol_holder=0.45; ext_h_holder=3; wall_t_holder=3; belt_w_holder=25.4; belt_t_holder=3; belt_tol_holder=1; loop_int_sep=2; short_axis_loops...
glb/cad_f41c37b6df4e.glb
Create a WIMU holder by constructing a hollowed-out rounded rectangular shell with a base and walls. The main body should have external dimensions of 46.66mm in length, 38.7mm in width, and 3mm in height. The internal cavity is a rounded rectangle measuring 38.66mm by 32.7mm with a height of 15mm, leaving a wall thickn...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=15; int_r_holder=4; int_tol_holder=0.45; int_r_tol_holder=0.1; ext_h_holder=3; wall_t_holder=3; belt_w_holder=25.4; belt_t_holder=3; belt_tol_holder=1; loop_int_s...
glb/cad_ff5994f2a06b.glb
Create a WIMU holder by constructing a hollowed-out rectangular base with rounded corners. The main outer body should have overall dimensions of 45.66mm in length and 38.7mm in width, with a total height of 8mm. The corners of this outer shell should be rounded with a radius of 5mm. Inside this shell, create a centere...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=8; int_r_holder=4; int_tol_holder=0.45; int_r_tol_holder=0.1; ext_h_holder=3; wall_t_holder=3; belt_w_holder=28; belt_t_holder=1; belt_tol_holder=1; loop_int_sep=...
glb/cad_c2b3c3adf502.glb
Create a WIMU holder by constructing a hollowed-out rounded rectangular shell with integrated belt loops. Start with a main body that has an external length of 45.36mm, a breadth of 39.1mm, and a height of 3mm. The internal cavity should be a rounded rectangle measuring 31.04mm by 32.7mm with a depth of 10mm, leaving...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=10; int_r_holder=4; int_tol_holder=0.35; int_r_tol_holder=0.1; ext_h_holder=3; wall_t_holder=3; belt_w_holder=28; belt_t_holder=2; belt_tol_holder=1; loop_int_sep...
glb/cad_1ea572f9fabf.glb
Create a WIMU holder by constructing a rounded rectangular shell with a hollow center. The main body should have an internal cavity measuring 38.66mm in length, 32.7mm in breadth, and 10mm in height, with internal corner radii of 4mm. The outer walls should be 3mm thick. The overall external dimensions are approximate...
use <mouse_ears_test.scad>; z_resolution=0.3; a_bit=0.1; curve_f_holder=3; mouse_ear_diameter=15; int_l_holder=38.66; int_b_holder=32.7; int_h_holder=10; int_r_holder=4; int_tol_holder=0.35; int_r_tol_holder=0.1; ext_h_holder=3; wall_t_holder=3; belt_w_holder=28; belt_t_holder=2; belt_tol_holder=1; loop_int_sep...
glb/cad_6d318f50461e.glb
Create a modified paste extruder plunger top. Start with a main cylinder that has an outer radius of 15mm and a total height of 26mm. Remove a smaller concentric cylinder from the center with a radius of 9mm and a height of 5mm. Cut a rectangular channel through the top of the cylinder that is 7mm wide, 25mm long, an...
$fn = 50; epsilon = 0.01; outer_radius = 15; inner_radius = 9; main_height = 26; bottom_height = 5; top_channel_x = 7; top_channel_y = 25; top_channel_z = 17; side_channel_x = 7; side_channel_y = 5; side_channel_z = main_height + epsilon; screw_radius = 2; screw_length = 20; bearing_radius = 7; bearing_length = 5; ...
glb/cad_070f48f56b9f.glb
Create a thick twist sculpture by stacking 121 thin rectangular plates. Each plate must be 100mm long, 2mm wide, and 1mm thick, centered on the X and Y axes. Start the first plate at a height of 0mm and place each subsequent plate at 1mm increments along the Z-axis. As you stack the plates, rotate each one around the Z...
module strip() { cube([100,2,1],center=true); } for (i=[0:120]) { hull() { translate ([0,0,i]) scale([1,1,1]) rotate ([0,0,3*i]) strip(); translate ([0,0,i+1]) scale([1,1,1]) rotate ([0,0,4*(1+i)]) strip(); } }
glb/cad_5c5822ec70d6.glb
Create a 40mm directional fan holder by starting with a main cylindrical body 13mm high with an outer radius of 21mm and an inner radius of 19mm, forming a thin ring. Integrate a flat square base centered on the cylinder that measures 40mm by 40mm with a thickness of 2mm, positioned 1mm from the bottom. Add two solid c...
module fanmount() { difference() { union() { cylinder(h=13, r=21); translate([0,0,1]) cube([40, 40, 2], center=true); translate([-16, 20,0]) cylinder(r=5, h=13); translate([16, 20,0]) cylinder(r=5, h=13); } cylinder(h=13, r=19); translate([0, 0, 5]) cube([6, 42, 10], center=true); translate([0...
glb/cad_e26e712adea7.glb
Create a Shrouded Male Connector by starting with a solid rectangular block measuring 15.25mm in width, 7.15mm in depth, and 8.345mm in height. Center this block on the origin. From this main body, remove a central rectangular volume to create a hollow interior. This interior void begins 2mm from the bottom and exten...
PinX=5; PinY=2; BarePins=false; PinSize=0.65; PinSpacing=2.54; ArraySizeX=((PinX-1)*PinSpacing); ArraySizeY=((PinY-1)*PinSpacing); HeaderX=ArraySizeX+2.6; HeaderY=ArraySizeY+2.6; MainX=HeaderX+5.1; MainY=HeaderY+1.25; difference() { translate([-(MainX+2.1)/2, -(MainY+2.1)/2, 0]) { cube([MainX+2.1, MainY+2.1,...
glb/cad_aadbb166050e.glb
Create a coin for the game Coup by starting with a main cylinder that has a diameter of 20mm and a height of 1.35mm. Carve a shallow circular indentation into the top face of this cylinder, centered on the same axis, with a diameter of 16mm and a depth of 0.45mm. Inside this indentation, create a raised letter "C" by r...
difference() { cylinder(1.35,10,10, $fn=100); translate([0,0,0.9]) cylinder(1.9,8,8, $fn=100); }; difference() { cylinder(1.35,6,6,$fn=100); union() { translate([0,0,0.9]) cylinder(1.9,4,4,$fn=100); cube([10,10,10]); }; };
glb/cad_331d59ee21e5.glb
Create a twisted parametric vase by extruding a specific 2D profile vertically to a height of 250mm. The base profile consists of three circles, each with a radius of 6.67mm, arranged symmetrically around the center. Position the center of each circle 20mm away from the central axis of the object. Extrude this three-ci...
n=3; count=240; d_vase=80; h_vase=250; linear_extrude(height = h_vase, center = false, convexity = 10, twist = count, slices = 100,$fn = 100){ for(i=[0:360/n:360]){ rotate([0,0,i]) translate([d_vase/4, 0, 0]) circle(r = d_vase/3, $fn = 100); }; }; *cylinder(d = d_vase, h=h_vase, $fn = 100);
glb/cad_9baecfefae24.glb
Create a Cherry MX keycap with a 1.25u width. The main body is a tapered frustum with a rectangular base measuring 22.7mm by 18.16mm and a top surface measuring 16.16mm by 14.16mm. The total height of the keycap is 11.5mm. The top surface is tilted at a -6 degree angle and is slightly offset by 1.75mm along the Y-axis ...
$fn = 64; key_wall_thickness_width = .8; key_wall_thickness_height = .8; key_wall_thickness_depth = .8; key_length = 1.25; has_brim = 0; brim_radius = 11; brim_depth = .3; stabilizers = 0; stabilizer_distance = 50; inverted_dish = 0; key_profile = 1; key_profiles = [ [ 18.16, 18.16, 6, 4, 11.5, ...
glb/cad_a1a76a1dcd04.glb
Create a battery cover consisting of a flat rectangular base and protruding attachment features. Start with a base plate measuring 35.4mm wide, 113mm long, and 2.6mm thick. On the top surface of this base, centered along the width, add a rectangular tab that is 17.7mm wide and 3mm long, with a thickness of 2mm. This ta...
clearance = 0.15; q = 0.02; w = 36 - clearance*4; d = 113; t = 2.6; tab_w = w / 2; tab_length = 3; tab_t = 2; clip_w = 3; clip_d = 7; clip_t = 1.62; clip_os = [ 30.8, 97.8 ]; support_t = 0.3; linear_extrude( height= t ) translate([ -w/2, 0 ]) square([ w, d ]); translate([ 0, 0, t ]) { mirror([ 0, 1, 0 ]) {...
glb/cad_06f2b0de955c.glb
Create a Quartz Crystal Birdhouse by constructing a large, hollowed-out quartz crystal as the main body. The outer crystal should be defined by five sets of plane distances: 1mm, 0.7mm, 1.1mm, 1.0mm, and 0.8mm. Hollow out the interior using a slightly smaller version of the same geometry, scaled by 0.9, but ensure the ...
function Magnitude(v) = sqrt(v[0]*v[0] + v[1]*v[1] + v[2]*v[2]); function UnitVector(v) = v/Magnitude(v); function CrossProduct(v1, v2) = [v1[1]*v2[2]-v2[1]*v1[2], v1[2]*v2[0]-v2[2]*v1[0], v1[0]*v2[1]-v2[0]*v1[1]]; function UnitCrossProduct(v1, v2) = UnitVector(CrossProduct(v1, v2)); function ScaleVector(v, s) = [v[0]*...
glb/cad_0eb2561d2281.glb
Create a cardholder by starting with a solid rectangular block measuring 8mm deep, 62mm wide, and 88mm high. Carve out a central slot to hold a card by removing a rectangular section 2mm deep, 56mm wide, and 88mm high from the center of the block. To allow for easy card removal, create a semi-circular cutout at the top...
union (){ difference (){ translate([0, 0, 0]) cube([8, 62, 88], center = true); translate([0, 0, 2]) cube([2, 56, 88], center = true); translate ([0,0,44]) rotate ([0,90,0]) cylinder(h = 50, r1 = 13, r2 = 13, center = true); } }
glb/cad_1f3d3085bb20.glb
Create a Birdbathhouse consisting of a main cylindrical body and a canopy. The main body is a cylinder with a radius of 75mm and a height of 100mm. Hollow out the interior of this cylinder to a wall thickness of 1.5mm. At the bottom of the house, create a small vertical drain hole with a radius of 2mm. On the front fa...
house_radius = 75; house_height = 100; hole_radius = 20; post_radius = 3; post_length = 80; drain_radius = 2; thickness = 3; thickness_radius = thickness/2; canopy_radius = hole_radius; rain_catcher_radius = house_radius+10; water_bowl_radius = 18; smooth = 100; m3_radius = 1.51; mount_square = 10; roosting_hole_radius...
glb/cad_a13140c9680e.glb
Create a 3D model of a Super Mario Boo ghost. Start with a main body consisting of a sphere with a radius of 50mm. At the top of the sphere, create a circular cutout with a radius of 50mm and a height of 20mm to accommodate a hat. For the face, place two cylindrical eyes with a radius of 14.3mm and a height of 25mm, p...
model_quality = 50; model_scale_percent = 60; model_render = "Full"; include_hat = "Yes"; include_teeth = "Yes"; include_arms = "Yes"; show_support = "Yes"; height = 50*1; $fn = model_quality*1; model_scale = model_scale_percent / 100; rotate([0,0,180]) { All(); } module All() { difference() { scale([...
glb/cad_7332dcf2b141.glb
Create a Simple Parametric Belt Clamp Adapter with a total width of 6mm and a total length of 7.5mm. Start by constructing the base layer consisting of rectangular teeth that are 2.5mm wide and 1.8mm high, spaced every 5mm along the length. Place a central rectangular plate over these teeth that is 6mm wide, 7.5mm long...
width = 6; length = 7.5; thickness = .6; bottom_teeth_pitch = 5; bottom_teeth_height = 1.8; bottom_teeth_width = 2.5; bottom_teeth_offset = 0; top_teeth_pitch = 2; top_teeth_height = .9; top_teeth_width = .9; top_teeth_offset = 0; for ( i = [bottom_teeth_offset: bottom_teeth_pitch: (length-bottom_teeth_offset)]) { tr...
glb/cad_011cbff04871.glb
Create a SnakeBite Remix Failure gear assembly. Start by creating a bevel gear with a module of 1.7, 36 teeth, a height of 15mm, and a width of 20mm, with a 45-degree bevel width and a 30-degree helix width. Center the gear and remove a central cylindrical hole with a radius of 2mm and a height of 30mm. From the cente...
$fa = 0.5; $fs = 0.5; use<gears.scad> color([1, 0.8, 0.8, 0.5]) cylinder(r=3/2, h=50, center=true); mirror([0, 0, 1]) translate([0, 0, -21]) for(i=[1:3]) { rotate([0, 0, i*(360/3)]) rotate([0, 45, 0]) translate([0, 0, 3]) rotate([30, 0, 0]) translate([0, 0, 0]) cylinder(r=3/2, h=25, center=false); } mod...
glb/cad_aa6c2f2aee05.glb
Create an idler pulley for a GT2 2mm belt with 20 teeth. Start with a central cylindrical body that has a total height of 9.5mm (6.5mm for the toothed section and 1.5mm for the base and top flanges). The toothed section should have an outside diameter of approximately 11.88mm, featuring 20 GT2-profile teeth. Add a 1.5...
teeth = 20; profile = 12; motor_shaft = 3.2; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.5; idler = 1; idler_ht = 1.5; pulley_t_ht = 6.5; pulley_b_ht = 1.5; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0...
glb/cad_c62877096850.glb
Create a telescopic linear screw assembly consisting of a threaded bolt and a matching nut. First, construct the main screw body as a cylinder with a radius of 20mm and a height of 100mm. Apply a helical twist to the geometry such that it rotates 360 degrees eight times over its 100mm height, divided into seven distinc...
module screw1(type = 2, r1 = 9, r2 = 12, n = 7, h = 120, t = 8) { linear_extrude(height = h, twist = 360*t/n, convexity = t) difference() { circle(r2); for (i = [0:n-1]) { if (type == 1) rotate(i*360/n) polygon([ [ 2*r2, 0 ], [ r2, 0 ], [ r1*cos(180/n), r1*sin(180/n) ], [ r2*cos(360/n), r2*sin(360/n) ], [ 2*r2*cos(360...
glb/cad_023fc35e2109.glb