Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Cutting Guide consisting of a flat, elongated rectangular plate with rounded ends. The main body should be 160mm long, 5mm high, and have a total width of 15.5mm (defined by an outer radius of 7.75mm at the ends). Cut a centered longitudinal slot through the entire length of the plate. This slot must have a ...
length = 160; inner = 8.5; walls = 3.5; height = 5; guide = "enabled"; guideWidth = 8; guideHeight = 2; ruler = "enabled"; indentationDepth = 1.2; indentationInner = 1; indentationOuter = 1; steps = 5; $fn = 64; innerRadius = inner / 2; outerRadius = innerRadius + walls; offsetY = guideWidth / 2 + walls; of...
glb/cad_f6633a38bf26.glb
Create a 3-way marble run splitter consisting of a central vertical hub and three descending arms. The central hub is a hollow cylinder with an outer radius of 13.75mm and an inner radius of 11.75mm, standing 35mm tall. At the top of this hub, add a male fitting: a cylinder with a radius of 11.75mm and a height of 6....
HEIGHT = 35.0; OUTER_RADIUS = 27.5/2.0; INNER_RADIUS = 23.5/2.0; LENGTH = 100.0; ANGLE = 5.0; FITTING_HEIGHT = 6.5; module male_fitting( serrated=true ) { translate( [0,0,FITTING_HEIGHT/2.0 ] ) union() { difference() { difference() { cylinder(h = FITTING_HEIGHT, r = INNER_RA...
glb/cad_c353561c9572.glb
Create a Filament Spool Holder consisting of a central threaded rod and two identical conical end pieces. For each end piece, create a cone with a height of 20mm, tapering from a base diameter of 60mm down to a top diameter of 16mm. Hollow out the center of these cones to accommodate a radial bearing. The bearing ass...
c = 0.3; $fn = 48; epsilon = 0.05; looseness = 0.25; use <stretchyshape.scad> use <common_hardware.scad> print = 0; spool_dia_min = 16; spool_dia_max = 60; spool_width_typical = 40; wheel_diameter = 65; wheel_thickness = 5; cone_height = 20; spacer_thickness = 15; long_nut_length = 21.8; long_nut_diam = 11; be...
glb/cad_9444676e78c6.glb
Create a Quick-Fit X Carriage for a 3D printer consisting of a carriage block, a mounting bracket, and extruder clamps. First, construct the carriage block. Create a main body 48mm wide, 25mm deep, and 32mm high. Add a belt flange measuring 38mm by 30mm by 5mm, positioned at the bottom. Incorporate a locating groove o...
printable = 0; mo = 0.01; da6 = 1/cos(180/6)/2; base_plate = [110, 60, 5]; extruder_size = [100, 28, 5]; extruder_offset = [0, 30, 0]; extruder_clamp = [10, base_plate[1], extruder_size[2] + 5]; clamp_holes_x = [50, -50]; clamp_holes_y = [25, -25]; clamp_hole_d = 4.5; clamp_nut_d = 8; clamp_nut_h = 1; clamp_cl...
glb/cad_2978af474373.glb
Create a Parametric PCB Wall Mount as a thin rectangular plate measuring 55.88mm in length, 81.28mm in width, and 3.175mm in height. Center the plate on the origin. At the center of the plate's top surface, add a small square protrusion measuring 12.7mm by 12.7mm with the same 3.175mm height. Remove a cylindrical hol...
width=3.2; length=2.2; height=0.125; xoff=0.15; yoff=0.15; holed=0.125; mountsquare=0.5; borderwidth=0; buildIt(); mm = 25.4; module buildIt(){ width = width * mm; length = length * mm; height = height * mm; xoff = xoff * mm; yoff = yoff * mm; holed = holed * mm; holer = holed / 2; mountsquare = mountsquare * mm;...
glb/cad_fee2481aeb95.glb
Create a Special Allen Wrench style Nut Holder. Start by constructing a hexagonal handle with a flat-to-flat width of 5mm. The handle consists of a straight section 50mm long, which then curves upward with a radius of 19mm. The entire handle profile is a 6-sided prism. At the end of the curved handle, add a hexagonal ...
Allen_Handle_Flat = 5; Allen_Handle_Len = 50; Handle_Type = 1; Allen_Curve_Rad = 19; NutFlat = 6.86; Tolerance = .25; Socket_Ht = 5; Sockt_T_Ht = 4; Nut_Depth = 4; Add_Ht = 7; Rot_Head = 45; Thk = 2; Slice_ON = 1; Socket_ON = 1; Al_C_Rad = Handle_Type * Allen_Curve_Rad; Allen_Handle_Flat_Rad = Allen_Handl...
glb/cad_deb56f493ce0.glb
Create an M2 80mm fan side mount consisting of a mounting plate and a perpendicular L-shaped clamping bracket. The main mounting plate is a rectangular slab with a thickness of 3mm, a width of 80mm, and a height of 13.5mm (calculated as the 6.5mm clamp gap plus two 3mm walls and a 0.1mm clearance). Attached to the si...
layout = "mount"; wall_thickness = 3; clamp_clearance = .1; clamp_x_length = 50; clamp_z_length = 40; lip_depth = 5; clamp_gap = 6.5; fan_width = 80; fan_offset = 2; fan_screw_diameter = 4.3; fan_screw_clearance = .2; fan_depth = 25; fan_depth_extra = 2; fan_screw_centers_length = 71.5; fan_screw_border = (fan...
glb/cad_351d478181d5.glb
Create a bisymmetric hendecahedron, a space-filling polyhedron with 11 vertices and 11 faces. The geometry is defined by the following vertex coordinates: (0, 0, 2), (2, 1, 1), (0, -1, 1), (-2, 1, 1), (0, 2, 0), (1, -1, 0), (-1, -1, 0), (2, 1, -1), (0, -1, -1), (-2, 1, -1), and (0, 0, -2). Construct the 11 faces by co...
one(); module four_one() { for (i = [-18,18]) for (j = [-18,18]) { translate([i,j,0]) color("white") make_p(); } } module one() { color("white") make_p(); } module five_four() { mk_4(); translate([36,36,0]) mk_4(); translate([-36,-36,0]) mk_4(); translate([-36,36,0]) mk_4(); translate([36,-36,0]) mk_4...
glb/cad_366744a64eb3.glb
Create a customizable quick release tripod panel. Start with a main rectangular block measuring 41mm by 41mm with a total height of 9.8mm. The top corners should have a radius of 0.5mm, while the bottom corners are more rounded with a radius of 3mm. The side walls should slope inward at a 10-degree angle, starting from...
size_x = 41; size_y = 41; wall_thickness = 2.5; side_slope = 10; slope_start_height = 2; top_corner_radius = 0.5; screw_full_length = 14.3; screw_work_length = 4.8; screw_shank_length = 3.5; shank_shaft_diameter = 5.0; thread_shaft_diameter = 6.5; screwhead_length = 4; screwhead_diameter = 12; $fn = 0 + 50...
glb/cad_316538a80f80.glb
Create a vertical laptop stand bracket for a 15-inch MacBook Pro. The main body is a thin, upright support with a base width of 27mm and a depth of 119mm. The core feature is a central vertical slot designed to hold the laptop, which is 24mm wide. The bracket's profile is shaped by a combination of rounded edges and ...
use <write/Write.scad> $fn=64; macbook_h = 24; macbook_w = 364; macbook_d = 249; module monogram(){ translate([3,-5,-36]){ scale(v=[4,2.5,2.5]){ rotate(a=[90,0,90]){ write("MP"); } } } } edge_r = 1; holder_h = 90-edge_r; holder_b = macbook_h; holder_t = 9.5-edge_r; holder_t2 = 25-edge_r; holder_r = 75; h...
glb/cad_37534cb6ff8c.glb
Create a perpendicular beam connector consisting of two intersecting arms. Each arm is constructed from a rectangular base with a height of 7.8mm and a total width of 7.5mm. The arms are joined at a 90-degree angle. For the first arm, create a length based on 4 holes spaced 8mm apart (center-to-center). For the second...
$fn=40; eps = 0.05*1; NrOfHolesX = 4; NrOfHolesY = 2; Pitch = 8*1; Radius = 4.8; Radius1 = Radius / 2; Radius2 = 6.1 / 2; Height = 7.8*1; Depth = 0.8*1; Width = 7.5*1; MidThickness = 2*1; MiniCubeOffset = 1.1*1; MiniCubeWidth = Radius1 - MiniCubeOffset; CrossInnerRadius = 1.5*1; drawBeam(NrOfHolesX); rotate([0,0,90...
glb/cad_89e4b488f704.glb
Create a Fused Power Supply Switch Enclosure box with outer dimensions of 50mm width, 111mm length, and 45mm height. The box has a wall thickness of 2mm. Hollow out the interior, leaving a floor thickness of 3mm. On the front face, create a rectangular cutout for the cable exit that is 8mm high and 12mm wide, positio...
boxwidth = 50; boxlength = 111; boxheight = 45; boxwall = 2; facewall = 3; plugwidth= 28.5; pluglength = 47; plugheight = 6; plugbevel = 6; offsetx = boxwall+3; offsety = 12; offsetz = 1.6; clearance = 1.5; clipdiameter = 3; clipspacing = 4; clipfirst = 3; cliptop = 12.5; clipbottom = 36.5; cutoutoffsetx = 18; cuto...
glb/cad_ad2e69e591d2.glb
Create a Fused Power Supply Switch Enclosure by constructing a rectangular box with outer dimensions of 50mm width, 111mm length, and 65mm height. The box should have a wall thickness of 2mm. Hollow out the interior of the box, leaving a solid floor thickness of 3mm. On one of the 111mm side walls, create a rectangul...
boxwidth = 50; boxlength = 111; boxheight = 65; boxwall = 2; facewall = 3; plugwidth= 28.5; pluglength = 47; plugheight = 6; plugbevel = 6; offsetx = boxwall+3; offsety = 12; offsetz = 1.0; clearance = 1.5; clipdiameter = 3; clipspacing = 4; clipfirst = 3; cliptop = 12.5; clipbottom = 36.5; cutoutoffsetx = 18; cuto...
glb/cad_1af85eaa09d5.glb
Create a box corner clamp by starting with a solid cube measuring 40mm in length, width, and 10mm in height. Remove a smaller 30mm by 30mm by 10mm cube from the top-inner corner, leaving an L-shaped base with a thickness of 10mm for both arms. In the center of the remaining corner vertex, create a vertical cylindrical ...
partThickness = 10; partLength = 40; holeRadius = partThickness / 4; difference() { cube([partLength,partLength,partThickness]); translate([partThickness, partThickness, 0]) cube([partLength,partLength,partThickness]); translate([partThickness,partThickness,0]) cylinder(r=holeRadius, h=p...
glb/cad_5d3a9f1c36a6.glb
Create a 3D model of the "OpenSCAD Bear" logo. Start by creating a triangular base plate with a height of 5mm. The triangle's vertices are defined by the coordinates [0.5758, 12.342], [-92.7977, 55.4976], and [-83.4848, -46.944]. Within this base, subtract a smaller triangular region defined by vertices [-70.3978, 31...
fudge = 0.1; module poly_path2996(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[53.953965,-40.544545],[53.953965,-38.950795],[40.875845,-38.950795],[41.332867,-37.228138],[42.297715,-35.997675],[43.758646,-35.259388],[45.703965,-35.013295],[4...
glb/cad_dd44995309c6.glb
Create a Spagate spaghetti box cap. Start by constructing a hollow rectangular sleeve with an outer dimension of 6mm by 75.1mm by 36.1mm. The walls of this sleeve should be 1.6mm thick. Create two horizontal slots 2mm high that cut completely through the sleeve from the sides, one at the very bottom and one at the very...
box_w = 71.1; box_h = 32.1; wall_p = 1.6; iring_l = 6; iring_p = 2; hook_w=6; hook_h=box_h-6; hook_l=3; hook_fl=hook_l+2; hook_fw=2; hook_fh=hook_h+6; cut_w=box_w; cut_h=2; module cap(){ difference(){ translate([0,hook_w,0]) cube([iring_l,box_w+2*iring_p,box_h+2*iring_p]); translate([-1*wall_p,iring_p+hook_w,irin...
glb/cad_2e571e975dec.glb
Create a trumpet-shaped shield for an ultrasonic sensor. Start with a rectangular base 25mm wide, 24mm long, and 3mm thick, with corners rounded to a 2mm radius. Centered on this base, create a hollow vertical tower. The bottom section of the tower is a cylinder with an outer radius of 10.5mm and an inner radius of 8.5...
wall_thickness=2; base_width=25; base_length=24; base_thickness=3; screw_length=11; $fn=100; module base(){ union() { translate([0,0,base_thickness/2]) minkowski() { cube([base_width,base_length,base_thickness], center=true); cylinder(r=2,h=base_thickness/3); } cylinder(r=8.5+wall_thickness, h=13); ...
glb/cad_aaa0c003e668.glb
Create an Airfoil Plane Wing bracket consisting of two identical components positioned apart. For each component, start by creating a central block that is 5mm wide, 20mm deep, and 5mm high, centered on its axes. Integrate a cylinder into this block with a height of 5mm and a radius of 3mm, centered on the block's axes...
wing_width=200; bracket_height=5; brace_width=5; hole_width=6; translate([ -wing_width/2,0,0]) union() { difference(){ scale([wing_width,wing_width,bracket_height]) linear_extrude(file = "boe106.dxf",center=true,height=1); translate([ 10,1,0]) scale([wing_width*.8,wing_width*.8,wing_width*1.2]) linear_extrude(file =...
glb/cad_a39de7f7fb08.glb
Create a Prusa i3 MK2 X-End carriage. Start with a main rectangular block measuring 17mm wide, 39mm deep, and 58mm high. On the bottom face, center a cylindrical hole with a radius of 12.5mm and a height of 8mm to serve as the nut trap. Within this assembly, create two screw holes with a radius of 1.05mm each, positi...
_nutinsideradius = 6.6; _screwholenut1 = -17; _screwholenut2 = -17; _nuttrap1 = -17; _nuttrap2 = -17; _slop1 = -17.2; _slop2 = -17.2; _screwradius1 = 1.55; _screwradius2 = 1.55; _nutradius1 = 3.3; _nutradius2 = 3.2; _screwradius1 = 1.05; _nutradius1 = 2.4; use <bearing.scad> use <polyholes.scad> rod_distance = 45; m...
glb/cad_78e8ff4e7214.glb
Create a Z screw cover by constructing a composite cylindrical shape. Start with a base cylinder that has a radius of 8mm and a height of 1mm. On top of this base, add a truncated cone (frustum) that transitions from a bottom radius of 8mm to a top radius of 4.5mm over a height of 4mm. To finish the part, create a ce...
thread_spring = [9,0.5,5,1.25]; comp_spring(thread_spring); rotate([0, 0, 180]) comp_spring(thread_spring); function spring_od(type) = type[0]; function spring_gauge(type) = type[1]; function spring_length(type) = type[2]; function spring_coils(type) = type[3]; module coil(r1 = 100, r2 = 10, h = 100, twi...
glb/cad_50f37f59f2b9.glb
Create a square cookie cutter for pastry. Start by constructing a hollow square outer wall with an outer side length of 75mm, a height of 23mm, and a wall thickness of 0.5mm. At the top of this outer wall, add a flat square grip frame that extends 2mm beyond the outer walls on all sides, with a total thickness of 3mm. ...
Has_Inner_Cutter = "yes"; Cutter_Thickness = 0.5; Outer_Side = 75; Outer_Height = 23; Inner_Side_Difference = 15; Inner_Height_Difference = 3; Frame_Thickness = 3; Frame_Flange = 2; union() { translate([0, 0, -(Outer_Height / 2) - (Frame_Thickness / 2) + (Frame_Thickness / 10)]) difference() { ...
glb/cad_435bc20a4d8e.glb
Create a circular miniature base with a diameter of 25mm. The base should feature a beveled edge profile that slopes upward from the bottom to the top surface. On the top surface, center a small embossed number (such as "1") with a height of 1mm, using a font size approximately 1/5th of the base diameter. For a flyin...
shape = "circle"; size = 25; ratio = 0; extras = "none"; quantity = 1; label_font="None"; print_label = label_font != "None"; quality = 40; bevel_style = "nerd"; bevel_profile = [[[-1,1],[0,0],[0,-1],[-1,-1],[-1,1],[-1,1]],[[0,1,2,3,4]] ]; textured_surface = "none"; texture_file = "texture.dat"; rounded_corners =...
glb/cad_397d0dca851b.glb
Create a wire separator clamp designed to fit an 8.2mm rod. The main body is a cylinder with a radius of 9.1mm and a height of approximately 6.6mm. Remove a central cylindrical core with a radius of 4.1mm to accommodate the rod. Cut a vertical wedge out of the cylinder to allow it to clamp onto the rod. This wedge sh...
hole_size = 3 / cos(180 / 8) + 0.4; hole_separation = 20; hole_separation_1 = 10.5; hole_extra_distance = 50; hole_extra_distance_1 = 3; hole_nut_size = 5.5 / cos(180 / 6) + 0.4; hole_nut_depth = 2; rod_size = 8.2; clamp_size = 5; wedge_size = rod_size - 1; height = max(hole_nut_size * 1.2, m3_nut_size * 1.2); ...
glb/cad_efaec11eb5ee.glb
Create a sewable button battery holder consisting of two symmetrical circular parts: a base and a cap. For a CR2032 battery, use a main radius of 10.8mm and a total height of approximately 4.2mm. Construct the base as a cylinder with a radius of 12.4mm and a height of 2mm. Remove a central coaxial cylinder of 10.8mm r...
battery = "CR2032"; custom_radius = 10; custom_width = 4; edge = 0.8; radwire = 1.2; topsew = "true"; use <MCAD/fonts.scad> letter = "+"; lettersec = "LOVE"; letterwidth = 6; letterheight = 8; part = "together"; rack_x = 1; rack_dist_x = 60; rack_y = 1; rack_dist_y = 30; use <utils/build_plate.scad>; b...
glb/cad_680d303588e9.glb
Create a Libre Thin Axe head by constructing a central body and removing a handle hole. Start with a composite solid formed by the union of a cube measuring 60mm wide, 42mm deep, and 100mm high, centered on the X and Z axes, and a cylinder with a radius of 30mm and a height of 100mm centered on the same axes. To refine...
r= 60; n=100; h=100; x=25; s=150; l=40; a=20; b=20; module chuck(){ union(){ translate([0,-0.1*r,0])cube([r,0.7*r,h], center = true); translate([0,0.3*r/2,0])cylinder(h = h, r1 = r/2, r2 = r/2, center = true, $fn=n); } } module chunk(){ chuck(); hull(){ cylinder(h = h, r1 = b, r2 = b, center = true, $fn=n); t...
glb/cad_8921557222c7.glb
Create a spool roller holder designed for 608ZZ bearings. Start with a central base plate that is 5mm thick, 119.3mm long, and 98mm wide (calculated as 88mm plus two 5mm walls). At each of the four corners of the base, construct a bearing housing. Each housing consists of a vertical block that is 10mm thick (the bear...
spool_wall = 3; spool_width = 88 - spool_wall; spool_diameter = 160; hole_diameter = 32; bearing_diameter = 28; bearing_thickness = 10; bolt_diameter = 8; holder_wall = 5; holder_base_height = 5; holder_base_width = spool_width + holder_wall; holder_base_length = 119.3; holder_bearing_width = bearing_diameter; beari...
glb/cad_b834a504fe1f.glb
Create a vintage light switch knob by starting with a solid of revolution. Rotate a square with a side length of 15mm around a central axis to form a cylinder with a total height of 15mm and a radius of 7.5mm. From the center of this cylinder, remove a hexagonal prism with a height of 15mm and a flat-to-flat width of 6...
use <myfunctions.scad> include <LucasParameters.scad> $fn=150; difference () { difference() { rotate_extrude(angle = 360) { square([BD/2,BH]); } phex(HF,0.1,HL); } translate([0,0,PH]) { rotate([90,90,0]) { cylinder(h = BD/2, d = PD); } } }
glb/cad_1b9b0d89eb65.glb
Create a Dremel holder consisting of a hexagonal nut-like top section and a supporting base. Start by creating a hexagonal prism with a height of 10mm and a flat-to-flat width of approximately 20.5mm (based on a radius of 11.5mm to the vertices). Center a vertical hole with a diameter of 3.2mm through the entire height...
include<Thread_Library/Thread_Library.scad> threadRad=9.0; nut=5.5; nutHeight=2.3; nutHole=3.2; thickness=10; width=40; baseRad=35; baseDepth=35; baseLift=5; wallThickness=4; holeRad=15; offset=2.6; $fn=0; $fa=0.6; $fs=4; difference() { union(){ cylinder( h=thickness, r=threadRad+wallThickness+1, $fn=...
glb/cad_8ffad5813dfb.glb
Create a Dremel holder consisting of a hexagonal nut-like head with an internal threaded bore. Start by creating a hexagonal prism with a height of 10mm and a flat-to-flat width derived from a radius of 14mm (thread radius of 9mm plus 5mm wall thickness plus 1mm clearance). Inside this hexagonal head, create a centra...
include<Thread_Library/Thread_Library.scad> threadRad=9.0; nut=5.5; nutHeight=2.3; nutHole=3.2; thickness=10; width=40; baseRad=35; baseDepth=35; baseLift=5; wallThickness=4; holeRad=15; offset=2.6; $fn=0; $fa=0.6; $fs=4; difference() { union(){ cylinder( h=thickness, r=threadRad+wallThickness+1, $fn=...
glb/cad_a94636ce26aa.glb
Create a 3D solid by rotating a specific 2D profile around the Z-axis with a resolution of 100 facets. The profile is a conic Bezier curve defined by three control points: a starting point at [35, 0], a middle control point at [15, 20], and an ending point at [35, 60]. Construct this curve by interpolating between thes...
module BezConic(p0,p1,p2,steps=5) { stepsize1 = (p1-p0)/steps; stepsize2 = (p2-p1)/steps; for (i=[0:steps-1]) { point1 = p0+(stepsize1*i); point2 = p1+(stepsize2*i); point3 = p0+(stepsize1*(i+1)); point4 = p1+(stepsize2*(i+1)); bpoint1 = point1+((point2-point1)*(i/steps)); bpoint2 = point3+((point4...
glb/cad_bfb991cf0bfe.glb
Create an M8 Nut Holder by starting with a main cylinder that has a diameter of 19.05mm and a height of 8mm. From the center of this cylinder, remove a hexagonal hole with a diameter of 15mm (measured point-to-point) that extends through the top and slightly beyond the bottom, leaving a 2mm thick floor or platter at th...
totd=19.05; height=8; platter=2; nutd=15; boltd=8; difference() { cylinder(h=height,r=totd/2,$fn=100); translate([0,0,-platter]) cylinder(h=height,r=nutd/2,$fn=6); cylinder(h=height,r=boltd/2,$fn=100); }
glb/cad_e2730d201462.glb
Create a wedding ring by constructing a torus with a circular cross-section of 3mm radius, centered around a circular path with a radius of 11mm. To ensure the interior is a clean hollow, remove a concentric cylinder from the center with a radius of 11mm and a height of 10mm. The final shape should be a smooth, symmetr...
id=12; wi=3; difference(){ union(){ cylinder(h=wi*2,r=id,center=true,$fn=120); rotate_extrude(convexity = 10) translate([id -1, 0, 0]) circle(r = wi, $fn = 60); } cylinder(h=10,r=id -1 ,center=true,$fn=120); }
glb/cad_d9767625342b.glb
Create a project box with a lid consisting of two separate parts: a main enclosure and a removable cover. For the main enclosure, create a rectangular base with outside dimensions of 49mm width, 74mm length, and 16.5mm height. The walls should be 2mm thick with a 1mm fillet radius on the exterior corners. Hollow out t...
inside_width = 45; inside_length = 70; inside_height = 12.5; thickness = 2; radius = 1; screw_dia = 3; screw_loose_dia = 3.2; extra_lid_thickness = 0; outside_width = inside_width + thickness * 2; outside_length = inside_length + thickness * 2; od = screw_dia * 2.5; module box_screw(id, od, height){ differen...
glb/cad_45c7297a0ecd.glb
Create an EndStop Striker consisting of a cylindrical base and a rectangular protruding tab. Form the main body as a cylinder with a diameter of 15mm and a height of 15mm. Drill a central vertical hole through the entire length of this cylinder with a diameter of 3.8mm to accommodate a bolt. At the bottom of the main...
$fn=100+0; main_diameter=15; body_length=15; nut_diameter=9.4; nut_height=5; nut_depth=1; striker_length=10; striker_x=2; striker_y=6; bolt_diameter=3.8; module nutHole(size,height) { cylinder(r=size,h=height,$fn=6,center=[0,0]); } union() { translate([0,0,body_length/2+striker_length/2]) cube([striker...
glb/cad_d5f98e060441.glb
Create a fixed mounting bracket for a PIR sensor. Start with a rectangular base plate measuring 53mm wide, 50mm high, and 1mm thick. Attached to this plate is a rectangular mounting block measuring 20mm wide, 24mm high, and 40mm long. Position the block so it starts 12mm from the left edge and 5mm from the bottom edge ...
plate_width = 53; plate_height = 50; plate_thickness = 1; mount_height = 24; mount_width = 20; mount_length = 40; vertical_angle = 22; horizontal_angle = 45; horizontal_offset = 12; vertical_offset = 5; horizontal_hole_offset = 16; vertical_hole_offset = 3; hole_inner_radius = 2.5; hole_outer_radius = 3.5; $fn = 4...
glb/cad_d912bf9306e0.glb
Create a grid of 12 joints arranged in 3 rows and 4 columns, with a spacing of 4mm between each joint. Each individual joint is formed by the intersection of two perpendicular, identical tapered components. One component is oriented along the X-axis with a total length of 13mm, and the other is oriented along the Y-a...
extra = 0.1*1; spacing = 4*1; rows = 3; columns = 4; height = 6; jaws_length = 8.5; platform_carriage_length = 13.0; taper_length = 1.25; taper_end_radius = 2.5; m3_jaws_radius = 1.45; m3_platform_carriage_radius = 1.55; taper_start_radius = (height/2)/cos(30); module joint_part(len) { hull() { translate...
glb/cad_44bbdbc2ee23.glb
Create a Drywall Vent with a total outer footprint of 150mm by 99mm and a base thickness of 1.8mm. The model consists of a flat rectangular base plate and a raised rectangular frame. First, create the base plate as a rectangular slab measuring 150mm in length, 99mm in width, and 1.8mm in height. Centered on this base,...
x = 99; y = 150; z = 15; a = 1.8; borda = 15; parede = 1.8; difference() { union() { cube([x, y, a], center = true); translate([(x/2-borda)*-1,(y/2-borda)*-1,0]) cube([x-(borda*2),y-(borda*2), z], center = false); } translate([(x/2-borda-parede)*-1,(y/2-borda-parede)*-1,parede]) cube([x-(borda*2+parede*2),y-(bo...
glb/cad_a00aebd9a8de.glb
Create a Yamaha Beartracker 250 Reverse Detent Housing. Start with a central cylindrical body consisting of a base cylinder with a radius of 15mm and a height of 10mm, topped by a second cylinder with a radius of 21mm and a height of 17mm. Remove a central vertical core with a radius of 7mm and a height of 28mm. Add a...
$fn=100; module tire( diameter, csDiameter ) { render() { rotate_extrude(convexity = 10) translate([diameter/2, 0, 0]) circle(r = csDiameter/2, $fn=20); } } module Selector () { render() {difference () { difference () { union() { translate ([0,0,10]) cylinder (r=21,h=17); cylinder (r1=15,r2=21,h=10); } ...
glb/cad_b326ded8ed92.glb
Create a food processor disc holder by starting with a rectangular base block measuring 154mm in length, 106mm in width, and 15mm in height. Along the length of this base, carve out seven parallel, identical slots to hold cutting discs. Each slot should be created by removing a cylindrical volume with a radius of 79.5m...
kenwooddisc = 151; kenwoodouter = 159; kenwoodthin = 1.2; kenwoodthick = 3.4; baseheight = 15; baselower = 1; spacing = 22; number = 7; difference() { translate ([-(spacing*(number))/2, -kenwoodouter/3,0]) cube([spacing*(number),kenwoodouter/1.5,baseheight]); union() { translate ([-(number+1)/2*spacing-(kenwoodthick/...
glb/cad_9351abf0af07.glb
Create a customizable cuvette and vial rack by starting with a solid rectangular block. The block should have a total width of 46.4mm, a depth of 36.4mm, and a height of 13.75mm. From the top face of this block, remove a grid of 12 cylindrical holes arranged in 4 rows along the x-axis and 3 columns along the y-axis. ...
hole_shape=1; hole_size=10; hole_depth=12; rows=4; columns=3; spacing=1.6; bottom_thick=1.75; $fa=1; $fs=1; difference() { cube(size=[rows*(hole_size+spacing)+spacing, columns*(hole_size+spacing)+spacing, bottom_thick+hole_depth], center=false); holes(hole_shape,hole_size,hole_depth,rows,columns,spacing,bot...
glb/cad_5aa66fce4239.glb
Create a customizable bending mesh sleeve with a total height of 35mm. The main body is a tapered hollow cylinder with a bottom external radius of 7.5mm and a top external radius of 5.5mm. The interior is hollowed out by a tapered void with a bottom internal radius of 14.5mm and a top internal radius of 4.5mm. The sle...
module supports( height, r_top, r_bottom, size, min_distance) { r_max = max(r_top, r_bottom); s_count = ceil(2 * PI * r_max / min_distance); h = sin(30)*size; bottom_size = min(size,PI*(r_bottom-h)/s_count); top_size = min(size,PI*(r_top-h)/s_count); a = 360/s_count; for...
glb/cad_407c7e56b448.glb
Create a 3D model titled "Do the twist" by generating a complex, repeating organic form. Start by creating a series of 16 connected segments. Each segment is formed by taking the convex hull of two spheres, each with a radius of 4mm. The centers of these spheres are positioned using trigonometric offsets: the first sph...
t=4; s=4; c=4; z=4; sp=4; reps=4; module sph() { sphere(sp, $fn=36); } module tw() { translate ([0,0,z]) for (i=[-8:7]) { hull() { translate ([t*(tan(i*9)),s*(sin(i*20)),c*(cos(i*20))]) sph(); translate ([t*(tan((1+i)*9)),s*(sin((1+i)*20)),c*(cos((i+1)*20))]) sph(); }}} for (j=[0:reps-1]) { rotate ([j*3...
glb/cad_cbc6669a06cb.glb
Create a PCB bumper with an outer footprint of 56mm by 51mm and a total height of 8mm. The main body is a hollowed rectangular shell with a wall thickness of 2mm and rounded corners with a 3mm radius. The top surface of the shell is open, and the bottom is a solid plate. At the four corners of the interior, add four c...
x_length = 56; y_width = 51; z_height = 8; wall_thickness = 2; side_radius = 3; hole_dia = 3; posts_x = 47; posts_y = 44; bumper(x_length,y_width,z_height,side_radius,wall_thickness,hole_dia, posts_x, posts_y); module bumper(length,width,height,radius,thickness,holesize, posts_xdist, posts_ydist){ union(){ d...
glb/cad_c4003517c7a1.glb
Create a Customizable Disc Shape Tool consisting of two stacked cylinders with a shared central vertical hole. First, create a base cylinder with a diameter of 19mm and a height of 10mm. Position a second, wider cylinder on top of the base with a diameter of 30mm and a height of 5mm, centering it so that both cylinders...
bottomDiameter = 19; topDiameter = 30; holeDiameter = 2.8; topHeight = 5; bottomHeight = 10; $fn = 128; bottomRadius = bottomDiameter / 2; topRadius = topDiameter / 2; holeRadius = holeDiameter / 2; totalHeight = topHeight + bottomHeight; difference() { group() { cylinder(h = totalHeight, r = bottomRadius)...
glb/cad_c16df64804c5.glb
Create a circular metal base topper with a total diameter of 24mm and a height of 4mm. The main body is a cylinder centered at (12.5, 12.5, 0). Add a decorative upper lip around the outer edge by rotating a rectangular profile around the center; this profile should be 1.5mm wide and 0.75mm tall, positioned 1.5mm inwa...
use <grating.scad> use <tread.scad> use <mesh.scad> makeTextureBase(); module makePlates() { translate([0,0,0]) perforated(); translate([0,60,0]) perforated(rad=.75, fac=20); translate([0,120,0]) expanded(); translate([60,0,0]) treadPlate(shape="smooth"); translate([60,60,0]) treadPlate(shape="tread"); tr...
glb/cad_37bf2c89efa8.glb
Create a Customizable Bike Flashlight Mount designed to secure a light to handlebars using zip ties. Start with a central rectangular block measuring 28mm wide, 28mm deep, and 25.3mm high. Carve a semi-cylindrical channel through the center of the block along its length with a radius of 11mm to accommodate the flashl...
zipties = 2; light_thickness = 22; bar_thickness = 22; zip_thickness = 6.7; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); box_height = bar_thickness+light_thickness*.15; bar_ziptie = bar_thickness+6...
glb/cad_91ecf032f893.glb
Create a beer tap handle by constructing a tapered cylinder with a height of 53mm, a bottom radius of 8.5mm, and a top radius of 13.5mm. Remove a central vertical hole with a radius of 4mm that extends 30mm upward from 1mm below the base. Additionally, remove a spherical section with a radius of 30mm centered 81mm abov...
difference(){ cylinder (h=53, r1=17/2, r2=27/2); translate([0,0,-1]){ cylinder (h=30, r=8/2); } translate ([0,0,81]){ sphere (r=30); } }
glb/cad_55cfb59a71e9.glb
Create a customizable hook for a metal plug shelf. Start by creating a rectangular mounting plate that is 25mm high, 25mm wide, and 3mm thick. On the face of this plate, add a clip designed to fit into a shelf slot; this clip should be 14mm wide, 15mm long, and 1.2mm deep. Attached to the mounting plate, construct a ...
metal_thickness = 1.2; slot_depth = 1.2; clip_length = 15; clip_width = 14; mountingplate_width = 25; mountingplate_thickness = 3; mountingplate_height = 25; hook_width = 10; hook_type = "single"; round_edge_radius = 1; $fn ...
glb/cad_487fad9c65e0.glb
Create a dial indicator mount consisting of a C-shaped clamp integrated with a mounting shelf. Start by creating a rectangular clamp body with a total length of 20mm and a wall thickness of 3mm. The clamp should feature an internal rectangular gap of 9.65mm in width and 5mm in depth to grip a gantry. Attached to the ...
build = "dialmount"; clamp_clearance = 0.1; lip_depth = 5; clamp_length = 20; wall_thickness = 3; shaft_od = 5; shaft_clearance = .2; hole_border = 2; clamp_gap = 9.65; hole_radius = shaft_od / 2 + shaft_clearance; hole_center = hole_border + hole_radius; slop = 0.1; module clamp(h, c = clamp_clearance) { li...
glb/cad_e921d9f12cd7.glb
Create a "twisty thing" by generating a complex, repeating geometric form. Start by defining a base unit consisting of a series of connected, low-resolution spheres, each with a diameter of 6mm (radius 3mm) and 12 facets. Arrange these spheres in a sequence from index -8 to 7. For each step in the sequence, position th...
t=7; s=4; c=4; z=4; sp=3; reps=2; fn=12; module sph() { sphere(sp, $fn=fn); } module tw() { translate ([0,0,z]) for (i=[-8:7]) { hull(){ hull() { translate ([t*(tan(i*9)),s*(sin(i*20)),c*(cos(i*20))]) sph(); translate ([t*(tan((1+i)*9)),s*(cos((1+i)*20)),c*(sin((i+1)*20))]) sph(); } hull() { transla...
glb/cad_157f732fbe2d.glb
Create a Header Pin Back Block by starting with a solid rectangular block measuring 13.42mm in length, 11.5mm in width, and 10mm in height. Hollow out the center of this block to create a shell with a wall thickness of 0.75mm on all sides. The interior cavity should be 11.5mm long, 4.7mm wide, and 7mm deep, leaving a b...
P= 3; Len = 10; HR = 2; W = 6; Rec = 3; Wall = .75; IW = 4.7; BT = 1.5; L = ((P -1) * 2.54)+ 2.92; difference () { cube ([L + (2 * Wall), W + ( 2* Wall) , Len ]); translate ([Wall, Wall, Len - Rec ]) cube ([L , W , Len ]); translate ([Wall, Wall + (W -IW) /2 ,BT ]) cube ([L , IW , Len ]); translate ( [L/2 + W...
glb/cad_d6ba234f9a8e.glb
Create a large calibration square by constructing a thin, hollow rectangular frame. Start with a solid cube measuring 100mm in width, 100mm in depth, and 1mm in height. From the center of this volume, remove a smaller cube measuring 95mm in width, 95mm in depth, and 1.1mm in height to create a square ring with a consis...
difference() { cube([100, 100, 1], center=true); cube([95, 95, 1.1], center=true); }
glb/cad_0eca781a5fdb.glb
Create an extruder's wires support consisting of a base plate and a vertical housing. Start with a rectangular base plate 25.5mm long, 8mm wide, and 3mm high. At one end of this plate, center a vertical cylindrical hole with a 4mm diameter. Attached to the end of the base plate, create a vertical rectangular housing t...
long=29.5; larg1=8; larg2=20; larg3=12; haut1=3; haut2=9; haut3=20; vis=4; paroi=2; longtrou=larg2-paroi*2+0.2; largtrou=larg3-paroi*2+0.2; h=sqrt(larg3*larg3-(larg3*larg3)/2); union(){ difference(){ translate([0,-larg1/2,0])cube([long-largtrou-paroi,larg1,haut1]); translate([paroi+vis/2,0,0])cylinder(r=vis/2+.1...
glb/cad_762b7ffdec58.glb
Create a Heart Chain bracelet consisting of 25 interlocking heart-shaped links arranged in a closed loop. Each individual link is formed by two identical heart shapes, each with a thickness of 2mm. The first heart is positioned normally, and the second heart is mirrored and rotated approximately 110 degrees relative ...
Type=1; Links=25; thickness = 2; part = "together"; module HEARTS(){ module HEARTHALF(h){ scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-14.571719,-20.933442],[-11.207616,-24.148396],[-7.888872,-26.422799],[-4.654128,-27.828605],[-1.542030,-28.437764],[1.408781,-28.322229],...
glb/cad_b338624e14d1.glb
Create a poker chip token with a diameter of 39mm and a thickness of 3.5mm. The top and bottom faces should feature a slight angled bevel of 0.25mm. On both the top and bottom faces, create a recessed circular ring near the outer edge. This ring is defined by an outer diameter of 39mm and an inner diameter of 27mm (l...
size = 39; thickness = 3.5; rim = 6; quality = 40; bevel_style = "a"; bevel = bevel_style == "n" ? 0 : .25; bevel_facets = bevel_style == "a" ? 4 : 16; rim_symbol = "\u2666"; center_symbol = "nerdhaus"; makeToken(); module makeToken() { makeTop(); rotate([180]) makeTop(); } module makeTop() { difference()...
glb/cad_72e5ddadf248.glb
Create a wavy trig bowl by generating a continuous, hollowed-out circular form. Start with a central void defined by a cylinder with a radius of 30.3mm and a height of 1mm. Around this center, construct a wall composed of 180 connected segments. Each segment is a small cylinder with a radius of 0.3mm and a height that ...
num=180; wave_num=7; circ_width=.6; cylinder (r=30+circ_width/2,h=1,$fn=72*5/2); module mod(z) { rotate ([0,0,z*360/num]) translate ([30,0,0]) rotate ([0,10+ 5*sin(z*360*wave_num/num)+5*sin(z*720*wave_num/num),0]) scale ([1,1,1]) cylinder (r=circ_width/2, h=40+2*sin(z*360*wave_num/num)); } differenc...
glb/cad_aea73afb13b1.glb
Create a Wandhalterung wall mount consisting of three distinct geometric components. First, create a rectangular base tray. The outer dimensions are 36mm wide, 56mm long, and 11mm high. Hollow out the center to create a basin with a wall thickness of 3mm and a floor thickness of 4mm. At the top edges of this basin, a...
breit = 30; lang = 50; hoch = 3; dick = 3; boden=4; offen=20; translate([dick*1-50, dick*1+10, hoch]) rotate(45,[0,1,0]) cube([dick,lang+dick-10,dick*1]); translate([dick*1+breit-50, dick*1+10, hoch]) rotate(-135,[0,1,0]) cube([dick,lang+dick-10,dick*1]); difference() { translate([dick-50, dick, 0]) cube([b...
glb/cad_f9b7e0aedacc.glb
Create a kitchen sink plug chain retainer ring. Start by constructing a conical washer with a height of 1.7mm. The bottom face should be a circle with a diameter of 5mm, and the top face should be a circle with a diameter of 8mm. Remove a conical center from this shape, using the same height of 1.7mm, with a bottom dia...
d_i_u = 5; d_i_o = 8; r_i_u = d_i_u/2; r_i_o = d_i_o/2; w=3.2; r_a_u = r_i_u + w; r_a_o = r_i_o + w; h = 1.7; ms = 0.1; r_k = 1.5; r_k_a = r_k+w; $fn = 90; dr = r_a_o - r_i_o; ms = 0.1; rounding(); mirror() { rounding(); } module rounding() { intersection() { union() { translate([1...
glb/cad_f651f65e6bd9.glb
Create a soap tray designed to mount on a tube. Start by creating a main soap cup as a rounded box with dimensions 48mm deep, 72mm wide, and 20mm high, with corner radii of 4mm. Hollow out the center of this box with a smaller rounded box that is 43.2mm deep, 64.8mm wide, and 20mm high, leaving a wall thickness of appr...
width = 72; depth = 48; height = 20; vents = 1; holes = 1; mount = 1; d = 25.1; h = height+20; r = d/2; f = d/7; t = d/6; os = t; a = 44; detail = 40; $fs = 0.5; $fa = 5.1; difference() { union() { if (mount == 1) { translate([0,0,h/2]) { rcylinder(r+t,r+t,h,2,true); } } di...
glb/cad_ef9d1dfcd02f.glb
Create a set of filament roll accessories consisting of four distinct parts. First, create a filament holder by forming a cylinder with a total height of 105mm and a radius of 9.25mm. Hollow out the center with a hole of 4.3mm radius. At the base, add a wider cylindrical flange with a radius of 19.25mm and a height of...
$fn=50; module nut(rsize,ypos){ cylinder(h=ypos,r=rsize,$fn=6); } module ccube(w,l,h) { translate([-w/2,-l/2,0]) cube([w,l,h]); } module filholderM8() { n = 15.8; h = 6; len = 95; size = 18.5; hole = n+0.5; shole= 8.1; begl=10; begr=10; endl=2; endh=1.8; cutw=size/3; tcut=len/2; bcut=len/3; dif...
glb/cad_f3177aa7bdf1.glb
Create a calibration ruler consisting of a series of mono-spaced digits from 0 to 9. Each digit must occupy a 10x10mm square area and have a uniform thickness and line width of 0.5mm. Construct each digit using a combination of 0.5mm wide rectangular segments and circular arcs with a radius of 2mm. The digits are arr...
ink=0.5; $fn=33; color("red") union(){ translate([0,0,0]) zero(); translate([10,0,0]) one(); translate([20,0,0]) two(); translate([30,0,0]) three(); translate([40,0,0]) four(); translate([50,0,0]) five(); translate([60,0,0]) six(); translate([70,0,0]) seven(); translate([80,0,0]) eight(); translate([90,0,0]) nine(); ...
glb/cad_a0e49e3dc2a1.glb
Create a calibration ruler by starting with a rectangular base measuring 100mm in length, 15mm in width, and 1mm in height. Along the length of this base, create a series of eleven rectangular slots. Each slot should be 1mm wide and 2mm deep, centered vertically within the base's thickness. Position the first slot 0.5m...
use <numbers.scad>; nozzle_diameter=0.5; radius=nozzle_diameter/2; difference(){ cube([100,15,1]); for(i=[0:10]){ translate([-0.5+10*i,0,0.5]) cube([1,8+2*((i+1)%2),2]); } } translate([0,0,1]) zero(); translate([10,0,1]) one(); translate([20,0,1]) two(); translate([30,0,1]) three(); translate([40,0,1]) four();...
glb/cad_3226a1db28b9.glb
Create a Double Angular Beam compatible with Technic parts. The object consists of two intersecting beams meeting at a 45-degree angle. First, construct a straight beam with a width of 7.5mm, a height of 7.8mm, and a central thickness of 2mm. This beam features a series of holes with a pitch of 8mm. Each hole is a co...
$fn=40; eps = 0.05*1; NrOfHolesX = 7; NrOfHolesY = 3; Step = 2; Diameter1 = 4.8; Diameter2 = 6.1; Pitch = 8*1; Radius1 = Diameter1 / 2; Radius2 = Diameter2 / 2; Height = 7.8*1; Depth = 0.8*1; Width = 7.5*1; MidThickness = 2*1; MiniCubeOffset = 1.1*1; MiniCubeWidth = Radius1 - MiniCubeOffset; CrossInnerRadius = 1.5*1...
glb/cad_9244d2908aab.glb
Create a Bird Coin by starting with a cylindrical base 39mm in diameter and 3mm thick. The edges of this cylinder must be serrated; create this effect by removing 48 small rectangular notches equally spaced around the outer circumference. On the top surface of the coin, add a raised bird image. This image is created b...
mark = 1; if (mark==1) union() { difference() { coin(39,3,0.5); serrate(19.5,47,1,1,20); } translate([0,0,2]) linear_extrude(height=3) scale(0.15) bird3(); } else if (mark==2) union() { difference() { coin(39,3,0.5); serrate(19.5,47,1,1,20); } translate([0,-1,2]) linear_extrude(height=3) scale(0.14) bird4(); }...
glb/cad_a8d12e277983.glb
Create a Bird Coin by constructing a cylindrical base with a diameter of 50mm and a thickness of 3mm. The edges of this cylinder should be serrated, featuring 48 small rectangular notches evenly spaced around the circumference. On the top surface of the coin, add a raised 2D bird silhouette. This silhouette is created...
union() { difference() { coin(50,3,0.5); serrate(25,47,1,1,20); } translate([0.5,-2,2]) linear_extrude(height=2.5) scale(0.22) penny(); } module penny() { polygon (points = [ [-77, 86], [-76, 86], [-75, 86], [-74, 86], [-73, 86], [-72, 85], [-71, 84], [-71, 83], [-70, 82], [-69, 82], [-68, 82], [-67, 82], [...
glb/cad_8705433587dd.glb
Create a simple parametric clutter bowl by constructing a hollowed-out container. First, create a solid base shape by combining a cube with a side length of 10mm and a cylinder with a radius of 10mm and a height of 1mm, then extend this combined form vertically to a total height of 20mm. To create the interior cavity, ...
dimension=20; height=20; wall=0.8; module bottom(outerDimension ) { { { minkowski() { cube([outerDimension - (outerDimension/2),outerDimension- (outerDimension/2) , height - 1], center=true); cylinder(r=outerDimension/2,h=1, center=true, $fn=60); } } } } difference() { botto...
glb/cad_b48bb4a5d95e.glb
Create a Grocery Bag Carrier by constructing a rectangular frame with a central handle cutout. Start with a solid base block measuring 120mm in length, 60mm in width, and 8mm in height. Centered within this base, remove a rectangular section 100mm long, 34mm wide, and 8mm deep to create the handle opening. Along one ...
minkowski(){ difference(){ union(){ translate([-60,-58,-2]) cube([60,116,8]); translate([0,-58,-2]) cube([8,8,22]); translate([-12,-58,20]) cube([20,8,8]); translate([0,-4,-2]) cube([8,8,22]); translate([-12,-4,20]) cube([20,8,8]); translate([0,50,-2]) cube([8,8,22]); translate([-12,50,20]) cube([20,8,8]); } tr...
glb/cad_d47098a2392b.glb
Create a folding cube puzzle consisting of several identical interlocking components. Each component is based on a cube with a side length of 20mm. For each component, create a central body that is the intersection of a 20mm cube and a sphere with a radius of approximately 28.4mm. Within this body, incorporate hinge m...
object=6; L=20; R=2; H=5; tol=0.3; phi=30*1; $fn=12*1; l=L-4*R; n=6*1; if(object==0)plate(); if(object==1){dittoplate();%translate([-33,0,0])dittoplate();} if(object==2)bit1(); if(object==3)bit2(); if(object==4)bit3(); if(object==5)bit4(); if(object==6)animation(); module animation() translate([0,L*(T(1)+T(2)+T...
glb/cad_52953b9fb26d.glb
Create an OpenRail MakerSlide combo consisting of a central base plate and several cylindrical and slotted features. Start with a rectangular base plate measuring 120mm by 90mm with a thickness of 5mm. In the center of the plate, create a T-slot channel that is 130mm long. Around this central area, place four large c...
use<paratslot/paratslot.scad> module slide(h=120){ rotate([90,0,90])difference(){ translate([-15,-5,-h/2])scale([3,3,1])linear_extrude(height=h)import(file="slider.dxf", layer="0"); union(){ for(i=[0:h/20-2]){ translate([0,0,-h/2+20+ i*20])rotate([90,0,0])cylinder(h=20,r=3,center=true,$fn=20); } } } } mod...
glb/cad_05c6f3a7fb1b.glb
Create a low-profile E3D mount by starting with a rectangular block measuring 7mm in width, 30mm in depth, and 10mm in height. Centered along the depth of the block, carve out a horizontal cylindrical channel with a radius of 8mm and a length of 28mm, leaving the ends open. Additionally, create two vertical circular ho...
rotate([0,180,0]){ union(){ difference(){ translate([-40,17.5,26.5]){ cube([7,30,10]); } union(){ translate([-30,32.5,20]){ rotate([0,90,0]){ cylinder(h=28,r=8,center=true, $fn=40); } } translate([-35,19.8,20]){ cylinder(h=40,r=1.8,center=true, $fn=100); } translate([-35,44.8,20]){ cylinder(h=40,r=1...
glb/cad_5ad33f807685.glb
Create a hollow pyramid with a square base. The outer shell is a right square pyramid with a base width of 50.8mm and a vertical height of 35.94mm. The four side faces are equilateral triangles. To create the hollow interior, remove a smaller concentric square pyramid from the center. This inner void should have a base...
function mm(inches) = inches*25.4; base_in = 2.0; hot_in = (base_in/2.0) * sqrt(3.0); hop_in = (base_in/2.0) * sqrt(2.0); bit_in = -1.0; hip_in = -1.0; cos_theta = 1.0/sqrt(3.0); sin_theta = sqrt(2.0/3.0); wall_thickness_in = 3.0/32.0; module outside_pyramid() { linear_extrude(height = mm(hop_in), center = false, ...
glb/cad_ef796ca15dcf.glb
Create a flanged bushing by constructing two concentric cylinders with a shared central hole. First, create a wide, flat circular base with a radius of 10mm and a height of 2mm. Centered on this base, add a taller vertical cylinder with a radius of 4mm and a height of 20mm, extending upwards from the base. Finally, rem...
inner_radius = 2; flange_radius = 10; bushing_radius = 4; bushing_height = 20; flange_height = 2; total_height = flange_height + bushing_height; $fs=1; module bushing() { cylinder(h=flange_height, r=flange_radius); cylinder(h=total_height, r=bushing_radius); }; difference() { bushing(); cylinder(h=total_...
glb/cad_22b96cc73899.glb
Create a MendelMax Prussa Carriage Servo Mount. Start with a main vertical holder block measuring 24mm in length, 12mm in width, and 19mm in height. Carve a rectangular cutout from the center of this block to create a socket that is 9.5mm long, 12mm wide, and 13mm high, leaving a base thickness of 6mm. Drill a horizont...
use <nuts_and_bolts.scad> width=12; length=24; height=19; innerWidth=12; innerLength=9.5; innerHeight=13; difference() { union() { cube([length,width,height]); translate([-7,width,0])cube([38,15,8]); } translate([(length - innerLength) / 2,0,height - innerHeight])cube([innerLength,width,innerHeight]); translate(...
glb/cad_46ebaec4aff4.glb
Create a MendelMax Prussa Carriage Servo Mount. Start with a main holder block measuring 24mm in length, 12mm in width, and 19mm in height. Remove a rectangular inner cutout from the center of this block, starting from the bottom face, with dimensions of 10mm in length, 12mm in width, and 13mm in height. Attach a sec...
use <nuts_and_bolts.scad> width=12; length=24; height=19; innerWidth=12; innerLength=10; innerHeight=13; difference() { union() { cube([length,width,height]); translate([-7,width,0])cube([38,15,8]); } translate([(length - innerLength) / 2,0,height - innerHeight])cube([innerLength,width,innerHeight]); translate([...
glb/cad_699c2cea6979.glb
Create a Prusa i3 Berlin filament guide consisting of a frame grip, a connecting arm, and a circular guide opening. Start by creating a rectangular frame grip with a total depth of 18mm and a wall thickness of 4mm. The grip should have a central rectangular cutout 6mm wide and 20mm high to fit a metal frame. From t...
frame_thickness = 6; guide_x = 45; guide_y = 35; inner_diameter = 15; side = 0; grip_depth = 18; grip_opening_height = 20; grip_wall_thickness = 4; filament_guide_depth = 4; filament_guide_wall_width = 3; filament_guide_notch_width = 2; arm_width = 8; arm_depth = 4; use <utils/build_plate.scad> build_plate(0); m...
glb/cad_53660088433e.glb
Create an AA Battery Holder with Charge Indicator. Start by creating a main body 5mm high, formed by the convex hull of two cylinders with a radius of 8.75mm, spaced 14mm apart along the x-axis. Cut two battery-shaped holes through the body. Each hole is based on a cylinder with a 7.25mm radius. To ensure the batteri...
holder_height = 5; battery_diameter = 14.5; holder_wall_width = 2.5; tongue_width = 1.7; tongue_intrusion = 1.1; icon_width=15; icon_height=15; icon_depth= 0.3; inner_radius = (battery_diameter*0.5); outer_radius = inner_radius+holder_wall_width; hole_step_length = (2*outer_radius)-holder_wall_width; sin45 = si...
glb/cad_987ea52adb7c.glb
Create a Nerf Dart Shower Caddy Anchor consisting of a suction cup mount and a wire clip connected by a flat base. First, create the suction cup mount as a cylinder with a diameter of 12.5mm and a height of 10mm. Center a vertical hole with a diameter of 7mm through the entire height of this cylinder. Next, attach ...
diameter = 12.5; holeDiameter = 7; height = 10; thickness = 4; clipThickness = 10; clipHeight = 13; gap = 2 ; wireDiameter = 5.5; gutterWidth = 4.7; $fn = 20; length = clipThickness + gap + diameter/2; gutterHeight = clipHeight-wireDiameter/2 - 2; difference() { union() { ...
glb/cad_a64e0a5aeea0.glb
Create a 3D pixel art model based on a specific grid pattern. The model is composed of multiple small cubes, each measuring 4.5mm x 4.5mm x 4.5mm. These cubes are arranged on a 2D plane where the distance between the centers of adjacent cubes is 5mm in both the X and Y directions, resulting in a slight 0.5mm overlap be...
pixels="/__*_____*__/___*___*___/__*******__/__*__*__*__/_**__*__**_/***********/*_*******_*/*_*_____*_*/___**_**___"; xUnit=5; yUnit=5; zUnit=5; overlap=-10; overlapFactor=1+overlap/100; unitSize=[xUnit,yUnit,zUnit]*1; newPixel(pixels,unitSize,overlapFactor,center=true); module newPixel(pixels,unitSize,overlap...
glb/cad_b91291b93768.glb
Create a Carcassonne Tile Grid designed to hold nine game tiles in a 3x3 arrangement. Start with a base plate that is 1mm thick. The total width and length of the grid are 140mm (calculated as three 46mm tiles plus two 1mm walls). Construct a grid of walls with a height of 2.5mm and a thickness of 1mm. These walls sh...
baseheight = 1; wallheight = 2.5; wallwidth = 1; crosslength = 20; tileside = 46; floorwidth = 5; totalwidth = 3*tileside+2*wallwidth; firstdividecenter = tileside+wallwidth/2; seconddividecenter = tileside*2+wallwidth+wallwidth/2; centerfirsttile = tileside/2; centersecondtile = tileside+wallwidth+tileside/2; centerth...
glb/cad_816a2084893f.glb
Create a Customizable Couch Cup Holder by constructing a main cylindrical vessel and an attached support handle. Start with a hollow cylinder for the cup holder that has an outer radius of 55mm, an inner radius of 50mm, and a total height of 95mm. The bottom wall of this cylinder should be 5mm thick, leaving an interna...
cupRadius=50; cupDepth=90; handleDepth=105; wallThickness=5; handleThickness=5; clipLength=30; clipAngle=5; $fn=100; module inner_cup() { translate([0, 0, wallThickness]) { cylinder(cupDepth + 1, cupRadius, cupRadius); } } module cup_holder() { difference() { outer_cupDepth=cupDepth + wallThi...
glb/cad_e0e652a8ee51.glb
Create a sin cup by constructing a circular base and a complex undulating wall. Start with a solid cylinder centered at the origin with a radius of 20.3mm and a height of 1mm. Around the perimeter of this base, generate 181 thin vertical columns, each with a radius of 0.3mm. Position these columns at equal angular inte...
num=180; wave_num=4; circ_width=.6; base_radius=20; bs=base_radius; cylinder (r=bs+circ_width/2,h=1,$fn=72*5/2); module mod(z) { rotate ([0,0,z*360/num]) translate ([bs,0,0]) rotate ([0,10+ 5*sin(z*360*4*wave_num/num)+5*sin(z*360*3*wave_num/num),0]) scale ([1,1,1]) cylinder (r=circ_width/2, h=40+2*si...
glb/cad_7b8343d73f0b.glb
Create a simple lidded box consisting of a base and a lid. For the base, create a rectangular solid 75mm by 50mm with a height of 20mm. Round all four vertical corners with a radius of 2mm. Hollow out the center of the base by removing a rectangular section starting 2.5mm from the bottom and 2.5mm from the side walls, ...
x = 75; y = 50; z = 20; w = 2.5; irim = 0; orim = 1.5; r = 2; module case(); union() { difference() { $fn=50; hull() { translate([x-r,y-r])cylinder(r=r,h=z); translate([r,y-r])cylinder(r=r,h=z); translate([x-r,r])cylinder(r=r,h=z); translate([r,r])cylinder(r=r,h=z); ...
glb/cad_240204e2cfcd.glb
Create a box holder clamp consisting of two mirrored components. For a single clamp, start with a main housing block that is 22mm wide, 38mm long, and 32mm high. Hollow out the center to create a U-shaped channel that is 19mm wide, 38mm long, and 32mm high, leaving a wall thickness of 3mm. The bottom of this housing sh...
box_ht = 32; block_ht= 6; top_tab= 0; side_tab = 0; length= 38; box_wd = 19; tab_width = 25; screw_dia=5; slot_sp=5; thickness = 3; $fn=20; module housing() { difference() { difference () { cube([thickness+box_wd,length,box_ht+thickness]); translate([thickness+side_tab,0,block_ht]) cube([box_wd+2, leng...
glb/cad_5c56220eb899.glb
Create a roller chain assembly consisting of rollers, inner links, and outer links. Create a roller as a hollow cylinder with an outer diameter of 11mm, a height of 6mm, and an inner hole diameter of 5.2mm. Construct an inner link by creating two cylinders with a diameter of 15mm and a height of 1.2mm, positioned 25...
OneLinkSet(); Pin_d=3.8; Roller_w=6; UserRoller_od=11; Gap=0.44; EndGap=0.34; Link_t=1.2; ThinWall=1.2; UserLink_d=15; UserPitch=25.4; PinWeld_Xtra=0.8; PinEndInset_d=0.4; Overlap=0.05; IDXtra=0.2; $fn=90; Pin_id=Pin_d-ThinWall*2; LinkPin_id=Pin_d+Gap*2+IDXtra; LinkPin_d=LinkPin_id+ThinWall*2; Roller_id=LinkPin_d+G...
glb/cad_bbe5ebdf3cfe.glb
Create a 3D model of a 1550 Airfoil. Start by constructing a thin, aerodynamic wing profile based on the provided coordinate set. Scale this profile to a wing width of 200mm and extrude it to a height of 5mm, centering the shape. To create the mounting bracket, extrude the same airfoil profile to a height of 7mm, but...
bracket_height=5; wing_width=200; difference(){ linear_extrude(height=bracket_height,center=true) translate([-wing_width/2,0,0]) scale(wing_width,wing_width,1) polygon( [ [ 1.0000 , .00134 ] , [ .99804 , .00200 ] , [ .99260 , .00372 ] , [ .98401 , .00594 ] , [ .97220 , .00866 ] , [ .95749 , .01168 ] ...
glb/cad_19c296fb6631.glb
Create a movement tray for wargaming by constructing a rectangular base and removing a central section to leave a thin outer rim. Start with a solid rectangular block that is 107mm wide, 53mm deep, and 3mm high. From this block, remove a smaller rectangular volume from the top to create a recessed tray. This inner cuto...
tray_width = 107; tray_depth = 53; edge_height = 3; edge_width = 2; difference () { cube ( [tray_width, tray_depth, edge_height], center=true ) ; translate ([0,edge_width,1]) { cube ( [tray_width-edge_width*2, tray_depth-edge_width+1, edge_height], center=true ) ; } }
glb/cad_9e920799a6bd.glb
Create a headphone hook by extruding a specific 2D profile to a height of 40mm. The base profile is composed of several connected rectangular and polygonal sections. Start with a 22mm by 2mm horizontal rectangle at the bottom. Attach a vertical pillar 2.2mm wide and 49mm tall starting from the left edge. At the top of ...
linear_extrude(height = 40) union () { square([22,2]); square([2.2,49]); translate([1,38]) polygon([[0,0],[10,10],[0,10]], [[0,1,2]]); translate([0,47]) square([37,2]); translate([35,47]) square([2,24]); translate([15,69]) square([22,2]); } translate([0,45,15]) rotate([90,0,0]) linear_extrude(height = 45) polygo...
glb/cad_3379809d2e22.glb
Create a square cookie cutter with an inner cutter and a grip frame. Start by creating the outer cutter as a hollow square tube with an outer dimension of 75mm by 75mm and a height of 23mm, with a wall thickness of 0.5mm. Inside this, center a second, smaller hollow square tube for the inner cutter. This inner tube s...
Has_Inner_Cutter = "yes"; Cutter_Thickness = 0.5; Outer_Side = 75; Outer_Height = 23; Inner_Side_Difference = 15; Inner_Height_Difference = 3; Frame_Thickness = 3; Frame_Flange = 2; union() { translate([0, 0, -(Outer_Height / 2) - (Frame_Thickness / 2) + (Frame_Thickness / 10)]) difference() { ...
glb/cad_435bc20a4d8e.glb
Create an SMA Mount by starting with a base plate 8mm thick. The main body consists of two outer cylinders, each with an outer radius of 3.5mm and an inner hole radius of 2.5mm, positioned 32mm apart from center to center along the Y-axis. Connect these two cylinders with a central rectangular strut that is 3mm wide an...
standoff_distance = 32; height = 8; min_thickness = 1; strut_thickness = 3; $fn=100; difference() { linear_extrude(height) union() { translate([standoff_distance/2, 0, 0]) circle(r=2.5+min_thickness); translate([-standoff_distance/2, 0, 0]) circle(r=2.5+min_thickness); t...
glb/cad_367bb81f2166.glb
Create a PVC pipe mount consisting of a square base and a central cylindrical sleeve. Start by creating a square base plate measuring 40mm by 40mm with a thickness of 5mm. In the center of this plate, place a vertical cylinder with an outer diameter of 24mm and a height of 30mm. This central cylinder must be hollowed o...
module pvc_mount() { difference() { difference(){ translate([0,0,2.5]) { cube([40,40,5], true); } cylinder(60,9.2,9.2, $fn = 50); } union() { translate([14,14,1.00001]) { cylinder(4,2,4, $fn = 50); } translate([14,14,0]) { cylinder(2,2,2, $fn = 50); } translate([-14,-14,1.00001]) {...
glb/cad_abe7a648359e.glb
Create a flashlight on/off switch consisting of a main rectangular body with a central dividing wall. Start by creating a rounded rectangular base measuring 13.9mm in width, 29.96mm in length, and 4.66mm in height, with corner radii of 4mm. Hollow out the center of this base by removing a rounded rectangular section me...
$fn=64; translate([0,9.4,1.50]) { lock(); } translate([1.75+ 12.14,11.03+9.4,1.50]) { rotate([0,0,180]) { lock(); } } difference() { difference() { difference() { roundedcube(13.9,29.96,4.66,4); translate([1.47,1.47,1.47]) { roundedcube(10.96,10.16,6,3); } } translate([1.47,13.10,1...
glb/cad_2b1a9cb4d06f.glb
Create a Customizable Picture Frame consisting of two identical mirrored arms and a central joining piece. The frame is designed to hold a rectangular insert measuring 127mm by 76.2mm with a thickness of 3.175mm. Each arm is a flat strip 12.7mm wide and 4mm thick. Create the arm by starting with a solid rectangular bl...
part = 0; in = 25.4*1; thick = 2; widthInches = 5; widthMM = 0; heightInches = 3; heightMM = 0; thicknessInches = .125; thicknessMM = 0; armInches = .5; armMM = 0; band = armInches*in+armMM; x=widthInches*in+widthMM; y=heightInches*in+heightMM; z=thicknessInches*in+thicknessMM; r = x/y; angle=atan(r); xi = x-b...
glb/cad_02afb6b66f3c.glb
Create two mirrored FPV camera mounting brackets. For each bracket, start with a central vertical cylinder with a radius of 2.5mm and a height of 16mm, which serves as the standoff mount. Wrap this cylinder in a layer of material 1mm thick up to a height of 8mm. Attached to this mount, create a lens blade structure wi...
standoff_distance=34; standoff_radius=2.5; standoff_wrap_height=8; standoff_wrap_thickness=1; camera_width=19; camera_forward_offset=11; camera_downward_offset=4; camera_lens_blade_radius=13; camera_lens_blade_thickness=2.5; camera_body_radius=4; camera_screw_hole_diameter=2.1; camera_screw_counterbore_diameter=4.4; ca...
glb/cad_07e0a607fc9c.glb
Create a GoPro bicycle handlebar stem mount designed for oval stems. Start by constructing a hollow oval ring with an inner diameter of 28mm by 32mm and a wall thickness of 3mm. The ring should have a height of 10mm. On one side of the ring, integrate a connection block that consists of three parallel rectangular tabs...
$fn = 50; bolt_hole_r = 5.5 / 2; inner_a = 28; inner_b = 32; thickness=3; thickness_z=2.3; extra_forbi_mitten=10; tmp = inner_a+thickness*4; bunt_tjock=3; module GoPro_Connection() { translate([0,3,0]) { difference() { union() { cube([3,10,10]); translate([0,10,5]) rotate([90,0,90]) cylinder(...
glb/cad_f1be68f8bf81.glb
Create a 90-degree mount bracket for an HC-SR04 sensor. Start by constructing a main rectangular base plate measuring 50mm in length, 26mm in width, and 3mm in thickness. Attached to this base, add a vertical wall that is 50mm long, 25mm high, and 3mm thick, positioned along one of the 50mm edges to form an L-shape. Fr...
module hole(x, y, rot, size, facet) { rotate(a = rot, v = [1, 0, 0]) { translate([x, y, 0]) { cylinder(r = size, h = 100, center = true, $fn=facet); } } } union() { difference () { translate([-50/2, -26/2, 0]) { cube([50,27,3]); } tran...
glb/cad_20e9c625165b.glb
Create a spur gear with 20 teeth and a total thickness of 4mm. Each tooth is defined by a symmetrical polygon profile: the base of the tooth is 3mm wide, tapering to a top width of 2mm, with a tooth height of 3mm. The teeth are arranged radially around a central axis. The inner radius of the gear's core is determined b...
teeth = 20; base = 3 / 2; top = 2 / 2; height = 3; thick = 4; hole = 2; theta = 180 / teeth; spaceD = (base + top * cos(theta)) / sin(theta); baseD = spaceD * cos(theta) + top * sin(theta); mR = baseD + height / 2; echo("Tooth Mesh Radius ="); echo(mR); echo("Contact Circumference ="); echo(2 * 3.14 * mR); gP = atan(...
glb/cad_887a0b881e10.glb
Create a double helix gear with 30 teeth and a total thickness of 10mm. The gear is centered around a vertical hole with a radius of 2mm. Each tooth is constructed from a profile with a base width of 3mm, a top width of 2mm, and a height of 4mm. To form the double helix, create two mirrored sets of teeth: one set ext...
teeth = 30; base = 3 / 2; top = 2 / 2; height = 4; thickness = 10; hole = 2; ang = 5; nSlices = 5; isDouble = 1; thick = thickness / (isDouble + 1); theta = 180 / teeth; spaceD = (base + top * cos(theta)) / sin(theta); baseD = spaceD * cos(theta) + top * sin(theta); mR = baseD + height / 2; echo("Tooth Mesh Radius =...
glb/cad_ff503c7760aa.glb
Create a double helix gear with 30 teeth and a central hole with a radius of 2mm. The gear has a total thickness of 10mm, composed of two mirrored helical sections each 5mm thick. Each tooth is defined by a trapezoidal profile with a base width of 3mm, a top width of 2mm, and a height of 4mm. Extrude this profile alo...
teeth = 30; base = 3 / 2; top = 2 / 2; height = 4; thickness = 10; hole = 2; ang = 5; nSlices = 5; isDouble = 1; thick = thickness / (isDouble + 1); theta = 180 / teeth; spaceD = (base + top * cos(theta)) / sin(theta); baseD = spaceD * cos(theta) + top * sin(theta); mR = baseD + height / 2; echo("Tooth Mesh Radius =...
glb/cad_4f597737d91d.glb
Create a generic bike handlebar bracket with a slide rail. Start by constructing a semi-circular hoop with an inner diameter of 12.5mm, a wall thickness of 5mm, and a total depth of 10mm. To this hoop, attach a rectangular mounting block that serves as the slide rail. This block consists of two joined rectangular prism...
inner=12.5; thick=5; deep=10; module sweep_clip(inner=20, thick=4, deep=4) { union() { for(r=[-20:2:200]) { rotate([0,0,r]) translate([inner+thick/2,0,0]) cylinder(r=thick/2, h=deep); } } } sweep_clip(inner, thick, deep); translate([-5.5,inner+thick-2,0]) cube([11,10,10]); translate([-7.5,inner+thick+10-2,0...
glb/cad_54503a6ca599.glb
Create a generic bike handlebar bracket with a slide rail. The main body is a hinged clamp designed for a handlebar with a diameter of 22.5mm. The clamp consists of two primary sections joined by a hinge axis. For the hinge, create a cylindrical hole through the width of the mount to accommodate an M3 bolt. On one sid...
$fn = 60; module arc(r1,r2,h,a1=0,a2=0){ if(a2-a1<=180){ difference(){ cylinder(r=r2,h=h); translate([0,0,-1])cylinder(r=r1,h=h+2); rotate(a2)translate([-r1-r2,0,-1])cube([2*(r1+r2),2*(r1+r2),h+2]); rotate(a1+180)translate([-r1-r2,0,-1])cube([2*(r1+r2),2*(r1+r2)...
glb/cad_d9383d6cc82a.glb