Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a DIN clip mounting bracket with a total height of 10mm. The main body is a linear extrusion of a specific profile. Within this body, create two cylindrical holes to serve as mounting points. Each hole must have a diameter of 2.9mm and a depth of 9mm. Position the first hole centered at coordinates (0, 40, 0) an...
mount_thickness=5; mount_length=50; mount_height=10; mount_hole_diameter=4; mount_hole_separation=37; bottom_mount_hole=81.5; $fn=96; module short_leg(){ difference(){ translate([-mount_thickness,-mount_length/2+25,-5]) cube([mount_thickness,mount_length,mount_height]); translate([-mount_thickness,25-mount_hole_separa...
glb/cad_ecec0f5ec4ca.glb
Create a DIN clip mounting bracket. Start with a rectangular base plate that is 5mm thick, 106mm long, and 20mm high. At the top and bottom edges of this plate, centered along the length, integrate two DIN clip profiles. Each clip profile should be 10mm high and feature a central hole with a diameter of 2.9mm and a d...
mount_thickness=5; mount_length=106; mount_height=20; mount_hole_diameter=4; mount_hole_separation=96; $fn=96; difference(){ translate([-mount_thickness,-mount_length/2+25,-5]) cube([mount_thickness,mount_length,mount_height]); translate([-mount_thickness,25-mount_hole_separation/2,0]) rotate([0,90,0]) cylinder(d=moun...
glb/cad_b4557dfdd5ab.glb
Create a DIN clip mount that is 10mm high. The main body is a linear extrusion of a specific profile. Within this body, create two aligned holes to pass through the part. Each hole must have a diameter of 2.9mm and a depth of 9mm. Position the first hole centered at a height of 10mm from the base and the second hole ce...
mount_thickness=5; mount_length=110; mount_height=10; mount_hole_diameter=4; mount_hole_separation=102; $fn=96; difference(){ translate([-mount_thickness,-mount_length/2+25,-5]) cube([mount_thickness,mount_length,mount_height]); translate([-mount_thickness,25-mount_hole_separation/2,0]) rotate([0,90,0]) cylinder(d=mou...
glb/cad_da47eeab10e0.glb
Create a DIN clip mount by starting with a solid rectangular block that is 10mm high. Within this block, create two aligned cylindrical holes, each with a diameter of 2.9mm and a depth of 9mm. Position the first hole centered on the bottom face at a distance of 10mm from one end, and position the second hole centered o...
mount_thickness=5; mount_length=54; mount_height=10; mount_hole_diameter=3; mount_hole_separation=47; $fn=96; difference(){ translate([-mount_thickness,-mount_length/2+25,-5]) cube([mount_thickness,mount_length,mount_height]); translate([-mount_thickness,25-mount_hole_separation/2,0]) rotate([0,90,0]) cylinder(d=mount...
glb/cad_b4af32bc648b.glb
Create a DIN clip mount with a total height of 10mm. The object is a flat, extruded geometric shape based on a specific profile. Within this extruded body, create two cylindrical holes, each with a diameter of 2.9mm and a depth of 9mm. These holes should be drilled perpendicular to the main face of the clip. Position t...
mount_thickness=4; mount_length=95; mount_height=10; mount_hole_diameter=3; mount_hole_separation=83.5; mount_hole_vertical_offset=25; $fn=96; module arms(){ translate([-mount_thickness-mount_hole_vertical_offset,-mount_length/2+25,-5]) cube([mount_thickness+mount_hole_vertical_offset,11,10]); translate([-mount_thickn...
glb/cad_a00d835a6d67.glb
Create a DIN clip mount with a total height of 10mm. The object is a flat, extruded geometric shape based on a specific profile. To create the internal features, remove two cylindrical holes from the main body. Each hole must have a diameter of 2.9mm and a depth of 9mm. Position the first hole centered at a vertical of...
mount_thickness=4; mount_length=64; mount_height=10; mount_hole_diameter=3; mount_hole_separation=54; mount_hole_vertical_offset=25; $fn=96; module arms(){ translate([-mount_thickness-mount_hole_vertical_offset,-mount_length/2+25,-5]) cube([mount_thickness+mount_hole_vertical_offset,11,10]); translate([-mount_thicknes...
glb/cad_39fcbed826a5.glb
Create a T-slot nut designed for aluminum extrusion. Start by constructing the main body as a two-tiered structure: the base is a rectangular block 7.5mm wide, 20mm long, and 4mm high. Centered on top of this base, add a wider rectangular slab that is 16mm wide, 20mm long, and 2mm high. To refine the top of this slab, ...
nut_width=11.25; screw_diameter=5.5; nut_thickness=4.5; t_nut_width=16; aluminum_opening_width=7.5; t_nut_length=20; t_nut_height=9; t_nut_neck_height=4; t_nut_body_height=2; nut_offset=0; $fn=96; module solid_t_nut(){ translate([-aluminum_opening_width/2,-t_nut_length/2,0]) cube([aluminum_opening_width,t_nut_length,t...
glb/cad_2941667e1971.glb
Create a T-slot nut designed for aluminum extrusion. Start by constructing the main body as a two-tiered structure: the base is a rectangular block 7.5mm wide, 20mm long, and 4mm high. Centered on top of this base, add a wider rectangular slab that is 16mm wide, 20mm long, and 2mm high. The total height of the object i...
nut_width=9.5; screw_diameter=4; nut_thickness=4; t_nut_width=16; aluminum_opening_width=7.5; t_nut_length=20; t_nut_height=9; t_nut_neck_height=4; t_nut_body_height=2; nut_offset=0; $fn=96; module solid_t_nut(){ translate([-aluminum_opening_width/2,-t_nut_length/2,0]) cube([aluminum_opening_width,t_nut_length,t_nut_n...
glb/cad_1245ec21f1f9.glb
Create a T-slot nut adapter by constructing a base body and subtracting a hexagonal nut and screw void. First, build the main body: create a central rectangular neck 6.9mm wide, 20mm long, and 3mm high. On top of this neck, add a wider rectangular slab 11.5mm wide, 20mm long, and 1mm high. To refine the top profile, re...
nut_width=5.5; screw_diameter=2.8; nut_thickness=2.4; t_nut_width=11.5; aluminum_opening_width=6.9; t_nut_length=20; t_nut_height=6; t_nut_neck_height=3; t_nut_body_height=1; nut_offset=1.5; $fn=96; module solid_t_nut(){ translate([-aluminum_opening_width/2,-t_nut_length/2,0]) cube([aluminum_opening_width,t_nut_length...
glb/cad_f94d78318dd6.glb
Create a stepper motor crank handle by constructing a vertical cylinder with a diameter of 7mm and a total height of 25mm. At the top of this cylinder, add a hemispherical cap with a diameter of 7mm to create a rounded end. To allow for mounting, remove a central vertical hole from the main body of the cylinder with a ...
handle_diameter=7; handle_length=25; handle_mount_screw_diameter=2.6; $fn=196; difference(){ cylinder(d=handle_diameter,h=handle_length-handle_diameter/2); cylinder(d=handle_mount_screw_diameter,h=handle_length/2); } translate([0,0,handle_length-handle_diameter/2]) sphere(d=handle_diameter);
glb/cad_c5b6da9e29ea.glb
Create a stepper motor crank by starting with a main circular disk that is 50mm in diameter and 6mm thick. In the center of this disk, create a vertical hole 7mm in diameter that passes completely through the thickness. Around this center hole, create a concentric ring (a larger cylinder) with a diameter of 19mm and th...
shaft_diameter=7; shaft_mount_screw_diameter=3; crank_diameter=50; crank_thickness=6; handle_diameter=5; handle_length=15; handle_mount_screw_diameter=4; shaft_mount_screw_head_diameter=8; $fn=196; module subtract_shapes(){ cylinder(d=shaft_diameter,h=crank_thickness); translate([-crank_diameter/3,0,-0.01]) cylinder(d...
glb/cad_792ec9c43a35.glb
Create a z_mounting_plate for a CNC router. Start with a main rectangular base that is 132mm wide, 10mm thick, and 45mm deep. This base is formed by a central block of 122mm by 10mm by 45mm, with two 5mm thick side extensions added to the width, totaling 132mm. At the top of this base, centered on the 122mm width, pla...
rail_guide_mount_separation=26; rail_guide_mount_thickness=5; rail_guide_mount_hole_diameter=4.5; rail_guide_length=35; rail_guide_width=45; rail_guide_offset=27; rail_separation=122; rail_separation_thickness=10; z_nut_size=35; z_nut_hole_diameter=5; router_mount_hole_diameter=6; router_mount_hole_x_separation=60; rou...
glb/cad_531f08f58571.glb
Create a z_nut_mount consisting of a rectangular base and a cylindrical vertical mount. The base is a rectangular block 68mm long, 20mm wide, and 9mm thick. Centered along the length of the base, place two 5mm diameter holes passing through the thickness, separated by 38mm. Additionally, create two larger 10mm diameter...
length=68; width=20; mounting_hole_diameter=5; mounting_hole_separation=38; thickness=9; mount_thickness=5; nut_diameter=22; hole_diameter=10; nut_mounting_hole_diameter=3; nut_mounting_hole_separation=16; $fn=96; base(); translate([-mount_thickness/2,0,nut_diameter/2-0.01]) rotate([0,90,0]) nut_mount(); difference(){...
glb/cad_de2940c9e12b.glb
Create a router mount that is a rectangular block measuring 80mm wide, 80mm long, and 30mm thick. Center a cylindrical hole with a diameter of 64mm through the entire 30mm thickness of the block. Modify the block by removing a rectangular section from one side, measuring 20mm wide, 10mm long, and 30mm thick, located ...
router_mount_hole_diameter=6; router_mount_hole_x_separation=60; router_mount_hole_z_separation=20; router_diameter=64; mount_width=80; mount_length=80; mount_thickness=30; $fn=96; module solid_mount(){ intersection(){ difference(){ translate([-mount_width/2,-mount_length/2,0]) cube([mount_width,mount_length,mount_thi...
glb/cad_bb281384343d.glb
Create a y-guide drill template consisting of a thin plate with a thickness of 2mm. The overall shape is formed by four identical rectangular pads with rounded corners, connected by a central rectangular body. Each of the four pads is a hull created from four circular mounting points with a diameter of 67mm. These poin...
guide_mounting_width=57; guide_mounting_length=45; guide_width=67; guide_to_guide_distance_same_rail=65; guide_to_guide_distance_diff_rail=133; mounting_hole_diameter=3; template_thickness=2; mounting_points=[ [0,0,0], [guide_mounting_width,0,0], [0,guide_mounting_length], [guide_mounting_width,guide_mounting_length,0...
glb/cad_738e7bc4aa77.glb
Create a router mount block with a total width of 40mm, length of 52mm, and thickness of 40mm. The main body is a rectangular prism. At the center of the top face, create a vertical cylindrical hole with a diameter of 28mm that passes completely through the block. Arrange four mounting holes, each 6mm in diameter, ...
mounting_hole_diameter=6; central_hole_diameter=28; mounting_hole_distance_to_center=19; block_thickness=40; block_width=40; block_length=52; height_to_bed=0; $fn=96; difference(){ union(){ translate([block_width/2,-block_length/2,0]) cube([height_to_bed,block_length,block_thickness]); intersection(){ difference(){ t...
glb/cad_97bdfab5318d.glb
Create a z-mounting plate for a CNC router. Start with a main rectangular base that is 132mm wide (122mm separation plus two 5mm thick side walls), 10mm deep, and 45mm tall. The plate features two vertical side walls extending upwards. Each wall is 35mm wide, 45mm tall, and 5mm thick. On these walls, create four rail...
rail_guide_mount_separation=26; rail_guide_mount_thickness=5; rail_guide_mount_hole_diameter=4.5; rail_guide_length=35; rail_guide_width=45; rail_guide_offset=30; second_guide_offset=16; rail_separation=122; rail_separation_thickness=10; z_nut_size=35; z_nut_hole_diameter=5; router_mount_hole_diameter=6; router_mount_h...
glb/cad_0b56970502b5.glb
Create a Z-nut mount consisting of a flat rectangular plate and a cylindrical mounting block. First, create a rectangular plate measuring 35mm by 35mm with a thickness of 2mm. Center two holes with a diameter of 5mm through this plate; position them 20mm apart, each located 10mm from the center of the plate and 10mm ...
thickness=2; z_nut_size=35; z_nut_hole_diameter=5; nut_mounting_hole_diameter=3; nut_mounting_hole_separation=16; mount_thickness=17; nut_diameter=22; hole_diameter=11; $fn=96; difference(){ translate([-z_nut_size/2,0,0]) cube([z_nut_size,thickness,z_nut_size]); translate([-10,-0.1,z_nut_size-10]) rotate([270,0,0]) cy...
glb/cad_aeeac4791425.glb
Create a NEMA 23 stepper motor mount adapter. Start with a rectangular base plate measuring 75mm in length, 36mm in width, and 8mm in thickness. On the top surface of this plate, center a circular cutout with a diameter of 40.1mm. Position two 8mm diameter holes through the plate, spaced 38mm apart and centered along...
length=75; width=36; thickness=8; middle_hole_separation=38; middle_hole_diameter=8; stepper_mount_offset=11; stepper_hole_separation=47.1; stepper_hole_diameter=6; stepper_counterbore_depth=5; side_triangle_thickness=5; side_triangle_height=38; side_triangle_angle=61; side_triangle_hole_height=27; $fn=196; original_p...
glb/cad_e8e1442ff204.glb
Create a rectangular plate for a CNC router mount with a length of 68mm, a width of 20mm, and a thickness of 4.6mm. Center two circular holes through the thickness of the plate, each with a diameter of 7mm. Position these holes along the center longitudinal axis, spaced 42mm apart from each other, centered relative to ...
length=68; width=20; mounting_hole_diameter=7; mounting_hole_separation=42; thickness=4.6; $fn=96; base(); module base(){ difference(){ translate([-width/2,-length/2,-thickness]) cube([width,length,thickness]); translate([0,-mounting_hole_separation/2,-thickness-0.1]) cylinder(d=mounting_hole_diameter,h=thickness+0.2...
glb/cad_08db3ba136e7.glb
Create four separate stacks of ten thin square plates, each stack arranged in a pyramid-like formation where the plates decrease in size from bottom to top. Each plate has a thickness of 1mm. In every stack, the bottom-most plate is a square with a side length of 11mm, and each subsequent plate decreases in side length...
for(i = [0:10]) { color(hsvToRGB(1 / 10 * i, 1, 1, 1)) translate([0,0,1 * i]) cube([11 - i,11 - i,1], center = true); } translate([0,15,0]) for(i = [0:10]) { color(hsvToRGB(1, 1 / 10 * i, 1, 1)) translate([0,0,1 * i]) cube([11 - i,11 - i,1], center = true); } translate([15,0,0]) for(i = [0:10]) { color(h...
glb/cad_f44ea1d3b098.glb
Create a Variable Spacing Customizable Hex Bit Holder. Start by creating a rectangular base with a height of 15mm and a depth of 12.7mm. The total length of the base should be the sum of the individual tool widths (including a 2mm socket wall thickness and a 2mm padding per tool) plus the width of the largest tool. Rou...
_sizes = [ 12.7000, 11.1125, 9.5250, 8.7313, 7.9375, 7.1438, 6.3500, 5.5563, 4.7625, 3.9688 ]; _sock = 2; _height = 15; _tolerance = 0.33; _extraPadding = 2; _rounded = 1; _holeThrough = 1; _slotted = 1; _bitSize = 6.35; outerRadius = outRadius(_bitSize + _tolerance/2,6); delta =...
glb/cad_deb1af9ec387.glb
Create a hollow cylinder with a total height of 32mm. The outer diameter should be a consistent 10mm from top to bottom. Remove a concentric cylindrical core from the center to create a hole with a diameter of 8.2mm, running through the entire length of the object. Ensure the circular faces have a high facet resolution...
ind =8.2; od1=10; od2=10; ch=32; translate([0, 0, 0]) { difference() { translate([0, 0, 0]) cylinder(h = ch, r1 =od1/2,r2=od2/2,$fn=96); translate([0, 0, 0]) cylinder(h = ch, r= ind/2, $fn=96); } }
glb/cad_15b49962f415.glb
Create a PhoneScope chassis consisting of two main interlocking parts and a thumbscrew. First, create the top section. Start with a rectangular block 62.57mm wide, 18mm deep, and 11.13mm high. Hollow out the center to create a slot 60.57mm wide, 18mm deep, and 9.13mm high to accommodate a phone. On the top surface, a...
X = 58.57; Y = 16; Z = 7.13; Wall = 2; rim = 4; tol = 0.9; tol_S = 0.1; Lens_R = 4.4; Lens_Xoffset = 9.23; Lens_Yoffset = 7.35; Flash_R = 2; Flash_Xoffset = 18.73; Flash_Yoffset = 7.35; Power_Xoffset = 17; Power_X = 11; Power_Z = 4; module customizer_cutoff(){}; Lens_thickness = 3; Topstand_Y = 7; Bo...
glb/cad_c3ddb1e2a843.glb
Create a BodyWork Replacement Spacer by combining a wide, thin base with a central vertical column. First, construct a flat disc with a height of 1.5mm and a radius that tapers slightly from 13mm at the bottom to 15mm at the top. Remove a concentric cylindrical hole from the center of this disc with a radius of 6.5mm. ...
difference () { cylinder (h=1.5, r1=13, r2=15, centr = true); cylinder (h=1.5, r1=6.5, r2=6.5, centr = true); } difference () { cylinder (h=12, r1=7, r2=7, centr = true); cylinder (h=9, r1=5.5, r2=5.5, centr = true); }
glb/cad_37f8c6ef65ce.glb
Create a BodyWork Replacement Spacer by constructing a short, thick cylinder with a height of 3.5mm. The cylinder should have a slight taper, with a bottom radius of 5.4mm and a top radius of 5.1mm. Ensure the final shape is a centered, low-resolution polygonal prism rather than a smooth curve to match the faceted appe...
difference () { } difference () { cylinder (h=3.5, r1=5.4, r2=5.1, centr = true); }
glb/cad_1471f3519b84.glb
Create a belt tensioner consisting of a base plate and a vertical carriage assembly. Start with a flat rectangular base plate. Centered on this plate, construct a vertical carriage frame. This frame is a hollowed-out rectangular block with a total height of 20mm and a thickness of 6mm. The frame should feature a cent...
partsOnly=true; beltVoffset=2.4; supportLeft=true; supportRight=true; m5r=2.5; m3r=1.5; idlerOBsmooth=false; idler20t=true; idler20tm5r=false; idlerM5r= (idlerOBsmooth ? true : (idler20tm5r ? true : false )); idlerH = (idlerOBsmooth ? 16.2 : (idler20t ? 8.5 : -1 )); idlerD = (idlerOBsmooth ? 22 : (idler20t ? 18 : ...
glb/cad_e3ceeccbdce6.glb
Create a Customizable Bezier Bowl by generating a solid of revolution. Start with a 2D profile based on a Bezier curve defined by five control points. This profile should be a filled shape extending from a central vertical axis to the curve. Rotate this profile 360 degrees around the central axis to create a smooth, ...
bezier_points = [[[-0.1273972602739726,-0.46164383561643835],[-0.12465753424657534,-0.47534246575342465],[-0.12465753424657534,-0.47534246575342465],[-0.13013698630136986,-0.48904109589041095],[-0.1410958904109589,-0.5],[-0.1547945205479452,-0.5027397260273972],[-0.17123287671232876,-0.49726027397260275],[-0.1739726027...
glb/cad_d43afed17151.glb
Create a headphone stand shaped like a stylized smiley face. The main head is a low-poly sphere with a diameter of 41.5mm (20.75mm radius), rendered with only 10 facets. Position this sphere so its center is 20mm above the base. Carve out two circular eye sockets by removing two spheres with a 7mm radius, centered at...
phoneTop = 5.5; phoneBottom = 2; scale(1.25){ difference(){ translate([0,0,20])sphere(20.75,true,$fn=10); translate([0,14,30])sphere(7,true); translate([0,-14,30])sphere(7,true); translate([0,15,20]) rotate([15,0,0]) cylinder(22,phoneBottom,phoneTop,true); ...
glb/cad_cb76c91abaea.glb
Create an SSD to HDD mount bracket with a base thickness of 2mm. The main body is a flat plate formed by the convex hull of four circular pillars. Two pillars are positioned at the far left, centered vertically at 0mm and 77mm along the Y-axis. Two additional pillars are positioned to the right, offset by 15.75mm on th...
ssd_holes=77; hdd_holes=45; mount_w=(101.5 - 70) / 2; h=2; ssd_hole=3.3; hdd_hole=2.9; hdd_hole_h=4; ssd_indent=3; hdd_indent=3; hdd_washer=10; hdd_hole_y=(ssd_holes - hdd_holes) / 2; difference() { hull() { translate([0, 0, 0]) cylinder($fn=20,h=h,d=ssd_hole+ssd_indent); translate([0, ...
glb/cad_1a435281e8ef.glb
Create a replacement typewriter foot by combining a cylinder and a sphere, then hollowing out the center. Start with a solid vertical cylinder 40mm tall with a radius of 8mm. Center a sphere with a radius of 22mm at the base of the cylinder, positioned slightly offset so its center is 0.5mm above the bottom plane. To c...
module solid() { union() { cylinder(h=40, r=8); translate([0,0,-0.5]) { sphere(r=22); } } } module remove() { union() { translate([0,0,-0.5]) { cylinder(h=41, r=4.2); } translate([-25,-25,-25]) { cube([50,50,25]); }...
glb/cad_93ac39b8ce40.glb
Create an LED holder consisting of two mirrored clip components. For one clip, start with a rectangular base plate 20mm long, 20mm wide, and 3mm thick. On the top surface, center a circular hole with a diameter of 14.2mm that passes completely through the plate. Surround this hole with a raised rim 2.5mm wide. To sec...
length = 20; thick = 3; width = 20; screw_dia = 5; dia = 14.2; rim = 2.5; lsa = 3; deep = 1.5; slit = 6; module slot() { points = [[0,0],[0,lsa+deep],[deep,lsa],[deep,0]]; rotate( [90,0,-90] ) linear_extrude( slit) polygon( points, convexity = 1 ); } module clip() { translate([0,-1 * thick ,0] ) { tran...
glb/cad_59ae769d9229.glb
Create a Fridge Door Shelf Rail Clip with a main rectangular body measuring 57mm in length, 26mm in width, and 15.75mm in depth. The body is a hollow shell with walls 2mm thick. Remove a rectangular section from the center of the bottom face, measuring 19mm in length and 2mm in width, extending from the bottom up to th...
length = 57; width = 26; depth = 15.75; wall = 2; pegrad = 4; difference() { cube([length, width, depth]); translate([wall,wall,wall]) cube([length-2*wall, width-2*wall, depth-wall+1]); translate([length/3,-1,wall]) cube([length/3, wall+2, depth]); } translate([wall+pegrad+1, width-wall-pegrad-1,0]) differenc...
glb/cad_6d17d8a61230.glb
Create a Threadless Ball Screw mount. Start by creating a cylindrical base with a radius of 16mm and a height of 15mm. Centered within this base, remove a vertical cylindrical hole with a radius of 4.5mm that spans the full height of the object. To secure the assembly to a bed, add four mounting holes. Each hole is a ...
use <write/Write.scad> text = "true" ; Base_Shape= "round"; Base_Height = 15; Bed_Hole_Size = 9; Box_Y_Width = 35; Box_X_Width = 35; Round_Base_Width = 32; Solidoodle_Bed_Type = "wood" ; Other_Bed_Mounting_Y = 16 ; Other_Bed_Mounting_X = 16 ; Mount_Screw_Size = 3 ; Bed_Mounting_Hole_Depth = 15 ; Bearing_Ou...
glb/cad_7a1525910bd8.glb
Create a Customizable Fan Grill Cover with a total outer size of 40mm by 40mm and a thickness of 2.7mm. The main body is a square plate with rounded corners. At each of the four corners, create a cylindrical screw hole with a diameter of 3.3mm that passes completely through the plate. The distance between the centers...
fan_preset = "40"; frame_option = "reduced"; min_border_size_in_millimeter = 1.92; grill_pattern = "honeycomb"; grill_pattern_rotation = 0; line_size_in_millimter = 0.96; line_space_in_millimeter = 6; screw_hole_chamfer = "no"; rounded_corners = "yes"; number_of_support_lines = 2; cover_size_in_millimeter = 4...
glb/cad_b91bcedb370a.glb
Create a "cube thing" sculpture by first constructing a base geometric unit and then duplicating it through specific rotations and scaling. To create the base unit, start with a 10mm cube centered on the origin. Remove three intersecting rectangular prisms, each measuring 8mm by 8mm by 11mm and centered on the origin; ...
module 3d(){ difference (){ cube([10,10,10], center =true); union () { cube ([8, 8, 11],center =true); rotate ([0,90,0]) cube ([8, 8, 11],center =true); rotate ([90,0,0]) cube ([8, 8, 11],center =true); } } } 3d (); rotate ([45, 0, 0]) 3d(); rotate ([0, 0, 45]) 3d (); rotate ([0,45,0]) 3d (); scale ([1.41, 1.41, 1....
glb/cad_ba15d0accae2.glb
Create a LiPo to NiMH battery adapter by starting with a main body formed from the convex hull of two cylinders, each 23mm in diameter and 133mm long, positioned 23mm apart center-to-center and aligned along a shared axis. From this body, remove a central rectangular cavity 35mm wide, 106mm long, and 18mm deep, centere...
lipo_length=106; lipo_height=18; lipo_width=35; wire_size=5; cell_dia = 23; cell_length = 133; difference() { rotate([-90,0,0]) hull() { translate ([-cell_dia/2,0,0]) cylinder(d=cell_dia, h=cell_length); translate ([cell_dia/2,0,0]) cylinder(d=cell_dia, h=cell_length); ...
glb/cad_26c15f195e2d.glb
Create a tube connector consisting of two intersecting cylindrical shells joined by a convex hull. The first shell is a cylinder with an outer diameter of 12.8mm and a height of 6.8mm, with a concentric hole of 8.8mm diameter removed from its center. The second shell is a cylinder with an outer diameter of 10.8mm and a...
tube_1_diameter = 8.8; tube_2_diameter = 6.8; extra_length = 0; angle = 0; tolerance = 0.2*1; border = 2*1; d1 = tube_1_diameter+tolerance+border; d2 = tube_2_diameter+tolerance+border; h1 = d2; h2 = d1; slot1 = d1/2; slot2 = d2/2; distance_from_centers = d1/2+d2/2+extra_length; difference() { hull() { ...
glb/cad_5d655b9212b5.glb
Create a housing plate for a dual DC-DC step-down converter. Start with a square base measuring 32mm by 32mm with a thickness of 2mm. Round the four corners of the base using a radius of 1.5mm. At each of the four corners, center a circular hole with a diameter of 4mm that passes completely through the plate. In the...
srouby=32; konv_x=33.5; konv_z=2; konv_y=1.75; dias=8; trx=0; try=0; trz=0; stena=3; st=stena/2; xlat=(srouby/2)-(konv_x/2); $fn=150; module sroub (trx,try,trz) { translate ([trx,try,trz]) { difference() { cylinder (d=dias, h=konv_z); cylinder (d=2.5, h=konv_z); } } } module sroubek (trx,try,trz) { translate ([trx,t...
glb/cad_f7618f4292ca.glb
Create a housing for a dual DC-DC step-down converter. The main body is a square block with an outer dimension of 35mm by 35mm and a height of 30mm. The walls are 3mm thick. At each of the four corners of the block, create a vertical cylindrical hole with a diameter of 8mm that passes through the entire height of the ...
srouby=32; konv_x=33.5; konv_z=30; konv_y=1.75; dias=8; trx=0; try=0; trz=0; stena=3; st=stena/2; xlat=(srouby/2)-(konv_x/2); $fn=150; module sroub (trx,try,trz) { translate ([trx,try,trz]) { difference() { cylinder (d=dias, h=konv_z); cylinder (d=2.5, h=konv_z); } } } module sroubek (trx,try,trz) { translate ([trx,...
glb/cad_49067ba70c57.glb
Create a parametric brush holder designed to fit over a pot. Start by creating a solid base cylinder with a radius of 32mm (half of the 64mm pot diameter) and a total height of 17mm. From this base, remove a central vertical cylinder with a radius of 17.5mm to create the main opening. To form the rim that grips the p...
template = "Laitiere"; open_holder = true; half_shape = true; brush_hole_nb = 8; custom_pot_diameter = 70; custom_pot_thickness = 6.8; custom_center_hole_radius = 22; custom_external_height = 14; pot_diameter = (template == "Yoplait") ? 70 : (template == "Laitiere" ? 58 : custom_pot_diameter); pot_thickness = (templa...
glb/cad_0a559c956cc8.glb
Create a Z-Axis Anti-backlash Nut consisting of two primary components: a base and a top follower. Construct the base as a rectangular block 48mm wide, 35mm long, and 14mm deep. Centered within this block, create a hexagonal cavity with a radius of 6.75mm and a depth of 5mm to house the nut. Directly through the cente...
base_depth = 14; base_width = 48; nut_size = 13.5; nut_length = 5; leadscrew_max_diam = 10; lead_back_xpos = 17.5; mounting_hole_diam = 5.75; mount_hole_spacing = 30; mounting_washer_diam = 10; mounting_bolt_length_to_seat = 19; spring_spacing = 24; spring_bolt_diam = 5; spring_bolt_washer_diam = 8.5; spring_bolt_w...
glb/cad_5ab4c15fd9af.glb
Create a ROBO3D z Lock for transport by constructing a central rectangular block and two flanking cylindrical shells. Start with a central rectangular prism measuring 19mm in length, 4mm in width, and 10mm in height, centered on the origin. At each end of this block, centered along the length, place a cylinder with an ...
difference(){ union(){ cylinder(10,6,6,center); translate([4,-2,0]) cube([19,4,10]); translate([27,0,0]) cylinder(10,6,6,center); } union(){ cylinder(11,4,4,center); translate([27,0,0]) cylinder(11,4,4,center); translate([-3,0,0]) cube([6,20,11],center); translate([24,0,0]) cube([6,20,11],center); } }
glb/cad_600c429c2572.glb
Create a ROBO3D z Lock for transport by starting with a solid cube measuring 20mm x 20mm x 15mm. From this main volume, remove several rectangular sections to create the final geometry. First, remove a block measuring 4mm x 20mm x 15mm starting from the front-left edge at coordinates (4, 0, 0). Next, remove a block mea...
difference(){ cube([20,20,15]); union() { translate([4,0,0]) cube([4,15,15]); translate([12,0,0]) cube([8,4,15]); translate([12,8,0]) cube([4,20,15]); translate([12,12,0]) cube([16,20,15]); } }
glb/cad_702b88fbca25.glb
Create a child safety lock for a cabinet consisting of a main L-shaped body with a thickness of 12mm. The primary structure is formed by joining a rectangular block measuring 86mm by 4.5mm by 12mm with a second rectangular block measuring 6mm by 45mm by 12mm, positioned perpendicularly to create the bend. Within this...
WIDTH=12; module mylock() { difference() { union() { translate([-80,0,0]) cube([86,4.5,WIDTH]); translate([0,-45,0]) cube([6,45,WIDTH]); } union() { translate([-2,-12,WIDTH/2]) rotate([0,90,0]) cylinder(r=1.75, h=10, $fn=12); translate([-2,-32,WIDTH/2]) rotate([0,90,0]) cylinder(r=1.75, h=10, $fn=1...
glb/cad_c60239551160.glb
Create a child safety lock for a cabinet consisting of a flat, L-shaped plastic body with a thickness of 12mm. The main body is composed of two rectangular sections: a long arm measuring 76mm by 4.5mm and a perpendicular arm measuring 6mm by 45mm, both 12mm thick. At two points along the 45mm arm, centered at 12mm an...
WIDTH=12; module corner_fillet() { difference() { translate([-15,-5,0]) cube([6,6,12]); translate([-15,-5,-1]) cylinder(r=5, h=14); } } module corner_fillet2() { difference() { translate([-15,-5,-1]) cube([6,6,14]); translate([-15,-5,-2]) cylinder(r=5, h=16, $fn=18); } } module mylock() { difference() {...
glb/cad_472b1788eaa6.glb
Create a quadcopter landing strut consisting of a square base and a tapered arm. Start with a square block measuring 21mm x 21mm x 20mm. Attached to this block, create a tapered extension that begins at 21mm wide and 20mm high, gradually narrowing in both width and height as it extends outward. The extension should rea...
difference(){ union(){ translate([-.5,-.5,0]) cube([21,21,20]); translate([20,9,0]) hull() { translate([0,-2,0]) cube([1,6,20]); translate([7,0,0]) cube([1,2,20]); translate([20,0,0]) cube([1,2,19]); translate([30,0,0]) cube([1,2,17]); translate([40,0,0]) cube([1,2,14]); translate([50,0,0]) cube...
glb/cad_d5f65c869087.glb
Create a flower press consisting of a square plate with a decorative flower element on top. Start by creating a rounded square plate measuring 90mm by 90mm with a thickness of 5mm and corner radii of 5mm. On the top surface of the plate, center a decorative flower. This flower is composed of a central sphere with a 1...
include <mcad/boxes.scad>; Top=1; press_size_x=90; press_size_y=90; amount_of_press_holes_x=4; x_hole_offset=5; amount_of_press_holes_y=4; y_hole_offset=5; petals=3; petal_spacing=12; petal_bumpiness=1; petal_size_bottom=11; petal_size_top=10; number_of_flowers=1; flower_spacing=press_size_x/2; module Flower () {...
glb/cad_50e6c7ad6151.glb
Create a flower press consisting of a base plate and a decorative top plate. The base plate is a rounded rectangular box measuring 60mm by 60mm with a height of 5mm and corner radii of 5mm. Drill four vertical holes through this plate, each with a diameter of 6mm; position these holes symmetrically at coordinates (±25m...
include <mcad/boxes.scad>; Top=1; press_size_x=60; press_size_y=60; amount_of_press_holes_x=2; x_hole_offset=5; amount_of_press_holes_y=2; y_hole_offset=5; petals=8; petal_spacing=12; petal_bumpiness=1; petal_size_bottom=11; petal_size_top=10; number_of_flowers=1; flower_spacing=press_size_x/2; module Flower () {...
glb/cad_1e7a069ba0e4.glb
Create a hinged hexagonal plate for a truncated icosahedron. Start with a hexagonal prism that has a thickness of 5mm and an outer radius of 25mm. Remove a cylindrical center to create a ring with an inner radius of 12mm. On three alternating edges of the hexagon, add additive hinge components. Each hinge should be a...
use <rounded_inner_circle.scad> use <rounded_polygon.scad> use <hinge.scad> module roundedHexWithHole(thickness, outerRadius, innerRadius) { delta = 0.1; edgeFaces = 12; annularFaces = 60; union() { difference() { roundedPolygon(6,outerRadius,thickness,edgeFaces); cylinder(r=innerRadius-delta,center=true...
glb/cad_e58826bfa98c.glb
Create a ring with a total outer radius of 30mm and a thickness of 10mm. The ring should be constructed such that the outer edge is a sharp circular boundary, while the inner edge is rounded. To achieve this geometry, form a torus with a major radius of 30mm and a minor radius of 5mm, then intersect this torus with a c...
module torus(majorRadius, minorRadius, majorFaces, minorFaces) { rotate_extrude(convexity = 10, $fn = minorFaces) translate([majorRadius, 0, 0]) circle(r = minorRadius, $fn = majorFaces); } module innerEdge(radius, height, annularFaces, edgeFaces) { delta = 1; intersection() { torus(radius, height/2, edgeFaces...
glb/cad_a21da8855ef1.glb
Create a rounded hexagonal plate with a thickness of 10mm. The shape should be defined by a major radius of 50mm from the center to the furthest points. Ensure the six corners and the edges connecting them are rounded, using a resolution of 24 faces for the spherical elements at the vertices to maintain a smooth, curve...
module roundedPolygon(sideCount,majorRadius,height,edgeFaces) { angle = 360.0/sideCount; hull() { for(r=[0:sideCount]) { rotate([0,0,r*angle]) translate([majorRadius-height/2,0,0]) sphere(r=height/2,$fn=edgeFaces*2); } } } roundedPolygon(6,50,10,12); # cube([50,1,10]);
glb/cad_80a497441ddf.glb
Create a 3D model of a servo motor assembly consisting of a main body and two cylindrical mounting tabs. First, create the main rectangular body with dimensions 23.5mm in width, 12.6mm in depth, and 22.6mm in height. Attached to the main body, create a second rectangular section that is 32.8mm wide, 12.6mm deep, an...
include <MCAD/units.scad> use <Measurement.scad> use <write.scad> M1 = 23.5; M2 = 12.6; M3 = 16.3; M4 = 32.8; M5 = 2; M6 = 22.6; M7 = 29.3; M8 = 4; M9 = 2.7; M10 = M2/2; M11 = 2.65; M12 = (M4-M1)/2; M13 = 2.25; servo("front"); translate([-17,0,0]) rotate([0,0,90])servo("left"); translate([-55,M1,0]) rotate([0,0,-90])...
glb/cad_3d3c4b1a25a8.glb
Create a parametric spool hub by starting with a central cylinder that has a radius of 37mm and a height of 6mm. Remove a smaller concentric cylinder from the center with a radius of 4mm and a height of 6mm to create a hollow core. To form the outer rim, add a second cylinder on top of the first with a radius of 42mm a...
spool_hub(74.0/2, 8.0/2, 3, 10); module spool_hub(radius, hub, wall, depth) { m = 0.05; for(rot=[5: 90: 365]) { rotate(rot, [0.0, 0.0, 1.0]) translate([hub+wall, -wall/2, 0]) cube([radius-hub-wall-m, wall, depth+wall]); } difference() { cylinder(wall+depth, hub+...
glb/cad_631334c69f81.glb
Create a finger gauge for rings by constructing a flat plate 4mm thick. The main body consists of a circular ring with an outer diameter of 15.63mm and a central hole with a diameter of 11.63mm, both rendered with 90 facets. Attached to the side of this ring is a rectangular tab measuring 16mm by 8mm. Within this rec...
ringSize=0; module ring(message,outerDiameter,innerDiameter,height) { letterHeight=0.5; module shapeA() { difference() { union() { translate([outerDiameter+7,0,0]) cube([16,8,height],true,$fn=90); cylinder(height,outerDiameter,outerDiameter,true...
glb/cad_ec87786d35ae.glb
Create a Customizable Rocket Nozzle by revolving a 2D profile around a central vertical axis. The internal void is a converging-diverging de Laval nozzle. Start with a converging section: a cone with an inlet radius of 8mm and a half-angle of 35 degrees that narrows down to a throat radius of 1.5mm. The transition at ...
wallThickness = 1.5; Rinlet = 8; Ain = 35; Rthroat = 1.5; Rexit = 16; Aout = 30; pct = .7; minRadius = 3; $fn = 200 + 0; if (wallThickness > Rthroat) { echo("WARNING: wallThickness should be less than Rthroat"); } leadInCylinderLen = Rinlet; finalize(3d="true") makeShell(thickness = wallThickness, minR...
glb/cad_5cf22a68e0de.glb
Create a reinforced rooftop spool stand with a total height of 166.5mm and a base thickness of 25mm. The structure consists of two symmetrical vertical risers that taper from a wider base to a narrower top. Each riser is formed by two mirrored wedge shapes meeting at a central 5mm thick top plate. The base of each ri...
m=0.05; stand(25.0); module stand(d) { stride = 36.5*2.0+5.0; height = 166.5; top_thickness = 5.0; rod_r = 8.0/2.0+0.5; spool_mount_height = rod_r+5.0; spool_mount_width = (rod_r+5.0)*2.0; foot_height=rod_r+5.0/2; foot_width=(rod_r+5.0)*2; foot_rod_offset = rod_r/2; riser_h = height - sp...
glb/cad_b7ee1fefdde3.glb
Create a seat foot by starting with a rectangular block measuring 57mm in length, 32mm in width, and 36.5mm in height. Centered along the width at 16mm, drill a vertical hole 5mm in diameter through the entire height of the block. At the base of this hole, create a wider cylindrical recess 9mm in diameter that extends ...
$fn=200; $cube_thickness=32; $cube_lenght=57; $cube_heigth=36.5; $cube_heigth2=13.7; $hole_offset=14; $hole_diameter=5; $screw_z_offset=3; $screw_height=0; $screw_diameter=9; $tube_diameter=26; $tube_height1=4.5; $tube_height2=23.5; $tube_x_offset=10; $chord_length=62; $segment_height=5.82; $circle_radius=($chord_...
glb/cad_eb12c8008b14.glb
Create a customizable ruler by starting with a rectangular base measuring 300mm in length, 30mm in width, and 2mm in height. Engrave the following features into the top surface of the base to a depth of 1.5mm. First, create 30 centimeter marks, each 0.2mm wide and 10mm long, spaced every 10mm starting from the left edg...
font1 = "Liberation Sans"; content = "3D Printed Ruler"; module Mark_cm() { translate([0,0,0.5]) cube([0.2,10,2]); } module Mark_mm() { translate([0,0,0.5]) cube([0.2,5,2]); } module title() { translate ([2,20,1.0]) { rotate ([0,0,0]) { linear_extrude(height = 2) { ...
glb/cad_e2fc0a23c773.glb
Create a customizable ruler by starting with a rectangular base measuring 200mm in length, 30mm in width, and 2mm in height. Engrave the text "3D Printed Ruler" into the top surface, positioned 2mm from the left edge and 20mm from the bottom edge, with a character size of 7mm and an extrusion depth of 2mm. To create ...
font1 = "Liberation Sans"; content = "3D Printed Ruler"; module Mark_cm() { translate([0,0,0.5]) cube([0.2,10,2]); } module Mark_mm() { translate([0,0,0.5]) cube([0.2,5,2]); } module title() { translate ([2,20,1.0]) { rotate ([0,0,0]) { linear_extrude(height = 2) { ...
glb/cad_f2f46d41bf1f.glb
Create a parametric eyepiece cap. Start by constructing a hollow cylindrical shell with an outer radius of 29.5mm and a total height of 16mm. The walls should have a thickness of 1.5mm and the top surface a thickness of 1mm. The interior cavity should be 15mm deep with a rounded bottom corner of 5mm. The bottom edge of...
$fn=64; r_inner = 28; th_top = 1; th_side = 1.5; h_inner = 15; taper = 0.2; cone = 1; cone_angle = 60; roundness = 5; th_ring = 5; r_ring = 10; has_ring = true; eyepiece_cap (has_ring); module eyepiece_cap (has_ring) { intersection () { difference () { rotate_extrude (convexity ...
glb/cad_4205121d8b2c.glb
Create a 3D model of a cat silhouette with a thickness of 5mm. The shape is based on a 2D vector profile that is linearly extruded to create volume. The silhouette features a seated cat with a curved tail curling upward on the right side. The overall height of the 2D profile is scaled to 30 units. The design includes...
$fn = 30; height = 30; depth = 5; linear_extrude(depth) { scale([height/1000, height/1000]) { union() { union() { difference() { bezier_polygon([[[817.8, -565.7], [787.6999999999999, -537.4000000000001], [760.8, -530.3000000000001], [728.9, -530.3000000000001]], [[728.9, -530.3000000000001], [728.9...
glb/cad_38881b35db3e.glb
Create a GT2 2mm Idler for a 624 bearing. Start by creating a central cylinder with an outer diameter of 13.5mm and a height of 1mm to serve as the pulley base. Around this base, add a toothed section with a height of 6.5mm and an outer diameter of 11.88mm, featuring 26 teeth based on the GT2 2mm profile. Add a belt r...
teeth = 26; profile = 12; motor_shaft = 13.5; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 1; retainer_ht = 1.0; idler = 1; idler_ht = 1.0; pulley_t_ht = 6.5; pulley_b_ht = 1; pulley_b_dia = 13.5; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = ...
glb/cad_16cb3146cde5.glb
Create a servo arm for an optical Z probe. Start with a central cylindrical hub that has an outer diameter of 3.9mm and a height of 2.8mm. The center of this hub must have a vertical hole with a diameter of 2.5mm, featuring 25 internal teeth (splines) to fit a Futaba 3F standard servo. Extend a single arm from this hu...
$fn = 40; SERVO_HEAD_CLEAR = 0.2; FUTABA_3F_SPLINE = [ [3.9, 2.8, 1.1, 2.5], [25, 0.3, 0.7, 0.1] ]; module servo_futaba_3f(length, count) { servo_arm(FUTABA_3F_SPLINE, [length, count]); } module servo_standard(length, count) { servo_futaba_3f(length, count); } module servo_head_tooth(length, width,...
glb/cad_2a161dbd4de8.glb
Create a Small Part Drawer Box consisting of a main outer box and matching drawers. For the box, create a rectangular shell with an outer width of 71.46mm, height of 55.46mm, and depth of 31.46mm. The walls should be 2.38mm thick. Hollow out the center to create a cavity for the drawers, leaving a back wall of 2.38mm...
part = "box"; compWidth=20; compDepth=25; compHeight=15; compXCount=3; compYCount=2; drawersPerArea=3; attachHandle=1; drawerStopper=1; labelOption = "Frame"; handleAutoSize=1; handleWidth=25; handleHeight=12; handleDepth=8; handleThickness=1.5; stackRight=1; stackLeft=1; stackTop=1; stackBottom=1; a...
glb/cad_7dcbe2cd21b1.glb
Create a hole calibration gauge consisting of a rectangular base with a series of vertical cylindrical tubes. The base is a solid rectangular slab 2mm thick. Centered atop this base, create nine vertical cylinders, each 10mm high with a 32-facet resolution. Each cylinder must have a wall thickness of 2mm. The cylinde...
d = 3; n = 4; s = .1; w = 2; h = 10; difference() { union() { x2 = (0.5 * s * (n + 0.5) + d + w) * (n + 0.5) + w/2; x1 = (0.5 * s * -(n + 0.5) + d + w) * -(n + 0.5) - w/2; m = d + n * s + 2 * w; translate([x1, -m/2, 0]) cube([x2 - x1, m, 2]); for (x = [-n : n]) { dd = d + x * s; xx = (0.5 * s * ...
glb/cad_ddb9e0feaba2.glb
Create a Bridge test model starting with a base rectangular block 3mm wide, 50mm long, and 25mm high. From this base, remove a large section by placing a cube of 50mm on all sides, rotating it 45 degrees along the X-axis, and positioning it at X=-15, Y=25, and Z=1. To create the bridge steps, add a series of rectangula...
length = 50; width = 3; bridge = 0.72; step =1.92; module bridge() { union() { difference() { cube(size=[width,length,length/2]); translate(v=[-15,length/2,1]) rotate(a=[45,0,0]) cube(size=length); } for (i=[0:length/2/step]) { translate(v=[0,0,i*step]) cube(size=[width,length,bridge]); } } } module triag(...
glb/cad_2bc85cda9d21.glb
Create a fridge mounted whiteboard holder consisting of two perpendicular arms meeting at a central rounded corner. Each arm is a cylinder with a radius of 6mm and a length of 30mm, capped with a hemispherical end. The two cylinders meet at a central sphere with a 6mm radius. Flatten the bottom of the entire assembly ...
magnet_dia = 6; magnet_h = 1.5; magnet_locs = [10,20,30]; arm_l = 30; arm_w = 12; board_t = 2.5; magnet_size_ratio=1.05; poly_count = 30; support_width = .7; magnet_support_r = .6; difference(){ union(){ translate([arm_l,0,0])sphere(r=arm_w/2, $fn = poly_count); translate([0,arm_l,0])sphere(r=arm_w/2, $fn = p...
glb/cad_2aa44d72e065.glb
Create a camera mount for SQ11 and SQ12 cameras. Start by constructing a main holder body using a convex hull of four cylinders, each with a diameter of 6.6mm and a height of 23mm, positioned at the corners of a 20mm by 20mm square. From this volume, remove a central void created by the convex hull of four smaller cyli...
module sq11_mount () { translate([3,0,0]) rotate([0,0,-25]) holder(); translate ([-0.3, 0, 0]) cube ([1.8, 19.8,23]); translate([0,18,0]) cube ([9.5,1.8,23]); } module holder() { difference() { hull () { cylinder(d=6.6, h=23, $fn=64); translate([20,0,0]) cylinder(d=6.6...
glb/cad_cb6a27569930.glb
Create a customizable socket adapter bracket with a consistent thickness of 3mm for all components. Start with a top hollow disc that has an outer diameter of 30mm and an inner diameter of 22mm. On the top surface of the disc, add two opposing rectangular tabs, each 8mm wide and 3mm thick. Center a 3.5mm diameter hol...
Thickness = 3; Height = 15; TabWidth = 8; TopOutD = 30; TopInD = 22; TopHoleD = 3.5; TopHoleS = 12.93; VertArmOut = 28; BotHoleD = 4; BotHoleS = 16.43; Global_Scale = 1; $fn = 200; EPS = 0.01; scale(Global_Scale){ Bracket(); } module Bracket() { union(){ Disc(TopOutD, TopInD, Thickness); ...
glb/cad_4b4c2eabb5d9.glb
Create a classic style flower pot by revolving a 2D profile around a central vertical axis. The pot has a base diameter of 70mm and a total height of 80mm. The main body walls should lean outward at a 10-degree angle from the vertical. The base of the pot has a thickness of approximately 4mm (calculated as 1mm more t...
base_diameter = 70; height_of_pot = 80; pot_side_angle = 10; rim_side_angle = 5; height_of_rim = 16; rim_thickness = 2; drain_hole = "Yes"; pot_risers = "No"; sidewall_thickness = 0; base_thickness = 0; module fake_news() { } min_dia = 10; max_dia = 350; min_ht = 8; max_ht = 350; min_wthk = 1.0; max_wthk = ...
glb/cad_776015f7bd28.glb
Create a winch housing consisting of a main cylindrical body and an integrated bearing seat. Start with a 20-sided polygonal prism with a radius of 39mm and a height of 7mm. Remove a central cylindrical hole with a radius of 28mm that extends through the entire height of the part. Within the main body, incorporate a ...
include <ISOThread.scad> $fn = 100; Trans = 0.7; color("green", Trans) { difference() { cylinder(r = 39,h = 7,$fn = 20); translate([0,0,-1]) cylinder(r = 28, h = 22); horiz_bearing(33,7); } translate([33,0,7-2]) sphere(r = 3); } module horiz_bearing(rad,top) { translate([0,0,top-1.1]) difference()...
glb/cad_efa06cf7d4d2.glb
Create a winch base consisting of a series of concentric cylindrical sections. Start with a main outer cylinder that has a radius of 25mm and a height of 11mm. From the center of this cylinder, remove a vertical hole with a radius of 18mm and a height of 15mm to create a central passage. Within the main body, create a...
include <ISOThread.scad> $fn = 100; Trans = 1.0; color("blue",Trans) { difference() { cylinder(r = 25, h = 11); vert_bearing(25,5); translate([0,0,-1]) cylinder(r = 18,h = 15); } vert_bearing_support(25,5); } module vert_bearing(r,z) { translate([0,0,z-3]) { difference() { translate([0,0,+0....
glb/cad_4436aed21261.glb
Create a Winch consisting of a base, a top cap, and a central reel. Start with the base: create a cylinder with a radius of 50mm and a height of 15mm. Centered on this base, add a vertical spindle cylinder with a radius of 25mm and a height of 81mm. Drill four mounting holes through the base at coordinates (0, 44), (...
use <ISOThread.scad> use <vert_bear.scad> use <horiz_bear.scad> $fn = 100; Trans = 1.0; bearing = 0; winch(); module winch() { difference() { union() { winch_base(); translate([0,0,82+15]) rotate([0,180,0]) winch_top(); translate([0,0,20+61]) rotate([0,180...
glb/cad_32ad0c026796.glb
Create a CNC Router Dust Shoe consisting of a main mounting base and two cylindrical ports. First, construct the base as a rounded rectangular plate 105mm wide, 70mm long, and 10mm thick, with corner radii of 10mm. Embed six cylindrical magnet holes, each 13mm in diameter and 1.2mm deep, positioned around the perimet...
mount_width=105; mount_length=70; mount_height=10; mount_thickness=3; mount_corner_radius=10; router_diameter=64; router_mount_thickness=2; router_mount_height=20; router_mount_height_extension=10; router_x_offset=25; vacuum_mount_diameter=30.5; vacuum_mount_thickness=2; vacuum_mount_height=20; vacuum_mount_height_exte...
glb/cad_9b77eb409f2c.glb
Create a CNC Router Dust Shoe mount. Start by creating a base plate that is 105mm wide, 70mm long, and 10mm high. This base should have rounded corners with a radius of 10mm. From this base, remove a central rectangular section that is 99mm wide and 64mm long, leaving a wall thickness of 3mm around the perimeter. To f...
mount_width=105; mount_length=70; mount_height=10; mount_thickness=3; mount_corner_radius=10; magnet_hole_diameter=13; magnet_height=1.2; $fn=100; use <hull.scad> points_solid=[[-mount_width/2,-mount_length/2,0],[-mount_width/2,mount_length/2,0],[mount_width/2,-mount_length/2,0],[mount_width/2,mount_length/2,0],[0,-m...
glb/cad_5ff47ea831c1.glb
Create a Raspberry Pi case consisting of a bottom shell and a top cover. The main body is a hollow rectangular box with rounded corners (radius 4mm) and a wall thickness of 2mm. The internal cavity is 86mm long by 57mm wide. Construct the bottom shell with a total height of approximately 20mm. On the interior floor, p...
DRAWfull = 0; DRAWtop = 1; DRAWbottom = 1; DRAWtopinlet = 0; DRAWbottominlet = 0; DRAWpcb = 0; GPIOHOLE = 0; GPIOsize = 2; topframe = false; topinlet = false; topholes = false; holeofs=5; holesiz=2.5; holestep=6; noholes=12; holelen=30; holeangle1=[0,0, 0]; topmi...
glb/cad_76a3173caf19.glb
Create a parametric box with a separate cover. For the main box, start with a solid rectangular block measuring 106.5mm x 66mm x 47mm. Hollow out the center by removing a block of 102.5mm x 62mm x 45mm, leaving a wall thickness of 2mm. At the top rim, create a shoulder by removing a central block of 101.5mm x 61.5mm x ...
inner_dim_x=102.5; inner_dim_y=62; inner_dim_z=45; wall_thickness=2; shoulder_thickness=1; shoulder_height=5; spacing=0.15; x_div_wall_count=1; y_div_wall_count=1; div_thickness=1.2; div_height=inner_dim_z; Assembly(); module Assembly(){ translate([0,-inner_dim_y,0]) Box(); translate([0,inner_dim_y,0])Box_C...
glb/cad_2170fb4f68c1.glb
Create a dog waste bag holder consisting of a cylindrical body with an integrated threaded top. Start by creating a main cylinder with an outer radius of 21.7mm and a height of 50mm. Hollow out the center with a concentric cylinder of radius 18.3mm and a height of 63mm, starting from 1.5mm above the base. At the top ed...
use <ISOThread.scad> $fn = 100; or = 21.7; ir = 18.3; th = 40.8; res = 40; body(); module body() { difference() { union() { cylinder(r = or, h=50); translate([0,0,49.9]) thread_out(th,8,res); } translate([0,0,1.5]) cylinder(r = ir, h = 63); translate([-13.5,-30,27]) cube([27,30,17.5]); transla...
glb/cad_74e209cfed33.glb
Create a Mouse Bungee consisting of a weighted base and a flexible arm. For the base, create a flat, X-shaped platform. The four legs are formed by hulls connecting circles of 10mm diameter positioned at the corners of a 100mm by 100mm square. In the center of this base, create a central hub that is 15mm wide and 15m...
$fn=128; tol = 0.4; length = 100; base_L = 25; base_w = 80; width = 10; z_bend = 1; z_rib = 1.5; leg_length = 50; leg_width = 10; module arm_base(){ difference(){ translate([-width/2,0,0]) cube([width,length,z_bend+z_rib]); arm_mid(); } } module arm_mid(){ hull(){ ...
glb/cad_6b852d3efdb0.glb
Create a modular candle holder consisting of a square base and four interlocking side walls. The base is a square plate measuring 50mm by 50mm with a thickness of 4mm. Construct four identical wall panels, each 50mm wide, 50mm high, and 4mm thick. Each panel must feature a heart-shaped cutout centered on its face. To...
width = 50; height = 50; th = 4; h_size = .4; offset = 2; module heart(bs) { translate([-50*bs+width/2,height/2-50*bs+offset, -.1]) linear_extrude(height=th+.2) scale(bs) import(file="hjarta_fullt.dxf", center=true); } module sida() { scale(1) { difference() { cube([width,height,th]); union() { ...
glb/cad_a0158ad82afe.glb
Create a curtain slider consisting of a central block and an attached ring. Start by constructing a central vertical assembly from three rectangular prisms: a base block measuring 5.25mm by 5.25mm by 1.5mm, a middle block measuring 3.25mm by 3.25mm by 2mm centered atop the base, and a top block measuring 3.25mm by 5.25...
narrow_width = 3.25; narrow_height = 2; wide_width = 5.25; wide_height = 2.6; circle_radius = 3.5; circle_offset = 1.5; circle_thickness = 2.2; $fs = 0.05; rotate([90, 0, 0]) { translate([-narrow_width / 2, -wide_width / 2, narrow_height + circle_radius + circle_offset]) cube([narrow_width, wide_width, wide_height]);...
glb/cad_258544709dd4.glb
Create a carriage for an open-source laser polymer welding system. Start with a rectangular base measuring 98.5mm in length, 51mm in width, and 5mm in thickness. From this base, remove several cylindrical holes of varying sizes and positions to create mounting points and clearances. Specifically, create four holes wi...
a=30.5; c=15; b=30; d=9.22; e=13; f=6; g=8; x=98.5; y=51; z=5; carriage(); module carriage(){ difference(){ carriage(); translate([70,-1,-1])cube([x+2,y+2,z+1]); translate([-1,-1,z/2])cube([x+2,y+2,z]); } translate([0,-75,0])carriage(); module carriage(){ difference(){ cube([x,y,z]); translate([14,6,0])cylinder(z,3...
glb/cad_27fe22d672ff.glb
Create an optics holder by starting with a main cylinder that has a diameter of 18.5mm and a height of 21.5mm. Remove a central cylindrical core with a diameter of 15.5mm and a height of 16mm, starting from a height of 5mm from the base. At the bottom of the holder, create a circular opening with a diameter of 10.11m...
a=30.5; c=15; b=30; d=9.22; e=13; f=6; g=8; optics_holder(); module optics_holder(){ difference(){ cylinder((c)+8,(a+7)/2, (a+7)/2); translate([0,0,5])cylinder(c+1,(a+1)/2, (a+1)/2); translate([0,(a+1)/-2,5])cube([a+100,a+1,c+1]); translate([0,0,1])cylinder((c/2),(d+1)/2, (d+1)/2); translate([0,(d+1)/-2,1])cube([a+100,...
glb/cad_23cd1873fd44.glb
Create a Sony Alpha 6000 hot shoe lens cap holder. Start by constructing a hollow cylindrical ring with an inner diameter of 40mm and an outer diameter of 43mm. The height of this ring should be 4mm. To the side of this ring, attach a rectangular adapter designed to fit into a camera hot shoe. This adapter consists o...
Diameter = 40; CoverFlash = 0; ShoeThickness = 1.6; LensCap(Diameter, ShoeThickness, CoverFlash); module LensCapSling(diameter) { difference() { union() { SlingAdapter(diameter); translate([0,diameter/15,0]) LensCylinder(diameter, 4); } SlingCropCubes(...
glb/cad_94a8f0151f17.glb
Create a Yin Yang cable spool consisting of a base and a lid. For the base, start with a cylinder of radius 30mm and height 15.96mm. Carve out a central void using a twisted Yin Yang geometry: create a shape by taking a circle of radius 20mm, removing a square section from the bottom half, and adding a smaller circle o...
r=20; hi=15; cord = 5; conn=10; turns=2; ro = r+cord*turns; twist=180/3.1416*hi/r; w=.48*2; openings=8; h=hi+w; $fa=4; base(); lid(); module base() { r1=r/2-cord/4; r2=r/2+3*cord/4; difference() { union() { cylinder(r1=ro-w,r2=ro,h=w); yinyang(r,h,r1,r2); rotate([0,0,180]) yinyang(r,h,r1,r2); } ...
glb/cad_e6bad54f8d27.glb
Create a pentagram box and matching lid. The box is a five-pointed star prism with a height of 30mm and an outer radius of 30mm. The walls are 3mm thick, created by hollowing out the center with a smaller concentric star prism. The interior is open from the top, but the bottom is closed by a solid star base with a thic...
boxHeight=30; boxRadius=30; boxWallThickness=3; lidGap=0.5; lipDepth=4; boxTwist=0; pentabox(height=boxHeight, radius=boxRadius, thickness=boxWallThickness, twist=boxTwist); translate([1.4*boxRadius,boxRadius,0]) pentaLid(radius=boxRadius, thickness=boxWallThickness, gap=lidGap, depth=lipDepth); module pentabox(...
glb/cad_b9ea6dc9790e.glb
Create a parametric smartphone stand with a base measuring 40mm wide, 125mm long, and 15mm high. The base should have rounded corners with a radius of 13mm. Carve three distinct slots into the top surface to hold a device at different angles. Each slot must be 11mm wide. The first slot is angled at 40 degrees, the se...
use <write/Write.scad> gap_thickness = 11; width = 40; length = 125; height = 15; text = "Text"; textSize = 11; corner_radius = 13; module roundedBox(size, radius, sidesonly) { rot = [ [0,0,0], [90,0,90], [90,90,0] ]; if (sidesonly) { cube(size - [2*radius,0,0], true); cube(size - [0,2*radius,0], true); ...
glb/cad_cbf8917df51e.glb
Create a Parametric Flute Stand consisting of three identical legs arranged symmetrically around a central axis. First, design a single leg component. Start with a base block that is 21mm high, 10mm wide, and 15mm deep. Combine this block with a cylinder of 10mm diameter and 21mm height, centered on the block's inner...
$fn=100; radius=55; module Halter1(t="1") { difference() { union() { translate([-15, -5, 0]) cube([15, 10, 21]); translate([0, 0, 0]) cylinder(d=10, h=21); } translate([0, 0, -0.1]) cylinder(d=4.5, h=21.2); translate([-5, -5.1, 5]) cube([10.1, 10.2, 11]); translate([-14, -4, 10]) rota...
glb/cad_f48588e99fc4.glb
Create a Beaglebone Black and Cape case consisting of a bottom shell and a top cover. For the bottom shell, create a rounded rectangular block measuring 156mm x 71mm x 42mm with a corner radius of 4mm. Hollow out the center to create a cavity of 152mm x 67mm x 38mm, also with 4mm rounded corners. At each of the four ...
module rounded_cube_x2(size, radius, center=false) { x = size[0]; y = size[1]; z = size[2]; if (center == false) { linear_extrude(height=z) hull() { translate([radius, radius, 0]) circle(r=radius, $fn=30); translate([(x - (radius)), radius, 0]) circle(r=radius, $fn=30); translate([radius, (y - (radius)...
glb/cad_b63e5a782b14.glb
Create a hydraulic piston plunger consisting of a central vertical shaft with varying diameters and decorative rings. Start by centering a main cylinder with a radius of 16.125 mm and a height of 101.6 mm. At the bottom of this assembly, add a wider base cylinder with a radius of 22.55 mm and a height of 6.35 mm. Above...
cf=25.4; ORID=3/8*cf; ORSCD=1/8*cf+1; theta = 45-30; side=ORSCD/(2*cos(45+theta))+0.1; Rad=(ORID+ORSCD)/2; translate=Rad+sqrt(2)/2*side*sin(theta); $fn=100; difference(){ union(){ cylinder(r=Rad,h=4*cf,center=true); translate([0,0,-2*cf-1/8*cf])cylinder(r=7/8*cf/2,h=1/4*cf,center=true); translate([0,0,-2*cf-2.1/...
glb/cad_6563e211b062.glb
Create a bicycle mirror mount consisting of four distinct geometric components. First, create a cylindrical clamp with an outer diameter of 26mm and a height of 7mm. Remove a central vertical hole with a diameter of 4.5mm. Carve a spherical cutout with a radius of 5.75mm into the bottom side and a rectangular slot me...
od1 = 26; id1 = 18.5; h1 = 7; ih1 = 6.2; od2 = 14; id2 = 10; h2 = 22; sp_d = 11.5; m4d = 4.5; m4od = 8.5; l = 0.35; $fn = 32; dl1 = 7; dl2 = 8.5; b_d = 8; b1d1 = 10; b1d2 = 15; b1h = 31; part1(); translate([30,0, 0]) part2(); rotate([180,0,0]) translate([-35,0, -h1-1]) part3(); translate([60,0, 0]) part4(); ...
glb/cad_d3918e322ee2.glb
Create a Venturi Injector consisting of a central vertical conduit with several connected sections. Start with a central hollow cylinder of 21.29mm outer diameter and 2mm wall thickness, with a height of 20mm, centered on the Z-axis. Above this, add a tapered hollow section 55mm tall that transitions from an outer diam...
od = 21.29; od_rad = od/2; od_min = 15; od_min_rad = 15/2; output_cyl_ht = 55; wall_thick = 2; input_cyl_ht = 24; module output() { difference() { cylinder(r2=od_rad, r1=od_min_rad, h=output_cyl_ht, center=true); cylinder(r2=od_rad-wall_thick, r1=7/2, h=output_cyl_ht+1, center=true); } } module input() { diff...
glb/cad_f19ba8bd8706.glb
Create an X-axis leveling tool consisting of two identical rod-holding claws connected by a central T-beam. Each claw is a semi-cylindrical shell with an inner radius of 4.1mm and a total depth of 25mm. The outer walls of the claws are 3mm thick, and the overall height of the claw structure is 15mm. One claw is posit...
z_distance = 60; rod_diameter = 8.2; claw_depth = 25; claw_height = 15; wall_thickness = 3; beam_width = 10; beam_height = 10; module claw(inner_radius, height, depth, wall_thickness, with_entry = false) { total_width = (inner_radius + wall_thickness) * 2; difference() { union() { cylinder(r = inner_rad...
glb/cad_305518ffe5d8.glb
Create a compressed air rocket consisting of a hollow body, a conical nose, and stabilizing fins. Start by creating a hollow cylindrical body with an inner diameter of 10.5mm and an outer wall thickness of 0.7mm, extending to a height of 40mm. Atop this cylinder, add a conical nose section that tapers from the outer di...
inner_diameter = 10.5; body_height = 40; nose_height = 16; number_of_fins = 3; fin_width = 10; fin_height = 20; perimeter_width = 0.7; eta = 0.001; perim = perimeter_width; 2perim = 2*perim; module donut(or,ir) { difference() { circle(or); circle(ir); } } module rocketBody() { $fn=32; id=inner...
glb/cad_7a4968774b66.glb
Create a Flat Panel Creator with a rectangular footprint of 120mm by 80mm and a thickness of 3mm. The panel should have rounded corners with a radius of 5mm. At each of the four corners, create a tapered hole that passes through the thickness of the panel. Each hole should have a top radius of 6mm and a bottom radius...
$fn = 128; PANEL_CORNER_RADIUS = 5; PANEL_WIDTH = 120; PANEL_DEPTH = 80; PANEL_THICKNESS = 3; CREATE_FLAT_SCREW_HOLES = false; CREATE_TAPER_SCREW_HOLES = true; FLAT_SCREW_HOLE_RADIUS = 3; FLAT_SCREW_HOLE_OFFSET_FROM_EDGE = 3; TAPER_TOP_HOLE_RADIUS = 6; TAPER_BOTTOM_HOLE_RADIUS = 3; TAPER_HOLE_FROM_EDGE = 3; differ...
glb/cad_0935d9bb3378.glb
Create a bead for a bracelet by starting with a sphere that has a radius of 9mm. Bore a straight hole completely through the center of the sphere along its vertical axis using a cylinder with a radius of 1.1mm and a total height of 20.25mm. Ensure the hole is perfectly centered so that the resulting shape is a symmetri...
module bead(size, holesize) { color([0.3,0,0.6]) render(covexity = 1) difference() { sphere(size); cylinder(size*2.25, holesize,holesize, true); } } bead(9,1.1);
glb/cad_b35f58942ddc.glb
Create a jewelry bead by designing a rounded cube with an overall size of 9mm. The cube should have heavily filleted edges and corners, achieved by applying a rounding radius of 2.25mm to all sides. Pierce the center of the cube with a straight cylindrical hole that runs completely through the shape from top to bottom....
module bead(size, holesize) { $fn=50; render(covexity = 1) difference() { minkowski() { minkowski() { minkowski() { cube(size * 0.75, true); rotate([90,0,0]) cylinder(r=size*0.25); } rotate([0,90,0]) cylinder(r=size*0.25); } cylinder(r=size*0.25); } cylinder(size*5...
glb/cad_78d5d083561e.glb
Create a bead for a bracelet by constructing a hexagonal prism with a flat width of 18mm and a total height of 20.25mm. Center a vertical cylindrical hole with a diameter of 1.1mm through the entire length of the prism to allow for a string to pass through. Ensure the hexagonal faces and the cylindrical bore are perfec...
size = 9; holesize=1.1; if(size < 1) { echo("'size' not set or too small"); } if(holesize < 0.2) { echo("'holesize' not set or too small"); } if(holesize > size) { echo("Logic error: holesize larger than size"); } include <shapes.scad>; $fn=50; module bead() { render(covexity = 1) { difference() { hexagon(s...
glb/cad_845feeef88ac.glb
Create a spacer bead for a bracelet by constructing a cylinder with a height of 4.5mm and a radius of 2mm. Center the object and bore a circular hole through the entire length of the cylinder along its central axis, with the hole having a radius of 1.1mm. Ensure the circular surfaces are smooth by using a high facet re...
height = 4.5; width=2; holesize = 1.1; $fn = 50; module spacer() { render(covexity = 1) { difference() { cylinder(h=height, r=width, center=true); cylinder(height*2.25, holesize,holesize, true); } } } spacer();
glb/cad_a481eb3c6f16.glb