Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Minitronics v1.0 mounting frame by starting with a central rectangular plate measuring 65mm by 105mm with a thickness of 5mm, centered on the origin. Remove a large circular hole from the center of the plate with a radius of 19mm. Additionally, remove four smaller circular holes, each with a radius of 2mm, p...
difference() { union () { cube(size = [65,105,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 , 0]) { cube(size = [10,10,20] , center = true ); } translate(v = [2.25,91.9, 0]) { cube(size = [10,10,20] , center = ...
glb/cad_66ef9d971181.glb
Create a geometric model consisting of a sphere with a radius of 125mm, from which several intersecting volumes are removed to create a complex polyhedral shape. The final form is a combination of a cube, an octahedron, and a rhombic dodecahedron. To achieve this, subtract the following planar sections from the sphere...
size = 60; size2 = 170; size3 = 100; scale (0.3) combination_cor(1,1,1,1,1); module combination_cor(a,b,c,h,k) { difference() { sphere (r=125, center = true); union() { face_h00(); face_0k0(); face_00l (); face_hkl(2,2,2); face_hk0(h,k); face_hk0(k,h); face_0kl(h,k)...
glb/cad_f6a8aba5ed58.glb
Create a 3D model of a crystal combination of a tetrakis hexahedron and an octahedron. Start with a base sphere with a radius of 110mm centered at the origin. From this sphere, remove material using a series of planar cuts to create the following facets: first, create an octahedron by applying eight planar cuts at a ...
scale (0.4) rotate([45,45,0]) tetrakishexahedron(1,1,1,2,1); module tetrakishexahedron(a,b,c,h,k) { size = 60; size2= 120; difference() { sphere (r=110, center = true); union() { face_hkl(2,2,2); face_hk0(h,k); face_hk0(k,h); face_0kl(h,k); face_0kl(k,h); face_h0l(h,...
glb/cad_c86c43dd1ce9.glb
Create a tetrakis hexahedron by starting with a sphere of radius 110mm centered at the origin. Carve this sphere using a series of planar cuts to create a polyhedral shape. The cuts are defined by three sets of four planes. The first set consists of four planes parallel to the Z-axis, positioned at coordinates (2, 1,...
mark = 1; if (mark==1) scale (0.4) rotate([0,22.5,0]) tetrakishexahedron(1,1,1,2,1); else if (mark==2) scale(0.5) rotate([45,0,0]) tetrakishexahedron(1,1,1,2,2); else {} module tetrakishexahedron(a,b,c,h,k) { size = 60; difference() { sphere (r=110, center = true); union() { fac...
glb/cad_198267e34fa5.glb
Create a selector knob for a small switch. Start by creating a conical flange base that transitions from a diameter of 20mm at the bottom to 15mm at the top over a height of 4mm. Atop this base, add a handle formed by the convex hull of two cylinders, each 6mm in diameter and 13mm tall, positioned 14mm apart center-to-...
fudge=.2; knob_size=15; knob_flange=20; knob_flange_height=4; knob_height=15; slot_width=2.60+fudge; slot_length=3.91+fudge; slot_height=5; res=50; handle_size=6; handle_length=7; module round_knob(){ difference(){ union(){ cylinder (d1=knob_flange, d2=knob_size, h=knob_flange_height, $fn=res); cylinder (d=kn...
glb/cad_fac6b0bc54df.glb
Create a Graber i3 Y rod holder by starting with a rectangular base measuring 12mm wide, 20mm deep, and 6mm high. Centered on this base, add a smaller rectangular block that is 8mm wide, 8mm deep, and 11mm high, positioned 1mm above the base and offset so its outer edges align with the base's center. Bore a vertical oc...
difference() { union() { translate([-6, -4, 0]) cube([12, 20, 6]); translate([-4, -4, 1]) cube([8, 8, 11]); } translate([0,0,5.99]) cylinder(r=4.3, h=100, $fn=8); translate([0, 12, -1]) cylinder(r=2, h=100, $fn=32); }
glb/cad_dde5eb56c82b.glb
Create a Traxxas RC GoPro mount consisting of a central platform and two upright walls. Start with a rectangular base platform 120mm wide, 50mm deep, and 10mm thick. At each end of the platform, construct a vertical wall 18mm high and 10mm thick. Each wall should have a central vertical hole with a 5mm radius to acco...
thickness = 10; ph = 5; platform_depth = 50; platform_width = 100 + 2 * thickness; wall_height = 18; gopro_horiz_offset = 14; gopro_support_size = 25; slot_tolerance = .05; pole_width = 10; pole_radius = pole_width / 2; buffer = 1; include <rugged gopro mount.scad> module support(sz) { difference() { cube([1.8*...
glb/cad_bd0e8504c05a.glb
Create a shopping trolley token with a uniform thickness of 2.3mm. The main body consists of a rectangular handle and a circular head. Form the handle as a rectangular prism 53mm long and 10mm wide. At one end of this handle, center a circular hole with a diameter of 4.4mm that passes completely through the thickness o...
a=150; b=23/2; hoch=2.3; difference() { union(){ cylinder(h = hoch, r1 = b, r2 = b, center = true,$fn=a); } union(){ translate([b/2-1,0,0]) cube([b,b*2,hoch], center=true); } } translate([-1,b-1.9,0]) cylinder(h = hoch, r1 = 1.8, r2 = 1.8, center = true,$fn=a); translate([-1,-b+1.9,0]) cylinder(h = hoch, r1 = 1.8, r...
glb/cad_97fb723caa94.glb
Create an X End Sensor holder by constructing a hexagonal outer shell and subtracting internal volumes to create a hollow housing. Start with a hexagonal prism formed by three intersecting cubes of 17.9mm x 31mm x 20mm, rotated at 60-degree intervals around the Z-axis. Attach a rectangular sensor holder measuring 13mm ...
sa1=17.9; sa2=31; sa3=20; s1=14.43; s2=25; s3=20; a=100; difference() { union(){ cube([sa1,sa2,sa3], center=true); rotate(a=60,v=[0,0,1]) cube([sa1,sa2,sa3], center=true); rotate(a=-60,v=[0,0,1]) cube([sa1,sa2,sa3], center=true); translate([-23, 0,0]) cube([13,5,20], center=true); translate([-25, 0,6]) r...
glb/cad_97abfb0ababe.glb
Create a Power Supply Suspension Mount consisting of two mirrored corner brackets. For each bracket, start with a rectangular base measuring 25mm by 40mm with a thickness of 5mm. On top of this base, construct a complex housing by combining several blocks: one 5mm by 40mm by 15mm block positioned at x=6, one 5mm by 20m...
module corner_holder() { translate([-14,-20,-5]) cube([25,40,5]); difference() { union() { translate([6,-20,0]) cube([5,40,15]); translate([-5,-20,0]) cube([5,20,15]); translate([-14,0,0]) cube([20,5,15]); translate([-2,-20,0]) cube([10,5,15]); translate([6.3,2.5,0]) rotate([0,0,4...
glb/cad_6c4e24789165.glb
Create a Scatter Dice model starting with a cube that is 25mm on each side. Modify the cube to have rounded corners by intersecting it with a sphere of approximately 17.6mm in diameter (calculated from a curvature factor of 1.42). On each of the six faces, create a centered indentation 2mm deep. Within these indentati...
text_1= "\u2739"; scale_1=1; text_2= "\u2b09"; scale_2=.85; text_3= "\u2739"; scale_3=1; text_4= "\u2b0a"; scale_4=.85; text_5= "\u2b0b"; scale_5=.85; text_6= "\u2b08"; scale_6=.85; depth=2; cube_size=25; curvature=1.42; font = "DejaVu Sans"; text=[text_1,text_2,text_3,text_4,text_5,text_6]; text_scaling=[scale_1,...
glb/cad_93ab6b44e3a0.glb
Create a wrist watch back consisting of two concentric cylinders. The base is a wide, short cylinder with a diameter of 32mm and a height of 4.5mm. Centered on top of this base is a second, narrower cylinder with a diameter of 32mm and a height of 2mm. Hollow out the center of this combined shape by removing a central...
Back1(); translate([0, 34, 0]) Back2(); translate([34, 0, 0]) Back3(); translate([34,34, 0]) Back4(); module Back1() { difference() { union() { cylinder(4.5, 14.3, 14.3); cylinder(2, 16, 16); } translate([0, 0, 2.501]) Remove_Back(); translate([0,0, 4.5]) rotate([0, 90, 0]) cylinder(20, 2, 2, $fn = 20); } translate([15...
glb/cad_739845c7fb94.glb
Create a two-part electronic device packaging consisting of a top and bottom half. The internal cavity for both halves is 10mm x 10mm x 10mm with a wall thickness of 2mm and corner radii of 3mm. The top half has a height of 7.5mm and the bottom half has a height of 4.5mm. Both halves feature a 1.5mm high lip for fitti...
GENERATE_TOP = true; GENERATE_BOTTOM = true; STACK_HALVES = false; INNER_LENGTH = 10; INNER_WIDTH = 10; INNER_HEIGHT = 10; TOP_HEIGHT = 0.75 * INNER_HEIGHT; WALL_THICKNESS = 2; CORNER_RADIUS = 3; CURVE_SIDES = 10; LIP_HEIGHT = 1.5; FIT_FUDGE = 0.05; HOLES = [ ["N", "R", [0, +(INNER_HEIGHT/2 - 1), 4, 2]], ...
glb/cad_8cda2dd11b3a.glb
Create a two-part electronic device packaging consisting of a bottom base and a top lid. The internal cavity for both halves is 10mm x 10mm x 10mm. Both parts have a wall thickness of 2mm and rounded corners with a 3mm radius. For the bottom half, create a hollow box with a height of 12mm (10mm internal plus 2mm wall)...
GENERATE_TOP = true; GENERATE_BOTTOM = true; STACK_HALVES = false; INNER_LENGTH = 10; INNER_WIDTH = 10; INNER_HEIGHT = 10; TOP_HEIGHT = 0.75 * INNER_HEIGHT; WALL_THICKNESS = 2; CORNER_RADIUS = 3; CURVE_SIDES = 10; LIP_HEIGHT = 1.5; FIT_FUDGE = 0.05; HOLES = [ ["N", "R", [0, +(INNER_HEIGHT/2 - 1), 4, 2, 0...
glb/cad_584839e68cf0.glb
Create a 120mm fan bracket by starting with a flat square plate measuring 120mm by 120mm with a thickness of 3mm. Hollow out the center of the plate by removing a square area of 116mm by 116mm, leaving a border 2mm wide on all sides. At each of the four corners of the plate, create a circular mounting pillar with a dia...
difference() { union() { cube([120,120,3]); translate([-4.9,5,0])cube([5,110,3]); translate([120,4.9,0])cube([5,110,3]); } translate([2,2,-0.5])cube([116,116,4]); translate([115,-0.5,-0.5])cube([6,6,4]); translate([-0.5,115,-0.5])cube([6,6,4]); translate([115,115,-0.5])cube([6,6,4]); translate([-0.5,-0.5,-0....
glb/cad_98b1e72d28d3.glb
Create a RepJack A1 wire connector consisting of two interlocking parts: a male terminal and a female housing. First, create the female housing as a cube with a side length of 23mm. Remove a central void from this cube by creating a male-shaped cutout. This cutout consists of a central rectangular block measuring 19m...
module conn_male(size=23, thickness=1.5, full=false) { difference() { union() { translate([0,size*0.3,0]) cube([size-(thickness*2),(size-(thickness*2))*2,size-(thickness*2)], center=true); translate([size/3,(size/3)-thickness]) rotate([0,0,145]) cube([size*0.2,size/4,size-(thickness*2)], center=true); } if...
glb/cad_89f1b71c2cd3.glb
Create a ReprapDiscount Full Graphic Smart Controller Box consisting of a top cover and a bottom base. For the bottom base, create a rectangular enclosure with an outer footprint of 93.04mm by 86.95mm and a height of 10.64mm. The walls should be 2.4mm thick. At the four corners, add mounting posts with a diameter of ...
single_wall = 0.6; small_wall = 2*single_wall; normal_wall = 4*single_wall; stable_wall = 6*single_wall; fnr = 0.4; compensate = 0.15; lcd_total_hight = 18; lcd_top_hight = 14.5; lcd_width = 93.04; lcd_depth = 86.95; lcd_display_width = 73; lcd_display_depth = 41; lcd_display_width_outer = 80; lcd_display_depth_o...
glb/cad_1d3a3f5fc891.glb
Create a Makerfarm i3v X-axis belt clamp. Start with a base plate that is 72.31mm long, 15.53mm wide, and 2mm thick. On top of this base, add two symmetrical clamping sections. Each section consists of a lower block and an upper gripping piece that together create a channel to hold a belt. The total height of the ass...
Len=72.314; Wid=15.5316; X1=25.0; Y1=4.5; X2=33.25; Y2=-1.16; Ht3=3-.01; Ht6=6.51; Ht9=9; Thk=2.0; $fn=32; M3=3.5; M3Head=5.9; M3Ht=16; module Chamfer() { cylinder(d=4,h=Ht9+2,$fn=4); } module DrawBase() { translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polygon(points = [...
glb/cad_f08643c1a04b.glb
Create a Makerfarm i3v X-axis belt clamp. Start with a base plate that is 2mm thick. On top of this base, build a symmetrical body with a total height of 9mm. The overall footprint is approximately 74mm long and 15.5mm wide. The main body features a central recessed channel to accommodate a belt. At each end of the cl...
Len=72.314; Wid=15.5316; X1=25.0; Y1=4.5; X2=33.25; Y2=-1.16; Ht3=3-.01; Ht6=6.51; Ht9=9; Thk=2.0; $fn=32; M3=3.5; M3Head=5.9; M3Ht=16; module Chamfer() { cylinder(d=4,h=Ht9+2,$fn=4); } module DrawBase() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polyg...
glb/cad_09e0bec49596.glb
Create a Makerfarm i3v X-axis belt clamp. Start by constructing a central base plate with a thickness of 2mm. On top of this base, add two symmetrical clamping wings that extend outward to the left and right. These wings should have a height of 6.51mm and a profile that tapers slightly to fit against an aluminum extrus...
Len=72.314; Wid=15.5316; X1=25.0; Y1=4.5; X2=33.25; Y2=-1.16; Ht3=3-.01; Ht6=6.51; Ht9=9; Thk=2.0; $fn=32; M3=3.5; M3Head=5.9; M3Ht=16; module Chamfer() { cylinder(d=4,h=Ht9+2,$fn=4); } module DrawBase() { color("red") translate([0,0,0]) linear_extrude(height = Thk, center = false, convexity = 10)polyg...
glb/cad_1cd4133ade24.glb
Create a Solar Burner Tube, which is a hollow parabolic reflector. The main body is a paraboloid with a height of 40mm. The interior is a hollowed-out parabolic cavity designed to focus light toward a smaller aperture at the bottom. The wall thickness of the reflector is 1.7mm. The bottom opening, or focus area, has a...
print_object=1; height=40; focus_area=18; resolution= 45; wall=1.7; lid=3; clr=0.2; module paraboloid (y=50, f=10, 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(){ projecti...
glb/cad_aafabb4996be.glb
Create a RAMPS 1.4 electronics enclosure consisting of a main box and a removable lid. The main box is a rectangular shell with a height of 65mm. The interior cavity is designed to house a RAMPS board, with the board elevated 5mm from the bottom floor. Create six cylindrical mounting posts at the board's corners to s...
part = 3; resolution = 0.4; single_wall = 0.6; box_hight = 65; mount_type = 0; smartadapter = false; topfan = true; backstyle = 2; resetbutton = true; ramps_xtra_front = 0; ramps_xtra_back = 0; ramps_xtra_left = 0; ramps_xtra_right = 0; factor_lid = 3; factor_...
glb/cad_132859fc4095.glb
Create a Customizable Power Ring by constructing a ring band and an attached decorative emblem. For a ring size 12, create a circular band with an inner radius of 10.7mm and a thickness of 2.5mm. The band should be modified so that it is not a full circle but extends outward to merge with a front-facing emblem. The em...
ring_size = 12; ring_thickness = 2.5; ring_length_modifier = .5; emblem_radius = 10; emblem_depth = 3; Question_1 = 0; Question_2 = 0; Question_3 = 0; Question_4 = 0; Question_5 = 0; Question_6 = 0; Question_7 = 0; Question_8 = 0; Question_9 = 0; Question_10 = 0; answer_total = Question_1 + Question_2 + ...
glb/cad_4c23ab2e4e34.glb
Create a 3D model of a Hexakistetrahedron. Start with a sphere with a radius of 110mm centered at the origin. To form the final polyhedral shape, carve the sphere using a series of intersecting planes. The geometry is defined by cutting the sphere with planes based on Miller indices (3, 2, 1). Specifically, create a s...
mark = 1; if (mark==1) scale(0.6) var_hexakistetrahedra(1,1,1,3,2,1); else if (mark==2) scale(4/3) var_hexakistetrahedra(1,1,1,4,2,2); else if (mark==3) scale(4/9) var_hexakistetrahedra(1,1,1,2,2,1); else if (mark==4) var_hexakistetrahedra(1,1,1,2,2,2); else {} module var_hexakistetrahedra(a,b,c,p,q,...
glb/cad_01e2980793e4.glb
Create a customizable name tag consisting of a base plate and two layers of embossed text. Start by creating the base plate as a rectangular slab with rounded corners. The plate should be 85mm wide, 25mm high, and 5mm thick. On the underside of this plate, center two cylindrical holes, each 8mm in diameter and 5mm de...
include <write/Write.scad> Line1Text = "Jhack"; Line2Text = "The Geek Of the Year"; Plate_width=85; Plate_Height =25; Plate_thickness=2; Text_Height_1=12; Text_Height_2=6; Text_depth=.8; Text1_Dist_top=6; Text2_Dist_top=20; Plate_Border_1=1; Plate_Border_2=1; Backing ="magents"; Foot_angle = 45; magent_diameter=8; m...
glb/cad_cb0f6d7e7e19.glb
Create a Metal Bowden J-Head Mount consisting of a base plate and a mounting head. Start with a rectangular base plate measuring 44mm x 44mm x 6mm. At the four corners of this plate, centered 15.5mm from the edges, create holes with a radius of 1.6mm and a depth of 7mm, each featuring a countersink with a radius of 2.7...
preview_part = 3; oversize = 2; include <MCAD/nuts_and_bolts.scad>; if (preview_part == 1) { translate([0,0,3]) bottom_half(); } if (preview_part == 2) { translate([0,0,7]) top_half(); } if (preview_part == 3) { translate([0,0,0]) full_assembly(); } $fn = 360; module base_plate_with_holes() { difference()...
glb/cad_e48ffb21559f.glb
Create a Morse Practice Key side plate. Start by creating a rectangular block 15mm wide, 4mm thick, and 15mm high. On top of this block, add a semi-cylindrical cap with a radius of 7.5mm and a thickness of 4mm, centered on the top face. Extend the bottom of the block downward with a smaller rectangular peg that is 7.5m...
resolution = 20; nozzle = 0.4; M3 = 3.0; spring_radius = 3; spring_length = 5; base_hole = (M3 + nozzle)/2; base_x = 80; base_y = 30; base_t = 5; pad_radius = 5; pad_height = 2; side_y = 4.0; side_x = 10; side_l = 15; rocker_axis_height = 15; rocker_pivot_width = 10.4; rocker_arm_length = 80; rocker_arm_width = 6...
glb/cad_2cf613bd3c64.glb
Create a cable holder consisting of a rectangular base with three integrated cable clips. The base is a block 5mm thick, with a total length of 21.5mm and a width of 9.5mm. At each end of the base, center a vertical hole 3.7mm in diameter that passes through the thickness. At the top of these holes, create a counters...
N = 3; Dh0 = 3.7; Dh1 = 7; D1 = 4.5; D0 = D1 + 3; NL = D0 + 2; d = 5; h = D0 + 2; L = NL*N - (NL-D0) + h; facets = 24; rotate ([90,0,90]) difference() { union() { cube([L, d, h], center=true); translate ([+L/2, 0, 0]) rotate([90,0,0]) cylinder(r = h/2, h = d, center=true, $fn=facets); translate ([-L/2, 0, ...
glb/cad_818f2baed60d.glb
Create a parametric saddle clamp designed to hold a pipe with a diameter of 25.4mm. Start by creating a central semi-cylindrical saddle with a width of 20mm and a wall thickness of 2mm. The inner radius of this saddle should match the pipe radius (12.7mm). Extend two flat mounting tabs outward from the ends of the sad...
pipe_units = "mm"; pipe_diameter = 25.4; strap_width = 20; strap_tab = 15; strap_thickness = 2; hole_diameter = 4; fillet_radius = 4; chamfer_radius = 4; resolution = 90; hole_rad = hole_diameter/2; inchMetric = 25.4; pipe_OD = (pipe_units == "inches") ? pipe_diameter * inchMetric : pipe_diameter; pipe_rad = ...
glb/cad_89e02b919bb2.glb
Create an X-follower idler plate with a base rectangular footprint of 53.4mm width, 27.8mm height, and 5mm thickness. At two symmetrical positions along the Y-axis, centered at 10.5mm from the center, create conical bearing supports. Each support has a base diameter of 15mm, tapering to a top diameter of 5mm. Bore a ...
$fs = 0.1; WIDTH = 53.4; HEIGHT = 27.8; TCUTHOR = 11; STHOR1 = 4; STHOR2 = 19; MHOR1 = 11; MHOR2 = 31.59; B_DIA = 8; B_WI = 4; B_HO = 3; A_ZDIST = 13.9 ; A_YDIST = 11 - 0.5 ; A_DIA = 9.5 ; A_CLERANCE = 9; union(){ difference(){ union() { cube([WIDTH,HEIGHT,5]); translate ([15,A_YDIST-(A_DIA+B_DIA)/2,0]) ...
glb/cad_3e66f2600ed6.glb
Create a small pillbox with a sliding lid. The main body is a rectangular block with overall dimensions of 21mm width, 30mm length, and 17mm height. Inside this body, carve out a horizontal cylindrical cavity with a radius of 6mm and a length of 22mm, centered 4mm from the side walls and 5.2mm from the bottom. To allow...
tol = 0.01; tol2 = 0.5; wall = 4; wall2 = 2; wall3 = 3; pilld = 8; pillh = 4; gap = 2; vpills = 2; hpills = 5.5; slant = 2; dentoffx = 1; dentoffy = 2; dentw = 6; cavr = pilld/2+gap; cavsp = pilld+gap; lidh = 3; lidlip = 4; boxw = cavr*2+wall*2; boxl = cavr*4+wall*2; cavh = gap*(vpills-1); boxh= pillh*vpills + c...
glb/cad_02cdbfd7a51d.glb
Create a 3D model of an E3D-v6 Volcano All Metal HotEnd. Start by building the base assembly along the Z-axis. Create a cylinder with a radius of 8mm and a height of 7mm. On top of this, add a cylinder with a radius of 6mm and a height of 8mm, followed by another cylinder with a radius of 8mm and a height of 8mm. Above...
fnresolution = 0.4; detaillevel = 1; print_part(); module print_part() { e3d(); } module e3d() { difference() { union() { translate([0,0,0]) fncylinder(r=8,h=7); translate([0,0,6]) fncylinder(r=6,h=8); translate([0,0,13]) fncylinder(r=8,h=8); translate([0,0,20]) fncylinder(r=11.15,h=26); translat...
glb/cad_fc96ddbf4977.glb
Create a Tripod Camera Mount Quick Release Plate by starting with a rectangular base measuring 45mm wide, 46.5mm deep, and 7.8mm thick. Centered at the coordinates X=22.5 and Y=24, create a vertical cylindrical hole with a radius of 4mm that passes completely through the base. Additionally, create a rectangular block m...
module chop() { translate([ -14, 0, 0 ]) import_stl(file = "example016.stl", convexity = 12); } module cam_mount() { union () { difference () { translate([-8,-12, 7]) cube([60,70,5], center = false); translate([22.5,24,0]) rotate([0,0,0]) cylinder(r=4, h=100, center=true, $fn=390); } difference() { cube([45,4...
glb/cad_65e85d427989.glb
Create a chamfered cube with overall dimensions of 60mm in width (X), 100mm in depth (Y), and 80mm in height (Z). Apply a 5mm chamfer to every edge of the object. This includes all four vertical side edges, all four edges along the top face, and all four edges along the bottom face. The resulting shape should be a re...
chamfercube([60,100,80],side=[5,5,5,5],top=[5,5,5,5],bottom=[5,5,5,5],x=false,y=false,z=false); module chamfercube(xyz=[1,1,1],side=[0,0,0,0],top=[0,0,0,0],bottom=[0,0,0,0],x=false,y=false,z=false) { translate([x==true?-xyz[0]/2:0,y==true?-xyz[1]/2:0,z==true?-xyz[2]/2:0]) difference() { cube(xyz); if(side[0]>=0) ...
glb/cad_72990c2bd1e6.glb
Create a Pectoral Cross with a total thickness of 5mm. The main body is formed by the union of two centered rectangular prisms with rounded corners: a vertical bar measuring 10mm wide by 40mm high, and a horizontal bar measuring 30mm wide by 10mm high, positioned 5mm above the center of the vertical bar. All exterior c...
T = 5; R = 3; HOLE_R = 2.0; SLICE = 0.4; module cross () { d = R * 2; difference () { minkowski () { union () { cube (size = [10 - d, 40 - d, T], center = true); translate (v = [0, 5, 0]) cube (size = [30 - d, 10 - d, T], center = true); } ...
glb/cad_d5e592650749.glb
Create a Dodekaeder component by constructing a hollowed-out pentagonal ring. Start with a regular pentagon that has an outer radius of 80mm. From this shape, remove a smaller concentric pentagon with a radius of 76mm to create a wall thickness of 4mm. Extrude this pentagonal ring to a total height of 4mm. To add inter...
lang=80; dick=4; hoch=4; difference() { translate([0,0, 0]) cylinder (r=lang, $fn=5,h=1, center = false); translate([0,0,0]) cylinder (r=lang-dick, $fn=5,h=1, center = false);} difference() { translate([0,0, hoch/4]) cylinder (r=lang, $fn=5,h=hoch/2, center = false); translate([0,0,0]) cylinder (r=lang-dick+1, $fn=5,...
glb/cad_a2f0d26b7e2b.glb
Create a WANHAO I3 Adjustable Z endstop by starting with a rectangular block measuring 24mm in length, 12mm in width, and 7mm in height. Drill four vertical holes completely through the block, each with a radius of 1.15mm. Position the first hole 3mm from the front face, centered along the height and width. Place the s...
width=12.0; height=7; length=24; holecenters=6.2; frameoffset=3; switchoffset=15; boltrad=2.3/2; $fn=36; difference() { cube([length,height,width]); translate([frameoffset,height/2,0]) cylinder(r=boltrad,h=width); translate([frameoffset+holecenters,height/2,0]) cylinder(r=boltrad,h=width); ...
glb/cad_47ccf4296908.glb
Create a 3D model of an Iron Pyrites crystal by starting with a sphere of radius 110mm and carving away sections using a series of intersecting planes to create a polyhedral shape. First, create a cubic core by removing material with six planes positioned at a distance of 60mm from the center along the X, Y, and Z ax...
size = 50; size2= 155; size3= 60; scale (0.5) iron_pyrites(1,1,1,2,1); module iron_pyrites(a,b,c,h,k) { difference() { sphere (r=110, center = true); union() { face_hk0(h,k); face_0kl(h,k); face_h0l(k,h); face_h00(); face_0k0(); face_00l (); face_hkl(2,2,2); } }...
glb/cad_717e197fdcb5.glb
Create a 3D model of a Pentagonal Dodecahedron, specifically the form associated with Iron Pyrites. Start with a sphere with a radius of 110mm centered at the origin. To create the final polyhedral shape, carve the sphere by removing material using a series of planar cuts. The cuts are defined by Miller indices (1, 1,...
scale(0.6) dya_dodecahedron(1,1,1,3,2,1); module dya_dodecahedron(a,b,c,p,q,r) { size = 60; difference() { sphere (r=110, center = true); union() { face_hkl(p,q,r); face_hkl(q,r,p); face_hkl(r,p,q); } } module mkplane(x2,y2,z2,hthick,r1,r2) { translate(v=[r2*x2,r2*y2,...
glb/cad_a414df94c669.glb
Create a 3D model of a Pentagonal Dodecahedron, specifically the asymmetric form associated with Iron Pyrites. Start with a base sphere with a radius of 110mm. To create the faceted crystal shape, carve away sections of the sphere using a series of intersecting planes. Position twelve planar cuts to create the faces. ...
scale (0.4) pen_dodecahedron(1,1,1,2,1); module pen_dodecahedron(a,b,c,h,k) { size = 60; difference() { sphere (r=110, center = true); union() { face_hk0(h,k); face_0kl(h,k); face_h0l(k,h); } } module mkplane(x2,y2,z2,hthick,r1,r2) { translate(v=[r2*x2,r2*y2,r2*z2]) rot...
glb/cad_95d9e5f8bef6.glb
Create a swivel wall mount for a tablet consisting of two main parts: a wall plate and a protective case. First, create the wall plate. It is a flat rectangular base with a width of 191mm (calculated as half the tablet length plus two hinge radii). Centered on this plate, create a vertical cylindrical hole with a diam...
pbHeight = 131; pbLength = 196; pbThick = 11; pbCornerR = 0; pbBottomCutLength = 48; pbBottomCutOffsetL = 71; pbCutProtrude = 10; pbTopMCutLength = 48; pbTopMCutOffsetL = (pbLength-pbTopMCutLength)/2; pbTopLCutLength = 10; pbTopLCutOffsetL = 13; pbTopRCutLength = 22; pbTopRCutOffsetR = 2; pbSpkCutLength = 6; pbSpkCutHe...
glb/cad_f37f4cd05201.glb
Create a rectangular cuboid with dimensions of 60mm in width (X), 100mm in depth (Y), and 80mm in height (Z). Position the cuboid so that it is centered along the X-axis and the Z-axis, while remaining aligned to the origin (0,0,0) along the Y-axis.
centercube([60,100,80],x=true,z=true); module centercube(xyz=[10,10,10],x=false,y=false,z=false,center=false) { translate([x==true?-xyz[0]/2:center==true?-xyz[0]/2:0,y==true?-xyz[1]/2:center==true?-xyz[1]/2:0,z==true?-xyz[2]/2:center==true?-xyz[2]/2:0]) cube(xyz); }
glb/cad_8a796cd5d6e1.glb
Create a Bowden mount for an E3D-style hotend. Start with a rectangular base plate 44mm wide, 5mm thick, and 15.5mm deep. Center two M3 screw holes along the width, spaced 30mm apart, each with a countersink of 3.4mm radius and 1.5mm depth. Clip the two outer corners of the base plate at 45-degree angles. Attached to ...
$fn=60; base_th = 5; joint_len=4; nut_diam = 6.9; module half_joint() { translate([joint_len/2,0,6/2-0.2]) cube([4,5,9.6], center=true); difference() { translate([joint_len/2+5.5,0,6/2-0.2]) cylinder(r=4.5,h=9.6, center=true); translate([joint_len/2+5.5,0,6/2]) cylinder(r=3.4/2,h=30, center=true); } ...
glb/cad_addbfb319632.glb
Create a Bowden mount for an E3D-style hotend. Start with a central rectangular block measuring 6.5mm by 12.2mm by 8mm. To the right of this block, attach a clamp assembly. This clamp consists of a base rectangular prism measuring 32.65mm by 9.6mm by 6mm, with a smaller rectangular prism of 18.4mm by 5.4mm by 9.4mm c...
$fn=64; module clamp() { difference() { union() { translate([0,-0.8,6/2]) cube([32.65,9.6,6],center=true); translate([0,1.3,9.4/2]) cube([18.4,5.4,9.4],center=true); } translate([16.9,5.2,7]) rotate ([0,0,45]) cube([6,6,15],center=true); translate([16.9,-5.8,7]) rotate ([0,0,35]) cube([8,6,...
glb/cad_7b5680b241d2.glb
Create a spool extender consisting of two mirrored components. For one component, start with a rectangular block 19mm wide, 30mm long, and 7.8mm thick. Remove a large semi-cylindrical section from the side using a cylinder with a radius of 147.5mm and a height of 5.2mm, leaving a curved outer wall. Within the remaining...
spool_diameter = 295; hole_r = 3.1; layer_width = 0.65; module Spool_Extender() { rotate([90,0,0]) translate([-spool_diameter/2+15,15,0]) union() { difference() { translate([spool_diameter/2-15,-15,0]) { union() { cube([19,30,5.2+4*layer_width]); translate([17,0,0]) rotate([0,30,0]) ...
glb/cad_c1093b91e9fb.glb
Create an Improved Parametric Mounting Bracket designed for 1U rack equipment and pegboard mounting. Start by creating a vertical mounting plate with a thickness of 2.5mm. This plate should have a total height of 44.4mm to match 1U rack standards. On this plate, create a vertical slot for equipment mounting. The slot...
slotConfig = 2; baseDepth = 2.5; baseDiameter = 3.2; baseAllowance = 4; baseDistance = 3; slotDepth = 2.5; vSlotLength = 32; hSlotLength = 15; slotDiameter = 3.2; slotAllowance = 4; slotHeight = 4; supportWidth = 2.5; pegBoard = true; baseSlot = false; bracketMirror = false; slotSupport = true; rack1U = true; inch...
glb/cad_54cd0585cf37.glb
Create four distinct cylindrical shapes, each with a height of 20mm and a radius of 10mm, arranged in a grid. The first cylinder should be a smooth, high-resolution solid cylinder. The second cylinder, positioned 21mm away along the X-axis, should be a low-resolution approximation of a cylinder with a coarse facet co...
resolution = 0.5; fncylinder(r=10,h=20); translate([21,0,0]) fncylinder(r=10,h=20,resolution=3); translate([0,21,0]) fncylinder(r=10,h=20,fn=6); translate([21,21,0]) difference() { fncylinder(r=10,h=20); fncylinder(r=8,h=20,fn=8,enlarge=1); } module fncylinder(r,r2,d,d2,h,fn,center=false,enlarge=0,pi=3.1415926536){...
glb/cad_9f88423647db.glb
Create a rectangular block with dimensions 60mm in width, 100mm in depth, and 80mm in height. Apply a consistent fillet radius of 10mm to every edge of the block, including all four vertical side edges, the four edges of the top face, and the four edges of the bottom face. Ensure the rounded corners are smooth and geom...
filletcuberesolution = 0.5; filletcube([60,100,80],side=[10,10,10,10],top=[10,10,10,10],bottom=[10,10,10,10]); module filletcube(xyz=[1,1,1],side=[0,0,0,0],top=[0,0,0,0],bottom=[0,0,0,0],x=false,y=false,z=false,center=false,resolution=filletcuberesolution) { translate([x==true?-xyz[0]/2:center==true?-xyz[0]/2:0,y==t...
glb/cad_458ae4547d9c.glb
Create a solder fumes extractor fan mount. Start with a rectangular base measuring 50mm wide, 45mm deep, and 3mm thick. On top of this base, add two symmetrical leg structures. Each leg is formed by a block 35mm wide, 45mm deep, and 15mm high, rotated 20 degrees along the X-axis. From these legs, remove a central rec...
module negCube(a,b,c) { translate([-0.01,-0.01,-0.01]){ scale([1.01,1.01,1.01]){ cube([a,b,c]); } } } module horizontalHole(d,x,y,z){ rotate(90,[x,y,z]){ cylinder(h = 200, r=(d/2), center = true); } } module legs(){ difference(){ rotate([0,20,0]){ difference()...
glb/cad_4c29bbc608be.glb
Create a heater knob by starting with a cylinder that has a radius of 3mm and a height of 11mm, centered on the origin. From this main body, remove a rectangular section using a cube with dimensions of 8mm in width, 4mm in depth, and 14mm in height. Position this cube so that it is centered on the Z-axis and shifted 3....
difference(){ cylinder(r=3,h=11,center=true,$fn=50); translate([0,3.5,0])cube([8,4,14],center=true); }
glb/cad_a3343c70df3a.glb
Create a heater knob by starting with a central base cylinder 40mm in diameter and 6mm high. Centered on top of this base, add a tapered section that transitions from a radius of 8mm at the bottom to 4mm at the top over a height of 16mm. Above this taper, place a final vertical cylinder with a radius of 6mm and a heigh...
numofgrips=12; difference(){ union(){ cylinder(r=20,h=6,center=true,$fn=100); translate([0,0,11.5])cylinder(r=6,h=23,center=true,$fn=50); translate([0,0,10])cylinder(r1=8,r2=4,h=16,center=true,$fn=50); for (i=[1:numofgrips]) { rotate(i*360/numofgrips, [0,0,1]) translate([18,0,0]) cylinder(r=4,h=5.99,center=true,$fn...
glb/cad_efd2638916b6.glb
Create a contractible spool for 1.75mm filament coils consisting of two hubs and several fork arms. First, create a hub with a height of 12mm and a central hole with a diameter of 6mm. The hub body is a cylinder with a radius of 12.6mm. Add three mounting wings extending from the center to a radius of 30mm. Each wing...
$fn=120; module chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=(r>0?r:r2),h=h-2*d); cylinder(r1=(r?r:r1)-d,r2=(r>0?r:r2)-d,h=h); } } m3r=3.2/2; f175r=2/2; module fork_arm( l1=65, l2=80, w=12, h=5, alpha=35, beta=25, m=3 ){ translate(...
glb/cad_cb66c6dae2f9.glb
Create a 19mm square aluminum tube corner connector. Start with a central 19mm cube. Remove a vertical cylindrical hole through the center of this cube with a radius of 2mm, and add a wider countersunk cylindrical recess with a radius of 4mm at the top of this hole. Attach three smaller cubes to the central cube, each...
Tube_Outside_Size = 19; Wall_Thickness = 1.7; Bottom_Screw_Diameter = 4; Bottom_Screw_Recess_Diameter = 8; Leg_Screw_Diameter = 3; TubeInsideSize = Tube_Outside_Size - (Wall_Thickness*2); translate ([0,0,0]) { difference() { cube([Tube_Outside_Size,Tube_Outside_Size,Tube_Outside_Size]); translate([(Tube_Outside...
glb/cad_75cd6d431d87.glb
Create a mounting collar for a flashlight. Start with a main hollow cylinder that has an outer diameter of 29.6mm and a wall thickness of 3.2mm, extending to a height of 31mm. On the exterior of the cylinder, integrate a rectangular mounting block that is 30mm wide, 10mm high, and 2mm thick, centered vertically. With...
$fn=256; difference(){ union(){ linear_extrude(height=5)polygon(points=[[0,0],[25.7,-0.35],[25.7,14.35],[0,14]]);; translate([25.7,14/2-3,0])cube([3,6,5]); hull(){ translate([1,7,-33.7/2]) hull(){ rotate([0,90,0])rotate_extrude(convexity=10, $fn=100) translate([(29.6+1+3.2)/2, 0, 0]...
glb/cad_ce871cbb86a4.glb
Create a vibration reduction clamp by starting with a solid rectangular block measuring 77mm in length, 10mm in width, and 4mm in height. From this block, remove a smaller rectangular section to create a long, open-topped U-shaped channel. This cutout should be 70.6mm long, 10mm wide, and 111mm high, centered along the...
module klemme() { difference() { cube([77, 10, 4], center = true); translate([0, 4, 0]) cube([70.6, 10,111], center = true); } } klemme();
glb/cad_85a19fe084a5.glb
Create a flat ethernet holder by starting with a main body that is 20mm wide and 12mm high. The total length of the body is 75mm, formed by a central rectangular block with semi-cylindrical ends of 20mm diameter. Remove a 4mm diameter vertical hole through the center of both semi-cylindrical ends. At the top of these...
$fn = 30; widthOfBody = 20; heightOfBody = 12; numberOfSlots = 5; widthOfSlots = 8; widthOfScrew = 4; widthOfWalls = 5; lengthOfBody = (widthOfBody) + ( widthOfSlots * numberOfSlots ) + ( widthOfWalls * ( numberOfSlots - 1 ) ); difference(){ union(){ cube([widthOfBody, lengthOfBo...
glb/cad_87586a2631ac.glb
Create a series of hollow prismatic shapes arranged in a grid. Each object is a hollowed-out shell based on a prism or cylinder with a specified number of faces. For the first group, create a set of objects where the number of faces increases from 3 to 7. For each, define a base size of 15mm by 35mm with a height that...
for (i=[3:7]) for(j=[0:2]) { translate([i*22,j*40,0]) prism(fn=i,base=[15,35,i+j+10],center=[true,true,false],oblong=true,shell=j+3,zrot=(i+j)*15); } for (i=[32:35]) for(j=[0:2]) { translate([(i-28)*45,j*40,0]) rotate([0,0,(2*(i-32)+j)*10]) prism(fn=i,base=[35/15*(i-24),35,(i-24)+j+10],center=[true,true,false],oblo...
glb/cad_4399afefcd4f.glb
Create a pot stirrer consisting of a central shaft and radiating mixing blades. Start by creating a central vertical shaft with a diameter of 8mm and a length of 70mm. At the base of the shaft, create a circular disc with a diameter of 115mm and a thickness of 2mm. From this disc, extend three equidistant arms radiat...
layerHeight = 0.4; wallThickness = layerHeight * 1.8; use <Parametric Jaw Coupling with optional spider.scad> radius = 12; precision = 100; slack = 1; angleSlack = 1; height = 5; thickness = 4; numOfStruts = 2; padding = 0.05; spiderType = 0; topcouplerbore = 3; topHubThickness=6; topHubRadius=radius-thickness; topH...
glb/cad_5b3330747f7c.glb
Create a twisted polygon vase by stacking 100 thin cylindrical layers vertically to a total height of 70mm. Each layer should have a height of approximately 0.77mm and a facet resolution of 30 sides. The radius of the layers must vary along the vertical axis: start with a base radius of 25mm, transition to a maximum ...
t2=60; t=t2/2; m2=80; m=m2/2; b2=50; b=b2/2; h=70; layers=100; r=.5; d="Yes"; smoothness=30; fh="No"; angle = 90; layersq=layers*layers/4; $fa=smoothness; floor=2/(h/layers); for (i=[0:layers]) { if (fh=="No") { translate([0,0,i/layers*h]) rotate([0,0,r*i+angle]) cylinder(r=b+i/layers*(t-b)+((i-layers/2)*(...
glb/cad_f84e69d43d7a.glb
Create a twisted, rounded square vase by stacking 90 thin layers vertically to a total height of 80mm. Each layer is a rounded square created by the Minkowski sum of a centered square and a cylinder with a radius of 10mm. The dimensions of the squares vary by layer: the base layer starts with a width of 30mm, and the...
t=45; m=55; b=30; h=80; layers=90; r=1; ps=10; points = 1; d="Yes"; angle = 90/points; layersq=layers*layers/4; for (i=[0:layers]) { for (j=[1:points]) { translate([0,0,i/layers*h]) rotate([0,0,r*i+angle*j]) minkowski (){ cube([b+i/layers*(t-b)+((i-layers/2)*(i-layers/2)-layersq)/layersq*((b+t)/2-m),b...
glb/cad_b2178c03b76b.glb
Create a 3D model of a Cuprite crystal based on a pentagonal icositetrahedron. Start with a base sphere with a radius of 110mm. From this sphere, carve out several flat planar faces to create a complex polyhedron. First, create a set of faces based on the Miller indices (9, 8, 6). This involves removing material using...
size = 400; size2= 112; size3= 17; scale(2) cuprite(1,1,1,9,8,6); module cuprite(a,b,c,p,q,r) { difference() { sphere (r=110, center = true); union() { face1_hkl(p,q,r); face2_hkl(p,r,q); face1_hkl(q,r,p); face2_hkl(q,p,r); face1_hkl(r,p,q); face2_hkl(r,q,p); face...
glb/cad_76bf4c2470bf.glb
Create an Incubator Latch consisting of a main body and a mounting base. Start by creating a cylindrical mounting base with a diameter of 11mm and a height of 8mm. Centered within this base, add a vertical screw hole with a diameter of 4.1mm that passes through the entire height. Attached to this base, construct the m...
lt=65; wd=20; xlt=30; xwd=18; phod=8; phid=3; sang=30; tk=6; bh=1; lwd=14; lad=19; lah=8; llt=25; lch=1.5; sd=3.5; mxd=8; mxh=5; hl=50; xw=0.4; module mimr(){ linear_extrude(height=1.5){ polygon([[0,0], [0,10], [1.5,10], [3.5,6], [4,6], [6,10], [7.5,10], [7.5,0], [6,0], [6,7], [4.5,4], [3,4], [1.5,7], [...
glb/cad_f0fcc7f18950.glb
Create an Incubator Latch consisting of a main body and a protruding pin. Start by creating a main bar that is 65mm long and 20mm wide with a thickness of 6mm. At one end of this bar, create a rectangular extension that is 30mm long and 18mm wide. At the far end of the main bar, add a cylindrical pin with an outer dia...
lt=65; wd=20; xlt=30; xwd=18; phod=8; phid=3; sang=30; tk=6; bh=1; lwd=14; lad=19; lah=8; llt=25; lch=1.5; sd=3.5; mxd=8; mxh=5; ghd=8; ghx=2; ph=2; pw=3; pbo=3; hl=50; xw=0.4; module mimr(){ linear_extrude(height=1.5){ polygon([[0,0], [0,10], [1.5,10], [3.5,6], [4,6], [6,10], [7.5,10], [7.5,0], [6,0],...
glb/cad_12159ba335cf.glb
Create an incubator latch consisting of a main handle bar and a cylindrical pivot mechanism. Start by creating a rectangular handle bar 65mm long, 20mm wide, and 6mm thick, with rounded corners of 3mm radius. Centered on the end of this bar, add a rectangular extension 30mm long and 18mm wide. At the far end of this ...
lt=65; wd=20; xlt=30; xwd=18; phod=8; phid=3; sang=30; tk=6; bh=1; lwd=14; lad=19; lah=10; llt=25; sd=3; mxd=8; mxh=5; xw=0.4; translate([0,-30,tk/2]) rotate([180,0,0]) difference(){ color("red") union(){ linear_extrude(height=tk+xw, center=true){ minkowski(){ square([lt-sd*3,wd-sd*3],center=true); ...
glb/cad_262080fbd92e.glb
Create an Incubator Latch consisting of a main body and a cylindrical mounting head. Start by creating a flat, elongated handle body with a length of 50mm and a thickness of 8mm. The body should taper from a wider base to a narrower end. At the wider end, integrate a cylindrical mounting boss with a diameter of 19mm an...
lt=65; wd=20; xlt=30; xwd=18; phod=8; phid=3; sang=30; tk=6; bh=1; lwd=14; lad=19; lah=8; llt=25; lch=1.5; sd=3.5; mxd=8; mxh=5; ghd=8; ghx=2; ph=2; pw=3; pbo=3; hl=50; xw=0.25; module mimr(){ linear_extrude(height=1.5){ polygon([[0,0], [0,10], [1.5,10], [3.5,6], [4,6], [6,10], [7.5,10], [7.5,0], [6,0]...
glb/cad_5d56fac762bb.glb
Create a drain plug consisting of a cylindrical base and a gripping upper section. Start with a solid bottom disk that has a radius of 16mm and a height of 2mm. Directly above this, place a ring with an outer radius of 16mm, an inner radius of 12mm, and a height of 2mm, positioned so that its bottom sits 7mm above the ...
$fa=2; $fs=2; gap=7; inner_radius=14; outer_radius=16; tab_depth=20; taper_height=20; wall_width=2; gap_edges = gap + wall_width * 2; gap_taper = gap_edges + taper_height; intersection() { union(){ translate([-wall_width / 2, -outer_radius, 0]) cube([wall_width, outer_radius * 2, gap_taper]); translate([-outer_r...
glb/cad_3f76f89a4500.glb
Create a puzzle piece keyring by starting with a square base measuring 15mm by 15mm with a thickness of 4mm. To form the puzzle edges, add and remove circular shapes with a radius of 2.8mm and a height of 6mm. On the right side, center a circular protrusion that extends outward. On the top side, center a circular cutou...
$fn=100; difference() { translate([0,0,0]) cube ([15,15,4]); translate([7.5,0.6,-1]) cylinder(6,2.8,2.8); translate([1,7.5,-1]) cylinder(6,2.8,2.8); } translate([16.5,7.5,0]) cylinder(4,2.8,2.8); translate([7.5,17,0]) cylinder(4,2.8,2.8); difference() { translate([15,0,0]) cylinder(1,2.4,2.4); translate([15,-0.2]) cyl...
glb/cad_b419a20ee67d.glb
Create a puzzle piece keyring by starting with a square base measuring 15mm by 15mm with a thickness of 4mm. On two opposite sides of the square, create semi-circular cutouts with a radius of 2.8mm and a depth of 6mm, centered at 7.5mm along the edges. On one of the remaining sides, add a protruding semi-circular tab w...
$fn=100; difference() { cube ([15,15,4]); translate([7.5,0.6,-1]) cylinder(6,2.8,2.8); translate([7.5,14,-1]) cylinder(6,2.8,2.8); } translate([16.5,7.5,0]) cylinder(4,2.8,2.8); difference() { translate([0,0,0]) cylinder(1,2.4,2.4); translate([0,0,-0.2]) cylinder(2,1.4,1.4); }
glb/cad_5b139cee92e3.glb
Create a puzzle piece keyring by starting with a square base measuring 15mm by 15mm with a thickness of 4mm. On two opposite sides of the square, add protruding semi-cylindrical tabs with a radius of 4mm and a height of 4mm, centered along the edges. On the remaining two opposite sides, create matching semi-cylindrical...
$fn=100; difference() { translate([0,0,0]) cube ([15,15,4]); translate([14,7.5,-1]) cylinder(6,2.8,2.8); translate([1,7.5,-1]) cylinder(6,2.8,2.8); } translate([7.5,17,0]) cylinder(4,2.8,2.8); translate([7.5,-2,0]) cylinder(4,2.8,2.8); difference() { translate([15,0,0]) cylinder(1,2.4,2.4); translate([15,-0.2]) cylind...
glb/cad_e63a1ef06819.glb
Create a hollow cylindrical post with an outer diameter of 50mm and a total height of 100mm. The post should have a wall thickness of 8mm, with the hollow section extending 25mm into the bottom of the cylinder. From this base shape, remove material to create four distinct holes, each with a diameter of 8mm and a leng...
include <tube.scad> $fn=60; dia = 50; len = 100; wall = 8; inset_len = 25; shaft_dia = 8; shaft_loc = (len/2 - 30); shaft_len = 130; module post() { difference() { cylinder(d=dia, h=len, center = true); translate([0, 0, -(len/2)]) tube(dia, inset_len, wall); } } difference() { post(); ...
glb/cad_29f352aae8f0.glb
Create a Connector Cover consisting of two symmetrical mirrored halves: a top cover and a bottom cover. For each half, start with a rounded rectangular block with a total length of 56mm, width of 29mm, and height of 13mm, using a corner radius of 5mm. Hollow out the center of each block to create a cavity that is 53m...
cavity_length = 50; cavity_width = 25; cavity_depth = 10; wall_thickness = 3; cable_diam = 5; module right(x) translate([+x,0,0]) children(); module left(x) translate([-x,0,0]) children(); module back(y) translate([0,+y,0]) children(); module fwd(y) translate([0,-y,0]) children(); module up(z) translate([...
glb/cad_febaafc0f15b.glb
Create a bed-shaped RC car shell. Construct four identical bed posts, each with a square footprint of 10mm by 10mm and a total height of 90mm. Each post should have rounded corners with a 2mm radius. The main body of the post is a square prism, but the top is capped with a rounded finish created by four spheres with a ...
tolerance = 0.2; bed_panel_thickness = 2 + tolerance; bed_panel_offset = 15; module bed_post(width=10, corner_radius=2, height=90) { $fn = 30; radius = corner_radius; w = (width / 2) - radius; sphere_diameter = 10; sphere_recess = 1; square_section_height = height - radius - sphere_diameter +...
glb/cad_2f1d34f0886a.glb
Create a bed-shaped RC car shell for a Tamiya TT02 chassis. The main body is a large, flat rectangular prism measuring approximately 400mm in length, 240mm in width, and 150mm in height. The base of the shell is defined by a custom 2D profile that is extruded to a height of 5mm. This profile is roughly rectangular bu...
fudge = 0.1; module poly_bedrearoutline(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[203.740158,-177.144442],[195.791605,-177.186269],[179.422247,-176.781644],[168.463921,-176.163435],[155.861381,-175.135443],[141.768288,-173.598276],[126.338305,-171.452545],[109.725094...
glb/cad_341915274dcf.glb
Create a bed-shaped RC car shell for a Tamiya TT02 chassis with overall dimensions of approximately 400mm in length, 240mm in width, and 150mm in height. The main body is a rectangular prism with rounded corners. To create the headlight assemblies, design a complex polygon shape based on the provided coordinates, ext...
tolerance = 0.3; module tail_brake() { $fn = 30; translate([0, 10, 0]) { hull() { rotate([90, 0, 0]) { translate([0, -4.5, 0]) cylinder(d=9, h=10); translate([0, 4.5, 0]) cylinder(d=9, h=10); } } } color("red") hull() { r...
glb/cad_8740c7fdbcb7.glb
Create a bed-shaped RC car shell for a Tamiya TT02 chassis with overall dimensions of approximately 400mm in length, 240mm in width, and 150mm in height. The main body is a large rectangular box with chamfered edges. To complete the assembly, create four light covers. For the two front light covers, start with a chamf...
use <DO-NOT-PRINT-light-placeholders.scad> module chamfered_box(width=10, height=10, depth=10, chamfer=0, wall_thickness=0) { difference() { cube([width, depth, height], center=true); if (chamfer > 0) { for (xpos=[-width/2, width/2], zpos=[-height/2, height/2]) { ...
glb/cad_c2a95c031665.glb
Create a bed-shaped RC car shell called the Bed-mobile. The main body is a rounded rectangular mattress measuring 225mm wide, 385mm long, and 20mm high. The corners of the mattress should be heavily rounded with a radius of 8mm. On the bottom surface, create four circular mounting holes with a diameter of 25mm. Two ho...
use <slot-connector.scad> width = 225; length = 385; mattress_height = 20; bed_width = 230; bed_length = 390; mattress_front_left(); module mattress_front_left() { slot_z = mattress_height / 2; difference() { mattress_section(x=1, y=1); translate([65, 130, slot_z]) rotate([90, 0, 90]) slot(...
glb/cad_c4868373f0f6.glb
Create a set of six identical rectangular plates. Each plate must be a solid block measuring 40mm in width, 2mm in thickness, and 15mm in height. Arrange these six plates in two parallel rows of three, ensuring they are laid flat and spaced evenly apart.
width = 40; depth = 2; height = 15; tolerance = 2; module slot_connector(width=width, depth=depth, height=height, tolerance=tolerance) { w = width - tolerance; h = height - tolerance; d = depth / 2; x_h = w / 2; y_h = d / 2; z_h = h / 2; cube([w, d, h], center=true); } module slot(width=...
glb/cad_96fa60f06817.glb
Create a bed-shaped RC car shell consisting of two identical side assemblies. Each assembly is composed of three rectangular planks with a thickness of 5mm and a height of 30mm. For one side, create a central plank with a length of 130mm and two outer planks, each 130mm long. Arrange these linearly to create a total ...
use <slot-connector.scad> use <bed-plate-support.scad> height = 30; width = 5; total_length = 390; outside_length = 130; inside_length = total_length - (2 * outside_length); module bed_side_decoration(length=100, height=30) { $fn = 30; scale = 0.95; inset = 5; extrude = 1; decoration_length = l...
glb/cad_8dd370b5f1ef.glb
Create a bed-mobile RC car shell support consisting of ten identical L-shaped brackets. Each bracket is formed by a profile with a height of 15mm and a width of 10mm, extruded to a length of 95mm. The profile is a right-angle polygon with vertices at [0,0], [15,0], [15,10], and [12.5,5], creating a structural support b...
module bed_plate_support(length=95, height=15, width=10) { rotate([0, -90, 180]) linear_extrude(length) polygon(points=[[0,0], [height,0], [height,width], [height-(width/2),width/2]]); } for (i=[0:7]) { translate([0, i*18, 0]) rotate([-90, 0, 0]) bed_plate_support(); } for (i=[0:1]) { t...
glb/cad_dc42c0d3e6ca.glb
Create a license plate model consisting of two separate plate frames: one rectangular and one square. For the rectangular plate, create a thin frame with a thickness of 0.5mm and rounded corners with a radius of 1.2mm. The overall dimensions are derived from a 1/10 scale of a layout containing a top space of 20mm, a ...
letter_height = 70; letter_width = 50; space_top = 20; space_bottom = 20; space_left = 20; space_right = 20; space_line = 15; space_letter_letter = 10; space_letter_number = 20; holder_depth = 0.5; border_radius = 1.2; module license_plate_frame(width, height, thickness, radius) { $fn = 30; echo("Generating...
glb/cad_a42d37425b12.glb
Create a bed-mobile RC car shell plate as a flat rectangular slab measuring 230mm wide, 390mm long, and 2mm thick. Center the plate on the origin. Remove four large circular mounting holes with a diameter of 6.5mm to accommodate the chassis body mounts. Position two holes at the front and two at the rear; the front p...
module bed_plate(h=2) { width = 230; length = 390; bumper_to_front_body_mount = 77; distance_body_mounts = 66; distance_front_rear_body_mounts = 257; body_mount_diameter = 6.5; $fn = 25; front_hole_y = -((length / 2) - bumper_to_front_body_mount - ((length - length)/2)); rear_hole...
glb/cad_ca55fde30406.glb
Create a bed-shaped RC car shell for a Tamiya TT02 chassis. The main body is a large, flat rectangular prism measuring approximately 400mm in length, 240mm in width, and 150mm in height. The base of the shell is defined by a custom 2D profile that is extruded to a height of 5mm. This profile is an irregular, elongate...
fudge = 0.1; module poly_bedfrontoutline(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[203.740158,-123.994839],[198.349151,-124.036658],[183.200324,-123.632029],[172.446817,-123.013821],[159.829962,-121.985830],[145.541796,-120.448665],[129.774354,-118.302936],[112.71967...
glb/cad_38e0b4a3a586.glb
Create a hollow tube with an outer radius of 19mm and an inner radius of 16mm. The tube should have a total height of 35mm. The walls should be uniform in thickness, and both the top and bottom ends should be open, forming a cylindrical shell. Ensure the circular profiles are smooth with high facet resolution.
inner_radius=16; outter_radius=19; length=35; cap_length=0; circle=500; difference(){ cylinder(r=outter_radius,h=length,$fn=circle); translate([0,0,-1])cylinder(r=inner_radius,h=length+2,$fn=circle); } if (cap_length>0){ cylinder(r=outter_radius,h=cap_length,$fn=circle); }
glb/cad_36470146b762.glb
Create a 2-post server rack model starting with a rectangular base measuring 26mm wide, 31mm deep, and 2mm high. From this base, add two vertical posts. Each post is a rectangular prism 4mm wide and 100mm tall. Position the first post along the left edge of the base, starting 3mm from the front and 0mm from the left si...
union(){ cube([26,31,2]); translate([0,3,0]){ difference(){ cube([26,4,100]); translate([3,0,2]){ cube([20,4,96]); } } } }
glb/cad_e6f2b26a9296.glb
Create a spice rack consisting of three identical support holders aligned in a row. Each holder is designed to cradle a cylindrical container with a diameter of 48mm. Construct each holder by starting with a composite shape: a cylinder with a radius of 26mm and a height of 40mm, merged with a rectangular block at the...
container_diameter = 48; bottom_opening = "yes"; front_opening = "yes"; containers = 3; $fn=100; head_d1 = 6.5; d1 = 2.7; d2 = 2; head_h = 2.75; length= 10; module screw(head_d1, d1, d2=d1, head_h, length, countersunk=false){ union(){ if (countersunk) cylinder(h = head_h, r1 = head_d1/2, r2 = d1/2); else ...
glb/cad_2de01895767d.glb
Create a 360 degree extruder fan surround designed to house a 40mm fan. Start by creating a cylindrical outer wall with a height of 20mm and a radius of 19.5mm. Hollow out the center of this cylinder with a smaller concentric cylinder of 18mm radius and 20.2mm height. Add a second internal concentric ring with a radi...
extruderSurroundPlacement(); module fanTrunking() { rotate([90,0,0]) { union() { translate([0, -16, 0]) fanSurround(); difference() { union() { trunkToExtruder(); translate([-18.9, -8, 1]) rotate([180,0,0]) scalene_prism(1,7,11,12.5); translate([-18.9, -8, 11]) rotate([180,0,0]) scalene_pr...
glb/cad_f75c457acc44.glb
Create a side panel for a Rostock Max v2 printer as a rectangular plate measuring 60mm by 85mm with a thickness of 2mm and corner radii of 4mm. Subtract the following features from the plate: First, create two large rounded rectangular cutouts to save material, each measuring 80mm by 84mm with 4mm corner radii, cent...
$fn=32; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(x/2)-(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(-x/2)+(radius/2),...
glb/cad_0f67e158a206.glb
Create a Simple Slider linear guide consisting of three stacked sections. The base and top sections are identical blocks measuring 22mm by 22mm with a height of 20mm. The middle section is a slightly larger block measuring 26mm by 26mm with a height of 20mm. Each of the three blocks features a 45-degree chamfer cut ac...
wheel_width=7; wheel_diameter=30; wheel_axis_width=7.7; wheel_axis_diameter=5.4; union(){ wheelholderbody(); translate([0,0,20])holderbody(); translate([0,0,40])wheelholderbody(); } module wheel(){ rotate([0,90,0])translate([0,0,-wheel_width/2])union(){ translate([0,1,0])difference(){ cylinder(h=wheel_width,...
glb/cad_7723f055d740.glb
Create a Finger Rosary Ring for Keychain by constructing a flat, circular disc with a height of 6mm and an outer radius of 14.5mm. Remove a concentric cylindrical hole from the center with a radius of 10mm to create a ring shape. Around the perimeter of this ring, place 10 small cylindrical beads, each with a radius of...
h=6; r=29/2; r2=20/2; q1=52; q2=35; r3=12.2/2; rotate([0,180,0]) support(); module support() { difference() { color("cyan") cylinder(r=r,h=h); color("black") cylinder(r=r2,h=h); color("blue") for ( i = [0 : 9] ) { rotate( i * 360 / 11, [0, 0, 1]) translate([0, 15, 0]) cylinder(r=3.7,h=h); } } }
glb/cad_db37760a2e7e.glb
Create a Yin Yang symbol with a total thickness of 2mm. The overall shape is a cylinder with a radius of 10mm and a 24-facet resolution. Construct the first half by starting with a semi-cylinder of the full 10mm radius. From this half, remove a smaller semi-cylinder with a 5mm radius centered at the origin to create ...
joinfactor = 0.005; yinyang(10, 2); module halfyinyang(largeradius, focalradius, thickness = 2) { smallradius = largeradius / 2; difference() { union() { difference() { cylinder(r=largeradius, h=thickness, center=true); translate([largeradius/2,0, 0]) cube(size=[largeradius+joinfactor, (lar...
glb/cad_2d0d4855e0b2.glb
Create a toothbrush holder designed for three toothbrush shafts. Start with a main mounting bar that is 3mm thick and 5mm high. At each end of the bar, create a mounting point for a suction cup consisting of a cylinder with a 10.5mm diameter and a 10.5mm height, integrated into the bar's thickness. Remove a central hol...
$fn = 100; ff = 0.02; module copy_mirror() { children(); mirror() children(); } module grip(dia, coeff, length, width, height) { difference(){ cube([length, width, height]); translate([length/8, width/4, -ff]) cube([length, width/2, height*2 + 2 * ff]); translate([length * 0.85, width/2, ...
glb/cad_5f3c427e597f.glb
Create a Z-limit screw plate for a 3D printer. Start with a flat plate 6mm thick. The overall footprint is an irregular polygon defined by the following vertices in the XY plane: (13.2, 35), (14.73, 34.7), (16.03, 33.83), (16.9, 32.53), (17.2, 31), (17.2, 21.2), (17.55, 20.35), (18.4, 20), (20, 20), (21.53, 19.7), (22....
Ht = 6; M3 = 3.0; M5 = 5.5; module ZLimitScrewPlate() { linear_extrude(height = Ht, center = false, convexity = 10)polygon(points = [[13.2,35],[14.73,34.7],[16.03,33.83], [16.9,32.53],[17.2,31],[17.2,21.2], [17.55,20.35],[18.4,20],[20,20], [21.53,19.7],[22.83,18.83],[23.7,17.53], [24,16],[24,4],...
glb/cad_12a7558764c8.glb
Create a Tic-Tac Container Holder designed to hold four large containers in a 4x1 grid. The main body is a solid block with a total width of 78mm (calculated as 4 containers at 17.5mm width each plus five 2mm walls) and a total length of 48mm (one 46mm container plus two 2mm walls). The height of the base is 1.2mm. Fo...
CONTAINER_WIDTH = 17.50; CONTAINER_LENGTH = 46.00; CONTAINER_HEIGHT = 12.50; CONTAINER_FUDGE = 0.10; HOLDING_LIP_DEPTH = 1.00; HOLDING_LIP_WIDTH = 2.25; WALL_THICKNESS = 2.00; BACK_THICKNESS = 1.20; WALL_CUTOUT_ANGLE = 40.00; WALL_CUTOUT_T_OFF = 10.50; WALL_CUTOUT_B_OFF = 8.50; WALL_CUTOUT_DEPTH = ...
glb/cad_9bc5918db064.glb
Create a Cupcake Gen3 Extruder Controller, Relay Board and Stepper Driver Mount. The object is a flat base plate with a total thickness of 9mm and integrated standoffs that reach a total height of 14mm. The base is a complex geometric layout designed to hold three boards. Create three sets of mounting points. The fir...
width = 10; thickness = 9; center = 5; height = 40; screwsize = 3; standoffheight = 5; centerscrewspacing = 43; centerscrewwidth = 43; righcrewspacing = 47; leftscrewspacing = 62; mountscrewspacing = 18; boardseparation = 18; difference() { union() { linear_extrude(height = thickness + standoffheight, convexity = 3...
glb/cad_37433fe69597.glb
Create a customizable badge holder with a total outer dimension of 91mm in height and 60mm in width, and a thickness of 5mm. The main body is a rectangular slab with rounded corners of 4mm radius. Carve out a central rectangular cavity to hold a card, leaving a wall thickness of 2mm on all sides. This interior cutout...
badge_thickness = 1; badge_width = 56; badge_height = 87; holder_wall_size = 2; holder_bezel_size = holder_wall_size + 3; holder_height = badge_height + (holder_wall_size * 2); holder_width = badge_width + (holder_wall_size * 2); holder_thickness = badge_thickness + (holder_wall_size * 2); holder_radius = 4; clip_...
glb/cad_2e2755f84a5e.glb
Create a Plastic Bag/Bottle Dryer consisting of a central vertical post with multiple arms radiating outward. Start by creating a central vertical cylinder with a radius of 5mm and a total height of 20mm, where the top 5mm of the cylinder has a reduced radius of 2mm to form a pin. From the base of this central post, ...
include <common.scad> module arm() { translate([0, 0, postRadius]) { rotate([-90, 0, 0]) { cylinder(h = armLength - 2*postRadius, r=postRadius); } } translate([-postRadius, 0, 0]) { cube([2*postRadius, armLength - 2*postRadius, postRadius]); } translate([0, armLength - 2*postRadius, 0]) { ...
glb/cad_fbd31e24711e.glb
Create a geometric sculpture consisting of two identical mirrored towers of stacked squares. For each tower, create a vertical stack of 160 thin square plates, each 0.5mm thick, reaching a total height of 80mm. For the first tower, center the plates at x=20mm, y=20mm; for the second tower, center them at x=-20mm, y=-20...
rot=90; large=40; small=0; height=80; steps=160; union() { for (i=[0:steps-1]) { translate([large/2,large/2,i*height/steps]) rotate([0,0,i*rot/steps+180]) linear_extrude(height = height/steps, center = true, convexity = 10, twist = -rot/steps) square(large-(large-small)*i/steps); } for (i=[0:steps-1]) ...
glb/cad_02006eb1b604.glb
Create a Progressing Cavity Pump consisting of a stator and a rotor. For the stator, create a hollow tube with a twisted internal profile. This profile is a cycloidal gear with 3 lobes, generated by a rolling radius of 2.5mm. Extrude this shape with a slant angle of 43.6793 degrees over a total of 2.5 twists. The sta...
include <scad-lib-cyclogearprofiles/lib-cyclogearprofiles.scad> resol = 32; clr = 0.5; handedness = -1; hn = sign(handedness); br = 2.5; ntwist = 2.5; nstator = 3; nrotor = nstator-1; echo(atan(135/(10*2*pi *2.25)),atan(135/(15*2*pi*1.5))); oldslant = +43.6793; rrotor = rollingradius(nrotor,br); rstator = rollingrad...
glb/cad_ce34ce72584c.glb
Create a camera hot shoe cover and flash bounce. Start with a rectangular base measuring 18mm wide by 16mm long with a thickness of 1.5mm. Centered on top of this base, add a second rectangular block that is 12.1mm wide, 16mm long, and 1.5mm thick. At the rear edge of the model, construct a cylindrical pin assembly. ...
e1 = 1.5; e2 = 1.5 ; wb = 18; wi = 12.1; l = 16; pd = 1.7; ph = 3.5; delta = 0; offset = 2; module flash() { difference() { union(){ cube(size = [wb, l, e1], center = true); translate ([0,0,e1]) cube(size = [wi, l, e2], center = true); translate ([delta/2,l/2- ph/2-offset,(e...
glb/cad_e4c32d7f77fa.glb
Create a RepRap X-carriage for self-aligning bronze bushings. Start with a central base block measuring 66mm by 70mm with a thickness of 5mm. At the front and back edges, centered along the Y-axis, add two hexagonal nut holders with a radius of 6.5mm and a height of 5mm. Integrate two belt clamp structures on the side...
include <configuration.scad> selfalign_bushings = false; igus_bushings = false; snap_in_mount = false; use <bushing.scad> use <servo-mount.scad> module mountingholes(){ translate(v = [0, -25, -5]) polyhole(m4_diameter,10); translate(v = [0, 25, -5]) polyhole(m4_diameter,10); } module xcarriage(linear_bea...
glb/cad_c92b07e843d0.glb