Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a square furniture foot with a total height of 26mm and an external width and depth of 28mm. The main body should have rounded corners with a radius of 4mm. The bottom of the foot is shaped as a hemisphere with a radius of 20mm. Carve a square hole into the top of the foot that is 22mm wide, 22mm deep, and 17m...
ext_size = 28; int_size = 22; depth = 17; tabs_height = depth * 2 / 3; tabs_count_per_face = 3; tabs_width = 3; tabs_length = 1; tabs_side_spacing = 4; foot_radius = 20; total_height = 26; corner_radius = 4; tabs_spacing = (int_size - 2 * tabs_side_spacing - tabs_count_per_face * tabs_width) / (tabs_count_per_face - 1...
glb/cad_4b24245ea922.glb
Create a Dremel Adapter for a Mini Drill Press consisting of a central ring and a mounting plate. Start by creating a main cylindrical collar with an outer diameter of 55mm and an inner diameter of 50mm, and a height of 8mm. On one side of the collar, attach a rectangular mounting plate that is 30mm wide, 7mm thick, ...
bodyMount(); module bodyMount() { union() { difference() { rotate([0,0,0]) translate([0,-1,0]) cylinder(r=55/2, h=8, center=true, $fn=50); rotate([0,0,0]) translate([0,-1,0]) cylinder(r=50/2, h=10, center=true, $fn=50); rotate([0,0,0]) translate([20,-1.50,-5]) cube([20,3,10]); rotate([0,0,0]) translate...
glb/cad_252375d073c2.glb
Create a Dremel Adapter for a mini drill press consisting of a cylindrical collar and a mounting plate. First, construct the collar by creating a cylinder with an outer radius of 15mm and a height of 8mm. Hollow this out by removing a concentric cylinder with a radius of 12.5mm and a height of 10mm. From this collar,...
use <Screw_Library/Thread_Library.scad> collarMount(); translate([-30,0,0]) rotate([180,0,0]) *dremelAdapter(); module collarMount() { union() { difference() { rotate([0,0,0]) translate([0,-1,0]) cylinder(r=30/2, h=8, center=true, $fn=50); rotate([0,0,0]) translate([0,-1,0]) cylinder(r=25/2, h=10, center=tr...
glb/cad_47e1330d9ffc.glb
Create a Nema 17 captive washers spacer with a uniform thickness of 2.5mm. Start by creating a primary ring with an outer radius of 19.9203mm and an inner radius of 16.9203mm, both 2.5mm high. Cut a rectangular slot out of this ring that is 20mm wide and 40mm long to leave a semi-circular C-shape. To this base, add thr...
thickness = 2.5; screw_hole_diameter = 4; union() { for ( i = [0 : 2] ) { rotate( i * 90, [0, 0, 1]) translate([0, 21.9203, 0]) difference(){ cylinder(h = thickness, r=5); cylinder(h = thickness, r=(screw_hole_diameter/2)); } } difference(){ cylinder(h=thickness, r=19.9203); union(){ c...
glb/cad_76f4fd558329.glb
Create an air propelled car axle by constructing three concentric cylindrical components aligned along a single vertical axis. First, create a central thin disc with a radius of 6mm and a thickness of 3mm. Positioned centrally through this disc, create a primary cylinder with a radius of 2.3mm and a total height of 30m...
rad2=4.6/2; height1=30; translate(v = [0, 0, height1/2]) { cylinder(h = height1, r1 = rad2, r2 = rad2, center = true, $fs=0.05); } rad1=5/2.0; binset=7.5; hinset=5.5; height2=height1-binset-hinset; translate(v = [0, 0, height2/2+binset]) { cylinder(h = height2, r1 = rad1, r2 = rad1, center = true, $fs=0.01);...
glb/cad_e3bf59863f48.glb
Create a 3D printer filament spool holder arbor by starting with a truncated cone that has a height of 16mm, a bottom radius of 10mm, and a top radius of 30mm. From the center of this shape, remove a cylinder with a radius of 4.1mm and a height of 17mm, using a 25-facet resolution. Additionally, remove a second cylinde...
difference() { cylinder(h = 16, r1 = 10, r2 = 30, center = false); #translate([0,0,9]) cylinder(8,r=11.1,$fn=25); #translate([0,0,0]) cylinder(17,r=4.1,$fn=25); } translate([0,0,8.7]) cylinder(h = .3, r = 11, center = false);
glb/cad_638a4e11564f.glb
Create a Watchmakers Movement Holder by starting with two rectangular blocks, each measuring 600mm in length, 200mm in width, and 70mm in height. Position these blocks side-by-side so they are mirrored across the Y-axis, with one block shifted 220mm in the negative Y direction. From this combined mass, remove a centr...
difference() { union() { translate ([-300,20,0]) {cube ([600,200,70]);} translate ([-300,-220,0]) {cube ([600,200,70]);} } union() { translate ([0,0,40]) cylinder (r=128, h=54.5); translate ([0,0,-5]) cylinder (r=115, h=54.5); translate ([250,350,35]){ rotate(a=[90,0,0]){ cyl...
glb/cad_59e3691f2348.glb
Create a MK7/QU-BD hotend mount for a deltabot. Start with a rectangular base plate measuring 30mm by 42mm with a thickness of 3mm. At the corners of this base, add four cylindrical columns with a radius of 4mm and a height of 20mm. These columns should be positioned to facilitate stepper attachment. In the center ...
translate([0,0,0]) rotate([0,0,270]) extruder_block(); nema_l=71.5; nema_x=42; nema_y=42; nema_z=47.4; screw_l=30; insert_l=15; module axle_8mm() { cylinder(16,r=3.80, $fn=40); translate([-5,-0.5,0]) cube([10,1,1]); translate([-0.5,-5,0]) cube([1,10,1]); difference() { cylinder(1,r=10, $fn=40); translate([0,...
glb/cad_b1d1647f66e3.glb
Create a chassis for an LC100-A Induction/Capacitance Meter consisting of a lower base and an upper lid. For the lower base, create a rectangular box with external dimensions of 85mm x 55mm and a height of 22mm. The walls and floor should be 2mm thick. The interior core space is 83mm x 53mm x 20mm. On the side walls,...
support_w = 0.40; core_x = 81.0 + 2.0; core_y = 51.0 + 2.0; core_z = 20.0; lip_dz = 0.7; corner_r = 2; wall = 2.0; floor = 2.0; chamfer1 = 0.8; lcd_y = 36.0 + 2.0; lcd_z = 8.0; lcd_h = 4.0; lcd_dy = 25.0; lcd_dx = 71.9; mnt_dy = 45.8; mnt_lcd_dy = 31.0; mnt_lcd_dz = 3.0; mnt_dx = 75.3; mnt_d = 3.2; mnt_head = 5.5; ...
glb/cad_bda50f9e5159.glb
Create a Circular Stand consisting of three identical legs spaced 120 degrees apart around a central axis. Each leg is formed by the intersection of a rectangular block and a series of concentric cylinders. The rectangular block for each leg is 10mm wide and centered on the leg's radial axis. Construct each leg using ...
include <MCAD/units.scad> legCenterAngles = [0, 120, 240]; legWidth = 10; legSegmentLengths = [10.75, 2, 0, 0, 0]; legSegmentHeights = [5, 30, 0, 0, 0]; $fn = 100; function add(v, i = 0, imax = 1e200) = i < len(v) - 1 && i < imax ? v[i] + add(v, i + 1, imax) : v[i]; module Stand() { intersection() { ...
glb/cad_e93b056142fd.glb
Create a puzzle set consisting of a hollow container and a variety of rectangular blocks. First, construct the container as a cube with outer dimensions of 5.4mm x 5.4mm x 5.2mm, with a centered cubic hole removed from the interior measuring 5.2mm x 5.2mm x 5.2mm to create a thin-walled open box. Next, create the fol...
module parts() { translate([3,-2.5,0]) cube(size=[1,1,1], center=false); translate([3,-1.0,0]) cube(size=[1,1,1], center=false); translate([3,0.5,0]) cube(size=[1,1,1], center=false); translate([3,2,0]) cube(size=[1,1,1], center=false); translate([3,3.5,0]) cube(size=[1,1,1], center=false); translate([4.5,...
glb/cad_42976d006703.glb
Create a cubist torus by placing 180 small cubes in a spiral sequence. Position the center of the entire assembly at coordinates (0, 0, 12). For each cube in the sequence, starting from index 1 to 180, rotate the placement point around the Z-axis by increments of 2 degrees. At each point, calculate the position of the ...
n = 90; twists = 2; tilt = 0; translate([0,0,8+4/2]) for (i = [1:n*2]) { rotate([0,0,i*360/n]) translate([ -20+5*sin(i*360*(twists+.5)/n), 0, 8*cos(i*360*(twists+.5)/n) ]) rotate([ 90-tilt, 0, 0 ]) cube([ 3 + abs(8 * cos(30+i*360*(twists+0.5)/n)), 4, 4 ], center=true); } %translate([0,0,-5]) ...
glb/cad_e27dd8a187c5.glb
Create a parametric USB power hub consisting of two separate parts: a main connector block and a backing support. All external corners and edges should be rounded with a radius of 2mm. For the main block, create a rectangular shell with outer dimensions of 19.2mm width, 15.2mm height, and 27mm depth. Hollow out three ...
connectors=3; wall=3; wiggle=0.2; usb_connector_width=13.2 + wiggle; usb_connector_height=15.2 + wiggle; usb_connector_thickness=5.75 + wiggle; module round_corners(depth=2, facets=10) { minkowski() { difference() { union() { for (i = [0 : $children-1]) child(i); } minkowski(){ difference() {...
glb/cad_3824ac6aba88.glb
Create a Parametric Tube Clamp designed to connect tubes of 12mm diameter. Start with a central sphere with a diameter of 38.4mm. From this sphere, create three identical cylindrical sockets, each with an inner diameter of 12.25mm, radiating outwards from the center at 120-degree intervals. These sockets should be posi...
include <utils/build_plate.scad> tube_diameter=12; screw_diameter=4; build_plate_selector = 0; build_plate_manual_x = 246; build_plate_manual_y = 152; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); cyl_diameter = 12.4 *1; top_cut = 0.3 *1; cut = 6 *1; insert = 3*1; entre_tube = 0*1; s...
glb/cad_617ef4ea86c9.glb
Create a door fixation bracket. Start with a base rectangular plate measuring 63.5mm by 18mm with a thickness of 9mm and corner radii of 2mm. At one end of this base, integrate a vertical cylindrical post with a radius of 3.2mm and a height of 18mm. On the opposite side of the base, add a vertical structure consistin...
$fn=120; vis1_x=10; vis2_x=40; difference() { union() { base(); fermeture(); } translate([vis1_x, 10, 4]) cylinder(r=5, h=6); translate([vis2_x, 10, 4]) cylinder(r=5, h=6); translate([vis1_x, 10, -1]) cylinder(r=2, h=12); translate([vis2_x, 10, -1]) cylinder(r=2, h=12); coin_souple(); } transl...
glb/cad_28cbb63c7fdc.glb
Create a funnel for filling a bottle by constructing a hollow conical shape with a 24-facet resolution. The main body is a truncated cone with a height of 45mm, tapering from a bottom radius of 30mm to a top radius of 68mm. The wall thickness is 3.5mm, created by removing a concentric inner cone that tapers from a radi...
include <threads.scad> include <Write.scad> threadHeightToPitch=0.5; profileRatio=0.5 ; threadAngle=30 ; RH=true ; countersunk=0 ; clearance=0.1 ; backlash=0.1 ; stepsPerTurn=14; union() { rotate([0,180,0]) translate([0,0,-45]) difference() { translate([0,0,0]) cylinder(r1=30, r2=68, h=45,$fn=24,center...
glb/cad_75720d945da1.glb
Create a funnel for filling a bottle. The main body is a hollowed-out conical frustum with a height of 35mm. The outer wall of this frustum tapers from a base radius of 30mm to a top radius of 48mm. The interior is hollowed out by a concentric frustum with a height of 36mm, tapering from a base radius of 26.5mm to a to...
include <threads.scad> include <Write.scad> threadHeightToPitch=0.5; profileRatio=0.5 ; threadAngle=30 ; RH=true ; countersunk=0 ; clearance=0.1 ; backlash=0.1 ; stepsPerTurn=14; union() { rotate([0,180,0]) translate([0,0,-45]) difference() { translate([0,0,0]) cylinder(r1=30, r2=48, h=35,$fn=24,center...
glb/cad_0b00508353d0.glb
Create a wire clamp by starting with two cylinders, each 5.5mm in diameter and 2.75mm high, positioned with their centers 14mm apart along the x-axis. Connect these two cylinders with a convex bridge that arcs between them; this bridge is formed by a cylinder with a radius of 8mm and a length of 5.5mm, oriented horizon...
width=5.5; hole2hole=14; hole_diameter=3; thickness=2.75; bridge_radius=8; bridge_height=2; $fs=.5; $fa=.5; zb=bridge_height-bridge_radius+thickness; difference() { union() { hull() for(i=[-1,1]) translate([hole2hole*i/2,0,0]) cylinder(d=width,h=thickness); translate([0,-width/2,zb]) rotate([-90,0...
glb/cad_25fe8cbfc411.glb
Create a hanging tray for a pegboard with overall dimensions of 90mm length, 40mm depth, and 35mm height. The tray has walls 2.5mm thick. The front face is open, meaning the front wall is removed from the bottom up to 23.3mm (approximately 2/3 of the total height), leaving only the side walls and the bottom edge for st...
length=90; height=35; depth=40; wall=2.5; hooks=height+20; open="true"; hexbase="true"; tray(length, depth, height, wall, hooks, (open == "true"), (hexbase == "true")); module boxhook(length) { unit = 5; width= 4.25; linear_extrude(width) { round2d(2,1) { if (length >= 50) { ...
glb/cad_6bb291c6d628.glb
Create a Backlit Acrylic Base consisting of a main base and two endcaps. For the main base, create a rectangular block with a length of 200mm and a depth of 60mm. Cut two parallel longitudinal channels through the top: one for a 10mm wide LED strip and a second, slightly wider channel to grip an acrylic sheet with a ...
MODE = "set"; BASE_SHAPE = "A"; CONNECTOR_STYLE = 1; ACRYLIC_DEPTH = 3.2; ACRYLIC_WIDTH = 200; SUPPORTED_HEIGHT = 25; BASE_DEPTH = 60; BASE_REMOTE_HOLDER = false; BASE_CARD_TRAY = false; BASE_CAP_WIDTH = 20; BASE_CAP_OVERLAP = 10; LED_ELEVATION = 5; LED_HEIGHT = 3; LED_WIDTH = 11; REMOTE_SIZE = [40,8,87]; CA...
glb/cad_ec530458c075.glb
Create a Hi-rez lithophane gallery consisting of two adjacent rectangular image panes. Each pane is 75mm wide and has a total height of 2.2mm (based on a 0.1mm layer height). The panes are separated and surrounded by a border 1mm wide. For each pane, create a recessed central area where a lithophane image is embossed....
use <write/Write.scad> image1 = "image-surface.dat"; image2 = "image-surface.dat"; image3 = "image-surface.dat"; image4 = "image-surface.dat"; image5 = "image-surface.dat"; image6 = "image-surface.dat"; image7 = "image-surface.dat"; image8 = "image-surface.dat"; Text_Lines = 0; Top_Text = "First Line"; Botto...
glb/cad_cb6ce6a40077.glb
Create a toothbrush head stand base and three matching inserts. The base is a rounded rectangular block with a width of 35mm, a height of 5mm, and a radius of 17.5mm at the ends. The top surface of the base features a recessed channel 2mm deep that follows the outer perimeter, leaving a raised central area. Along the ...
numHeads = 3; standsSeparate = "Solid"; print = "Base"; shape = "Round"; tolerance = 0.3; plinthH = 4; plinthW=11.7; baseH = 5; baseW = 35; separation = 21.5; stubW = 4; stubD = 6; stubH = 5; depth = 2; inset = 2; if (stubH <= baseH - depth + plinthH - 1) { if (print=="Stand") stand(); else base(); } else...
glb/cad_343d2626843e.glb
Create a 3D model by rotating a specific 2D polygon profile around the Z-axis. The profile is a polygon defined by the coordinates [0,0], [2,1], [1,2], [1,3], [3,4], and [0,5]. Rotate this profile 255 degrees around the Z-axis, starting from the X-axis, with the center of rotation positioned exactly at the origin (radi...
module pie_slice(radius, angle, step) { for(theta = [0:step:angle-step]) { rotate([0,0,0]) linear_extrude(height = radius*2, center=true) polygon( points = [[0,0],[radius * cos(theta+step) ,radius * sin(theta+step)],[radius*cos(theta),radius*sin(theta)]]); }} module partial_rotate_extrude(angle, radius, axial_range, c...
glb/cad_80b30c23ffc4.glb
Create a shaft adapter by starting with a solid cylinder that has a height of 15mm and an outer diameter of 5mm. Centered along the vertical axis of this cylinder, remove a triangular prism hole that extends through the entire height of the object. The cross-section of this triangular hole should be defined by three po...
adapter_height=15; adapter_od = 5; difference() { cylinder(h=adapter_height, d=adapter_od, center=false); linear_extrude(height=adapter_height+2, center=false) polygon(points=[[-1,.5],[1,.5],[0,-1.1]]); }
glb/cad_3036ff59234e.glb
Create a Drag Chain Extruder End part. Start with a main rectangular block measuring 41mm in length, 16mm in width, and 11mm in height. Add a smaller rectangular tab measuring 10mm by 16mm by 10mm positioned at the top rear, extending the total length to 51mm. Carve out a central rectangular channel measuring 37mm lon...
module drag_chain_extruder_end_orig() { translate([-26,0,0]) { import_stl("EndCornerExtruder_optional.stl"); } } module drag_chain_extruder_end() { translate([0,-8,0]) { difference () { union() { translate([-6,0,0]) cube([41,16,11]); translate([2...
glb/cad_9eb569bb9f84.glb
Create a Clip-on Identifier for Cables by constructing a thin, circular ring with a gap. Start with a solid cylinder that has a height of 1.5mm and an outer radius of 5mm. Center this cylinder on the Z-axis. Remove a smaller concentric cylinder from the center with a radius of 4mm and a height slightly greater than 1.5...
MH=1.5; CD=4; WT=1; OD=60; SLICE_SIZE=3.14*(CD)*2/360; difference(){ translate([0,0,MH/2]) cylinder(h=MH, r=CD/2+WT,$fn=60,center=true); translate([0,0,MH/2]) cylinder(h=MH+1, r=CD/2,$fn=60,center=true); for ( i = [1 : OD-1] ) { rotate(i, [0, 0, 1]) translate([(CD+1)/2, 0, (MH)/2]) cube([CD+1,S...
glb/cad_e20c78737314.glb
Create a sun gear for an automatic transmission model. The gear is a herringbone gear with 24 teeth, a total thickness of 20mm, and a diametral pitch of approximately 1.2. The main body is a cylinder with a diameter of 14mm and a height of 20mm. In the center, create a hexagonal hole with a diameter of 7mm and a heig...
use <../MCAD/involute_gears.scad> use <../pins.scad> use <../WriteScad/Write.scad> tol=0.25; stol=0.1; T=20; e=1; D=140; ta=10; pd=8; ph=15; sd=14; re=3; te=5; psi=40; p=2*(T+e+tol)+te+3*e+2*tol; rs=2+stol; lb=12; Trod=10; Lrod=50; na=60; ns=24; np1=14; np2=na-ns-np1; ni=10; pitch=na/(D-2*ta); twistpitch=1; phi=acos...
glb/cad_610e9f7a886d.glb
Create a Microphone Pop Screen consisting of two identical circular frames. For each frame, start by creating a thin ring with an outer radius of 50mm, an inner radius of 45mm, and a height of 3mm. On the top surface of the ring, add a handle mount consisting of a cylinder with a radius of 4mm and a height of 5mm, ce...
catch_radius=50; ring_height=3; rh=ring_height+0; cr=catch_radius+0; union(){ difference(){ cylinder(h=rh,r=cr); translate([0,0,-1]) cylinder(h=rh+2,r=cr-5); } difference(){ translate([0,50,0]) scale([1,2,1]){ cylinder(h=3,r=10); } translate([0,0,-1]) cylinder(h=rh+2,r=48); translate([0,6...
glb/cad_e7e2dcee63ee.glb
Create four identical hollow cylindrical spacers for a Jetson TK1 sandwich-case. Each spacer should be 16mm tall with an outer diameter of 7mm and a centered inner hole with a diameter of 4mm running through the entire height. Ensure the cylinders have a high facet resolution for a smooth circular finish. Position the ...
$fn=100; module offset(){ difference(){ cylinder(h=16, r=3.5); cylinder(h=16, r=2); } } offset(); #translate([0,10,0]) offset(); #translate([10,0,0]) offset(); #translate([10,10,0]) offset();
glb/cad_5ea1edfadb78.glb
Create a Senner Ear Protector Case as a cylindrical container. The main body is a cylinder with an outer diameter of 22mm and a total height of 61mm. Hollow out the center to create a wall thickness of 1mm. The internal cavity consists of two sections: a lower narrow section with a diameter of 16.9mm and a height of ...
$fs = 0.5; $fa = 0.5; off = 0.2; smallerInnerDiameter = 16.9; widerInnerDiameter = 19; smallPartLength = 14; longPartLength = 44; totalLength = 61; outerDiameter = 22; wallThickness = 1; earMaxDiameter = 14; earLengthWide = 12.5; earMidDiameter = 9; earLengthSmall = 5.5; spaceToFirst = 31; spaceToSecond = 8; earLap...
glb/cad_05c07137c80c.glb
Create a helmet mounted bicycle mirror base by starting with a square block measuring 200mm by 200mm with a thickness of 10mm. Centered on this block, add a cylinder with a radius of 15mm and a length of 160mm, oriented horizontally and lying flat against the surface. Finally, bore a circular hole with a radius of 5mm ...
difference(){ union(){ cube([200,200, 10]); translate([100,160,15]) rotate(a = [90,0,0]) cylinder(r=15,h=160); } translate([100,150,15]) rotate(a = [90,0,0]) cylinder(r=5,h=200); }
glb/cad_2a30cd85e92f.glb
Create a helmet mounted bicycle mirror base by starting with a main cylinder that has a radius of 270mm and a height of 30mm. Remove a smaller concentric cylinder from the center of this base with a radius of 260mm and a height of 100mm, starting from a height of 16mm, to create a thin-walled ring. To form the mounting...
difference(){ union(){ cylinder (r=270, h=30); translate([-150,-265,20]) rotate(a = [0,90,0]) cylinder(r=20,h=300); } union() { translate([0,0,16]) cylinder (r=260, h=100); translate([-150,-265,20]) rotate(a = [0,90,0]) cylinder(r=5,h=300); } }
glb/cad_8da90bc41cb3.glb
Create a helmet mounted bicycle mirror base by constructing a wide, shallow cylinder with a radius of 270mm and a height of 30mm. From the center of this volume, remove a smaller concentric cylinder with a radius of 260mm and a height of 100mm, positioned so that it extends 16mm below the bottom surface of the base. Th...
difference(){ union(){ cylinder (r=270, h=30); } union() { translate([0,0,-16]) cylinder (r=260, h=100); } }
glb/cad_5d4b7d2d6e80.glb
Create a helmet mounted bicycle mirror base by starting with a square slab measuring 300mm by 300mm with a thickness of 10mm. Along one edge of this slab, attach a horizontal cylinder with a radius of 20mm and a length of 300mm, centered such that its axis is 20mm above the top surface of the slab. Finally, remove a sm...
difference(){ union(){ cube ([300,300,10]); translate([0,300,20]) rotate(a = [0,90,0]) cylinder(r=20,h=300); } union() { translate([0,300,20]) rotate(a = [0,90,0]) cylinder(r=5,h=300); } }
glb/cad_b584f2d08d4b.glb
Create a Crystal Structures model by starting with a sphere of radius 30mm. From this sphere, remove twelve identical cylindrical slabs to carve out the final geometry. Each slab has a radius of 25mm and a thickness of 21mm. These slabs are positioned as planes that intersect the sphere, with their centers located 21mm...
translate([0,0,21]) rotate([35,30,0]) drawing(); module drawing() { difference() { sphere(r=30,center=true); union() { mkplane ( -1.0000000, 0.0000000, 0.0000000,25,25,21); mkplane ( -0.5000000,-0.5000000,-0.7071068,25,25,21); mkplane ( -0.5000000,-0.5000000, 0.7071068,25,25,21...
glb/cad_373f1f741ca5.glb
Create a graduated Erlenmeyer flask with a wall and floor thickness of 1.2mm. The base consists of a flat circular floor with a radius of 40mm and a height of 22mm (calculated as 40mm * 0.55). Above this base, create a conical body that tapers upward to a neck. The total height of the conical section is 200mm (40mm * 5...
epsilon = 1*0.01; pi = 1*3.14159; rez_lo = 1*16; rez_mid = 1*48; rez_high = 1*96; width_gradient_line = 1*10; height_gradient_line = 1*1; depth_gradient_line = 1*5; thickness_wall = 1.2; radius_base = 40; base_curve_factor = .55; cone_height_factor = 5.0; neck_radius_factor = 0.45; neck_height_factor = 0.6; radi...
glb/cad_371ac7eb868a.glb
Create a drawer frontplate mount consisting of a central rectangular base with integrated mounting features. Start with a main body that is roughly 20mm wide, 14mm deep, and 10mm thick. On the top surface, place two identical screw-hole assemblies positioned symmetrically at x=5.5mm and y=±16mm. Each assembly is a cy...
rotate_knob_angle = 0; adjust = 0; module screw_hole(){ difference(){ cylinder(h=6.5,d=12.5,center=false); translate([0,0,-0.1]) cylinder(h=3.7,d=6.6,center=false); translate([0,0,3.5]) cylinder(h=3.1,d=10.5,center=false); } } module rotate_knob(){ rotate([rotate_knob_angle,0,0]) ...
glb/cad_102ca06419b0.glb
Create a T-Slot Quickswap Endcap Mount consisting of two separate parts: a plug and a connector base. For the plug, start with a central cube of 20mm x 20mm x 2mm. On the top face, add four symmetrical lip extensions radiating from the center. Each lip is 2mm thick and extends 5.9mm deep from the outer edge. The inner...
Size = 20; PlugDepth = 5; CenterDiameter = 4.15; CenterDepth = 8; SlotWidth = 5; SlotDepth = 5.9; LipThickness = 2; LipAngle = 45; module plug(width=20, depth=5, centerDepth=8, centerDiameter=4.15, lipThickness=2, lipAngle=45, slotWidth=5, slotDepth=5.9) { halfSlot = 0 - (slotWidth / 2); trueCenterDept...
glb/cad_5f2369d855cb.glb
Create a customizable whiteboard eraser by starting with a solid rectangular block measuring 40mm in width, 100mm in length, and 30mm in height. Carve a cylindrical channel through the center of the block to create a belt-like void; this channel should have a diameter of 10mm and be offset by 1mm from the outer edges o...
Width = 40; Length = 100; Height = 30; label_text = " RafaelEstevam"; label_ffsetX = 15; label_font = "Liberation Sans"; label_size = 10; label_heigh = 1.5; eraser(); module eraser(){ if (label_heigh > 0 && len(label_text) > 0) label(); difference(){ cube([Width, Length, Height]); belt(); ...
glb/cad_bc324cbbca72.glb
Create a Gears Gears Gears to Duplo adapter consisting of a hollow base and a connecting top. Start by creating a hollow square base with outer dimensions of 20.1mm by 20.1mm and a height of 12mm. The walls should be formed by removing a centered 16.5mm square inner cutout, and the four vertical corners of the base mus...
SCALE=1; LEGO_DIV=true; include <./MCAD/boxes.scad> include <doblo-factory-1-11.scad>; $fn = 32; o_dim = 20.1; i_dim = 16.5; h_dim = 12; c_rad = 2.75; f_dim = 6; doblo_dim =32; doblo_levels = 2; doblo_thick = 4.8*doblo_levels; module base() { translate([0,0,h_dim/2]) difference() { roundedBox([o_dim, o_dim, h_d...
glb/cad_4410d94d7591.glb
Create a Mini-Mendel Bowden nut-coupling. Start with a central cylindrical body that has a height of 10mm and an outer diameter of 17mm. At the top of this cylinder, add a 3mm tall conical transition that tapers from a radius of 8.5mm down to 7mm. Extend two rectangular arms from the center, each 30mm long, with a to...
bolt_distance = 60; bolt_dia = 3.1; base_flesh = 2.0; tube_dia = 6.3; open = 1; base_h = 10; supports = 0; PI = 3.15159265; $fs=0.2; $fa=3; if(supports==0) rotate([0,180,0]) coupling(); if(supports==1) { coupling(); } module coupling() { width = bolt_dia+bolt_distance+3; hexSize=10; difference() { c...
glb/cad_c52ff56182b6.glb
Create a customizable cable duct and matching cover. For the duct, create a base with a length of 100mm, width of 15mm, and height of 15mm. The walls should have a thickness of 1.2mm. Along the length of the duct, create 8 evenly spaced fins, each 3mm wide, by removing rectangular sections from the interior. The top ...
cd_length = 100; cd_width = 15; cd_height = 15; cd_fins = 8; cd_fin_width = 3; cd_shell = 1.2; cd_cover_equalwidth = 1; part = "both"; mf_length = 2; mf_angle = 45; mf_depth = 0.8; mf_top_offset = 0.6; mf_top_tolerance = 0.15; text_enable = 1; text_string = "thing:3775502"; text_depth = 0.6; text_scale ...
glb/cad_d2a824cf000d.glb
Create a Printed End Stop v1 by starting with a rectangular block measuring 50mm in length, 10mm in width, and 5mm in height, centered on the origin. Remove four vertical cylindrical holes from this block. Position two smaller holes with a radius of 2.1mm at x-coordinates -5mm and 5mm, and two larger holes with a radiu...
difference() { cube([50,10,5],center=true); translate([-5,0,-10]) cylinder(r=2.1,h=40); translate([5,0,-10]) cylinder(r=2.1,h=40); translate([-20,0,-10]) cylinder(r=2.5,h=40); translate([20,0,-10]) cylinder(r=2.5,h=40); }
glb/cad_dc1dc527c70a.glb
Create a Printed End Stop by starting with a central rectangular block measuring 50mm in length, 10mm in width, and 5mm in height, centered on the origin. At each end of this block, 20mm from the center along the length, place a vertical cylinder with a radius of 2.5mm and a height of 40mm, extending 10mm below the bas...
module A() { difference() { cube([50,10,5],center=true); translate([-20,0,-10]) cylinder(r=2.5,h=40); translate([20,0,-10]) cylinder(r=2.5,h=40); } } module B() { translate([-12,0,5]) cube([5,10,15],center=true); translate([12,0,5]) cube([5,10,15],center=true); } module C() { translate([-20,0,9]) rotate(a = 90, v = [...
glb/cad_35434314f9ec.glb
Create a platform holder for a DLP resin printer by starting with a rectangular block 30mm wide, 5mm deep, and 38mm high. From this main body, remove a central rectangular section 10mm wide and 65mm deep, leaving two outer walls each 10mm wide. In the remaining structure, create a hole with a 4mm radius passing through...
difference() { cube([30,5,38]); for(x = [5,33]) for(y = [5,25]) #translate([y,0,x]) rotate([90,0,0]) cylinder(r=1.75, h=20, center=true); } difference() { translate([10,-60,0]) cube([10,65,38]); rotate([90,0,90]) translate([-50,19,15]) cylinder(r=4, h=20, center=true); }
glb/cad_54eb3d6272b5.glb
Create a push-to-fit Bowden nut-coupling. Start with a main cylindrical body that has a radius of 8.5mm and a height of 29mm. At the base of this cylinder, create a tapered transition that narrows from the 17mm diameter down to a 14mm diameter over a height of 3mm. Cut two vertical holes through the entire height of t...
bolt_dia = 3.2; base_flesh = 2.2; tube_dia = 6.3; free_rotating = 1; open = 1; base_h = 32; supports = 0; more_narrow_opening = 0.8; PI = 3.15159265; $fs=0.2; $fa=3; if(supports==0) rotate([0,180,0]) coupling(); if(supports==1) { coupling(); } module coupling() { width = bolt_dia+bolt_distance+3; hexSize=10...
glb/cad_a7ba09e21158.glb
Create a roof bars connector cover with a main rectangular body measuring 115mm in length, 17.5mm in width, and 3.2mm in height. The main body should have rounded edges with a radius of 1.5mm. At both the left and right ends of the main body, add external clips. Each clip consists of a block 7mm long, 5mm wide, and 3m...
use <MCAD/boxes.scad>; RENDERSUPPORTS = false; EL = 115.0; EW = 17.5; EZ = 1.6; ER = 1.5; EECXPXO = 9.0; EECXMXO = 18.5; EECYO = 3.8; CEL = 7.0; CEW = 5.0; CEZ = 3.0; CECW = 2.0; CECZ = 1.6; CECCW = 2.0; CCL = 13.0; CCW = 3.0; CCZ = 3.0; CCTCW = 1.0; CCCW = 2.5; CCBL = 2.5; CCBW = 1.0; CCBZO = 2.0; CCYO = 2.5; CFW...
glb/cad_650b993a537a.glb
Create a decorative circular symbol with a total height of 1.03mm. Start by creating a main solid cylinder with a radius of 32.4mm and a height of 1.03mm, centered on the origin. From this main cylinder, remove a smaller central cylinder with a radius of 1.4mm and a height of 2.06mm, also centered on the origin. Additi...
module symbol_round(hgt, scl){ cylinder(h = hgt, center = true, r = 6.4*scl,$fn=50); difference(){ cylinder(h=hgt,r=64.8/2*scl,center=true,$fn=50); cylinder(h=2*hgt,r = 14*scl,center=true,$fn=50); for (i=[0:3]) rotate(i*90, [0,0,1]) translate([16.44*scl, 0, 0]) cylinder(h=2*hgt,r=23.46/2*scl,center=tru...
glb/cad_edb9d8760a15.glb
Create a decorative symbol for a phone case with a total height of 1.03mm. At the center, place a cylinder with a radius of 0.5mm and a height of 1.03mm. Surrounding this center, create a larger outer cylinder with a radius of 6mm and the same height of 1.03mm. From this outer cylinder, remove four identical cutout sha...
module symbol_pointy(hgt, scl){ cylinder(h = hgt, center = true, r = 5*scl,$fn=50); difference() { cylinder(h=hgt,r=60*scl,center=true); for (i=[0:3]) rotate(90*i,[0,0,1]) for (i=[0:1]) rotate(180*i,[0,1,0]) linear_extrude(height = 2*hgt, center = true, convexity = 10, twist = 0) polygo...
glb/cad_b63fb3e615e1.glb
Create a 3D emblem of a stylized logo consisting of an interlocking "L" and "V". The shape is a flat, extruded polygon with a uniform thickness of 1.03mm. To construct the geometry, define a 2D profile based on the following scaled coordinates (where the scale factor is 0.1): start with a base polygon that forms the ...
module symbol_letters(hgt, scl){ translate([-57*scl,-55*scl,0]){ linear_extrude(height = hgt, center = true, convexity = 10, twist = 0) polygon([ [14.513*scl,12.136*scl], [90.95*scl,12.136*scl], [101.085*scl,33.197*scl], [101.085*scl,35.05*scl], [95.422*scl,35.05*scl], [89.851*scl,25.044*scl], [85.873*...
glb/cad_b2595fc88dc8.glb
Create a decorative flower symbol with a height of 1.03mm. The shape is formed by a central 2D polygon extruded along the Z-axis. This polygon is defined by a series of vertices: starting from [-6.158, 0], moving to [-6.158, 6.158], [-7.736, 8.822], [-8.249, 11.424], [-8.414, 13.660], [-8.116, 16.416], [-7.496, 18.962]...
module symbol_flower(hgt, scl){ difference(){ for (i=[0:3]) rotate(90*i,[0,0,1]) for (i=[0:1]) rotate(180*i,[0,1,0]) linear_extrude(height = hgt, center = true, convexity = 10, twist = 0) polygon([ [-6.158*scl,0], [-6.158*scl,6.158*scl], [-7.736*scl,8.822*scl], [-8.249*scl,11....
glb/cad_be9afef3072c.glb
Create a Slide Together Container composed of four identical interlocking segments. Each segment is constructed from a linear sequence of ten cubes, where each cube has a side length of 10mm. To ensure the pieces fit together with a slight overlap, each cube should be sized at 10.001mm. The overall structure is forme...
view_ten(ten); view_pieces_by_2(ten); module view_ten(file) { color("yellow") join_cubes(file,1,10); color("gold") join_cubes(file,11,10); color("blue") join_cubes(file,21,10); color("lightblue") join_cubes(file,31,10); } module view_pieces_by_2(file) { color("yellow") translate([60,0,0]) join_cubes(...
glb/cad_54846c18888d.glb
Create a Slide Together Container by assembling four identical components. Each component is based on a 10mm cube. To create one component, start with a solid block measuring 70mm x 10mm x 10mm. From this block, remove material to create a series of interlocking voids. Specifically, carve out a 10mm cube from the cen...
cube_size = 10; overlap = 0.25; makex(inverse_10_1); module makex(inverse_set) { difference() { cube(size=7*cube_size); union() { for (i = [0:1:len(inverse_set)-1]) { x = cube_size*inverse_set[[i][0]]; { translate(v=x) cube(size=cube_size+overlap); } }}}} module join_cubes(file,line_sta...
glb/cad_e8fa8cc917b9.glb
Create a Parametric Yo-Yo consisting of two symmetrical halves and a central axle. For each half, start with a sphere scaled into an ellipsoid with a major radius of 30mm (x and y axes) and a minor radius of 21mm (z-axis). Flatten the ellipsoid by removing a cubic section to create a flat interior face and another cu...
echo(" "); echo("All dimensions are in millimeters (mm)."); echo(" "); res = 120; echo("res = ", res); diam = 60; echo("diam = ", diam); r2r1ratio = 0.70; echo("r2r1ratio = ", r2r1ratio); offset1ratio = 0.5; echo("offset1ratio = ", offset1ratio); offset2ratio = 0.2; echo("offset2ratio = ", offset2ratio); ga...
glb/cad_56fbbd8d232c.glb
Create a Cheating Dreidel by constructing a central body and adding decorative markings. Start with a main body formed by the intersection of a 20mm cube and a cone that tapers from a radius of 20mm at the top to 0.1mm at the bottom over a height of 20mm. Add a 20mm by 20mm by 8mm cube centered at the top of this shape...
module gimmel() { translate([10,-4,14]) rotate([-90,-180,-90]) scale([5,5,0]) linear_extrude(file = "gimmel.dxf", height=0.7); }; module dreidel() { union() { translate([-10,-10,20]) cube([20,20,8]); intersection() { translate([-10,-10,0]) cube([20,20,20]); cylinder(h=20, r1 = 0...
glb/cad_496528ce1e2c.glb
Create an on-wall concent tap holder consisting of a flat rectangular base and two raised end blocks. Start by creating a central rectangular base plate measuring 20mm in width, 40mm in height, and 0.5mm in thickness. At each end of this base plate, add a raised rectangular block. Each block should be 20mm wide and 1...
echo(version=version()); base_W = 20; base_H = 40; base_T = 0.5; default_S = 12; default_T = 2.0; $fn = 60; # staple_base(base_T,base_W,base_H,default_S,default_T); # translate([75, 0, 0]) staple_base(base_T,base_W,base_H,default_S,default_T); translate([18, 14, 0]) hull() { translate([1, 1, 2]) cube([60 - 2, 12...
glb/cad_e590755b8de7.glb
Create a Wallace Y Rack, which is a linear gear rack. Start with a rectangular support base that has a total height of 11.2mm and a width of 6.2mm. The base should feature a central longitudinal hole with a radius of 3.1mm running through its entire length. Along the top edge of this base, add 40 gear teeth. Each toot...
pi=3.1415926535897932384626433832795; innerRadius=3.1; borders=2.5; diametralPitch=12; numberOfTeeth=40; pressureAngle=20*pi/180; centerAngle=25; rack(innerRadius,borders,diametralPitch,numberOfTeeth,pressureAngle,centerAngle); module rack(innerRadius,borders,P,N,PA,CA) { a = 1/P; d = 1.25/P; multiplier=20; heig...
glb/cad_cd44c2954130.glb
Create a rocket fin assembly consisting of a central hollow tube and three attached fins. Start by creating a hollow cylinder with an outer diameter of 36.4mm and an inner diameter of 34mm, with a total height of 63mm. Position three identical fins symmetrically around the cylinder, spaced 120 degrees apart. Each fin...
$fn = 100; dia_tubo=34; alto=60; altura=30; cuerda=25; espesor_base=3; espesor_cuerda=1.2; atras_cuerda=0; espesor_tubo=1.2; fins=3; module aleta(ang, mov){ rotate([0,0,ang])translate ([mov,0,0]) hull(){ translate([-0.2,-espesor_base/2,0])cube([0.1,espesor_base,alto]); translate([altura,-espesor_cuerda/2...
glb/cad_33e540c345a3.glb
Create a Mini-Mendel belt extension clip with a total thickness of 2mm. Start with a central rectangular body 15.3mm wide and 40mm long. At each end of the width, center a cylinder with a radius of 3.4mm to create two circular tabs; these tabs should have a total diameter of 7.4mm. Drill two holes completely through th...
length = 40; thickness = 2; flesh = 2; hole_size = 3.4; lip_slot_width = 24-2*flesh; $fn=30; clip(); module clip() { difference() { union() { translate([15.3/2,0,-thickness/2]) cylinder(r=hole_size/2+flesh,h=thickness); translate([-15.3/2,0,-thickness/2]) cylinder(r=hole_size/2+flesh,h=thickness); cube([1...
glb/cad_b76b96e1fc04.glb
Create a hock for a display net with a uniform thickness of 6mm. Start with a main vertical rectangular body that is 2.5mm wide and 53mm high. At the top of this body, attach a horizontal arm extending 8.5mm to the left with a thickness of 2.5mm. Below this arm, add a small vertical segment 6.5mm high and 2.5mm wide. A...
echo(version=version()); base_W = 6; base_H = 53; base_T = 2.5; baee_R = 12; $fn = 60; cube(size=[base_T, base_H, base_W], center=false); translate([-6, base_H, 0]) cube(size=[8.5, base_T, base_W], center=false); translate([-6, base_H - 6, 0]) cube(size=[base_T, 6.5, base_W], center=false); translate([-3, base_H - ...
glb/cad_8929ddde0696.glb
Create a CVA Lathe Metric Gear Change set by starting with a solid rectangular block measuring 105mm in width, 180mm in depth, and 130mm in height. From this block, remove a series of gear-shaped cutouts. Each cutout consists of two cylinders with a height of 11.7mm and a radius of 1mm larger than the gear's radius, wi...
module cutoutforgear(gear1diameter,gear2diameter) { cylinder (h=11.7, r=(gear1diameter/2)+1,center=true); translate ([-gear1diameter/4,0,0]) { cube ([gear1diameter/2,gear1diameter+2,11.7],center=true); } translate ([0,0,11.7]) { cylinder (h=11.7, r=(gear2diameter/2)+1,center=true); translate ([-gear1diameter/...
glb/cad_829bd926f999.glb
Create a CVA Lathe Metric Gear Change set storage box. Start with a solid rectangular block measuring 23mm wide, 180mm deep, and 130mm high. Within this block, carve out a series of gear cutouts. Each cutout is created by removing a cylinder with a height of 11.7mm and a radius 1mm larger than the gear's radius, and ...
module cutoutforgear(gear1diameter,gear2diameter) { cylinder (h=11.7, r=(gear1diameter/2)+1,center=true); translate ([-gear1diameter/4,0,0]) { cube ([gear1diameter/2,gear1diameter+2,11.7],center=true); } translate ([0,0,11.7]) { cylinder (h=11.7, r=(gear2diameter/2)+1,center=true); translate ([-gear1diameter/...
glb/cad_376ae4ea14c7.glb
Create a hollow dodecahedron, a regular convex polyhedron with twelve congruent pentagonal faces. To achieve the hollow effect, construct a large outer dodecahedron and remove a smaller, concentric inner dodecahedron from its center. Scale the outer shell by a factor of 2.1 and the inner void by a factor of 1.9 to crea...
translate([0,0,23]) rotate([-12,3,0]) scale(2) dodecahedron(); module hollow_body(outside,inside) { difference() { scale (outside) dodecahedron(); scale (inside) dodecahedron(); } } module dodecahedron() { polyhedron (points = [ [ -13.82540, -1.58551, 1.64228], ...
glb/cad_282151293efa.glb
Create a hollow icosahedron, a regular polyhedron with twenty equilateral triangular faces. The outer shell should be scaled by a factor of 3, and the interior should be hollowed out by removing a concentric icosahedron scaled by a factor of 2.7, resulting in a wall thickness of approximately 10% of the outer radius. P...
translate ([0,0,22.5]) rotate([37,-1,0]) scale (3) icosahedron(); module hollow_body(outside,inside) { difference() { scale (outside) icosahedron(); scale (inside) icosahedron(); } } module icosahedron() { polyhedron (points = [ [ -9.27924, 1.69113, 1.21930], ...
glb/cad_532fcc36308c.glb
Create a hollow tetrahedron. First, construct a solid regular tetrahedron with an outer scale factor of 6. To create the hollow interior, remove a smaller concentric tetrahedron from the center with a scale factor of 5.4, leaving a wall thickness proportional to the difference. Position the final model by translating i...
translate([0,0,12.2]) rotate([-21.5,5.3,57]) scale(6) tetrahedron(); module hollow_body(outside,inside) { difference() { scale (outside) tetrahedron(); scale (inside) tetrahedron(); } } module tetrahedron() { polyhedron (points = [ [ -5.55556, 0.64150, -2.49485], ...
glb/cad_e9a37a4f905d.glb
Create a smiley pencil holder consisting of a main cylindrical body and separate facial components. Start with a hollow cylinder 80mm tall with an outer radius of 37.5mm and an inner radius of 35.5mm, leaving a 2mm thick wall. The base should be solid, starting the hollow cavity 5mm from the bottom. On the front face o...
render(convexity=2) difference() { cylinder(r=37.5,h=80,$fn=300); translate([0,0,5]) cylinder(r=35.5,h=80,$fn=300); translate([28,-12,55]) rotate([0,90,0]) cylinder(r=8.1,h=10,$fn=400); translate([28,12,55]) rotate([0,90,0]) cylinder(r=8.1,h=10,$fn=400); } module eye() { translate([20,0,50]) rotate([0,0,-20]) re...
glb/cad_5bb9dbf9f8b8.glb
Create a Bolt Hobbing Tool by combining a rectangular shank with a bearing block and then removing specific volumes for the bolt and bearings. Start with a main tool post shank measuring 20mm wide, 60mm deep, and 9.5mm high. Attach a bearing block to this shank, defined as a cube 30mm wide, 22mm deep, and 38mm high, po...
tool_post_shank = [20,60,9.5]; bearing_diameter = 22.5; bearing_height = 8; bolt_diameter = 9; bolt_height = 40; tool_diameter = 10; module lathe_tool(){ difference(){ union(){ cube(tool_post_shank); translate([-tool_post_shank[0]/2,-tool_post_shank[1]/3,-tool_post_shank[2]]){ cube([30,22,38]); }...
glb/cad_6d1d0a1ea53d.glb
Create a customizable hyperboloid with a total height of 20mm and a radius of 10mm at both the top and bottom circular faces. Construct the shape by stacking a series of thin frustums, each 0.5mm in height, centered along the vertical Z-axis. The radius of each frustum should vary according to the formula for a hyperbo...
height=20; radius=10; stepping=.5; girth=1.8; $fn=100; halfheight=height/2; w=girth*radius*radius-halfheight*halfheight; oldr=sqrt(w/girth); echo(oldr); for(z=[stepping:stepping:halfheight]){ r=sqrt((w+z*z)/girth); oldr=sqrt((w+(z-stepping)*(z-stepping))/girth); translate([0,0,halfheight+z-stepping]) cylinder...
glb/cad_06916c012dd2.glb
Create a replacement shell for a soap dispenser. Start by constructing a main body as a rounded cube with a total width of 78.5mm, a depth of 58.5mm, and a height of 119.5mm, using a corner radius of 2mm. Hollow out the center of this body by removing a rectangular volume that is 52.5mm deep, 72.5mm wide, and 116.5mm h...
include <../../external/dotSCAD/src/rounded_cube.scad>; $fn=60; inside_height=116.5; inside_width=72.5; inside_depth=52.5; hole_diameter=29; strength=3; corner_radius=2; foot_length=1.5; outside_width=inside_width+2*strength; outside_height=inside_height+strength; outside_depth=inside_depth+2*strength; difference()...
glb/cad_9fd9751f6390.glb
Create a protective box and lid for an LM2596 DC-DC converter. The main case should be a rounded rectangular prism with external dimensions of 64.2mm in length, 41.2mm in width, and 18.2mm in height, featuring a corner radius of 2mm. Hollow out the center to create a cavity for the board measuring 61mm by 38mm with a d...
Board_Length = 61; Board_Width = 38; Board_Height = 15; Voltage_Window_Width = 15; Voltage_Window_Length = 23; Hole_radius = 2.5; Security_Margin = 0.5; Wall_Thickness = 1.6; Xtra = Security_Margin + 2*Wall_Thickness; Hole_pos_x = (Board_Length + Xtra) / 2; translate([0, -Board_Width, (Board_Height + Xtra)/2]...
glb/cad_b9dcaef7338a.glb
Create a carriage for a delta printer. Start with a main rectangular body measuring 27mm wide, 40mm long, and 6mm thick. At each end of the length, add ball joint mount horns. Each horn is formed by the intersection of a 40mm wide by 18mm long by 6mm thick block and a cone that tapers from a radius of 14mm down to 3mm ...
include <configuration.scad>; shrinkage = 3; down = 1; separation = 40; thickness = 6; horn_thickness = 12; horn_x = 8; belt_width = 5; belt_x = 5.6; belt_z = 7; module carriage() { translate([-belt_x, 0, belt_z + belt_width/2]) % cube([1.7, 100, belt_width], center=true); translate([belt_x, 0, belt_z + b...
glb/cad_0a76b65f2859.glb
Create a maze game consisting of a maze platform and a spherical pivot support. First, construct the maze platform as a centered cube of 100mm x 100mm x 20mm. Hollow out the center to create a floor and walls, leaving a base thickness of 2.5mm. Within this area, build a series of internal walls using rectangular bloc...
use<write.scad>; difference() { translate([0,0,10]) { difference() { cube(size=[100, 100, 20], center = true); translate([0,0,2.5]) { cube(size=[95, 95, 20], center = true); } translate([38,-20,-8]) { rotate([0,0,-90]) { write("<",h=6,t=2.5); } } *translate([30,45,-8]) { ro...
glb/cad_47e590c9b45c.glb
Create a dial test indicator mount by starting with a rectangular block 40mm wide, 15mm deep, and 12mm high. On the front face of the block, center a vertical cylindrical cutout with a diameter of 8mm that passes completely through the block's height. On the opposite face, create a large semi-circular cutout with a rad...
shaft_diameter=8; housing_diameter=53; housing_clearance=15; shaft_offset=9; block_width=40; block_height=12; block_depth=housing_clearance; offset_y=9; mount_hole_offset_z=7; mount_hole_distance=15; mount_hole_diameter=3; mount_head_diameter=6; mount_head_depth=4.55; cutout_cutout = 2; cutout_height=housing_di...
glb/cad_e9fa85498b88.glb
Create a replacement fence section consisting of three vertical posts connected by horizontal rails. Each post is centered on a square base 5.8mm wide and 1.6mm thick, with a central vertical pillar 4mm wide and 21mm tall. The top of each post tapers to a pyramid point 5.8mm wide at the base and 0.96mm high. The posts...
thickness = 1.6; topwidth = 5.8; postwidth = 4; height = 21; space = 55; latchheight = 5; latchwidth = 1.6; nibblewidth = 0.6; hookwidth = 6; hookthickness = 5; hookheight = 4.4; hookcutwidth = 4; hookcutdepth = 4.2; module post() { translate([0,0,-height/2]) cube (size=[topwidth,topwidth,thickness], center=...
glb/cad_0a9919adfc29.glb
Create a replacement fence section consisting of three vertical posts connected by two parallel horizontal rails. Each post is centered on a square base 5.8mm wide and 1.6mm thick, with a central vertical pillar 4mm wide and 21mm tall. The top of each pillar is shaped into a pyramid with a 5.8mm base and a peak 0.96mm ...
thickness = 1.6; topwidth = 5.8; postwidth = 4; height = 21; space = 55; latchheight = 5; latchwidth = 1.6; latchclearance = 4.4; nibblewidth = 0.6; hookwidth = 6; hookthickness = 5; hookheight = latchclearance; hookcutwidth = 4; hookcutdepth = 4.2; module post() { translate([0,0,-height/2]) cube (size=[topw...
glb/cad_e0a6560f1fe5.glb
Create a bushing for a filament spool by combining two concentric cylinders. First, create a main central cylinder with a diameter of 45.4mm and a height of 10mm, centered on the origin. Attach a wider, shorter base cylinder to the bottom of this central piece, with a diameter of 60mm and a height of 3mm, positioned so...
difference() { union () { cylinder(10, 22.7, 22.7, center=true); translate ([0,0,-8])cylinder(3, 30, 30); } translate ([0,0,-8]) cylinder (13,11.5,11.5); }
glb/cad_5fe94a033332.glb
Create a message light base by constructing a four-sided tapered prism with a height of 6mm. The base of this prism should be a square with a diameter of 26mm, tapering outwards to a top square with a diameter of 34mm. To create the interior cavity, remove a square prism from the center of the shape starting at a heigh...
difference(){ cylinder(d1=26,d2=34,h=6,$fn=4); translate([0,0,5.4])cylinder(d1=30,d2=30,h=0.6,$fn=4); }
glb/cad_cb4a46f414eb.glb
Create a message light base by starting with a rectangular slab measuring 37mm in length, 22mm in width, and 3mm in height. On the top surface of this slab, add two smaller rectangular blocks, each measuring 12mm in length, 2.4mm in width, and 9mm in height. Position the first block so its inner edge is 3.5mm from the ...
cube([37,22,3]); translate([3.5,5,0])cube([12,2.4,9]); translate([3.5+18,13,0])cube([12,2.4,9]);
glb/cad_1bb0b8add9db.glb
Create a message light housing consisting of a hollowed spherical dome and a supporting cylindrical base. Start by creating a sphere with a diameter of 53mm. To form the open bowl shape, remove the top half of the sphere using a cube with a side length of 53mm centered at Z=26.5mm. Inside this bowl, remove a smaller co...
$fn=80; difference(){ union(){ difference(){ sphere(d=53); translate([0,0,26.5])cube(53,center=true); sphere(d=51); } translate([0,0,-40])cylinder(d=24,h=44); } translate([11,0,-40])cylinder(d=4,h=44); #translate([0,10,-8])cylinder(d=2,h=12); translate([0,-10,-8])cylinder(d=2,h=12); #translate([14,0,-3])cube([5,25...
glb/cad_56c8427a281f.glb
Create an opto holder ring for a CNC spindle drive. Start with a main cylindrical body that has a radius of 30mm and a height of 7mm. Remove a concentric cylindrical hole from the center with a radius of 26mm and a height of 8mm to create a ring. Modify the ring by removing several rectangular sections to create spec...
difference() { union() { cylinder(h=7,r=30,$fn=100); translate([-36,-10,0]) cube([10,20,7]); translate([-10,-40,0]) cube([20,12,7]); translate([26,-6,0]) cube([15,12,7]); } translate([0,0,-0.5]) cylinder(h=8,r=26,$fn=100); translate([-30,-5,-0.5]) cube([10,10,8]); translate([20,-2,-0.5]) ...
glb/cad_485086557024.glb
Create a Cube Puzzle consisting of seven distinct interlocking pieces, each constructed from 10mm cubes. The first piece is an L-shape formed by three 10mm cubes: one at the origin, one at [10,0,0], and one at [10,10,0], with an additional cube at [10,0,10]. The second piece is a simple L-shape made of three cubes at...
module c() { cube(size=10, center=true); } $fn = 100; module c1() { union() { c(); translate([10,0,0]) c(); translate([10,10,0]) c(); translate([10,0,10]) c(); } } module c2() { union() { c(); translate([10,0,0]) c(); translate([10,10,0]) c(); } } module c3() { union() ...
glb/cad_514b209a6ccb.glb
Create a Tombola bingo counter in the shape of a short, thick cylinder with a diameter of 17mm and a height of 8mm. The cylinder should have a 24-facet resolution. Hollow out the center of the cylinder by removing two smaller cylinders, each 2mm high and 13mm in diameter, positioned at the very top and bottom faces. ...
SINGLE_NUM = 68; FROM_NUM=1; TO_NUM=30; DD=17; HH=8; theTxtDim=3; RR=DD/2; use <font_DesignerBlock_hi.scad>; $fn = 24; module counter(x,y,z,n){ translate ([x,y,z]){ difference(){ cylinder(r=RR, h=HH, center=true); union(){ translate([0,0,HH/2]) cylinder(r=RR-2,h=2,center=true); translate([0,0,-HH/2]...
glb/cad_49337cfe144b.glb
Create a hyperboloid pen holder by arranging 25 hollow cylinders in a circular pattern. Each cylinder must have an outer radius of 7.5mm and an inner radius of 4.5mm, creating a wall thickness of 3mm. Position the center of each cylinder 65mm from the central axis of the overall model. Tilt each cylinder by 35 degrees...
holder_radius = 65; holder_thickness = 3; holder_height = 30; tube_bottom_thickness = 1; pen_count = 25; pen_radius = 4.5; pen_length = 150; rotx = 35; rotz = -40; { for (a=[1:360/pen_count:360]) { rotate([0,0,a]) translate([holder_radius,0,0]) rotate([rotx,0,rotz]) %cylinder(h=pen_...
glb/cad_faabea802303.glb
Create a Lack Foot Shell by constructing a hollow rectangular box. Start with a solid outer cube measuring 52.8mm in length, 52.8mm in width, and 10mm in height. From this solid, remove a central rectangular volume to create the interior cavity. This cavity should begin 0.4mm from the bottom face and extend to the top,...
inner_width = 50.8; inner_length = 50.8; height = 10; floor_thickness = 0.4; wall_thickness = 1; difference(){ cube([inner_length+(2*wall_thickness),inner_width+(2*wall_thickness),height]); translate([wall_thickness,wall_thickness,floor_thickness]) cube([inner_length,inner_width,height]); }
glb/cad_99aca50cd3fc.glb
Create a hexagonal shelving bracket with a total height of 10mm. Start by creating a central equilateral triangular prism with a height of 10mm and a radius of approximately 5.77mm (calculated as $\sqrt{3} \times 11.5 / 3$). From the center of this triangle, extend three identical rectangular bracket arms spaced 120 ...
width = 7.5; depth = 16.5; thickness = 4; height = 10; two_or_three=2; outer_width = width+thickness; outer_depth = depth+(thickness/2); travel = (outer_depth/2)+(sqrt(3)*outer_width)/6; module bracket(){ difference(){ cube([outer_width,outer_depth,height],center=true); translate([0,thickness/4+1,0]) ...
glb/cad_2e0685b8f9fe.glb
Create a Newtonian Projectile Launcher consisting of a main body and a detachable clip. For the main body, start with a rectangular block 113mm long, 34mm wide, and 6mm high. Centered along the length, remove a cylindrical barrel with a radius of 5mm and a rectangular channel 102mm long, 10mm wide, and 10mm high. At th...
$fs = 0.01; translate([6.5,0,0]) cube(size = [100, 34, 6]); translate([6.5,10,6]) { translate([0,0,0]) difference() { translate([0,-1,0]) cube(size = [100, 16, 14]); translate([-1,7,7]) rotate(a=[0,90,0]) cylinder(h = 102, r = 5); translate([-1,2,7]) cube(size = [102, 10, 10]); translate(...
glb/cad_14aabf3f86e5.glb
Create a Newtonian Projectile Launcher consisting of a main barrel and a detachable clip. For the main barrel, start with a rectangular block 100mm long, 16mm wide, and 14mm high. Remove a cylindrical bore with a 5mm radius running the full length of the block, centered 7mm from the bottom and 7mm from the sides. From ...
$fs = 0.01; translate([6.5,10,6]) { difference() { translate([0,-1,0]) cube(size = [100, 16, 14]); translate([-1,7,7]) rotate(a=[0,90,0]) cylinder(h = 102, r = 5); translate([-1,2,7]) cube(size = [102, 10, 10]); translate([90,25,7]) rotate(a=[90,0,0]) cylinder(h=30,r=2.5); translate...
glb/cad_794effc33654.glb
Create a Newtonian Projectile Launcher consisting of a rectangular base with integrated walls and internal channels. The overall footprint is a block 19mm wide, 34mm long, and 23mm high. Construct the main body by creating a solid block 19mm wide by 34mm long by 23mm high, then remove a central rectangular cavity 14m...
$fs = 0.01; difference() { union() { translate([3,0,0]) difference() { cube(size = [13, 34, 23]); translate([0,3,3]) cube(size = [13, 28,20]); translate([0,10,2]) cube(size = [14, 14,1]); translate([3.25,-1,20]) rotate(a = [-90,0,0]) cylinder(h = 50, r = 1.7); translate([9.75,-1,20]) rot...
glb/cad_53261a228d49.glb
Create a Newtonian Projectile Launcher consisting of a main body, magnet holders, and a mounting base. The main body is a rectangular block 100mm long, 16mm wide, and 14mm high. Carve a horizontal cylindrical bore through the center of this block with a radius of 5mm, widening to 5.5mm at the end. At the rear, add a ...
$fs = 0.01; offset = sqrt((25*25)/2); translate([6.5,6,6]) { difference() { union() { cube(size = [100, 16, 14]); translate([75,0,0]) cube(size = [25, 16, 36]); } translate([-1,8,7]) rotate(a=[0,90,0]) cylinder(h = 83.1, r1 = 5, r2=5.5); translate([89,8,14]) cylinder(h=26, r1=5.5, ...
glb/cad_2ef24c753ae4.glb
Create a Torbachev Inductor Shield Plate starting with a base rectangular block measuring 50mm by 40mm with a height of 8mm, featuring rounded corners with a 5mm radius. On the left side of the base, add a raised rectangular section 15mm wide, 40mm long, and 15mm high. Within this raised section, center a vertical cyli...
include <nuts_and_bolts.scad> honeycut_tilt = 10; bron_oscillator_diam = 5; m3_grub_diam = 4; BT1284count = 5; difference() { union() { for (k=[0:1:5]) { translate([20+k*4,0,8]) rotate([0,honeycut_tilt,0]) cube([2,40,15]); } minkowski() { cube([50,40,8]); cylinder(r=5,h=2); } translate(...
glb/cad_fcb9a70faeaf.glb
Create an N-sided box and lid set where the base is a regular polygon with 4 sides. For the box, create a hollow prism with an outer diameter of 50mm and a height of 25mm. The walls should be 1mm thick, and the bottom should be closed with a solid base 1mm thick. For the lid, create a matching hollow prism with a hei...
parts = "both"; thickness=1; diam=50; boxh=25; lidh=10; looseness=10; sides=4; $fn=sides; loose=looseness/10; assemble(); module tube(d,h,th) { rad=d/2; difference() { cylinder(h=h,r=rad); cylinder(h=h,r=rad-th); } } module box() { union(){ tube(diam,boxh,thickness); tube(diam,thickness,diam); } } module l...
glb/cad_2a73d2ec0bdb.glb
Create a 3D puzzle set consisting of eight interlocking pieces and a containment box. To create piece A, combine a cube of 20mm x 20mm x 10mm with a second cube of 10mm x 20mm x 20mm positioned so its base is at [0, 20, 0] relative to the first cube's origin. Create seven identical copies of piece A. Create piece B by ...
make_pieces_a = 7; make_piece_b = true; make_box = true; side_size = 20; box_walls = 1.5; box_delta = 1; module puzzle_piece_a() { union() { cube([side_size, side_size, side_size/2]); translate([0, side_size, 0]) cube([side_size/2, side_size, side_size]); } } module puzzle_piece_b()...
glb/cad_06996ef3f842.glb
Create a door handle consisting of two separate parts: a main handle cover and a mounting base. First, construct the mounting base as a rectangular plate measuring 50mm wide, 19mm deep, and 3mm thick. Center two vertical screw holes on the plate, positioned 20mm from the center along the width. Each hole consists of ...
screw_hole_size = 4; screw_head_hole_size = 6; screw_head_hole_depth = 1; module base_full(diff = false) { union() { base(diff); translate([0,-20.5,3]) key(diff); } } module base(diff = false) { if (diff) { translate([0,-20.5,1.7]) cube([50.2,19.2,3.3], center = true); } else { difference() {...
glb/cad_885253129440.glb
Create a universal spool holder support designed to mount on a 25.3mm wide square beam. The support consists of a base and a top section. First, create the bottom base as a rectangular block 16mm long, 30.3mm wide, and 7.5mm high. Cut a central rectangular channel through the length of this block that is 25.3mm wide ...
$fn = 50; beam_width = 25.3; bottom_length = 16; bottom_top_height = 2.5; bottom_arms_width = 2.5; bottom_arms_height = 5; top_width = 2.5; top_height = 20; top_corners_radius = 7; rollers_spacing = 50; peg_length = 7-0.2; peg_diameter = 8.2; peg_horizontal_offset = 2.5; peg_vertical_offset = 3; peg_oversize_width = 0...
glb/cad_1fcb48824177.glb
Create a hollow cylindrical tube for a universal spool holder. The tube should have an outer diameter of 24.55mm and an inner diameter of 22.55mm, resulting in a wall thickness of 1mm. The total height of the cylinder must be 80mm. Ensure the geometry is centered and the walls are perfectly smooth.
$fn = 150; module tube(id, w, h) { difference() { cylinder(d = id + w * 2, h = h, center = true); cylinder(d = id, h = h + 0.1, center = true); } } tube(22.55, 1, 80);
glb/cad_0777017d91bd.glb
Create a Heated Build Platform support bracket by constructing a composite geometric shape rotated 45 degrees on the X-axis. Start with a base consisting of three rectangular slabs: a central wide plate measuring 96mm by 5mm by 2mm, flanked by two side plates measuring 52mm by 20mm by 2mm, and a raised central section ...
include <shapes.scad> rotate (45,0,0) difference () { union () { translate ([-26,-48,-11]) cube ([52,20,2]); translate ([-48,-48,-11]) cube ([96,5,2]); translate ([-48,-48,-9]) cube ([96,2,7]); corner(); translate ([0,0,0]) rotate ([0,0,270]) corner(); translate ([-12,-46,-9]) rotate ([0,90,0]) rightTri...
glb/cad_43a81152f05e.glb
Create a Heated Build Platform support bracket. Start with a main rectangular base that is 96mm long, 5mm wide, and 2mm thick. On top of this base, add a second rectangular layer that is 96mm long, 2mm wide, and 7mm high, centered on the base. At each end of the assembly, construct a vertical corner bracket. Each cor...
include <shapes.scad> rotate (225,0,0) difference () { union () { translate ([-26,-48,-11]) cube ([52,20,2]); translate ([-48,-48,-11]) cube ([96,5,2]); translate ([-48,-48,-9]) cube ([96,2,7]); corner(); translate ([0,0,0]) rotate ([0,0,270]) corner(); translate ([-12,-46,-9]) rotate ([0,90,0]) rightTr...
glb/cad_f45ebf6d524f.glb
Create an interlocking drawer divider with an outer dimension of 177mm width, 80mm depth, and 57mm height. The walls should be 2.6mm thick. The main body is a rectangular container. To facilitate removing items, create a 45-degree slope on the bottom edges of the interior floor. On the bottom exterior, create a cutou...
width=177; depth=80; height=57; wall=2.6; drawerSlope=19; drawerLip=2; bottomSlope=6; groove=2.5; grooveAngle=11; shrinkage=0.33; grooveSeparation=35; cutoutBottomLeft=false; cutoutBottomRight=false; topRabbit=false; topGroove=true; bottomRabbit=true; bottomGroove=false; rightRabbit=true; rightGroove=false;...
glb/cad_5c3edbc0432a.glb
Create a Printed Template for DIY Hotend by starting with a central rectangular block measuring 35mm in width, 30mm in depth, and 25mm in height, centered on the origin. Carve a semi-cylindrical channel along the entire length of the block's center to accommodate a rod with a diameter of 16mm. Within this geometry, c...
module resistor_pos(){ translate([-2.5-3.5-3,0,0]) children(); } module support_pos(){ translate([2.5+2.5+1,0,0]) children(); } module thermistor_pos(){ translate([2.5+2.5+1,0,0]) children(); } assign($fn=20) difference(){ translate([-3,0,-3]) cube([35,30,25], center=true); translate([-3,0,11]) cube([in...
glb/cad_cc2bffe9f2da.glb
Create a wire airer a-frame clamp consisting of two identical vertical pillars connected by a central rectangular bridge. Each pillar is formed by a cylinder with a radius of 4.5mm and a height of 15mm, topped with a hemisphere of the same 4.5mm radius. The two pillars are positioned with their centers 20mm apart. Conn...
module foot() { difference () { union() { cylinder(h=foot_height, r=overall_radius, center=false); translate([0,0,foot_height]) sphere(r=overall_radius); } cylinder(h=foot_height, r=wire_thickness/2, center=false); } } module aframe_clamp() { difference () { union() { ...
glb/cad_51d8de9343d0.glb