Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Magnetic PCB holder consisting of three main components: a base housing, a sliding piston, and a cap. First, create the base housing as a cylinder with a diameter of 20mm and a height of 25mm. Subtract a central vertical hole with a diameter of 15.4mm that extends from the bottom to a height of 23.3mm to acco...
layer_height = 0.2; $fa=1; $fs=layer_height; pc_bite(); module pc_bite( magnet = [1.6, 16], fastener = [ 3, 12], spring = [ 12, 9.8, 31, 10 ], wall = 2, clearance = layer_height ) { d = [ 20, 15, 7.8]; h = [ 25, 52, 55.8]; r = (d.x-d.y)/3; m...
glb/cad_694153bd8f7e.glb
Create a reinforced Y motor mount for a stepper motor. Start with a base plate 10mm thick. The main body consists of a central rectangular section 31mm wide and 9mm thick, joined to a larger rectangular base 31mm by 9mm by 10mm. Integrate three mounting points for a NEMA 17 motor: two outer cylinders with a radius of...
$fn=32; module y_motor_base() { translate([29,-21+50,0]) { translate([-21+4.5,0,5]) cube([9,31,10], center=true); translate([-21+4.5+31/2+1,0-31/2-1,5]) cube([31,9,10], center=true); translate([-15.5,-15.5,0]) cube([15.5,15.5,10], center=false); translate([-15.5,+15.5,0]) cylinder(h = 10, r=5.5); ...
glb/cad_b50dd20f4d4a.glb
Create a tachometer mount consisting of two main cylindrical components. First, create a horizontal cylinder with a radius of 11mm and a total length of 40mm, centered on the origin. Add two decorative rings around this cylinder: one at each end, each with a cross-sectional radius of 2mm. Second, create a larger verti...
$fn=30; $l1=20; $r1=11; $dist=-20; $r2=16.25; $l2=25; difference() { union() { translate([-$l1,0,0]) rotate(a=90,v=[0,1,0]) cylinder(r=$r1,h=2*$l1); translate([0,$l2,$dist]) rotate(a=90,v=[1,0,0]) cylinder(r=$r2+5,h=2*$l2); } translate([0,$l2+1,$dist]) rotate(a=90,v=[1,0,0]) cylinder(r=$r2...
glb/cad_a39ad7705b71.glb
Create a set of Base 10 math blocks starting with a basic unit. Create a single unit cube with a side length of 10mm, applying a 1mm fillet or rounding to all edges and corners to create a rounded cube with a total outer dimension of 12mm. To create a ten-rod, align ten of these rounded cubes in a straight line along...
$fn=10; size = 10; round = 1; cubesize = size + (2 * round); module onecube() { cube (12); } module roundedcube() { minkowski() { sphere (r = round); cube (size); } } module onescube() { roundedcube(); } onescube(); module tenrod() { for (xoffset = ([0: cubesize: (cubesize * 10) - size])) { trans...
glb/cad_d022a5635342.glb
Create a cassette-cover bike parametric protector consisting of a series of stacked, concentric hollow conical sections and a handle. Start with a base rim that is a hollow cylinder with a height of 5mm, an outer diameter of 114mm, and an inner diameter of 104mm, with a wall thickness of 2mm. Directly on top of this ri...
cone_length = 44.5; cone_max = 110; cone_min = 50; rim_height = 3; funnel_start = 21; funnel_end = 19; funnel_length = 37.5; shell_thickness = 2; handle_diameter = 5; bridging_enabled = true; bridge_thickness = 0.28; fn_value = 360; module cone(d1=1,d2=1,h=1,t=1) { difference() { cylinder(h=h,d1=d1+2*t...
glb/cad_ee43eff5e3e1.glb
Create a cassette cover for a bike trainer consisting of a series of stacked, concentric hollow conical shells and a handle. Start with a base rim that is 5mm high (3mm inner height plus 2mm wall thickness) with an outer diameter of 114mm and an inner diameter of 104mm. Directly above this rim, add a main conical secti...
cone_length = 44.5; cone_max = 110; cone_min = 50; rim_height = 3; funnel_start = 21; funnel_end = 19; funnel_length = 37.5; shell_thickness = 2; handle_diameter = 5; bridge_thickness = 0.28; fn_value = 360; module cone(d1=1,d2=1,h=1,t=1) { difference() { cylinder(h=h,d1=d1+2*t,d2=d2+2*t,$fn=fn_value)...
glb/cad_9f2cb696bf83.glb
Create a phone holder frame by starting with a solid rectangular base measuring 140mm wide, 75mm high, and 8mm deep. Center a rectangular cutout through the middle of this base to create a hollow frame; this opening must be 58.6mm wide, 115.2mm high, and 20mm deep. To form the side supports, add two thin rectangular wa...
height = 58.6; width = 115.2; depth = 1*20; module dodocase() { difference() { union() { translate([-140/2,-75/2,-8/2]) cube([140,75,8]); translate([-140/2,-75/2,8/2]) cube([3,75,5]); translate([140/2-3,-75/2,8/2]) cube([3,75,5]); } { translate([-width/2,-height/2,-depth/2]) cube([width,height,depth...
glb/cad_a471fc56bb61.glb
Create a j-head mount block with a total height of 10mm. The main body is a rectangular prism with a width of approximately 68.7mm and a depth of 21.85mm. Center a vertical hole for an extruder tube at x = -6mm and y = 11.5mm from the back. This hole consists of a narrow inner cylinder with a 12.5mm diameter extendin...
nema17holespacing=31; nema17boltdiameter=3.15; m3countersinkdepth=5; m3headdiameter=6.6; m3tappablediameter=2.75; m3tom3clearance=0; tubeyoffset=11.5; tubexoffset=6; tubezoffset=2.75; tubediameter=16.3; tubefrontclearance=4; tubelipthickness=4; tubelipinnerdiameter=12.5; barrelholespacingfront=5; barrelcenter=[-tubex...
glb/cad_f9f0dec023cc.glb
Create a kitchen tools holder consisting of a solid rectangular block with a thickness of 28mm and a width of 84mm. Within this block, carve out two distinct tool slots. First, create a hole for a peeling knife by removing a cylinder with a radius of approximately 6.78mm and a height of 55mm. To make the tool easier ...
include <trunk.scad>; module peeling_knife_hole() { radius = (pow(7,2)+pow(9.5,2)) / 14; difference() { cylinder(h=55, r=radius, $fn=60); translate([0,0,-2]) cylinder(h=60, r=radius-5, $fn=60); translate([-3,-50,0]) cube([100,100,100]); } width = 29; depth = 17; height = 22; translate([2,-1...
glb/cad_bfc3f61d7dee.glb
Create a kitchen tools holder consisting of a main vertical body and an attached rail. First, construct the main body as a rectangular slab with a thickness of 28mm and a total height of 112mm (calculated from the 4-slice trunk of 28mm each). To this body, attach a thin, extruded rail that is 77mm tall. The rail's cros...
include <trunk.scad>; module clothes_pin_rail() { linear_extrude(height=77) polygon(points=[ [0,0], [3.6,0], [3.3,24], [0.3,24] ]); } module clothes_pin_holder() { union() { trunk_slice(leftEdge=4*28, thickness=28, junctions="both"); translate([12.7,86,80]) rotate([100,0,0]) clothes_pin_ra...
glb/cad_bc09e3bf4491.glb
Create a kitchen tools holder by starting with a solid rectangular block that is 56mm wide, 28mm thick, and 90mm high. From this block, remove a specific void to create a slot for a knife. This void is defined by a 2D polygon with vertices at [0,0], [38,0], [24,68], [18,85], [8,85], and [4,68], which is then extruded t...
include <trunk.scad>; module knife_2_hole() { linear_extrude(height=2) polygon(points=[ [0,0], [38,0], [24,68], [18,85], [8,85], [4,68] ]); width = 48; depth = 12; height = 22; translate([-6.5,-6,7]) rotate([-90,0,0]) minkowski() { polyhedron(points=[ [0,0,0], [width, 0,0], [width,depth,0]...
glb/cad_4daf7b21ad08.glb
Create a kitchen tools holder by starting with a solid rectangular block that is 28mm wide, 28mm thick, and 85mm tall. From this main body, carve out a specialized slot to hold a cheese cutter. This slot is created by removing a volume based on a 2D polygon with vertices at [0,0], [75,0], [56.5,62], and [18.5,62]. Extr...
include <trunk.scad>; module cheese_cutter_hole() { rotate([7,0,0]) linear_extrude(height=2) polygon(points=[ [0,0], [75,0], [75-18.5,62], [18.5,62] ]); width = 85; depth = 12; height = 20; translate([-5,-20,7]) rotate([-90,0,0]) minkowski() { polyhedron(points=[ [0,0,0], [width, 0,0], ...
glb/cad_22b962f9bd8b.glb
Create a kitchen tools holder consisting of a main base and an attached rail. First, construct the base as a rectangular block with a thickness of 28mm and a total length of 140mm (calculated as 5 sections of 28mm). On top of this base, at a position 12.7mm from the left edge and 86mm from the front edge, attach a vert...
include <trunk.scad>; module clothes_pin_rail() { linear_extrude(height=77) polygon(points=[ [0,0], [3.6,0], [3.3,24], [0.3,24] ]); } module clothes_pin_2_holder() { union() { trunk_slice(leftEdge=5*28, thickness=28, junctions="male"); translate([12.7,86,77]) rotate([100,0,0]) clothes_pin_...
glb/cad_0a26a3ad4d13.glb
Create a kitchen tools holder by starting with a solid rectangular block that is 28mm thick. Within this block, carve out a specialized slot for a knife. This slot is formed by a shape that is 37mm wide, 12mm deep, and 27mm high, with rounded edges. The opening of the slot is wider at the top to allow for easy insertio...
include <trunk.scad>; module knife1hole() { linear_extrude(height=2) polygon(points=[ [0,0], [25,0], [7,90], [0,90] ]); width = 37; depth = 12; height = 27; translate([-6.5,-12,7]) rotate([-90,0,0]) minkowski() { polyhedron(points=[ [0,0,0], [width, 0,0], [width,depth,0], [0,depth,0], ...
glb/cad_77f0cae3377f.glb
Create a miniature sink consisting of a main basin and a side hose connector. The basin starts with a flat circular base 4.5mm thick with an outer radius of 35.75mm and an inner hollow radius of 34.5mm. From this base, the outer wall tapers linearly upward over a height of 18mm to a top outer radius of 20mm. The interi...
$fa = 2; rotate([180,0,0]) difference() { union(){ cylinder(r = 35.75, h = 4.5); translate([0,0,4.5]) cylinder(r1 = 35.75, r2 = 20, h = 18); cylinder(r = 20, h = 44); translate([15,0,32]) rotate([0,90,0]) union(){ minkowski() { cylinder(r = 5.75, h = 20); sphere(r=1); } } } transla...
glb/cad_ed28cbcc56c8.glb
Create a Parametric Chuck Key Holder for a lathe. Start by forming the main body as a rounded block with a height of 40mm and a width of 38mm. The front profile is a semi-circle with a radius of 15mm, which blends into a rectangular base. Carve a vertical cylindrical hole through the center of the rounded section with...
eps = 0.001; clearanceBackPlate = 0.5; wBackPlate = 13.8+clearanceBackPlate; hBackPlate = 9.8+clearanceBackPlate; clearanceKey = 0.5; rKey = 9.0; rKeyHole = rKey+clearanceKey; camferKeyHoleR = 2.5; camferKeyHoleZ = 5.0; rHolder = 15.0; hHolder = 40.0; dHolder = 45.0; wHolder = 38.0; angleBackPlateHolder = 35.0; hBa...
glb/cad_4e8880514f0b.glb
Create a coffee machine replacement part consisting of a series of concentric rings with a total height of 7mm. Start by creating a solid cylinder with a diameter of 65mm and a height of 7mm. From this main body, remove a central vertical hole with a diameter of 35mm that spans the entire height. Create a ring-shaped c...
diameter1 = 35; diameter2 = 37; diameter3 = 40.5; diameter4 = 43; diameter5 = 63; diameter6 = 65; height = 7; outerRingHeigt = 6; bottomRingHeight = 3.5; innerRingHeight = 2; f = 1; difference() { cylinder(height,d=diameter6); translate([0,0,-f]) difference() { cylinder(outerRingHeigt+f,d=diameter5); translate(...
glb/cad_adff343d738f.glb
Create a Slatwall Accessory mount by combining three rectangular prisms. First, create a vertical backplate that is 30mm wide, 2mm thick, and 40mm high. Attached to the bottom of this backplate, add a horizontal shelf that is 30mm wide, 2mm thick, and extends 12mm outward from the backplate. Finally, add a vertical hoo...
width=30; thickness=2; height=40; slat_depth=12; slat_height=13; module slatwall_accessory( width, centre_x=true, wall_width=3.4, wall_height=40, shelf_depth=12, hock_height=13){ function translate_x_val(width, centre_x) = centre_x ? -width*0.5: 0; translate([t...
glb/cad_02756e1cd2ba.glb
Create a ladder for a Pumpkin Water Tower. The ladder consists of two parallel vertical handrails and a series of horizontal rungs. Each handrail is a rectangular prism measuring 1.6mm wide, 277.5mm long, and 4.2mm high. Position these handrails 12.4mm apart from center to center. Connect the handrails with 34 horizon...
$fn=40; eps = 0.5; pitch = 8.05; width_ladder = 12.4; length_ladder = 277.5; thickness_handrail = 1.6; height_handrail = 4.2; thickness_rung = 2.0; dist_first_rung = 7; height_rung = 2.0; count_rung = 34; pos_clip = 9.2; thickness_clip = 1.2; length_clip = 3.0; length_clamp = 5.5; thickness_clamp = 1.8; height_cla...
glb/cad_5ff7caf7bd9f.glb
Create a Proton Pack VacTube mount consisting of a tiered cylindrical base and a hollow vertical sleeve. Start by creating a solid cylinder for the base with a radius of 29.35mm and a height of 12.7mm. Drill a vertical hole with a diameter of 8mm through the center of this base, extending from the bottom through the to...
tubeInternalDiameter = 27; tubeWallThickness = 2.8; mountingHoleDiameter=8; baseHeight = 12.7; secondaryHeight=3.2; outputTubeHeight = 63.5; difference() { cylinder(h=baseHeight, r = 29.35); cylinder(h=baseHeight+secondaryHeight+1,r=mountingHoleDiameter/2); }; difference() { translate([0,0,baseHeight]) cylinder(h=...
glb/cad_9ccb68c66553.glb
Create a parametric angle gauge block with a thickness of 5mm and a length of 60mm. The base shape is a right-angled prism where the low side has a height of 5mm. The high side's height is determined by the desired angle, calculated as 5mm plus the length multiplied by the tangent of that angle. The top surface slopes ...
eps = 0.001; heightLowSide = 5.0; thickness = 5.0; length = 60.0; depthText = 1.0; textScaleX = 0.5; textScaleY = 1.0; textScaleZ = 0.5; offsetTextX = 0.5; offsetTextY = 2.0; module drawAngleBlock(prmDegrees) { heightHeighSide = heightLowSide+length*tan(prmDegrees); difference() { union() ...
glb/cad_37d1b40ecac5.glb
Create an icebox extension holder by constructing a composite cylindrical structure. Start with a base cylinder 80mm in height and 40mm in radius. On top of this base, add a second cylinder 120mm in height with a 34mm radius, positioned so it extends from the 40mm height mark of the base. Hollow out the center of the e...
difference(){ union(){ cylinder(80,40,40,$fn=130); } translate([0,0,40]) cylinder(120,34,34,$fn=130); translate([0,0,2]) cylinder(120,31,31,$fn=130); translate([-21,-21,-4]) cube([40,42,42]); translate([-20,-38,-6]) cube([6,34,10]); translate([-4,-34,-1]) cube([6,68,10]); }
glb/cad_540957f773b5.glb
Create an Icebox extension by starting with a solid rectangular block measuring 124mm x 106mm x 70mm. Carve out a large rectangular central cavity measuring 118mm x 100mm x 80mm, positioned 3mm from the side walls and starting 12mm below the top surface, to create a hollow shell. Create a large rectangular opening at t...
difference() { union(){ cube([124,106,70]); } translate([22,18,-2]) cube([80,70,120]); translate([3,3,-12]) cube([118,100,80]); translate([-20,8,-2]) cube([200,90,20]); translate([6,-20,-2]) cube([110,200,20]); rotate([90,0,0]) translate([13,50,-150]) cylinder(200,4,4,$fn=130); rotate([90,0,0]) translate([23,50,-1...
glb/cad_44ccdd125108.glb
Create a Geo-manufactured Ring Sundial. Start by constructing a main ring with an outer diameter of 50mm, a width of 16.18mm, and a wall thickness of 2.5mm. On the ring's surface, create two small circular holes with a diameter of 2mm. Position these holes symmetrically relative to the ring's center, specifically at ...
latitude = 37.223224; ring_outer_diameter = 50; ring_width = 16.18; ring_thickness = 2.5; hole_diameter = 2; hole_pos = 40; gravure_thickness = 1.5; mark_y = 1.1; margin_hour = 0; delta = 5; module dumb() {} from_day = -10; from1 = -10; to1 = 81; from2 = 82; to2 = 82+91; hang_height = ring_width; hang_thickness =...
glb/cad_1489438dd115.glb
Create a Jigsaw Blade Case consisting of a rectangular base with a hollowed-out channel. Start by creating a solid rectangular block that is 50mm wide, 5mm high, and 100mm long. From the top center of this block, remove a cylindrical section with a diameter of 22mm and a depth of 10mm to create a circular recessed pock...
$fn=120; difference(){ resize("jigsaw_top.stl"); translate([0, -55, 2]) rotate([90, 0, 0]) cylinder(d=22, h=10); } resize("jigsaw_bottom.stl"); translate([-25, -33, 2]) cube([50, 2.5, 5]); module resize(file){ difference() { import(file); translate([-50, 50, -1]) cube([100, 50, 20]); ...
glb/cad_0fbe6469e333.glb
Create a spray watering nozzle consisting of a wide base that tapers upward into a narrow connector. Start with a flat circular base 100mm in diameter and 1.6mm thick. From the top of this base, create a conical section that transitions from the 100mm diameter up to an outer diameter of 27.5mm plus a 3.2mm wall thickne...
connector_inner_diameter = 27.5; nozzle_diameter = 100; nozzle_height = 60; connector_height = 30; wall_thickness = 1.6; $fn=64; hole_diameter = 1.4; hole_diameteristance = hole_diameter * 5; hole_radius_distance = 7; d_can_outer = connector_inner_diameter + 2 * wall_thickness; nozzle_diameter_inner = nozzle_d...
glb/cad_582ef6cc0d50.glb
Create a bathroom holder for a razor, shaving brush, and four toothbrushes. Start with a base block 200.1mm long, 25mm wide, and 25mm high, centered on the origin. The ends of this base are rounded with spheres of 25mm diameter centered at x=87.5 and x=-87.5. Along the top surface, create a series of vertical slots a...
module open(wid){ hull(){ translate([0,0,15]) rotate ([90,0,0]) cylinder (h=20,d=wid,center = true,$fn=36); translate([0,0,45]) rotate ([90,0,0]) cylinder (h=20,d=wid,center = true,$fn=36); } } translate ([0,0,0]){ difference(){ union(){ hull(){ translate([87.5,0,0]) sphere(d=25,center=true,$fn=36);...
glb/cad_665d1649f170.glb
Create a Button Battery Cylinder consisting of two separate parts: a tray and a cover. For the tray, create a hollow cylinder with an outer diameter of 21.6mm and a total height of 32.4mm. The walls should be 1.2mm thick. The bottom of the cylinder should be open, and the interior should be divided into 16 equal compa...
model = 2032; Tray_items = 16; Cover_font_size = 6; Tray_font_size = 2; Render_tray = true; Render_cover = true; Wall_width = 1.2; Spacer_width = 0.8; Cover_tolerance = 0.2; if (model == 1254) { container("LR44"); } else if (model == 2335) { container("BR2335"); } else { container(str("CR",model)); } module con...
glb/cad_67fcf59d418a.glb
Create a parametric plug consisting of four stacked geometric sections. Start with a bottom conical frustum 10mm in height, tapering from a bottom radius of 5.1275mm to a top radius of 5.75mm. Directly on top of this, add a second cylinder with a height of 6.25mm, tapering from a bottom radius of 5.75mm to a top radius...
$fn=50; bottom_inner_dia = 11.5; bottom_plug_height = 10; bottom_plug_angle_ratio = .89; stem_dia = 6; bottom_inner_rad1 = bottom_inner_dia/2; bottom_inner_rad2 = (bottom_inner_dia/2)*bottom_plug_angle_ratio; base_plug_dia = bottom_inner_dia*1.1; base_plug_rad = base_plug_dia/2; base_plug_height = bottom_plug_heig...
glb/cad_e690ddf1426e.glb
Create a sugar thermometer cover with an overall length of 175mm, an outer width of 54.7mm, and an outer height of 7.9mm. The main body is a hollowed-out rectangular sleeve with a wall thickness of 1.5mm. The internal cavity should measure 51.7mm wide by 4.9mm high. At one end, extend the cover with a centered tongue...
length=175; width_inside=51.7; height_inside=4.9; thickness=1.5; tongue_length=39; tongue_width=44; tabs=10; lip=1.5; rails=0; rail_width=8; rail_height=2; width_outside=width_inside+thickness*2; height_outside=height_inside+thickness*2; rail_mid=tongue_width/4; union() { difference() { cube([width_o...
glb/cad_73af4f1b0ffc.glb
Create a Customizable Hanging Tool consisting of a threaded base and two symmetrical wing-like catches. Start by creating a trapezoidal nut with a radius of 15mm, a length of 25mm, and a pitch of 5mm. The nut should have a pitch radius of 8.375mm, a thread angle of 5 degrees, and a thread height to pitch of 0.34. Add...
wing_gap = 13; wing_bottom_z = 0; wing_bottom_width = 6; wing_center_width = 15; wing_center_outside_height = 50; wing_center_inside_height = 50; wing_center_thickness = 5; wing_back_inside_height = 3; wing_back_outside_height = 3; wing_back_thickness = 3; wing_front_inside_height = 3; wing_front_outside_height = 3;...
glb/cad_c92ab8541501.glb
Create a Triple Tree motorcycle fork clamp. The main body is a thick plate with a total height of 112mm and a base thickness of 30mm. At the center, create a vertical stem hole with a diameter of 22.5mm. Position two large circular openings for the fork tubes, centered 214mm apart, each with a diameter of 50mm. Aroun...
style = 1; pattern = 2; pattern_depth = 3; boss_style = 1; half = false; smooth = 90; pattern_3_inset_percent = 0.9; pattern_5_bridge = 2.5; center_to_center_fork = 214; outer_clamp_dia = 60; fork_tube_dia = 50; c2c_lock_stem = 67; stem_to_lock_edge = 65.5; lock_cyl = 30; lock_od = 40; lock_flange_thickness = 13; hei...
glb/cad_795e0e3d0c5a.glb
Create a Customizable Jewelry Box consisting of a main body, a filigree lid, and an optional insert plate. For the body, create a heart-shaped container with a height of 30mm and a maximum dimension of 100mm. The walls and bottom should have a thickness of 2mm. The interior is hollowed out to match the heart shape, l...
part = "show_all"; box_shape=0; box_height=30; box_size=100; box_wall_thickness=2; filigree_type=2; filigree_pattern_shape=1; filigree_pattern_thickness=3; filigree_pattern_rotation=10; filigree_pattern_radius=2.3; filigree_magic_one=4.0; filigree_magic_two=0.5; filigree_vertical_centering=0; filigree_hori...
glb/cad_5be7f7ef244a.glb
Create a customizable model stand consisting of three stacked coaxial geometric shapes. Start with a flat cylindrical base that has a radius of 15mm and a height of 2mm. Centered on top of this base, place a cone-shaped section with a height of 12.5mm, starting from a bottom radius of 7.5mm and tapering upward to a top...
$fn=150; bradius = 15; bheight = 2; cylinder(bheight, bradius, bradius); cheight = 12.5; cradius = (bradius/2); ctaper = (bradius/4); cylinder (cheight, cradius, ctaper); taper = 2; pheight = (cheight+10); pradius = 3; if(taper == 0) { cylinder(pheight, pradius, pradius); } else { cylinder(pheight, pradi...
glb/cad_dd5e50dc53d1.glb
Create a customizable funnel with a wall thickness of 2mm. Start by constructing a cylindrical spout with an outer diameter of 20mm and a length of 25mm. From the top of the spout, create a conical transition section that extends 30mm upward, tapering outward from the 20mm spout diameter to a container outer diameter o...
$fn=100; $sidewall_thickness=2; $spout_outside_diameter=20; $spout_length = 25; $funnel_length = 30; $container_outside_diameter=70; $container_height=30; $spout_slope=10; difference() { group(){ cylinder($spout_length, $spout_outside_diameter/2, $spout_outside_diameter/2); translate([0, 0, $spout_l...
glb/cad_41b9d0fb1db8.glb
Create a Microbot model centered around a sphere with a radius of 4mm. Extending vertically from the top and bottom of this sphere are two identical, mirrored tapered components. Each component is formed by the convex hull of four octagonal layers stacked along the Z-axis. The first layer is an octagon with a width of ...
$fn = 100; scale([.4,.4,.4])union(){ hull(){ translate ([0,0,51]) octagon(8, .1); translate ([0,0,50]) octagon(10, .1); translate ([0,0,0]) octagon(5, .1); translate ([0,0,15]) octagon(20, .1); } rotate([180,0,0]) hull(){ translate ([0,0,51]) octagon(8, .1); translate ([0,0,50]) octagon(10, .1); t...
glb/cad_5b6f60cb3729.glb
Create a set top box foot pedestal by starting with a tapered cylinder that has a total height of 46.7mm, a bottom diameter of 35mm, and a top diameter of 30mm. Bore a hole into the center of the top face with a diameter of 22.7mm and a depth of 3mm. At the base of the pedestal, create a ring-shaped groove for an o-rin...
top_od = 30; top_id = 22.7; top_hole_depth = 3; lower_od = 35; lower_ring_id = 0.924 * 25.4; lower_ring_od = 1.13 * 25.4; oring_thickness = (3/32) * 25.4; oring_exposed_thickness = 0.5; height = 46.7; difference() { difference() { translate([0,0,height/2]) cylinder( h=height, r1=lower_od/2, r2=top_od/2, center=...
glb/cad_596d00f7125f.glb
Create a corner shelf support bracket with a total length of 50mm (comprising a 40mm top section and a 10mm bottom section). The main body is a block 11.3mm wide and 10mm thick. On the front face, add a symmetrical pointed protrusion formed by two cubes of 14mm length, each rotated 45 degrees and mirrored across the ce...
Top_len__mm_ = 40; Bottom_len__mm_ = 10; Clarence__mm_ = 0.1; Corner_radius = 2; translate([0, 0, 0]){ $fn=72; rotate([270, 0, 0]){ translate([-0.65, -(Bottom_len__mm_+Top_len__mm_), -10.5]){ intersection() { difference() { union(){ cube([11.3, (Bottom_len__mm_ + Top_len__mm_), 10], c...
glb/cad_f3c17a194607.glb
Create a mid shelf support for an IKEA Milsbo. The overall shape is a rectangular block with a total length of 50mm (composed of a 40mm top section and a 10mm bottom section) and a width of 20mm. The main body is a block with rounded corners of 2mm radius. Centered along the length of the block, create a vertical hol...
Top_len__mm_ = 40; Bottom_len__mm_ = 10; Clarence__mm_ = 0.1; Corner_radius = 2; intersection() { $fn=72; union(){ difference() { hull(){ translate([0.35, 0, 8.45]){ rotate([0, 90, 90]){ { cylinder(r1=1, r2=1, h=(Bottom_len__mm_ + Top_len__mm_), center=false);...
glb/cad_0c247a8529a4.glb
Create a Two Letter Sculpture by finding the intersection of two extruded letters. First, create a 3D letter "A" and extrude it to a height of 10mm. Position this letter so its face is oriented toward the front. Second, create a 3D letter "K" and extrude it to a height of 10mm. Rotate this second letter 90 degrees arou...
first_letter = "A"; second_letter = "K"; module Letter(l) { fudge = 0.1; h = 10; if (l=="A") { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[17.716535,17.716535],[8.594012,17.716535],[6.227213,10.553772],[-6.456999,10.553772],[-8.823799,17.7165...
glb/cad_5079d2905e57.glb
Create a case for a MaxBotix MaxSonar module. The assembly consists of a base, a cover, an acoustic shield, and a mounting bracket. First, create the base as a rectangular box with a floor thickness of 1mm. The interior should accommodate a PCB of 20.1mm by 22.2mm. Add two PCB support pegs at the mounting hole positio...
part = "demo"; DrillHoles = false; j = 0.1; $fs = 0.2; x = 0; y = 1; z = 2; ShieldHeight = 30; ShieldAngle = 25; MountingHole = 3.1; WireHole = 3.5; BarWidth = 12.5; BarHeight = 3.0; Thickness = 1; Tol = 0.15; Floor2PCB = 10.5; Aperture = 16.3; BoardSizeNet = [20.1, 22.2, 1.6]; HoleSizeNet = 3.15; ChokeHeight =...
glb/cad_380e06948217.glb
Create an adjustable x-axis tensioner consisting of two primary components: a top gripping piece and a bottom bracket. For the top piece, create a block 7mm wide, 7.5mm deep, and 14mm high. Along one 7mm x 14mm face, add a series of rectangular ribs spaced 5mm apart, each 2mm wide and 1.1mm deep, to grip a belt. Cut a...
BELT_WIDTH = 7; BELT_THICKNESS = 3; BELT_GAP_DEPTH = 1.1; BELT_GAP_WIDTH = 2; BELT_GAP_SPACING = 5; MOUNT_WIDTH = 17.75; MOUNT_DEPTH = 20; MOUNT_HEIGHT = 6; MOUNT_INNER_SQUARE = 7; WALL_THICKNESS = 3; THIN_WALL_THICKNESS = 2; SCREW_HOLE_DIAMETER= 3; NUT_SHORT_WIDTH = 5.5; NUT_HEIGHT = 2.14; $fn=24 + 0; T...
glb/cad_7084b91241b0.glb
Create a case for an Optical Flow Sensor consisting of a base, a cover, and an optional mounting bracket. The base is a rectangular box with external dimensions of 35.3mm x 27.8mm x 16.5mm (calculated from a 33.3mm x 25.8mm PCB plus 1mm walls). The interior features a floor 5mm below the PCB. Create four PCB support p...
part = "section"; j = 0.1; $fs = 0.5; x = 0; y = 1; z = 2; wire_hole = 3.5; bar_width = 12.5; bar_height = 3.0; wall = 1; tol = 0.15; floor_2_pcb = 5.0; wall_height = wall + 10.5; aperture = 16.3; screw_w = 2.5; screw_h = 0.6; board_size_net = [33.3, 25.8, 1.6]; hole_size_net = 3.3; MountingHole = 3.0 + tol; hole1...
glb/cad_e9bf3e39928f.glb
Create a parametric snap lock mechanism consisting of two mirrored components: a snap piece and a bracket. Both components have a base thickness of 3mm. For the snap piece, create a central rectangular bar with a width of approximately 10.3mm and a total length of 67mm. At each end of this bar, add a mounting block th...
view = "both"; mount_cc_dist = 35.0; mount_cc_width = 32.0; thickness = 3.0; screw_dia = 2.5; screw_head = 2.0*screw_dia; gap = 0.2; screw_land = screw_dia/2; snap_width = mount_cc_width - 2*screw_land - screw_head - 2*thickness; mount_width = mount_cc_width + 2*screw_land + screw_head; mount_height = 2*screw_la...
glb/cad_307d001dd3e7.glb
Create a roll-up cigarette case consisting of a hollowed-out square shell with rounded corners. Construct the main body as a solid square block with a total width of 2mm, a depth of 2mm, and a height of 2mm. Round the four vertical corners of this block using a radius of 0.5mm. To create the hollow interior, remove a s...
$fn = 50; generalWidth = 2; heightUpperPart = 2; module upperPart (inputWidth, height) { width = inputWidth + 0.2; union () { translate([width/4, width/4, 0]) cylinder(r=width/4, h=height, center = true); translate([-(width/4), width/4, 0]) cylinder(r=width/4, h=height, center = true); translate([width/4, -(...
glb/cad_4cd3ce2ae184.glb
Create a roll-up cigarette case consisting of a rectangular base with rounded corners and four vertical holes. The main body is a rectangular prism with a total height of 6mm and a width and depth of 2mm. The corners of this body are rounded with a radius of 0.5mm. Inside this body, create four vertical cylindrical h...
$fn = 50; heightLowerBox = 6; generalWidth = 2; holeRadius = 0.4; module lowerBox (width, height) { newWidth = width/4; thicker = newWidth + 0.2; union () { translate([newWidth, newWidth, 0]) cylinder(r=newWidth, h=height, center = true); translate([-(newWidth), newWidth, 0]) cylinder(r=newWidth, h=height, c...
glb/cad_e681e34adff5.glb
Create a roll-up cigarette case consisting of a main body and a smaller nested lid. Construct the main body as a rounded cube with a width and depth of 18mm and a height of 25mm, using a corner radius of 2mm. Inside this body, remove four vertical cylindrical holes, each with a radius of 4mm and a height of 60mm. Posit...
$fn = 80; complexObject(); module complexObject() { difference(){ union() { casing(18, 25); translate([1,1,50]) casing(16, 5); } union() { translate([4,4,0]) holes(4, 60); } } } module casing(width, height){ minkowski(){ cube([width, widt...
glb/cad_6638c528443b.glb
Create a roll-up cigarette case by constructing a hollowed-out square box. First, create a solid cube with dimensions 18mm in width, 18mm in depth, and 10mm in height. Apply a 2mm radius fillet to all exterior edges of this cube to round the corners and edges. To create the interior cavity, center a smaller cube inside...
$fn = 80; complexObject(); module complexObject() { difference(){ union() { casing(18, 10); } union() { translate([1,1,1]) casing(16, 11); } } } module casing(width, height){ minkowski(){ cube([width, width, height]); cylinder(r = 2, h = height); }...
glb/cad_c4488f1bcda9.glb
Create a roll-up cigarette case consisting of a main body and a lid. Construct the main body as a rounded rectangular prism with a base width of 10mm and a height of 50mm, using a corner radius of 6mm. Create a separate lid as a rounded rectangular prism with a width of 8mm and a height of 5mm, also using a 6mm corner ...
$fn = 50; complexObject(); module complexObject() { difference(){ union() { casing(10, 25); translate([1,1,50]) casing(8, 5); } union() { translate([0,0,0]) holes(4, 60); } } } module casing(width, height){ minkowski(){ cube([width, widt...
glb/cad_3a2bbee3bea7.glb
Create a roll-up cigarette case by constructing a hollowed-out square container with rounded edges. Start by creating a solid rounded cube using a Minkowski sum of a 10mm x 10mm x 10mm cube and a cylinder with a 6mm radius and a height of 10mm. To create the interior cavity, remove a smaller rounded shape from the cent...
$fn = 50; complexObject(); module complexObject() { difference(){ union() { casing(10, 10); } union() { translate([1,1,1]) casing(8, 11); } } } module casing(width, height){ minkowski(){ cube([width, width, height]); cylinder(r = 6, h = height); } ...
glb/cad_f759cdacbdfb.glb
Create a small robot called Agatha's Clank. The main body is a flattened spheroid with an outer radius of 45mm and a thickness of 9mm. The body is split into front and back halves. The front half features a central circular opening with a radius of 12mm to accommodate an eye. The eye is a sphere with a radius of 12mm,...
outer=45; aspect=1.1; rjoint=5; joint_fudge=0.15; filament_diam=3; filament_adj=0.2; r_eye=12; joint_gap=2*rjoint-3; r_hole=(filament_diam+filament_adj)/2; front_plate=1; back_plate=2; limbs_plate=3; eye_plate=4; arms_plate=5; legs_plate=6; plate=front_plate; if( plate == front_plate ) { rotate( a=[0,0,45] ) fr...
glb/cad_6d52f7b999e4.glb
Create a parametric shelf for an RC radio controller. Start with a solid rectangular base measuring 100mm in width (94mm inner width plus two 3mm walls) and 150mm in depth (143.5mm inner depth plus two 3mm walls), with a total height of 11.9mm. From the top, carve out a central rectangular cavity measuring 94mm by 14...
case_x = 94.0; case_y = 143.5; wall_t = 3.0; wall_h = 4.9; rib_h = 7.0; rib_w = 3.0; floor_t = 1.0; rooms_x = 3; rooms_y = 4; hole_dy = 70; hole_ddx = 13.5; hole_d = 4.2; screw_d = 7.5; pad_dia = 1*25.0; pad_h = 1*0.5; d = 1*0.1; $fs = 1*0.2; lock_screw_d = 1.7; lock_screw_l = 12.0; lock_width = 40.2; ...
glb/cad_762dde6e80a0.glb
Create a servo mounting bracket for a multicopter. Start by creating a main mounting flange that consists of a cylinder with a radius of 8.05mm (half of the 10.1mm tube diameter plus a 3mm wall thickness) and a height of 12mm. Subtract a concentric cylindrical hole with a radius of 5.05mm from this flange. Add a recta...
mount_tube_dia = 10.1; mount_tube_dist = 110.0; mount_type = "servo"; mount_offset = 28.0; mount_angle = 65; mount_width = 12; mount_wall = 3; servo_flange_width = 35.0; servo_screw = 2.5; servo_flange_height = 20.0; mount_gap = 1.0; screw = 3.0; nut = 5.5; nut_h = 1.5; mount_screw = screw + 0.2; nut_w = n...
glb/cad_b345d9263281.glb
Create a base for a Samsung Galaxy Tab 2 in an Otter box and telemetry radio. The overall footprint is a rectangle 131mm by 200mm with rounded corners of radius 18mm. The walls are 18mm high and 3mm thick. The floor is 0.6mm thick, reinforced by a grid of ribs 1.6mm wide. This grid creates 4 rooms along the width and 6...
view = "base"; case_x = 131.0; case_y = 200.0; wall_t = 3; wall_h = 18; floor_t = 0.6; rib_h = 10+floor_t; rib_w = 1.6; rooms_x = 4; rooms_y = 6; corner_dy = 28; corner_r = 18; bottom_h = 4.0; bottom_w = 6.0; ball_d = 159; ball_r = 2.0; ball_dz = 10.5; ball_dx = 1; strap_t = 1.4; strap_w = 6; radio_h = 10; radio_...
glb/cad_12f84b841a2c.glb
Create a switch box for a Flashforge Creator by starting with a base block 50mm wide, 30mm deep, and 40mm high. Shape the overall form by intersecting this block with two spheres of 40mm radius centered at [25, 0, 20] and [25, 30, 20]. From this volume, remove several rectangular sections to create the mounts and openi...
module switchmount() { intersection() { difference() { union() { cube([50, 30, 40]); } translate([-1, 5, -1]) cube([52, 5, 11]); translate([40, 5, -1]) cube([11, 5, 42]); translate([10, -1, 15]) cube([13, 26, 20]); translate([25, -1, 15]) cube([13, 26, 20]); translate([18, 2...
glb/cad_6908349272b1.glb
Create a menstrual cup shaped as a paraboloid of revolution. The object should have a total height of 90mm. The base of the cup is a rounded, parabolic bowl that curves upward to a flat circular rim. The interior of the bowl is hollow, with the wall thickness defined by a focal radius of 8mm at the bottom center. The o...
module paraboloid1 (y=10, f=5, rfa=0, fc=1, detail=44){ hi = (y+2*f)/sqrt(2); x =2*f*sqrt(y/f); translate([0,0,-f*fc]) rotate_extrude(convexity = 10,$fn=detail ) translate([rfa,0,0]) difference(){ union(){ projection(cut = true) translate([0,0,f*2]) rotate([45,0,0]) translate([0,0,-hi/2])cylinder...
glb/cad_6920691ad9a1.glb
Create a corner support for wire mesh cages. Start by forming an L-shaped base consisting of two intersecting rectangular blocks, each 20mm wide, 20mm high, and 40mm long. Position these blocks so they overlap at a right angle, sharing a common corner. Carve a channel 7mm wide and 11mm high through the center of both...
height=20; width=20; length=40; bezel_angle=8; h_bezel=1.5*height; w_channel=7; STRAIGHT_PIECE=1; CORNER_PIECE=2; piece=CORNER_PIECE; if( piece == STRAIGHT_PIECE ) { straight_support(); } if( piece == CORNER_PIECE ) { corner_support(); } module straight_support() { difference() { block(); ...
glb/cad_b083d2b0a7b4.glb
Create a CNC machine frame and sliding assembly. Start by constructing the outer frame using plates with a thickness of 6.25mm. The frame consists of a front beam of 100mm length and 25mm height, a rear beam of 80mm height, and two side supports. Each side support is composed of a bottom section 25mm high and an upper ...
z_slide=10; x_slide=20; y_slide=0; thick=6.25; xsidetotal=100; x_center=xsidetotal/2-2*thick; ysidetotal=100; frontdepth=60; front_height=25; front_height_center=front_height/2; rear_height=80; x_sliding_plate_width=30; x_sliding_plate_height=80; y_sliding_plate_width=70; y_sliding_plate_x_offset=(ysidetotal-y_s...
glb/cad_632b421bf2db.glb
Create a plant propagation stem holder consisting of a main ring and two matching caps. First, construct the main holder ring. Create a cylinder with a height of 2mm and a radius of 39.1mm (outer diameter of 78.2mm). From the center of this cylinder, remove a concentric cylinder with a height of 4mm and a radius of 3...
glass_outer_diameter = 74.2; glass_wall_thickness = 3.6; cap_diameter = 20; cap_hole_diameter = 4.4; $fn=100; module holder(){ difference(){ translate([0,0,0]) cylinder(h = 2, r = glass_outer_diameter/2 + 2, center = true); translate([0,0,0]) ...
glb/cad_3403db2b18a8.glb
Create a P3Steel Y endstop holder consisting of a carrier for a mechanical limit switch. Start with a rectangular base measuring 28.6mm in width, 16.6mm in depth, and 4mm in height. On the top surface of this base, add a thin rectangular tab measuring 10mm by 4mm by 2.1mm. Integrate two cylindrical mounting posts with...
$fn = 32; base_thickness = 3; hole_distance = 9.2; module prusa_i3_8mm_horiz_mount() { union() { difference() { translate([31,12,-2]) rotate([90,0,0]) cylinder(8,6,6); translate([31,13,-2]) rotate([90,0,0]) cylinder(20,4,4); translate([33,13,-1]) rotate([90,-30,0]) cube([6,6,20]); trans...
glb/cad_472f25d1d6c7.glb
Create a Towers of Hanoi game set consisting of a base, a cover, and 12 disks. For the base, create a rectangular block 107mm long, 37mm wide, and 5mm high. On this base, place three vertical cones (pegs). Each peg is a cylinder with a radius of 5mm and a height of 65mm, topped with a hemispherical cap of the same ra...
largestdisksize = 35; largestdiskheight = 5; diskstep = 1; baselength = (largestdisksize*3)+2; basewidth = largestdisksize+2; coneheight = (largestdiskheight*13); union() { cube([baselength,basewidth,largestdiskheight]); translate([baselength/2,basewidth/2,largestdiskheight/2]) cylinder(r=largestdiskh...
glb/cad_c92e0307475d.glb
Create a set of game pieces consisting of roads, houses, and cities. For the roads, create rectangular prisms measuring 25.2mm in length, 5mm in width, and 5mm in height. For the houses, create a shape with a base width of 10mm and a total length of 14mm. The profile should be a polygon starting with a 10mm wide ba...
road_length = 25.2; road_width = 5.0; module road() { cube([road_length, road_width, road_width]); } house_width = 10.0; house_height = 11.5; house_roof = 7.0; house_length = 14.0; house_pt = [ [0,0], [house_width,0], [house_width,house_roof], [house_width/2, house_height], [0, house_roof] ]; ...
glb/cad_ea39495765ce.glb
Create a set of game pieces consisting of roads, houses, and cities. For the roads, create rectangular prisms measuring 25.2mm in length, 5mm in width, and 5mm in height. For the houses, create a 2D five-point polygon and extrude it to a length of 14mm. The polygon's vertices should be at [0,0], [10,0], [10,7], [5,...
road_length = 25.2; road_width = 5.0; module road() { cube([road_length, road_width, road_width]); } house_width = 10.0; house_height = 11.5; house_roof = 7.0; house_length = 14.0; house_pt = [ [0,0], [house_width,0], [house_width,house_roof], [house_width/2, house_height], [0, house_roof] ]; ...
glb/cad_e50d59cdfe3b.glb
Create a V-block tool holder by starting with a solid rectangular block measuring 25mm wide, 35mm long, and 27.5mm high. From the top center of this block, remove a vertical cylinder with a radius of 7mm that extends to a depth of 21.5mm. At the very bottom of the block, remove a larger concentric cylinder with a radiu...
eps = 0.001; lBlock = 35.0; wBlock = 25.0; hBlock = 27.5; wTop = 2.0; wSlit = 2.0; dSlit = 11.5; rHole1 = 9.0/2; rHole2 = 14.0/2; dHole2 = 21.5; smallSize = 2*hBlock; module drawVBlock() { offsetZ = hBlock-wBlock/2+wTop; difference() { union() { translate([-wBlock/2,-lBlock...
glb/cad_0e8a8ec4f27d.glb
Create a V-Block tool holder with a main body measuring 40mm in length, 40mm in width, and 40mm in height. The body should have 1mm chamfers on all edges. Carve a large V-shaped notch into the top face and a smaller V-shaped notch into the bottom face, both centered along the length. The top notch should reach a dept...
eps = 0.001; lBlock = [50.0,63.0]; wBlock = [40.0,50.0]; hBlock = [40.0,50.0]; depthSmallV = [9.0,10.0]; depthBigV = [13.0,16.0]; camfer = [1.0,1.0]; wSlit = [2.0,2.0]; hSlit = [2.0,2.0]; wGroove = [8.0,8.0]; dGroove = [5.0,5.0]; vt_50x40x40 = 0; vt_63x50x50 = 1; vt = vt_50x40x40; module drawVBlock() { l = ...
glb/cad_a7d3d622a2f0.glb
Create a V-Block tool holder by starting with two stacked rectangular bases. The bottom base is a block 25mm wide, 35mm long, and 20mm high. Centered on top of this, add a second, wider rectangular base measuring 45mm wide, 35mm long, and 5mm high. From this combined volume, remove several geometric shapes. First, cre...
eps = 0.001; lBlock = 35.0; wBlock = 25.0; wBlock2 = 45.0; hBlock = 20.0; hBlock2 = 5.0; wTop = 2.0; wSlit = 2.0; dSlit = 11.5; rHole = 4.5/2; offsetHoleY = 5.0; distHolesX = 35.0; distHolesY = lBlock-2*offsetHoleY; smallSize = 2*hBlock; module drawVBlock() { offsetZ = hBlock-wBlock/2+wTop; difference() ...
glb/cad_687aace1085b.glb
Create a tablet and phone stand consisting of a base and two supporting uprights. Start by creating a rectangular base plate that is 90mm wide, 10mm deep, and 5mm thick. Position two identical support structures on opposite ends of this base. Each support structure is composed of three rectangular blocks, each 20mm wid...
dimensions = [185.8,241.3,8]; r1 = 17.3; a = 80; stand(a); module stand() { union() { for(x=[50,120]) { translate([x,-5*sin(a),0]) rotate([a,0,0]) translate([0,0,-5]) cube([20,4.1,5]); translate([x,dimensions[2]*sin(a)+1,0]) rotate([a,0,0]) translate([0,0,-5]) cube([20,40,5]); translate([x,dimensions...
glb/cad_1b113d05bd87.glb
Create a tablet and phone stand consisting of a base and two supporting arms. Start by creating a rectangular base plate that is 40mm wide, 10mm deep, and 5mm thick. Position two identical support structures on either side of this base. Each support structure is composed of several rectangular blocks: one block 10mm wi...
dimensions = [185.8,241.3,8]; r1 = 17.3; a = 80; stand(a); module stand() { union() { for(x=[50,80]) { translate([x,-5*sin(a),0]) rotate([a,0,0]) translate([0,0,-5]) cube([10,4.1,5]); translate([x,dimensions[2]*sin(a)+1,0]) rotate([a,0,0]) translate([0,0,-5]) cube([10,40,5]); translate([x,dimensions[...
glb/cad_209f5295b604.glb
Create a base plate for an Arduino multiwii quadcopter. Start with a central square slab measuring 100mm by 100mm with a thickness of 5mm, centered on the origin. At four diagonal positions (45, 135, -135, and -45 degrees), extend the base with arms. Each arm consists of a rectangular block 50mm long, 3.5mm wide, and 1...
$fn = 100; difference(){ union(){ cube([100,100,5],center = true); for(j = [45,135,-135,-45]){ for(i = [-7.125,7.125]){ rotate([0,0,j]) translate([36,i,-7]) union(){ cube([50,3.5,12],center = true); translate([13,i*0.6,0]) cylinder(h = 12,r = 6,center = true); } ...
glb/cad_5eb98d190e1c.glb
Create a superior base plate for an Arduino multiwii quadcopter. Start with a central square slab measuring 100mm by 100mm with a thickness of 3mm, centered on the origin. At each of the four corners, centered at coordinates (±22.2, ±22.2), add a small cylinder with a radius of 3mm and a height of 5mm. Carve out sever...
$fn = 100; difference(){ union(){ cube([100,100,3],center = true); for(i = [22.2,-22.2]){ for(j = [22.2,-22.2]){ translate([i,j,3]) cylinder(h = 5,r = 3,center = true); } } } for(j = [45,135,-135,-45]){ for(i = [-7.125,7.125]){ rotate([0,0,j]) translate([49,i*1.6,-1]) cylind...
glb/cad_045bec22752f.glb
Create a quadcopter frame base by starting with a central rectangular plate measuring 40mm wide, 150mm long, and 5mm thick. Carve out a large central opening to create a tapered, hollow interior. This opening begins as a rectangle 28mm wide and 120mm long, but its sides are angled inward from the center toward the ends...
$fn = 100; difference(){ cube([40,150,5],center = true); for(i = [6,-6]){ rotate([0,0,i]) translate([i*6,0,0]) cube([40,150,6],center = true); } difference(){ translate([0,-5,0]) cube([28,120,6],center = true); for(i = [6,-6]){ rotate([0,0,i]) translate([i*5,0,0]) cube([40,150,7],ce...
glb/cad_7002e2f1a528.glb
Create a battery support for a quadcopter. Start with a central base plate measuring 60mm by 100mm with a thickness of 3mm, centered on the origin. Remove a large cylindrical hole from the center of this base with a radius of 20mm and a height of 6mm. Add four vertical support pillars at the corners of the base. Each ...
$fn = 100; difference(){ union(){ cube([60,100,3],center = true); for(i = [25,-25]){ for(j = [38,-38]){ translate([i,j,22]) cube([10,24,44],center = true); translate([i*0.7,j*0.85,6]) cube([10,12.3,10],center = true); translate([(i*0.7)+(i/38)*1.9,j*0.85,22]) cube([2.5,12.3,44],cent...
glb/cad_29d7e59db18d.glb
Create a motor support for a quadcopter. Start with a base plate formed by the convex hull of a cylinder with a 14mm radius and a 5mm height, and a cube measuring 18mm by 18mm by 5mm centered at [35, 0, 0]. Remove a central vertical hole with a 4mm radius and 6mm height. Create four smaller vertical holes with a 2mm ...
$fn = 100; union(){ difference(){ hull(){ cylinder(h = 5,r = 14, center = true); translate([35,0,0]) cube([18,18,5],center = true); } cylinder(h = 6, r = 4, center = true); for(i = [[5.2,-6,0],[-7.2,-5.6,0],[-5.2,6,0],[7.2,5.6,0]]){ translate(i) cylinder(h = 6,r = 2, center = true); } ...
glb/cad_88e71b66ae31.glb
Create a superior base for an Arduino multiwii quadcopter. Start with a central square plate measuring 100mm by 100mm with a thickness of 3mm, centered on the origin. On top of this plate, add a raised rectangular block that is 44mm wide and 44mm deep, with a height of 30mm. The corners of this raised block should be r...
$fn = 100; difference(){ union(){ cube([100,100,3],center = true); hull(){ for(w = [0,33]){ for(i = [-22,22]){ for(j = [-22,22]){ translate([i,j,w]) cylinder(h = 3, r = 14,center = true); } } } } } for(j = [45,135,-135,-45]){ for(i = [-7.125,7.125]){ rotate([0,0,j...
glb/cad_62f75eb3e4c9.glb
Create a 5 Kurus Trap by starting with a centered cube with side lengths of 22.5mm. From this cube, remove a central sphere with a diameter of 23.5mm. Additionally, remove three identical cylinders, each with a diameter of 14.5mm and a height of 52.5mm, and a facet count of 36 sides. Position these cylinders so they ar...
d = 17.50; h = 1.60; module 5kurus_trap(){ difference(){ cube(d+5, center=true); rotate([ 0, 0, 0]) cylinder(d=d-3, h=d*3, center=true, $fn=36); rotate([90, 0, 0]) cylinder(d=d-3, h=d*3, center=true, $fn=36); rotate([ 0, 90, 0]) cylinder(d=d-3, h=d*3, center=true, $fn=36); sphere(d=d+6, $fn=72); } } 5...
glb/cad_d811d8379bb3.glb
Create a GPS and video antenna mount for a drone frame. Start by constructing a central rectangular bulkhead that is 32mm wide, 5.7mm thick, and 15mm high. At each end of this bulkhead, add a cylinder with a 10mm outer diameter and a 5.7mm inner hole running through the 15mm height to serve as mounting posts. Attached...
$fa = 0.1; $fn = 90; render_gps_mount = true; gps_width = 29; gps_height = 12; gps_mount_thickness = 2; duct_thickness=3; body_height=15; post_id=5.7; post_od=10; post_spacing=32; antenna_od=4.5; if (render_gps_mount) { difference() { union() { translate([0, -gps_width/2 - 6, -3.5]) ...
glb/cad_fc30bb6d0a53.glb
Create a Hacklace2 Snap-On Case by constructing a rounded rectangular shell. Start with a solid base block measuring 53mm in length, 28mm in width, and 8mm in height, applying a 2mm radius to the corners. Hollow out the center of this block by removing a rectangular volume of 47mm by 26mm by 8mm, centered within the ...
print_case(0); module show(with_headers) { translate([0, 0, 3+9.5-3]) hl2(with_headers); color("green") case_lower(with_headers); } module show_exploded(with_headers) { translate([0, 0, 35]) hl2(with_headers); color("green") case_lower(with_headers); } module print_case(with_headers) { case_lower(wit...
glb/cad_01d22476453b.glb
Create a Quadcopter Motor Mount designed for a 10mm outer diameter carbon fiber rod. The main body is a plate with a diameter of 24mm and a thickness of 3mm. At the center of the plate, create a horizontal cylindrical hole with a diameter of 10.1mm and a length of 20.1mm to accommodate the rod. The outer boundary of ...
module quad_motor_mount(d, tm, tube_od, tube_l, tube_t, t2, mode) { d2 = d/2; mode = mode*(tube_od+t2) + tube_od/2 + tm -.2; difference(){ union(){ hull(){ scale([.9,1,1]) for( i=[0,90,180,270] ){ rotate([0,0,i+45]) hull(){ translate([8.5,0,0]) cylinder(d=8, h=.01, $fn=36); } } tr...
glb/cad_121df469ceb2.glb
Create a Wire Pair Twister tool. Start with a main cylindrical body 12mm in diameter and 10mm tall. Centered on top of this body, add a hexagonal prism with a radius of 3.5mm and a height of 15mm to serve as the screwdriver insert. Drill two vertical parallel holes through the main body to accommodate wires; each hole...
CYLINDER_PRECISION = 50; HEX_INSERT_RAD = 3.5; HEX_INSERT_LEN = 15; BODY_RAD = 6; BODY_LEN = 10; NUT_RAD = 3.7; NUT_DEPTH = 3; NUT_OFFSET_FROM_CENTRE = 1.5; GRUB_RAD = 1.8; GRUB_LEN = 10; GRUB_HOLE_HT = 5; WIRE_LEN = 15; WIRE_RAD = 1.25; WIRE_SEPARATION = 2; difference (){ union (){ translate ([0, 0, 8]){ ...
glb/cad_d40f51d52860.glb
Create a spool roller shield and holder. Start by creating a main upright cylinder with a radius of 20.25mm (smallSpoolRadius + 5) and a height of 45mm. Subtract a central vertical hole from this cylinder with a radius of 18.25mm (smallSpoolRadius + 3) starting 2mm from the base, and a smaller bolt hole with a radius...
$fs=0.5; $fa=3; insertHeight = 10; smallSpoolRadius = 15.25; largeSpoolRadius = 25.5; baseRadius = 60; baseHeight = 4; calib = 0.3; shield_ERholder(smallSpoolRadius, largeSpoolRadius,45,false) ; module testPrint() { difference() { cylinder(r=largeSpoolRadius, h = 2); translate([0,0,-1]) cylinder(r=largeS...
glb/cad_8d084bae3dd3.glb
Create a cable organizer clip by starting with a base shape that is a union of a cylinder with a radius of 7.5mm and a rectangular block measuring 20mm by 10mm, both with a height of 15mm. The cylinder and block should be merged using a convex hull to create a smooth transition between the rounded head and the rectangu...
clip_big(); module clip_small(){ difference(){ union(){ hull(){ translate([4,2,0]) cylinder(r=12/2+3,h=15); translate([0,2,0]) cube([20,10,15]); } cube([30,12,15]); } hull(){ translate([4,2,-0.5]) cylinder(r=12/2,h=16); translate([2,6,-0.5]) cube([20,2,16]); ...
glb/cad_c32232fe8518.glb
Create a customizable sink stopper and strainer. The main body is a revolved shape with a top diameter of 39mm and a height of 11mm. The outer wall tapers inward from the top rim to a bottom diameter determined by a 7.5-degree taper angle. The wall thickness is 1.2mm. At the center of the base, integrate a cylindrical...
wall_thickness = 1.2; height = 11; diam = 39; knob_diam = 12; taper_angle = 7.5; holes = true; num_hole_rows = 2; hole_margin = 0.8; $fn = 120; knob_taper_angle = 45; r_top = 0.5 * diam; r_bottom = r_top - height * tan(taper_angle); r_knob_top = 0.5 * knob_diam; r_knob_bottom = r_knob_top - wall_thickness * tan(knob_...
glb/cad_54fd2a4e1357.glb
Create a parametric toolrest for a grinding machine. The model consists of a main toolrest body and a mounting bracket. First, create the toolrest base. The main body is a rectangular slab 90mm wide, 8mm thick, and 75mm long. At the front center, create a cutout for the grinding wheel that is 23mm wide and 21mm deep. ...
eps = 0.001; angleToolRest = 10.0; addGroove = false; addProtection = true; rGrindingWheel = 150.0/2; wGrindingWheel = 21.0; wBracket = 6.5; hBracket = 23.0; lBracket = 43.5; tBracket = 1.3; rBracket = 2.0; wBracketSlotHole = 6.5; lBracketSlotHole = 29.0; offsetBracketSlot = 5.0; offsetBracketX = wGrindingWheel+3.0;...
glb/cad_422512f34d66.glb
Create a parametric toolrest for a grinding machine. The main body is a rectangular base with a width of 110mm and a height of 8mm. The base features a central cutout for the grinding wheel that is 24mm wide (calculated as the 21mm wheel width plus 1.5mm clearance on each side) and 21.5mm long. At the rear of the base...
eps = 0.001; angleToolRest = 10.0; addGroove = false; addProtection = true; isLeftGrinder = true; rGrindingWheel = 150.0/2; wGrindingWheelLeft = 21.0; wGrindingWheelRight = 41.0; wGrindingWheel = isLeftGrinder ? wGrindingWheelLeft : wGrindingWheelRight; wBracket = 7.5; hBracket = 23.0; lBracket = 44.5; tBracket = 1....
glb/cad_2536eb53a802.glb
Create a Quick Box Clip by constructing a main block and removing specific volumes to create a C-shaped gripping profile. Start with a solid rectangular block measuring 20mm in length, 26mm in width, and 26mm in height. From this block, remove a central rectangular volume of 20mm by 20mm by 20mm, positioned so that it ...
size = 20; base = 6.15; side = 4.8; thickness = 3; length = 20; fillet=3; rotate([0,90,0]){ difference(){ cube([length,size+side+thickness*2,size+base+thickness*2]); translate([0,0,base+thickness*2]) cube([length,size,size]); translate([0,0,thickness]) cube([length,size+thickness+side,base]); translate([0,size...
glb/cad_e1feeb3743fd.glb
Create a TTC H6 Subway Car toy designed for Brio-compatible wooden tracks. Construct the main chassis as a rectangular prism with a length of 220mm, a width of 60mm, and a height of 40mm. The front and rear ends of the car should be angled at 20 degrees to create a tapered, aerodynamic profile. On the underside, po...
fudge = 0.1; module poly_ttcpath38(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[50.716877,-42.539159],[63.178266,-26.094111],[58.696900,-21.775937],[57.356927,-23.436217],[53.599409,-27.088834],[50.937070,-29.039663],[47.817945,-30.741450],[44.291232,-31.945154],[40.406...
glb/cad_f166b161f44e.glb
Create a TTC H6 Subway Car toy for Brio-compatible tracks. Start by constructing a rectangular main body with a length of 220mm, a width of 40mm, and a height of 40mm. On the sides of the body, create a series of recessed rectangular window and door cutouts. These should be distributed evenly along the length, with t...
fudge = 0.1; module poly_ttcpath38(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[50.716877,-42.539159],[63.178266,-26.094111],[58.696900,-21.775937],[57.356927,-23.436217],[53.599409,-27.088834],[50.937070,-29.039663],[47.817945,-30.741450],[44.291232,-31.945154],[40.406...
glb/cad_17c3869b91e9.glb
Create a Y-Axis Motor Mount for a printer by starting with a central rectangular block measuring 50mm wide, 6mm thick, and 70mm high. From this main body, remove a large central cylindrical shaft hole with a radius of 13mm. Additionally, create four small circular mounting holes with a radius of 2mm; position two of ...
xscrew_space=31; xthick = 8; ythick = 6; module fillet_xyz(x,y,z) { hyp=sqrt((y+2)*(y+2) + (z+2)*(z+2)); ang = atan2(z,y); angshift = atan2(z+2,y+2); clip = 1; intersection () { translate ([0,-clip,0]) { cube(size=[x,y-2*clip,z], center=true); } translate ([0,0,0]) ...
glb/cad_2905919f2df2.glb
Create a Minipupper Oak-D-Lite and Lidar mount. Start with a base plate 1.5mm thick, featuring a rectangular central section 52mm wide by 44mm deep. At the corners of this base, place mounting holes 2.5mm in diameter. Construct a lidar housing centered at x=28mm. This housing consists of a tapered cylinder starting wi...
lidar=1; oak=0; rpi_cover=1; show_equipment=0; base_z=1.5; $fn=50; mnt_y=47.4; mnt_x=53.25; oak_mnt_x=3.4; oak_y=81.14; oak2_y=75; oak_support_depth=3; oak_x_offset=-3; lidar_centre=28; lidar_height=33; camera_height=lidar_height+9; module fillet(r, h) { translate([r / 2, r / 2, 0]) difference() { ...
glb/cad_ea6aafedbe5a.glb
Create a Parametric Tap Follower consisting of three main geometric components: a point, a hollow point, and a tube. First, create the point as a composite shape. Start with a cylinder of radius 3.45mm and height 15mm. Add a conical section on top with a 60-degree angle, extending the total height to 20.5mm. Cut a lon...
eps = 0.001; NT_HEX_NUT = 1; NT_SQUARE_NUT = 2; TT_PLASTIC_TUBE = 1; TT_METAL_TUBE = 2; tubeType = TT_METAL_TUBE; nutType = NT_SQUARE_NUT; rHexNutHole = 6.8/2; tHexNutHole = 3.0; wSquareNutHole = 7.8; tSquareNutHole = 2.5; nutFleshInner = 1.5; nutFleshOuter = 3.0; tNutHole = (nutType == NT_HEX_NUT) ? tHexNutHol...
glb/cad_70bcdd65c84c.glb
Create a Pegboard Wizard tool holder consisting of a mounting plate and one or more storage bins. First, create a mounting plate designed for a US-style pegboard with holes 6mm in diameter and spaced 25.4mm apart. The plate should be 5mm thick and feature integrated pins that fit into these holes to secure the assemb...
holder_x_size = 10; holder_y_size = 10; holder_height = 15; wall_thickness = 1.85; holder_x_count = 1; holder_y_count = 2; corner_radius = 30; taper_ratio = 1.0; holder_offset = 0.0; strength_factor = 0.66; closed_bottom = 0.0; holder_cutout_side = 0.0; holder_angle = 0.0; holder_sides = max(50, min(20, ho...
glb/cad_38bdafc55770.glb
Create a Garden Spike by starting with a cone that is 150mm long, with a base diameter of 55mm and a tip diameter of 10mm. From this main body, remove a central rectangular section measuring 160mm in length, 60mm in width, and 30mm in height, centered on the cone's axis to create a wide longitudinal channel. Inside thi...
$fn = 80; spike(); module spike() { difference() { rotate([0,90,0]) cylinder(150,d1=55,d2=10); translate([-5,-30,-30]) cube([160,60,30]); translate([-5,-15,10]) rotate([0,90,0]) cylinder(100,d=4); translate([2,-15,10]) rotate([0,90,0]) cylinder(100,d=10); translate([2,...
glb/cad_42298d345f13.glb
Create a fan duct assembly for a 3D printer extruder. Start with a square mounting plate measuring 40mm by 40mm with a thickness of 5mm. In the center of this plate, create a circular opening that transitions from a radius of 15.5mm at the base to 18mm at the top. Add four small screw holes with a radius of 1.9mm and a...
module mount_plate() { rotate([90,0,0]) difference(){ cube([40,5,40]); rotate([90,0,0]) translate([20,20,-6]) cylinder(h=7, r1= 15.5, r2 = 18); rotate([90,0,0]) translate([4,4,-6]) cylinder(r=1.9, h=7, $fs=.1); rotate([90,0,0]) transl...
glb/cad_ac28b542f8f3.glb
Create a fan duct mount consisting of a rectangular base plate and a cylindrical duct. Start with a 40mm x 40mm x 5mm rectangular block. In the center of this block, create a circular opening with a radius of 18.75mm and a depth of 6mm. Around this opening, create a conical indentation with a bottom radius of 14.5mm an...
module mount_plate() { rotate([90,0,0]) difference(){ cube([40,5,40]); rotate([90,0,0]) translate([20,20,-2]){ cylinder(h=6, r= 18.75); } rotate([90,0,0]) translate([20,20,-10.75]){ cylinder(h=9, r1= 14.5, r2 = 18.75); } rotate([90,0,0]) ...
glb/cad_4158d5c93c9f.glb
Create a vase generator model composed of a series of stacked, lofted sections. The overall structure is built by connecting rings of small spheres, each with a radius of 1mm, arranged in circular patterns. The vertical distance between each ring is 10mm. The model consists of eight distinct levels. For each level, cr...
$fn=10; layer_8=5; layer_7=6; layer_6=7; layer_5=8; layer_4=9; layer_3=8; layer_2=7; layer_1=6; step_mm=10; layer_8_wide =34; layer_7_wide =34; layer_6_wide =34; layer_5_wide =34; layer_4_wide =34; layer_3_wide =34; layer_2_wide =34; layer_1_wide =34; hull() { for (g=[1:(360/layer_1):360]) { translate([layer_1...
glb/cad_1bbf8d0893fe.glb
Create a parametric electronics enclosure consisting of a main box and a snap-on lid. For the main box, create a rectangular outer shell with dimensions 50mm length, 40mm width, and 20mm height. Hollow out the center to create an interior cavity of 45mm length, 35mm width, and 19mm height, leaving a wall thickness of...
outside_box_lenth_mm =50; outside_box_width_mm =40; outside_Box_height_mm =20; inside_box_lenth_mm =45; inside_box_width_mm =35; inside_Box_height_mm =19; oversize =0.25; mount1_position_mm_x =-10; mount1_position_mm_y =-10; mount1_position_mm_z =15; mount2_position_mm_x =10; mount2_position_mm_y =10; mount2_position...
glb/cad_8cb150824139.glb
Create a parametric electronics enclosure consisting of a main box and a snap-on lid. For the main box, create a rounded rectangular shell with outer dimensions of 80mm length, 47mm width, and 29mm height. Hollow out the center to create an interior cavity of 75mm length, 42mm width, and 28mm height, leaving a wall t...
outside_box_lenth_mm =80; outside_box_width_mm =47; outside_Box_height_mm =29; inside_box_lenth_mm =75; inside_box_width_mm =42; inside_Box_height_mm =28; oversize =0.25; mount1_position_mm_x =-23; mount1_position_mm_y =-15; mount1_position_mm_z =7; mount2_position_mm_x =23; mount2_position_mm_y =15; mount2_position_...
glb/cad_838ef4771200.glb
Create an LED strip clip by starting with a rectangular base that is 16.51mm wide, 12.7mm long, and 4.064mm thick. Remove a central rectangular section from this base, leaving a wall thickness of 3mm on all sides, which creates a shallow open-topped sleeve. Attached to the side of this sleeve, center a cylindrical moun...
INCHES = 25.4; STRIP_WIDTH = 0.65*INCHES; STRIP_THICKNESS = 0.16*INCHES; CLIP_LENGTH = 0.5*INCHES; THICKNESS=3; difference() { translate([-THICKNESS, 0.1, 0.01]) cube(size=[STRIP_WIDTH+THICKNESS*2, CLIP_LENGTH+THICKNESS, STRIP_THICKNESS+THICKNESS]); cube(size=[STRIP_WIDTH, CLIP_LENGTH*2, STRIP_THICKNESS]); } transla...
glb/cad_820a7b63fb8d.glb
Create a Minitronics mounting frame starting with a central base plate measuring 62.5mm by 99.6mm with a thickness of 5mm, centered on the origin. From this base, remove a large central circular hole with a radius of 19mm. To create the outer profile, remove four large overlapping elliptical sections from the sides: ...
difference() { union () { translate([0.4,0.6,0]) cube(size = [62.5,99.6,5], center = true); translate(v = [-28,-46.5 ,12]) { translate(v = [2.3,2.3, 0]) { cube(size = [10,10,20] , center = true); } translate(v = [54.65,2.6 , ...
glb/cad_effe1b825e52.glb
Create a customizable badge with a thickness of 3mm. The main body is a rounded rectangle with a corner radius of 4mm. The overall width is determined by the text length plus a 4mm border on each side, and the height is determined by the number of text lines (each 5mm tall with 3mm vertical spacing) plus a 4mm border o...
$fn=20; Border = 4; ExtraW = 0; ExtraH = 0; Thick = 3; Inset = 1; Hole1 = true; Hole2 = true; HoleD = 3; Hole_offset = 0; XOff = 4; YOff = 7; VSpace = 3; str = ["the quick GGGGGGGGGGGG"]; FontSize = 5; font = "Arial"; Image = false; Scale = 1; im_x = 0; im_y = 0; img = 0; Images = ["Bell.dxf", ...
glb/cad_3a6ca7576c30.glb