Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a printer label with a base measuring 60mm wide, 24mm deep, and 1.8mm thick. The base should have rounded corners with a radius of 1mm. On the top surface, create a recessed rectangular area that is 58mm wide and 22mm deep, centered on the base, with a depth of 1.2mm, leaving a 1mm border around the edges. Insid...
$fn=200; H=1.8; NAME="MK4"; IP_ADDRESS="192.168.0.49"; Cube(60,24,H); translate([0,10,-H-6.6])Cube(60,14,H); translate([1,22,-6.6])cube([58,2,H+6.2]); translate([0,0,H])difference() { Cube(60,24,0.6); translate([1,1,-1])Cube(58,22,10); } translate([30,16,H]) color("Red") linear_extrude(height=0.6) text(NAME,hali...
glb/cad_20ef6c05047c.glb
Create a plane tool consisting of a main body and a blade bed. The body is a block with rounded lower corners and side walls that are 2mm thick. On these side walls, engrave the text "37º" centered vertically. Construct a slanted blade bed at a 37-degree angle relative to the base. The bed is 3mm thick and designed to...
$vpr=[90 - atan(sin(45)),0,45]*1; Object_type = 1; Blade_width = 40; Blade_height = 19.5; Blade_width_margin = 1; Blade_height_margin = 5; Bed_angle = 37; Bed_thickness = 3; Bed_back_margin = 3; Bed_bridge_thickness = 2; Holder_slot_width = 5; Holder_front_length = 15; Holder_back_length = 15; Holder_floor...
glb/cad_ddfa6e2ac019.glb
Create a Frequency Counter Module Case consisting of a main body and a removable lid. For the main body, create a rectangular shell with outer dimensions of 66.8mm length, 36.6mm width, and 27.7mm depth. Hollow out the interior to create a cavity for a PCB module (58.8mm x 32.6mm x 21.2mm) and a separate lower compar...
$fn= 72; display = "Design"; modlen = 58.8; modwid = 32.6; moddep = 21.2; mntdep = 18.7; smadia = 6.1; smalen = 14.6; lcdlen = 44.6; lcdwid = 26.1; lcddep = 6.5; batlen = 48.3; batwid = 26.2; batdep = 17.3; offset = 1; postrad = 3; lidthick = 3; screwhole = 1.5; caselen = modlen + 8; casewid = modwid + 4 + batwid + 6...
glb/cad_30ee306949e0.glb
Create a modular SMD feeder baseplate designed to hold seven 8mm feeders. The main body is a rectangular block with a total width of 84mm (7 feeders multiplied by 12mm each) and a total depth of 67mm. At the bottom, create a central rectangular cutout that spans the width of the baseplate to allow empty tape to feed ...
number_of_feeders=7; inner_height=15; feeder_length=57.5; totalLength=number_of_feeders*12; base(); module all(batch=1) { base(); translate([67,0,47])label_sign(batch); translate([67,0,47.01])label_sign_numbers(batch); } module base() { difference(){ union(){ cube([67,totalLengt...
glb/cad_73a2cf8006e8.glb
Create a modular SMD feeder and baseplate system. First, construct the feeder body as a block with an overall width of 12mm (8mm inner width plus 4mm walls), a length of 57.5mm, and a height of 18mm. Hollow out the center to create a channel 8mm wide and 15mm high to accommodate 15mm thick tapes. At the top of the feed...
inner_width=8; inner_height=15; feeder_length=57.5; difference(){ union(){ cube([inner_width+4,feeder_length,inner_height+3]); translate([0,feeder_length-19,inner_height+2]) cube([inner_width+4,10,3]); translate([2,-1.5,0]) cube([inner_width,feeder_length+3,1]); } translate([inner_width+1,-2,inner_height+0...
glb/cad_f1338727ebfd.glb
Create a Kenwood TH-D74A 18650 Battery Caddy consisting of a main body, a battery insert, and a clip. For the main body, create a rectangular shell with a width of 56.1mm, a height of 86mm, and a depth of 14mm. Apply a 4mm fillet to the outer vertical edges. The top surface should be flat, and the bottom should featur...
include <BOSL/constants.scad> use <BOSL/masks.scad> $fn=128; print_main_body=true; print_clip=true; print_battery_insert=true; print_battery_cover=false; bottom_test_print=false; top_test_print=false; side_test_print=false; width=56.1; height=86; depth=14.0; bevel=1.7; wall_thickness=2.2; bottom_radius=4; outer_r...
glb/cad_7977d8405f01.glb
Create a drill bit stand as a rectangular block with a depth of 20mm and a height of 35mm. The block is composed of a series of adjacent sections, each corresponding to a drill bit diameter from 1mm to 6mm in 0.5mm increments. For each bit, the width of its section is the bit's diameter plus 10mm. In each section, ce...
drawBody = true; drawLabels = true; dynamicHoleDepth = true; depth = 20; extraWidth = 10; height = 35; holeDepth = 30; extraDiameter = 0.8; $fn=20; bits = [for (i = [1 : 0.5 : 6]) i]; function drillBitWidth(diameter) = extraWidth + diameter; module drawDrillBit(diameter, totalWidth) { if (drawBody) { ...
glb/cad_7e277ca41a71.glb
Create a parametric dust extractor bin with an overall outer dimension of 50mm width, 200mm length, and 140mm height. The main body is a hollowed shell with a wall thickness of 3mm. The exterior shape is a hull formed between a 50x200x140mm rectangular block and a slightly wider top section of 70x200x1mm (adding a 20mm...
$fn=72; module DustBin(VacD=32, DimOut=[50, 200, 140], Dif=20, W=3, Lip=true, LipTop=true) { DimIn = [DimOut[0]+Dif - 2*W, DimOut[1] -2*W, 1]; difference() { hull() { cube(DimOut); translate([0,0,DimOut[2]-1]) cube([DimOut[0]+Dif,DimOut[1], 1]); } hull() { ...
glb/cad_c4a3a554bf91.glb
Create a tool called "Over-engineered fuse pliers" consisting of two mirrored handle arms joined at a central pivot. Each handle arm is 90mm long and 12mm thick. For the jaws, create a hook-like cutout at the pivot end. For the fuse version, the cutout is a semi-cylindrical channel with a diameter of 6.35mm. The jaws ...
show = "print"; thickness = 12; jawlen = 30; jawhookwid = 3; jawcutdepth = 3.5; rhub = 12; handle_len = 90; handle_shift = 16; include_eyelet = true; include_bump = true; levelteeth = true; type = "fuse"; fuse_size = 6.35; module dummy(); jawbevel = 1; jbstep = 1/40; hbstep = 1/100; overhang = 40; rcleara...
glb/cad_453f0c3f06a0.glb
Create a pHat Dac Enclosure consisting of a main body and a lid designed to house a Raspberry Pi Zero and a Phat DAC. For the main body, create a rounded rectangular shell with outer dimensions of 45mm x 36mm x 21mm. The interior should be hollowed out to a size of 31.5mm x 67mm x 18.5mm to accommodate the electronics...
use <prim.scad> board_x = 30.5; board_y = 65; board_z = 14.5; microsd_dy = 2.5; microsd_y = board_y+microsd_dy*2; microsd_z = 4; microsd_hole_z = 4; led_x = 18.5; led_y = 61; led_z = 2; pcb_z = 2; arm_below_z = 2; arm_lo_z = 2; arm_up_z = 2+2.5; arm_above_z = 0; arm_left_t = 2; arm_right_t = 2; arm_front_t = 0; s...
glb/cad_f46499ec5a91.glb
Create a Micro Dot pHAT Enclosure consisting of a main body and a lid. For the body, create a rounded rectangular shell with outer dimensions of 45mm width, 36mm depth, and 18mm height. The interior should be hollowed out to fit a board of 30.5mm x 65mm x 14.5mm, leaving a wall thickness of 1mm. On the bottom surface...
use <prim.scad> board_x = 30.5; board_y = 65; board_z = 14.5; microsd_dy = 2.5; microsd_y = board_y+microsd_dy*2; microsd_z = 4; led_x = 18.5; led_y = 61; led_z = 2; pcb_z = 2; arm_below_z = 2; arm_lo_z = 2; arm_up_z = 2; arm_above_z = 0; arm_left_t = 2; arm_right_t = 2; arm_front_t = 0; stuff_x = board_x; stuff_y ...
glb/cad_b89d0cd33b18.glb
Create a TinySine Bluetooth Receiver Enclosure consisting of a main holder and a matching lid. For the main holder, create a rounded rectangular shell with outer dimensions of 45mm x 36mm x 12mm. The interior should be hollowed out to a space of 44mm x 34mm x 10mm to accommodate the board. On the front face, create t...
use <prim.scad> board_x = 42+2; board_y = 33.4; board_z = 2; arm_below_z = 2+2; arm_lo_z = 2; arm_up_z = 2; arm_above_z = 7; arm_left_t = 1; arm_right_t = 1; arm_front_t = 0; stuff_x = board_x; stuff_y = board_y; stuff_z = board_z+arm_lo_z+arm_up_z+arm_below_z+arm_above_z; holder_wall_t = 1; holder_x = stuff_x + ho...
glb/cad_b3bbea9c105d.glb
Create a speaker enclosure for a 1" driver with an outer footprint of 33.4mm x 33.4mm and a height of 26mm. The walls should be 1.2mm thick with 2mm rounded corners. The main body is a hollow shell. The top face is open to allow the speaker driver to be inserted. Inside this shell, create a large central cylindrical ...
use <speaker_stand.scad> use <prim.scad> size_x = 32+1.2; size_y = 32+1.2; size_z = 26; stand_z = 40; driver_mount_thick = 2; driver_mount_r = 1.0; driver_mount_r0 = 35+1.2; wall_back_thick = 1.2; wall_thick = 1.2; wall_r = 2; spfn_small = 8; spfn_medium = 16; spfn_large = 64; WELDING = 1; TARGET="default"; ...
glb/cad_f676f8fb9658.glb
Create a PAM8403 tiny amplifier enclosure consisting of a main body and a removable lid. The main body is a rectangular box with outer dimensions of 26mm x 33mm x 19mm and a wall thickness of 1mm. The interior cavity measures 24mm x 31mm x 17mm. Create a board holder inside the body with a central slot 2mm thick to s...
use <prim.scad> LID_ERROR = 0.8; HOLD_ERROR = 0.0; size_x = 24; size_y = 31-HOLD_ERROR; size_z = 17; shell_thick = 1; shell_extend = 2; arm_cut_y = 8; arm_thick = 1; arm_board_thick = 2; arm_lo_z = 2; arm_up_z = 2; arm_up_z0 = arm_lo_z + arm_board_thick + arm_up_z/2; arm_z = arm_lo_z + arm_board_thick + arm_u...
glb/cad_e880379c7c33.glb
Create a whiteboard marker pen holder designed to hold four markers at a downward angle. The main body is a block with a height of 31.9mm and a width of approximately 15.4mm. The back of the block features a wedge-shaped profile and a recessed slot for magnets, measuring 68mm wide by 55mm high with a depth of 2mm, angl...
tolerance=0.5; edge_rounding=0.5; cap_height=33.9; cap_diameter_cap_end=16.3+tolerance; cap_diameter_pen_end=17.4+tolerance; cap_clip_width=10+tolerance; cap_clip_thickness=19.8; block_height_offset=-2; block_height=cap_height+block_height_offset; block_width_wall=4; block_size=cap_diameter_pen_end+block_width_wall-...
glb/cad_5592010c1508.glb
Create a protective cap for a microscope lighting screw by constructing a hollowed cylinder. Start with an outer cylinder that has a diameter of 8.1mm, a height of 6mm, and a 30-facet resolution. From the center of the bottom face, remove a smaller concentric cylinder with a diameter of 4.1mm and a height of 2mm to cre...
seg=30; stiftl=2; stiftd=2.1; wand=2; difference() { cylinder(d=stiftd+wand*2,h=wand+stiftl,$fn=seg); cylinder(d=stiftd,h=stiftl,$fn=seg); }
glb/cad_5ac72c8b53c3.glb
Create a lid stand consisting of two parallel walls connected by a rounded top ridge. The overall footprint of the stand is 80mm deep and 144mm long. Each wall should be 4mm thick and angled inward from the base to meet at the top, creating a peaked roof shape with a total height of approximately 55mm. The two walls ar...
$fs = 0.1; $fa = 2; depth = 80; height = 55; wall_strength = 4; lid_count = 4; slit_width = 18; slit_spacing = 36; wall_angle = atan2(height, depth/2); wall_height = sqrt((depth/2)^2 + height^2); length = lid_count*slit_spacing; eps=0.01; difference() { union() { rotate([wall_angle, 0, 0]) tran...
glb/cad_b7342c0fd97a.glb
Create a furniture slider by starting with a main cylinder that has an outer diameter of 27.5mm and a total height of 3mm. Carve out a central cylindrical recess to hold a felt pad, with a diameter of 25.5mm and a depth of 1.4mm, leaving a bottom base thickness of 1.6mm. In the center of the base, create a vertical...
felt_diameter = 25.5; wall_thickness = 1; slider_height = 3; felt_thickness = 1.4; hole_diameter = 3.2; countersink_diameter = 6.25; $fn=200; rotate(a=[0,180,0]) { difference() { children(); cylinder(h=slider_height,d=felt_diameter + (2*wall_thickness)); cylinder(h=felt_thickness,d=felt_di...
glb/cad_530c4230dd85.glb
Create a ledstrip profile mount. Start with a rectangular block 20mm wide, 20.1mm deep, and 15.3mm high. Remove a central rectangular section from the top and front, leaving a wall thickness of 1.3mm on the sides and a bottom thickness of 3.3mm, creating a U-shaped channel that is 17.5mm wide and 15mm deep. Within the...
module screwhole(sdia=4,slen=5,hdia=10,hlen=3,prelength=40) { cylinder(d=sdia,h=slen, $fn=50); translate([0,0,(slen-hlen)]) cylinder(d1=sdia,d2=hdia,h=hlen, $fn=50); translate([0,0,slen-0.1]) cylinder(d=hdia,h=prelength, $fn=50); } module screwslit(sdia=4,slen=5,hdia=10,hlen=3,prelength=40,...
glb/cad_b51ea76a888e.glb
Create a battery pack for three AAA batteries in series. Start by creating three identical hollow rectangular cells aligned side-by-side along the X-axis. Each cell should be a rectangular shell with outer dimensions of 12mm width, 52mm length, and 11mm height. The interior of each cell must be hollowed out with a cavi...
battery_length = 1; battery_width = 3; aaa_battery = true; module aabattery(length){ difference(){ cube([16, 52 * length, 16], center=true); translate([0,0,1]){ cube([15, (52 * length) - 1, 15], center=true); } } } module aaabattery(length){ difference(){ cube...
glb/cad_6d6c0dfaf59b.glb
Create a Hex Bolt Cap designed to fit an M6 bolt. Start by creating a main cylindrical body with a total diameter of 14mm and a total height of 7mm. The bottom of this cylinder should have a slight taper, starting from a diameter of 13mm at the very base and widening to 14mm for the remainder of the height. Inside thi...
size = 6; wallThickness = 2; metricBoltWrenchWidth = [ [0, 0], [3, 5.5], [4, 7], [5, 8], [6, 10], [8, 13], [10, 17], [12, 19] ]; metricBoltHeadHeight = [ [0, 0], [3, 2.7], [4, 3.5], [5, 4.1], [6, 5], [8, 6], [10, 8], [12, 9] ]; hexWrenchSize = lookup(size, metricBoltWrenchWidth); hexH...
glb/cad_98d2b0a487a9.glb
Create a square measuring stick for wargames with a total length of 50mm, a width of 6mm, and a thickness of 6mm. The main body is a rectangular prism. Along the length of the stick, add measurement marks every 10mm. Each mark should be 0.45mm wide and 6mm deep, cutting through the thickness of the stick. To make the...
font = "Comfortaa:style=Bold"; in = 10; w = 6; mw = 0.45; length = 5; modifier = false; make_set = false; make_gap_measure = false; if (make_set) { for (i=[5:5:30]) { translate([(30-i)/2*10, pow(-1, i)*((6-i/5)*8+4), 0]) union() { if (modifier) { stick_ruler_modifier(i); } else { st...
glb/cad_1607fde4679e.glb
Create a square measuring stick for wargames. The main body is a rectangular prism with a length of 25.4mm (1 inch), a width of 6.35mm, and a height of 6.35mm. Along the length of the stick, create thin vertical slots 0.45mm wide to mark the inch increments. These slots should cut through the width and height of the ...
font = "Comfortaa:style=Bold"; in = 25.4; w = in/4; mw = 0.45; length = 1; modifier = false; make_set = false; make_gap_measure = false; if (make_set) { for (i=[1:12]) { translate([(12-i)/2*in, pow(-1, i)*((12-i)*in/5+in/10), 0]) union() { if (modifier) { stick_ruler_modifier(i); } else { ...
glb/cad_2d231e71eabb.glb
Create a glasses arm replacement consisting of two mirrored arms. For each arm, start with a main stem that is 98mm long and 3.7mm thick. At the end of the stem, create a hinge mechanism. The hinge is a block 9.2mm wide and 3.7mm thick. Within this hinge block, create a central hole 1.6mm in diameter that runs through ...
hingeSz_x = 9.2; hingeSz_z = 3.7; hingePost_x = 1.8; hingeHole_offset_z = 5.8; hingeHole_offset_y = 1.5; hingeHole_outer = 3.0; hingeHole_inner = 1.6; armLen = 98; armBendYLen = 18; armBendXOffset = 24; mode = "Both"; module arm_r() { hull() { translate([-hingeSz_x/2+hingeSz_z/2, 0, hingeSz_z/2]) rotate([9...
glb/cad_59263632c28a.glb
Create a KQ(r) surface texture modifier by constructing a randomized kisquadrille grid. Start with a rectangular area 120mm wide by 120mm deep and 0.2mm high. Divide this area into a grid of 6 columns and 6 rows. For each square cell in the grid, define a center point. Divide each square into four triangles by connect...
$vpr=[90 - atan(sin(45)),0,45]*1; Modifier_type = -1; Width = 120; Depth = 120; Height = 0.2; Columns = 6; Rows = 6; Shape_type = 1; is_ngon = 2 == Shape_type; Ngon_or_circle_sides = 180; sides = Ngon_or_circle_sides; is_circle = sides >= 60; Ngon_area_rotation = 0; Grid_thickness = 0.05; Fit_grid_borders_to...
glb/cad_1985b97e8ec7.glb
Create a Mini 12864 Display Adapter for a Babycube printer. Start with a main rectangular block measuring 125mm in width, 50mm in depth, and 30mm in height. From the top face, create a large central rectangular cutout that leaves a wall thickness of 7mm on the left and right sides and 1mm on the front and back. This ...
$fn=80; extra=0.01; screwDia = 3.1; screwLen = 10; xAdapter = 125; yAdapter = 50; adapterXWallthickness = 7; adapterYWallthickness = 1; adapterThickness = 30; frontPlateThickness = 2; frontPlateRotate = -20; xPanelHole = 118; yPanelHole = 33.5; caseHoles = [[0,0],[xPanelHole,0],[0,yPanelHole],[xPanelHole,yPanelHol...
glb/cad_832a623ea188.glb
Create a Bastion Filament Spool Holder consisting of a mounting base and a protruding support arm. Start with a rectangular base measuring 75mm wide, 20mm deep, and 6mm thick. Centered on this base, add a secondary rectangular block measuring 75mm wide, 6mm deep, and 36mm tall, extending downwards from the rear. On th...
$fn=42; difference() { union() { hanger(); translate([(75/2)-15,0,-4])rotate([90,0,0])spool_holder_shaft(); translate([(75/2)-15,0,-4])rotate([90,0,0]) spool_holder_lip(); translate([22.5,-2,0])rotate([0,0,45]) cube([3,3,6]); translate([52.5,-2,0])rotate([0,0,45]) cube([3,3,...
glb/cad_f2c9f92a291f.glb
Create a customizable deckbox for trading cards consisting of three adjacent rectangular racks. Each rack is a hollow container with an outer width of 74mm, a depth of 70mm, and a wall thickness of 2mm on the sides and bottom. The height of each rack varies based on the number of cards it holds, calculated at 0.45mm pe...
nbOfCards = [210, 120, 50]; logo = "green"; logo_file = str(logo, ".dxf"); if (logo == "magic") { logo = "purple"; } module logo() { color(logo) linear_extrude(4) { scale(0.28) offset(delta=0.001) import(logo_file); } } module logo_inscription() { rotate([90,0,0]) translate([...
glb/cad_4a469fa44009.glb
Create a towel bar shower rack support arm. Start by constructing a rectangular prism for the main support arm with a length of 220mm, a width of 10mm, and a height of 10mm, centered along the X-axis. At the end of this arm, add a decorative cap formed by the intersection of a sphere with a diameter of 21mm and a cube ...
include <global.scad> rot=0; intersection() { sphere(10.5); cube([arm_wid*2, arm_wid, arm_wid], center=true); } sup_len=220; translate([sup_len/2, 0, 0]) { cube([sup_len, arm_wid, arm_wid], center=true); } translate([sup_len+5, 0, 0]) { rotate([rot, 0, 0]) { latch_male(); } } translate([20, 0, 13]) {...
glb/cad_6ee92685bdc1.glb
Create a towel bar shower rack consisting of two symmetrical support arms and interlocking baskets. Each support arm is a rectangular prism measuring 220mm in length with a square cross-section of 10mm by 10mm. At the outer end of each arm, integrate a latch mechanism: one end must feature a male latch and the opposite...
include <global.scad> rot=180; sup_len=220; translate([sup_len/2, 0, 0]) { cube([sup_len, arm_wid, arm_wid], center=true); } translate([sup_len+5, 0, 0]) { rotate([rot, 0, 0]) { latch_male(); } } translate([-17, 0, 0]) { rotate([rot, 0, 0]) { latch_female(); } } translate([110, 0, 13]) { rotate...
glb/cad_e58f807208dd.glb
Create a towel bar shower rack support arm. Start by constructing a hook designed to fit around a rectangular rod, using a hull of three cylinders each with a diameter and height of 10mm. Position the first cylinder at the origin, the second at [7.07, 7.07, 0], and the third at [7.07, -7.07, 0], then add a fourth cylin...
include <global.scad> hook_len=sin(45)*(rod_wid+arm_wid); hull() { cylinder(d=arm_wid, h=arm_wid, center=true); translate([hook_len, hook_len, 0]) { cylinder(d=arm_wid, h=arm_wid, center=true); } } hull() { cylinder(d=arm_wid, h=arm_wid, center=true); translate([hook_len, -hook_len, 0]) { cylinder(d=...
glb/cad_dea09a717c61.glb
Create a towel bar shower rack support arm. Start by creating a central rectangular beam that is 160mm long with a square cross-section of 5mm by 5mm. At one end of this beam, add a male interlocking latch. At the opposite end, add a female interlocking latch designed to receive the male end of another support arm. Bet...
include <global.scad> rot=180; sup_len=160; translate([sup_len/2, 0, 0]) { cube([sup_len, arm_wid, arm_wid], center=true); } translate([sup_len+5, 0, 0]) { rotate([rot, 0, 0]) { latch_male(); } } translate([-17, 0, 0]) { rotate([rot, 0, 0]) { latch_female(); } } translate([sup_len-110, 0, 13]) { ...
glb/cad_ad1b0c93fe06.glb
Create a towel bar shower rack support arm. Start by constructing a hook designed to fit around a rectangular rod, formed by three joined cylinders each with a diameter and height of 10mm. Position the first cylinder at the origin, the second at [7.07, 7.07, 0], and the third at [7.07, -7.07, 0], then create a hull enc...
include <global.scad> hook_len=sin(45)*(rod_wid+arm_wid); hull() { cylinder(d=arm_wid, h=arm_wid, center=true); translate([hook_len, hook_len, 0]) { cylinder(d=arm_wid, h=arm_wid, center=true); } } hull() { cylinder(d=arm_wid, h=arm_wid, center=true); translate([hook_len, -hook_len, 0]) { cylinder(d=...
glb/cad_e72adc53ea89.glb
Create a towel bar shower rack basket consisting of two symmetrical halves that interlock. Each half is a rectangular container with rounded corners. The main body of the basket is defined by a width of 100mm, a depth of 120mm, and a height of 60mm. On the inner side of each basket half, incorporate a series of recta...
include <basket.scad> difference() { basket(); translate([-bkt_wid/2-20, 0, 0]) { cube([bkt_wid+40, bkt_dep+corner*2+20, bkt_hgt+corner*2+10], center=true); } translate([0, bkt_dep/2+2.5, 0]) { rotate([tab_angle, 0, 0]) { for(y=[15-bkt_hgt/2:30:bkt_hgt/2-10]) { translate([0, y, 0]) { ...
glb/cad_80cba74baffb.glb
Create a towel bar shower rack basket consisting of a hollowed-out container with interlocking tabs for assembly. The main body is a rectangular basket with rounded corners. The interior is carved out by a centered rectangular volume that is 40mm wider than the basket width, with a depth and height that extends slightl...
include <basket.scad> difference() { basket(); translate([bkt_wid/2+20, 0, 0]) { cube([bkt_wid+40, bkt_dep+corner*2+20, bkt_hgt+corner*2+10], center=true); } translate([0, bkt_dep/2+2.5, 0]) { rotate([tab_angle, 0, 0]) { for(y=[30-bkt_hgt/2:30:bkt_hgt/2-10]) { translate([0, y, 0]) { ...
glb/cad_b2789ff78ebf.glb
Create an L-bracket for a Starlink case. Start by forming the main body from two intersecting rectangular prisms: one measuring 100mm wide, 3mm thick, and 40mm deep, and a second prism measuring 100mm wide, 37mm thick, and 3.5mm high, joined at a right angle to create an L-shape with a total width of 100mm. From this s...
$fs = 0.1; $fa = 5; difference(){ union() { translate([0,0,0])cube([100,3,40-3]); translate([0,0,0])cube([100,40-3,3.5]); } translate([10,30-1,-1])rotate(a=[0,0,0])cylinder(h=5,r=4/2); translate([50,30-1,-1])rotate(a=[0,0,0])cylinder(h=5,r=4/2); translate([90,30-1,-1])rotate(a=[0,0,0...
glb/cad_97e6e5721b52.glb
Create an L-bracket for a Starlink case. Start with a base plate that is 100mm wide, 37mm deep, and 3mm thick. Attached to this base, create a vertical wall that is 100mm wide, 37mm high, and 3.5mm thick, forming a right angle. Remove six circular holes with a radius of 2mm from the model. Place three holes through th...
$fs = 0.1; $fa = 5; difference(){ union() { translate([0,0,0])cube([100,3,40-3]); translate([0,0,0])cube([100,40-3,3.5]); } translate([10,30-1,-1])rotate(a=[0,0,0])cylinder(h=5,r=4/2); translate([50,30-1,-1])rotate(a=[0,0,0])cylinder(h=5,r=4/2); translate([90,30-1,-1])rotate(a=[0,0,0...
glb/cad_4bd2786eef96.glb
Create a 3D texture titled "KQ(r) texture" consisting of a randomized kisquadrille surface. Start with a square base measuring 120mm by 120mm. Divide this area into a grid of 6 columns and 6 rows of squares. Subdivide each square into four triangles by adding a center vertex, creating a tetrakis square grid. Randomly ...
$vpr=[90 - atan(sin(45)),0,45]*1; Width = 120; Depth = 120; Minimum_height = 0.16; Maximum_height = 1.04; Base_height = 0.16; Height_steps = 16; Columns = 6; Rows = 6; Triangle_offset = 0.0001; Triangle_outline_thickness = 0; Vertex_displacement_ratio = 50; Center_displacement_ratio = 75; Grid_seed = 1; C...
glb/cad_da923d05dde7.glb
Create a soft jaw for a vise. Start with a solid rectangular block measuring 86.5mm in length, 20mm in width, and 18mm in height. Hollow out the center to create a U-shaped channel, leaving walls that are 5mm thick on the sides and bottom. The interior cavity should measure 76.5mm in length and 12mm in height. Within ...
interiorLength = 76.5; totalWidth = 20; totalHeight = 18; jawThickness = 8; wallThickness = 5; jawMagnets = 1; numberOfMagnets = 2; magnetSize = 9.5; magnetDepth = 4.75; squareMagnets = 0; createGrip = 0; gripSpacing = 10; gripAngle = 45; angledStockHolder = 1; roundStockHolderCount = 3; roundStockHolder...
glb/cad_67bf0cb17ecd.glb
Create a square-profile cutting aid for agar diffusion experiments. Start by constructing a flat rectangular base with a thickness of 1.2mm and overall dimensions of 14mm by 14mm. Centered on this base, place a hollow square tube with an outer side length of 10mm and a total height of 51.2mm. The tube should be hollowe...
side_length = 10; base_height = 1.2; tube_length = 50; base_margin = 2; $fn = 60; difference(){ union(){ translate([0,0,base_height*0.5]) cube([side_length*2+base_margin*2, side_length+base_margin*2, base_height], center=true); translate([0,0,0.5*(tube_length+base_height)]) cube([side_length, side_length, tube_le...
glb/cad_838a6c7e65fa.glb
Create a Print Sheet Box consisting of a main container and a friction-fit lid. For the main container, create a chamfered rectangular base with a width of 259.8mm, a depth of 15.3mm, and a height of 180mm, using a chamfer size of 1.5mm. On top of this base, add a thinner chamfered section with a width of 256.9mm, a ...
generate_Box = true; generate_Lid = true; sheet_count = 6; sheet_width = 256; sheet_depth = 244; slot_thickness = 2; wall_thickness = 0.9; outer_thickness = 1.8; box_height = 200; thinner_heigth = 20; chamfer_size = 1.5; tolerance = 0.05; box_width = sheet_count*(slot_thickness+wall_thickness)-wall_thickness+...
glb/cad_c4e3c5942f9a.glb
Create a spiral staircase for a double deck bus model. The overall structure is contained within a cylinder with an outer radius of 24mm and an inner radius of 14mm, extending to a maximum height of 175mm. Construct the stairs by creating 7 individual steps. Each step has a height of approximately 7.57mm. Arrange the...
hm=175; hs=53; ns=7; r1=14; r2=23; sh=hs/ns; sl=20; sf=20; tl=1; $fn=90; module sal(f,r1,r2) { linear_extrude(height = 2*hs, center = true, convexity = 10, twist = -180) difference() { circle(r2); circle(r1); translate([-100,-50]) square([100,100]); translate([-50,-100]) ...
glb/cad_ac8c62c95975.glb
Create a set of three heart-shaped toast cutters of increasing sizes. Each cutter consists of a thin vertical wall forming a heart silhouette, sitting upon a flat base. The walls are 1mm thick and 15mm high. The three hearts have different scale factors based on a base dimension of 10mm. The smallest heart has a scale...
$fn = 120; velikost =10; translate([0,-11,0]) srdce(6); translate([0,-6,0]) srdce(14); translate([0,0,0]) srdce(22); module srdce(vel_obl = 10) { difference() { union() { hull() { translate([-vel_obl*0.5,0,6]) cylinder(d=vel_obl+2, h=12,center=true); translate([0,-vel_obl*1.2,...
glb/cad_d7c718b5ac2c.glb
Create a lathe division mechanism knob by starting with a cylinder that has a radius of 13mm and a total height of 15mm. Apply a 3mm chamfer to the top edge of this cylinder. Remove a central vertical bore with a diameter of 6.45mm that runs through the entire height of the object. Additionally, create a hexagonal nu...
include <chamfer.scad> knobLength = 15; knobRad = 13; knobChamfer = 3; boreDiam = 6.45; m6NutDiam = 12; m6NutHeight = 4.9; flatHeight = 2.5; $fn = 100; difference() { chamferCylinder(knobLength, knobRad, chamferHeight = knobChamfer); cylinder(d = boreDiam, h = 2*knobLength); translate( [0, 0, knobLength - m6Nu...
glb/cad_7375489f1c19.glb
Create a lathe division mechanism consisting of a base and a pivoting arm. First, construct the base. Start with a rectangular slab 90mm wide, 10mm thick, and 135mm deep (extending from y=0 to y=-135). On top of this slab, add a central rectangular block 20mm wide, 10mm high, and 30mm deep, centered at x=0. At the re...
bedWidth = 76.5; bedFrontWidth = 29.5; bedGap = 20; bedDepth = 10; centreHeight = 85.725; wheelSetBack = 65; baseWidth = 90; baseThickness = 10; baseOffset = 45; fixingBoltDiam = 6.2; pivotThickness = 33; pivotWidth = 15; pivotDepth = 25; pivotOffset = 57; pivotDiam = 4.2; ringRad = 75; $fn = 50; module base() { dif...
glb/cad_b038c1f29da9.glb
Create a case fan duct consisting of a square base and a cylindrical tube. Start with a square base plate measuring 120mm by 120mm with a thickness of 3mm. Center a circular hole through this plate with a diameter of 116mm. Add four screw holes with a diameter of 4.5mm, positioned at the corners such that their centers...
$fn=64; fan_size = 120; fan_diameter = 116; screw_distance = 105; screw_diameter = 4.5; tube_thickness = 2; growbox_tube_height = 100; filter_tube_height = 100; filter_holder_height = 3; filter_holder_thickness = 3; hole_size = 5; render_holes = true; filter_holder_holder_thickness = 0; render_upper_part = false;...
glb/cad_a04e676c8bc6.glb
Create a case fan duct for a 120mm fan. Start with a square base plate measuring 120mm by 120mm with a thickness of 3mm. Center a circular hole through this plate with a diameter of 116mm. Add four screw holes, each 4.5mm in diameter, positioned at the corners such that their centers are 105mm apart from each other acr...
$fn=64; fan_size = 120; fan_diameter = 116; screw_distance = 105; screw_diameter = 4.5; tube_thickness = 2; filter_holder_height = 3; filter_holder_thickness = 3; filter_holder_holder_thickness = 8; difference() { translate([fan_size/-2, fan_size/-2]) cube([fan_size, fan_size, 3]); translate([0, 0, -0.05...
glb/cad_d372801a29aa.glb
Create a Eurolock dummy barrel and a corresponding locking tool. For the dummy barrel, construct a composite shape consisting of a cylinder with a diameter of 16.95mm and a height of 65mm. Integrate a rectangular block into this cylinder that is 16.95mm wide, 9.95mm thick, and 65mm long, centered such that the cylinder...
e_set1 = 32.50; e_set2 = 32.50; e_dia1 = 16.95; e_dia2 = 09.95; e_height = 33.00; e_tang_w = 6.5; e_tang_h = 9.0; e_tang_l = 6.8; e_tang_e = 10; module __Customizer_Limit__ () {} shown_by_customizer = false; e_sep = e_height - (e_dia1/2) - (e_dia2/2); e_len = e_set1 + e_set2; $fn=100; difference(){ union() {...
glb/cad_25f00f771938.glb
Create a Raspberry Pi IR Camera mount consisting of a main housing box and a removable front plate. Construct the main box with an overall width of 84mm and a height of 15mm. The interior should be hollowed out to a depth of 13mm. The box features a central rectangular section and two cylindrical outer ends with a di...
$fn = 66; VonOhrZuOhr = 84; Ohrenhoehe = 22; Ohrenbreite = 28; OhrenBohrW = 27; OhrenBohrH = 4; Oben_bis_Unten = 32.0; IR_Dia1 = 22.0; IR_Dia2 = 25.0; IR_Dia3 = 18.0; IR_Rahmen = (IR_Dia2 - IR_Dia1) / 2; IR_Sen_Dia ...
glb/cad_637ad6a431a8.glb
Create a hidden nut fastener for displays by starting with a solid cube measuring 20mm x 20mm x 23mm. Center a vertical hole through the entire height of the block with a diameter compatible with an M5 screw. Within the block, create a hexagonal cavity designed to hold an M5 nut, oriented so the nut is captured interna...
use <cyl_head_bolt.scad> $fn = $preview ? 32 : 128; cutout = 3; screw = "M5"; inset = 15; difference() { translate([-10, -10, -inset-8]) cube([20, 20, 15+inset]); translate([0, 0, 10]) hole_through(name=screw, l=50, cld=0.2, h=0, hcld=0.4); rotate([180,0,0]) nutcatch_parallel(screw, clh=0.2); translate([...
glb/cad_16670b3e210c.glb
Create a laundry bag holder consisting of a top and bottom section that form a hollow rectangular sleeve. The bottom section is a rounded rectangular slab with outer dimensions of 175mm in length and 76mm in width, and a thickness of 13mm. It has a central rectangular cutout measuring 165mm by 66mm with a height of 1...
$fn = 120; breite = 14.50 + 0.50; hoehe = 25.20; outer_len = 175.00; outer_wid = 76.00; inner_len = outer_len - 10; inner_wid = outer_wid - 10; holder_len = inner_len - 6; holder_wid = inner_wid - 5.1; holder_wall = 5.00; holder_lay = breite + holder_wall*2 + 10; corner_dia = 8.00; elevati...
glb/cad_a435a88292a5.glb
Create a Robotic Lawn Mower Tree Protector consisting of a circular frame and three integrated ground spikes. The main body is a partial ring with a width of 20mm and an inner diameter of 100mm. This ring is not a full circle; it has a small gap to allow for installation around a tree. Position three identical groun...
spikeHeight = 200; frameWidth = 20; treeDiameter = 40; spikeCount = 3; spikeStyle = "*"; spikeScale = 2; treeBuffer = 2.5; {} $fn=100; module spike(shape="*", height = 200, width = 40) { shape = spikeStyle; scale = spikeScale; startSize = (width/scale) * 2 ; linear_extrude(height = height, s...
glb/cad_eb6bd6b6ac0e.glb
Create a thin circular disc with a diameter of 50mm and a thickness of 1mm. Center a circular hole with a diameter of 5.5mm through the entire thickness of the disc. Add four additional 5.5mm diameter holes that pass completely through the disc; position these four holes in a square pattern, each centered 16.67mm from ...
base_diameter = 50; mag_diameter = 5; thickness = 1; multimag=true; difference() { cylinder(d=base_diameter,h=thickness,$fn=128,center=true); cylinder(d=mag_diameter + 0.5,h=thickness + 1,$fn=64,center=true); if(multimag==true) { for(i=[0:3]) { rotate([0,0,i*90+45]) translat...
glb/cad_94d89e7f3338.glb
Create a set of three wargaming markers with a uniform thickness of 2mm. First, create a placeholder marker as a flat cylinder with a diameter of 25mm. Cut a thin slot through the center of the cylinder and emboss the text "25" on the top surface. Second, create a one-inch measuring tool. Start with a central circle...
include <ruler_common.scad>; include <BOSL2/std.scad>; base_diameter = 25; part = "all"; text_only = false; echo(base_diameter, part, text_only ? "text" : "model"); height = 2; base = base_diameter; module clasp(r_base, clasp_width, angle, spin, h) { r_clasp = r_base+clasp_width; difference() { union() { ...
glb/cad_ab0811c6eb9e.glb
Create a low-profile handle label with a main rectangular base measuring 117mm in length, 18mm in width, and 3mm in height. At each end of the base, add a centered rectangular catch block that is 8.5mm long, 18mm wide, and 7mm high. Refine the geometry by applying 45-degree chamfers to the long edges of the main base...
version = "V1_1"; label = "TAPS & DIES"; font_size = 11; length_adjust = 1; catch_adjust = 1; base_length = 117; adj_base_len = base_length * length_adjust; base_width = 18; base_height = 3; BASE_DEF = [adj_base_len,base_width,base_height]; catch_length = 8.5; catch_height = 7; catch_dia = 3; adj_catch_dia...
glb/cad_94ed71f280f6.glb
Create a Lightsaber Mount consisting of two separate parts: a handle hook and a blade loop. For the handle hook, create a ring with an outer diameter of 44.2mm and a height of 10mm. The ring should have a wall thickness of 2.1mm and an internal diameter of 40mm. To allow for the insertion of a handle, remove a sectio...
render_hook = false; render_loop = true; wall_thickness = 2.1; handle_ID = 40; module handle_hook() { post_l = 20; ring_OD = handle_ID + (2 * wall_thickness); difference() { union() { translate([(handle_ID + post_l) / 2, 0, post_d/2]) rotate([0,90,0]) cylinder(d = post_d, h = post_l, c...
glb/cad_8d9263f58c48.glb
Create a wargaming measurement ruler consisting of a series of connected circular links. The ruler is designed for a 32mm base diameter and a total length of 12 inches. Construct the ruler as a chain of 12 identical links, each spaced 1 inch apart. Each link is based on a cylinder with a diameter of 32mm and a height ...
include <../ruler_common.scad>; include <BOSL2/std.scad>; base_diameter = 32; ruler_length = 12; height = 4.8; module ruler_link(base, h=height, side=true, text, start=false) { r_base = base/2; htol = 0.2; vtol = 0.1; theta = asin((r_base + in/4) / in); C = [in*cos(theta), r_base + in/4, 0]; dot(C); ...
glb/cad_d7fb6cc8439a.glb
Create a wargaming measurement ruler consisting of a series of interlocking links. Each link is based on a circular base with a diameter of 32mm and a total height of 4mm. For each link, create a main body that is a cylinder with a diameter of 32mm and a height of 4mm. Subtract a square cutout from the bottom left an...
include <../ruler_common.scad>; include <BOSL2/std.scad>; base_diameter = 32; ruler_length = 12; parity = "both"; text_method = "engraved"; echo(base_diameter, ruler_length, parity, text_method); output_odds = (parity != "evens"); output_evens = (parity != "odds"); height = 4; module ruler_link(base, h=height, side...
glb/cad_2af2e77a2c1d.glb
Create a bathroom overfill cover consisting of a wide base and a central cylindrical tube. Start with a circular base rim that is 66mm in diameter and 4mm thick. This rim has a concentric circular cutout starting 2mm from the bottom, with a diameter of 60mm and a height of 2.1mm. Rising from the center of this base is...
$diameter_min = 40; $height = 26; $screw_diameter = 4; $rim_size = 13; $rib_width = 2.2; $rib_height = 10; $diameter_max = $diameter_min + 2; $diameter_inner = $diameter_min - 2; union() { difference() { cylinder(h=4,d1=$diameter_min+2*($rim_size-2),d2=$diameter_min+2*($rim_size)); translate([0,0,2]) cy...
glb/cad_5b530fb44f68.glb
Create a 3D fractal curve generator. The final object is a single, continuous extruded line with a height of 10mm and a thickness of 0.4mm. The path is generated as a recursive fractal based on a square grid. Start with a base length of 200mm and apply 4 iterations of recursion. In each iteration, replace each straig...
$fn =20; Width = 0.4; Height = 10; Length=200; Deep = 4; Grid = "square"; Mode = "spline"; Steps = 15; Pattern=[ [0,1,1,1], [0,1,-1,-1], [1,0,1,1], [1,0,-1,-1], [0,-1,1,1], ]; _pattern = sumv(Pattern); _dir = calculateDegree(_pattern[0],_pattern[1]); _length = calculateLength(_pattern[0],_pattern[1]); ...
glb/cad_86d043ab0554.glb
Create a base for a Morse key by starting with a rectangular block 60mm wide, 140mm deep, and 10mm high. On top of this base, add a pyramid-shaped bezel that extends from the base edges to a peak height of 60mm, but hollow out the center of this pyramid to leave a wall thickness of 2mm, creating a recessed tray. On th...
width = 60; depth = 140; height = 20; bezel_height =2; hole_diameter = 4.3; hole_sunk_diameter = 8.5; distance_back_holes=30.5 + 4/2 + 2; distance_front_hole = 32.5; offset_holes =25; sunk_screw_depth = 2.7; anti_skid_diameter = 10; anti_skid_depth = 2.2; anti_skid_offset = 5; pyramid_height_factor = 3; module pyramid...
glb/cad_0a2e7de9ee6b.glb
Create a Continuity Camera Mount for an external monitor. The object is a linear extrusion with a total length of 50mm and a wall thickness of 1mm. The cross-section consists of a main vertical support and a tilted phone cradle. Start with a vertical rectangular wall 20mm wide. At the top of this wall, add a horizont...
monitor_width = 20; monitor_overhang = 5; phone_width = 11; phone_depth = 25; angle = 15; length = 50; thickness = 1; {} text_size=2; if($preview) { color([0,0,1]) translate([0,0,length]) { translate([0, thickness,0]) rotate(90) resize([monitor_width,0,0]) text(str("←monitor_width=", monitor_wi...
glb/cad_4f491b92aed9.glb
Create a base for a TK morse key starting with a rectangular block 67mm wide, 120mm deep, and 10mm high. On top of this base, add a bezel structure that forms a pyramid shape with a height of 60mm, but hollow out the center of this pyramid to leave a wall thickness of 2mm, creating a recessed area. Cut four mounting h...
width = 67; depth = 120; height = 20; bezel_height =2; hole_diameter = 4.08; hole_sunk_diameter = 8.5; distance_back_holes=54; distance_front_holes = 68; offset_holes =8; sunk_screw_depth = 0; anti_skid_diameter = 10; anti_skid_depth = 2.2; anti_skid_offset = 7.5; pyramid_height_factor = 3; module pyramid(w, l, h) { ...
glb/cad_456888adba58.glb
Create a Gunpla Display Arm peg consisting of two joined geometric sections. First, create a hexagonal base with a radius of 2.22mm and a total height of 10mm. This base should feature a slight taper, transitioning from a radius of 2.01mm at the very top to the full 2.22mm radius for the remaining 4mm of its height. ...
use <MCAD/regular_shapes.scad> use <MCAD/array.scad> peg_radius = 2.22; peg_height = 10.0; pin_radius = 1.55; pin_height = 12.0; base_taper_percentage = 0 + 0.1; peg_taper_percentage = 0 + 0.1; hex_base_offset = peg_radius * cos(60 / 2); octo_peg_offset = pin_radius * cos(45 / 2); hex_taper_radius = peg_radius * (1....
glb/cad_87a45d3079ea.glb
Create a Bastion BTT SFS v2.0 Mount by starting with a rectangular base plate measuring 100mm in width, 30mm in height, and 5mm in thickness. Round the four exterior corners of the plate with a 5mm radius. Remove two through-holes with a radius of 1.6mm, positioned 10mm from each side edge and centered along the heig...
$fn=32; difference() { plate_width=100; plate_height=30; cube([plate_width,plate_height,5]); translate([10,plate_height/2+5]) cylinder(h=5,r=1.6); translate([10,plate_height/2+5,4]) cylinder(h=1,r=3); translate([plate_width-10,plate_height/2+5]) cylinder(h=5,r=1.6); translate([plate_width-10...
glb/cad_4f71b64535cb.glb
Create a filament storage support system consisting of a front and back bracket designed to hold two 19mm diameter pipes. For the center section, create a rectangular base 160mm wide, 9mm deep, and 14mm high. At each end of this base, integrate a cylindrical socket with an outer diameter of 25.2mm and an inner hole o...
$fn=120; Back=1; Front=1; Center=1; StickDiameter=19; if(Center) translate([0,-30,0]){ translate([-8,0,0])Cube(160,9,14,2); translate([-12+20,20,0])difference() { cylinder(d=StickDiameter+0.2+6,h=14); translate([0,0,-1])cylinder(d=StickDiameter+0.2,h=18); translate([-20,0,-1])cube([40,20,20]); } translate...
glb/cad_2e9def03c26a.glb
Create a shifted washer for an inline skate buckle strap. Start with a rectangular base plate measuring 30mm in length and 17mm in width, with a thickness of 4mm. Round the corners of this plate with a 3mm radius and apply a 1mm chamfer to the top edges. At the center of the plate, create a vertical cylindrical protru...
strap_hole_width=10; strap_hole_len=19.8; strap_thickness=2; strap_pressure=0.4; h_clearence=0.15/2; v_clearence=0.1; screw_clearence=0.2; screw_hole_dia=5.1+0.3; screw_cap_hole_dia=11.8; screw_hole_depth=3+0.3; height=5.4; plate_width=17; plate_len=30; plate_rounding=3; plate_thickness=4; plate_chamfer=1; hook_dep...
glb/cad_0fd66118b5ad.glb
Create a tool holder for 3D printer accessories by starting with a solid rectangular base measuring 100mm by 100mm with a height of 26mm. All outer vertical edges of this base should be rounded with a radius of 2mm. From this base, remove three specific volumes to create storage slots. First, create a circular hole w...
$fn=120; Letters=0; if(!Letters) difference() { Cube(100,100,26,2); translate([28,36,2.4])cylinder(d=38,h=100); translate([56,18,26-6]) Cube(32,44,8); translate([12,80,2.4]) Cube(74,10,80); } if(Letters) { translate([37+12,77,25])#linear_extrude(height=1) text("Kniptang",font="DIN:style=Regular",size=8,valign...
glb/cad_35940cb12f8b.glb
Create a Crystallography Trophy plaque by constructing a base plate using a convex hull of four cylinders. Each cylinder has a diameter of 5mm and a height of 3mm. Position the cylinders at the corners of a rectangle with the centers located at (9.2, 0, 20.2), (70.8, 0, 20.2), (9.2, 0, 59.8), and (70.8, 0, 59.8). On t...
rotate([90,0,0]) plaque(); title = "Winner"; subtitle = "Crystallization Contest"; name = "Your Name"; year = "2024"; $fn = 80; module plaque_empty() { hull() { translate([9.2,0,20.2]) rotate([-90,0,0]) cylinder(d=5,h=3); translate([70.8,0,20.2]) rotate([-90,0,0]) cylinder(d=5,h=3); translate([9.2,0,59...
glb/cad_4e502a245800.glb
Create a protective case for a capacitive soil moisture sensor. The main body is a rectangular enclosure with an outer width of 29.5mm, an outer length of 37mm, and an outer height of 11.5mm. The walls are 1.5mm thick. Hollow out the center to create a usable inner space of 34.5mm in length and 26.5mm in width. At the...
material=1.5; notchdepth=2; notchdia=1.8; notchholedia=0.8; sensorwidth=23.5; sensorthickness=7.5; caseinnerheight=sensorthickness+2; caseouterheight=caseinnerheight+2*material; notchtoend=20; notchoverlapfront=6; endspace=10; notchdistance=notchtoend+endspace-notchdia; notchheight=caseouterheight-material; coveroverl...
glb/cad_24d3c5d192e6.glb
Create a parametric PCB corner bracket mount. Start by creating a cylindrical base with a diameter of 6mm and a height of 2mm. Centered within this base, create a tapered hole that starts with a diameter of 1.5mm at the bottom and expands to a diameter of 3mm at the top, extending to a total height of 6mm. Surround the...
screwdia=1.5; screwheaddia=4; basematerial=2; edgematerial=6; outermaterial=2; pcbthickness=2; basecube=12; difference() { union() { cylinder($fn=32, h=basematerial, d=screwheaddia+outermaterial); difference() { translate([-outermaterial/2,-outermaterial/2,0]) { cube([b...
glb/cad_deb1a61c3be5.glb
Create a peristaltic pump mount consisting of a main hollow cylinder with an outer diameter of 45mm, an inner diameter of 35mm, and a total height of 26mm. Centered within the cylinder walls, create two perpendicular 5mm diameter holes that pass completely through the sides. Add four mounting lugs extending from the ...
material=5; innerdia=35; outerdia=innerdia+material; height=26; mountheight=5; boredistance=48; boreouter=10; threaddia=2.5; boredia=3.5; headdia=5; opening=20; difference() { union() { cylinder($fn=128, d=outerdia, h=height); mounts(height-mountheight, mountheight, threaddia, threaddia); ...
glb/cad_e58ed7c94dbe.glb
Create a locking rivet fastener consisting of a circular base and a vertical pin. Start by creating a flat circular base with a radius of 7mm and a thickness of 1.2mm. Centered on this base, extend a vertical cylindrical pin with a radius of 2.75mm and a height of 8.8mm. To create the locking mechanism, modify the pi...
$fn=60; h = 8.8; b = 1.2; r1 = 7; r2 = 2.75; bb = 0.40; betw = bb+.35; from = b+1; rep = h+b-1; union() { difference() { color("grey") translate([0, 0, 0]) rotate_extrude($fn = 80) polygon( points=[ [0,0], [r1-.75,0], [r1,b], [r2,b], [r2,h+b], [0,h+b] ] ); color("grey") translate([-0.2,-0....
glb/cad_ac6d2d779e02.glb
Create a Vacuum Hose Holder consisting of three identical, equally spaced circular clips aligned along a central axis. Each clip is based on a ring with a total width of 30mm and a height of 28mm. The main body of each clip is a thick circular wall with an outer radius of 66mm and an inner radius of 22mm. Carve out t...
include <BOSL2/std.scad> count = 3; width_total = 30; res = 16; hose_diameter = 44; opening = 38; screw_pairs = 1; screw_hole_diameter = 5; screw_head_space_diameter = 10; min_width = 4; tilt_angle = 60; module cust_torus(r_maj,r_min){ r_ratio = r_maj/r_min; rotate_extrude($fn=res*r_ratio) right(...
glb/cad_b89dd3a013df.glb
Create a Noodle Eye frame connector consisting of two identical perpendicular arms joined at a corner. Each arm is a segmented rod composed of 15 repeating units. Each unit is an 8-sided polygonal prism with a height of 4mm. The base of each unit is an octagonal cylinder with a diameter of 22mm, which tapers upward to ...
$fn=32; diameter1 = 22; diameter2 = 29; step = 4; segments = 8; plateLength = 40; slotWidth = 13; module study1(){ color("green") linear_extrude(1) union(){ translate([0,100]) circle(r=150); translate([0,-100]) circle(r=150); } linear_extrude(5) difference(){ intersection(){ ...
glb/cad_bfe77fe4bdf9.glb
Create a Bastion Extended Frame Skirt consisting of several panel variations, all with a thickness of 5mm. For the basic skirt, create a rectangular panel with a perimeter defined by a polygon with vertices at [0,0], [259.094,0], [226.469,29.947], and [32.625,29.947]. Hollow out the center to leave a thin outer wall,...
$fn=40; basic_skirt(); module rear_panel() { difference() { union() { outer_ring(); brickfill(); } linear_extrude(height=5){ polygon([ [(193.844+32.625)-36.424-25,29.947], [(193.844+32.625)-36.424-14.577-25,29.947-14.576], ...
glb/cad_523a05edc068.glb
Create a Fence Corner Tie-Back consisting of a right-angle bracket with a mounting plate and a cylindrical support. Start with a rectangular base plate measuring 25mm by 25mm with a thickness of 6mm. At one end, integrate a vertical cylinder with an outer diameter of 18mm and a height of 25mm. The base plate features...
resolution = 100; $fn = resolution; module screw_recess() { translate([0, 0, 3.5]) cylinder(h=4, d=8); translate([0, 0, 1]) cylinder(h=2.5, d1=4, d2=8); translate([0, 0, -1]) cylinder(h=8, d=4); } module mount(top) { difference() { union() { translate([6/2, 6/2, 0]) { ...
glb/cad_bc0d35cb764d.glb
Create a miniature cable clip consisting of a circular retaining clip and a mounting base. First, construct the clip by creating a hollow cylinder with an outer diameter of 7mm, an inner diameter of 5mm, and a width of 6mm. Cut a gap into this cylinder to create an opening 3mm wide, leaving a C-shaped channel. Next, ...
include <BOSL2/std.scad> include <BOSL2/screws.scad> $fn=32; material=2; clipouterdia=7; clipinnerdia=5; clipopening=3; clipwidth=6; mountouterdia=clipwidth; module hullovercyl(dia, distance, height) { hull() { cylinder(h=height, d=dia); translate([distance,0,0]) { cyl...
glb/cad_1925d77ba286.glb
Create a pour spout for a resin bottle consisting of a tapered plug and a matching cap. First, construct the spout plug. Create a hollow tapered cylinder with a total height of 12mm. The base of the plug should have an outer diameter of 8.8mm, tapering upwards to an outer diameter of 8.4mm. The interior of this plug ...
$fn=80; r_pot_min = 16.80/2; r_pot_max = 17.60/2; l_pot = 12; th=1.2; l_spout = 25; r_spout_min = 6/2; r_spout_hole = 5/2; spout(); color("red")top(); module top(){ tr([0,0,l_pot])difference(){ union(){ cylinder(h=l_spout, r1=r_pot_max+th, r2=r_spout_min+th); tr([0,0,l_spout])difference()...
glb/cad_31c812efa510.glb
Create a vacuum adapter for a random orbit sander. The main body is a hollow vertical cylinder with an outer diameter of 37mm and a height of 45mm. The interior is hollowed out by a cylinder with a diameter of 32mm and a height of 14mm, starting from the top. At the base of the adapter, create a rectangular cutout tha...
$fn=80; module sander_cutout(height=1, padding=0) { hull() { translate([21-0.1,-padding/2,0]) cube([0.1+padding/2,27+padding,height]); translate([21-14-padding/2,-padding/2,0]) #cube([14+padding,25+padding,height]); translate([-padding/2,3-padding/2,0]) cube([10+padding,21-3+padding,height]); transla...
glb/cad_b68175f83953.glb
Create a fan mount adapter for a 120mm fan. Start with a square base 120mm wide and 15mm total height. The center of the base is hollowed out by a circle with a 114mm diameter. At the four corners of the 120mm square, create vertical screw holes with a diameter of 4.5mm that pass through the entire height. Around thes...
$fn = $preview ? 16 : 128; layer_height = 0.2; fan_diam = 120; fan_blade_diam = 114; fan_holes_offset = 105; fan_holes_size = 4.5; fan_height_offset = 13; fan_screw_hole_diam = 10.4; right_space = 51.5; dell_offset_x = fan_diam / 2 - right_space; dell_holes_offset = 72; dell_hole_diam = 3.5; dell_angle = -13.3; hol...
glb/cad_6fe680e9d5ea.glb
Create an Anet A8 LCD cover. Start with a main body consisting of a base plate 160mm wide, 65mm deep, and 2mm thick, with two side walls 1.5mm thick and 25.8mm high extending from the left and right edges. Add two vertical support blocks 7mm wide and 14mm high at the front and rear corners on the top surface. Cut a re...
module main_body() { difference() { union() { translate( [ 1.5 , 0 , 0 ] ) cube( [ 160 , 65 , 2 ] ); translate( [ 0 , -14.2 , 14 ] ) cube( [ 163 , 1.5 , 11.8 ] ); translate( [ 0 , 65 , 0 ] ) cube( [ 163 , 1.5 , 17 ] ); tr...
glb/cad_c7b44a26567a.glb
Create a protective LCD cover for an Anet A8 printer. Start by constructing the main body as a rectangular block measuring 9mm by 5mm by 42mm. Add two small rectangular teeth, each 3mm by 3mm by 6mm, positioned at the lower and upper sections of the body to act as supports. Build out the lower and upper LCD supports u...
module right_body() { difference() { union() { translate( [ 0 , 0 , -5 ] ) cube( [ 9 , 5 , 42 ] ); translate( [ 3 , -3 , 5 ] ) cube( [ 3 , 3 , 6 ] ); translate( [ 3 , -3 , 26 ] ) cube( [ 3 , 3 , 6 ] ); translate( [ 2.5 , 0 , -5 ] ) cube( [ 6.5 , 7...
glb/cad_734e600b3897.glb
Create an Anet A8 LCD cover. Start with a main body consisting of a base plate 160mm wide, 65mm deep, and 2mm thick. Add two side walls 1.5mm thick and 25.8mm high at the left and right edges. Create a front and rear profile by adding 45-degree angled sections to the edges. Cut a rectangular window for the LCD screen ...
module main_body() { difference() { union() { translate( [ 1.5 , 0 , 0 ] ) cube( [ 160 , 65 , 2 ] ); translate( [ 0 , -14.2 , 14 ] ) cube( [ 163 , 1.5 , 11.8 ] ); translate( [ 0 , 65 , 0 ] ) cube( [ 163 , 1.5 , 17 ] ); tr...
glb/cad_dc2a24a4d197.glb
Create a lid for a planter by constructing a base shape that combines three elements: a 48mm by 24mm by 10mm rectangular block, a second 24mm by 48mm by 10mm rectangular block perpendicular to the first, and a cylinder with a 24mm radius and 10mm height positioned at the corner where the two blocks meet. Merge these in...
wl=48; hl=10; wl2=24; module lid() { union() { cube([wl,wl2,hl]); cube([wl2,wl,hl]); translate([wl2,wl2,0]) cylinder(h=hl,r=wl2); } } difference() { lid(); translate([-1,-1,1]) lid(); translate([29.5,29.5,0]) cylinder(h=20,d=13.5,center=true); }
glb/cad_b5ff7e93aea4.glb
Create a simple clay texture sheet. Start with a central square plate measuring 150mm by 150mm with a thickness of 3mm. On the top surface of this plate, add a series of parallel raised ridges. These ridges should be cylinders with a diameter of 3mm and a height of 2mm, running across the full width of the plate. Space...
version=1; size=150; support=true; if (support==true) { for (i=[0:90:270]) rotate([0,0,i])translate([size/2,size/2,-1.5+0.1]) #cylinder(h=0.2,d=30,center=true,$fn=127); } if (version==1) { cube([size,size,3],center=true); for(i=[0:6:size-6]) translate([0,i-size/2+(size%6)+3,2.5])cube([size,3,2],ce...
glb/cad_1090b2670740.glb
Create a label frame consisting of two interlocking parts with outer dimensions of 70mm by 50mm and a total thickness of 3.99mm (three layers of 1.33mm each). For the lower part, create a solid base plate 70mm by 50mm and 3.99mm thick. Subtract a central rectangular block 56mm by 36mm and 3.99mm high, starting from a...
$width=70; $height=50; $layer=1.33; $frame_width=7; $subframe=2; $slit=1; $peg_ratio=1.001; $spacing=5; $tolerance=0.1; inner_width = $width-2*$frame_width; inner_height = $height-2*$frame_width; inner_frame = $frame_width-$subframe-$slit; peg = inner_frame/2; peg_offset = inner_frame/2+$subframe; module peg(...
glb/cad_335a37b5986d.glb
Create an Economical Resistor Storage Rack consisting of three parts: a tube, a lid, and a rack. For the tube, create a rounded cuboid with outer dimensions of 24.4mm width, 24.4mm depth, and 64mm height, using a fillet radius of 3.4mm. Hollow out the center with a smaller rounded cuboid of 22mm width, 22mm depth, and...
component = "tube"; x_cells = 5; y_cells = 5; label_text = "4.7KΩ"; tube_inner_width = 22; tube_inner_depth = 22; tube_inner_fillet_radius = 2.4; tube_wall_thickness = 1.2; tube_outer_width = tube_inner_width + (tube_wall_thickness * 2); tube_outer_depth = tube_inner_depth + (tube_wall_thickness * 2); tube_outer_f...
glb/cad_5962af608b39.glb
Create a flexible paint can lid with a total height of 9mm. Start by creating a main outer cylinder with a diameter of 106mm and a height of 9mm. Hollow out the center by removing a cylinder with a diameter of 99mm and a height of 6.9mm, positioned 2.1mm from the base. Remove a thin disc from the center with a diameter...
$fn = 100; width = 99; heigth = 9; module paint_can_lid(width, heigth){; difference(){ cylinder(heigth, d = width + 7); translate([0, 0, 2.1]) cylinder(heigth - 2, d = width); translate([0, 0, 2.05]) cylinder(1, d = width + 2.6); rotate_extrude(convexity = 10) ...
glb/cad_9fd8aefcedbd.glb
Create a Lego Batmobile Wall Mount consisting of a mounting plate and a supporting ledge. Start with a rectangular wall plate 47.5mm wide, 20mm high, and 8mm thick. Centered on this plate, add two circular discs, each with a diameter of 47.5mm and a thickness of 8mm, positioned at the top and bottom edges. Within thes...
$fn=200; epaisseurMur=8; hauteurLego=11.3+0.7; hauteurRetour=15.6-0.6; epaisseurRetour=5; hauteurMur=20; main(hauteurMur, 47.5); module main(hauteur,largeur) { color("red") wall(hauteur, largeur, epaisseurMur); color("green") support(largeur); } module wall(hauteur, largeur, epaisseur) { diffe...
glb/cad_97980f5f187c.glb
Create a wall mount for a space station toy by constructing a base plate and two vertical supports. Start with a rectangular base plate measuring 79.6mm in length, 8mm in width, and 24mm in height. From this base, remove a central rectangular section measuring 8mm wide, 8mm deep, and 16mm high, positioned such that it ...
$fn=1; largeurLego=8; hauteurLego=9.6; hauteurMur=3*largeurLego; largeur=10*largeurLego-0.4; largeurSupport=2*largeurLego-0.2; longueurSupport=5*largeurLego; mur(largeur); supports(); module mur(largeur) { difference(){ union(){ color("green") cube([largeur, largeurLego, hauteur...
glb/cad_e0d7fda25045.glb
Create a Cloud Toilet Paper Holder consisting of a cloud-shaped base and a tubular support arm. First, construct the cloud base with a total width of 200mm and a thickness of 10mm. Form the cloud by overlapping four cylinders of varying radii: the largest cylinder has a radius of 50mm (positioned at x=74, y=50), the ...
rollLength=100; secondRoundSegmentAngle=30; secondRoundLength=10; holderHeight=40; holderThickness = 12; holder_x = 133; holder_y = 40; cloudWidth=200; cloudThickness=10; $fn=90; mainRoundSegmentAngle=90; holder(); translate([-30,0]) cloud(cloudWidth, cloudThickness); module cloud(width, thick){ translate([width...
glb/cad_25dd1a11fc8e.glb
Create a playing card model with a base rectangular plate measuring 59mm by 91mm and a thickness of 2mm. The corners of this plate must be rounded with a radius of 5mm. On the top surface of the card, add a central suit symbol (such as a heart) with a height of 3mm. This symbol should be centered on the plate. Additio...
cardSuit="♥"; cardNumber=1; type="bump"; fontCardSuit="Lucida Console"; fontLetter=""; thickCard=2; thickSymbol=1; dxfFont="stencil3.dxf"; $fn=70; width=59; height=91; radius=5; heightNumber=7; heightCardSuit=15; heightAce=50; if(type=="hole") { thick1=thickCard; thick2=0; card(cardNumber,cardSuit,...
glb/cad_50fcd2a667a8.glb
Create a parametric planter by constructing a hollow cylindrical form with a decorative scaled exterior. Start with a central cylinder that has a diameter of 90mm and a height of 90mm. Surround this core with a series of repeating rings of diamond-shaped scales. Each scale is a cube measuring 30mm by 30mm by 10mm, rota...
scale_width = 30; diameter = 90; scale_number = 11; scale_angle = 10; height = 90; module scale() { rotate([0, scale_angle, 0]) { rotate([0, 0, 45]){ cube([scale_width, scale_width, 10], center = true); } } } module ring() { union() { for (i=[0:scale_number]) ...
glb/cad_d9833c3303e9.glb
Create a small van toy. Start with a main body constructed from a hull of two boxes: one centered at [0,0,0] with dimensions 40x20x6mm, and another centered at [5,0,10] with dimensions 28x20x6mm. Carve out several geometric features from this body. On the sides, create recessed areas for doors by removing hulls of cy...
$fn = 120; { union() { translate([0,0,0]) kastle(); translate([12,0,0]) kolo(); translate([-12,0,0]) kolo(); } union() { } } module kastle() { difference() { union() { hull() { translate([0,0,-0.5]) cube([40,20,6],center=true); translate([5,0,10]) cube...
glb/cad_8c24d82b2e95.glb
Create a small toy car consisting of a main body and two free-rotating wheels. Construct the body by combining several rectangular blocks: a base measuring 40mm x 20mm x 7mm, a middle section of 30mm x 20mm x 8mm, and a top cabin section of 20mm x 20mm x 8mm. Refine the body by removing material to create recessed si...
$fn = 120; translate([0,0,0]) kastle(); translate([12,0,0]) kolo(); translate([-10,0,0]) kolo(); module kastle() { difference() { union() { hull() { translate([0,0,1.0]) cube([40,20,7],center=true); translate([1,0,0.5]) cube([30,20,8],center=true); translate([5,0,3.0])...
glb/cad_fe6cb5c7e8bc.glb
Create a mount for a RioRand PWM DC Brushless Electric Motor Speed Controller. Start by creating a rectangular base plate with a total length of 80mm, a width of 60.5mm, and a thickness of 3mm. On top of this base, add a surrounding rim or lip that is 2mm thick, leaving a central rectangular cutout of 56mm by 36.5mm. ...
between_holes_l = 56; between_holes_w = 36.5; lip = 12; plate_thickness = 2; hole_diameter = 2.5; hole_diameter2 = 4; bottom_plate_thickness = 3; length = between_holes_l + (lip * 2); width = between_holes_w + (lip * 2); $fn=128; module rio_mc_holes() { color([1,0,0]) cylinder(r = hole_diameter/2, h = plate_thicknes...
glb/cad_03bbdf95167e.glb
Create a customizable stamp tool consisting of a handle, a bridge, and a head. Start by creating a cylindrical handle with a diameter of 25mm and a length of 35mm. Attach this handle to a bridge, which is a cylinder that transitions from the handle's diameter to the head's dimensions with a height of 3.5mm. For the st...
use <write/Write.scad> units = 1; headType = 1; handleDiameter = 25; handleLength = 35; headWidth = 73; headHeight = 73; headDepth = 5.0; myFont = "write/Letters.dxf"; text = ""; textRotation = 0; textWidth = headWidth*0.9; textHeight=textWidth/(units*0.55*len(text))*units; translate([0,0,(headHeight>handleDiameter)?...
glb/cad_022b0248a618.glb
Create a protective port cover for a ZOYI ZOTEK oscilloscope. Start by constructing a main rectangular body with rounded corners, measuring 40mm in length, 20mm in width, and 11mm in height. The corners should be rounded with a radius of 5mm. Hollow out the center of this body to create a shell, leaving a wall thicknes...
$fn=60;difference() {minkowski() {cube([35,15,2],center=true); cylinder(d=10,h=0.0001);};translate([0,11.5,1])cube([10,2,2],center=true);translate([0,-11.5,1])cube([10,2,2],center=true); translate([-21.5,0,1])cube([2,10,2],center=true);translate([21.5,0,1])cube([2,10,2],center=true); }; translate([0,0,11/2])rotate([5...
glb/cad_cbc79ceafc92.glb
This OpenSCAD code is a collection of modules designed to create 2D vector-style icons (like a gift, star, key, clock, pen, and a YouTube logo) using **Cubic Bézier curves**. The core logic relies on a custom `bezier_polygon` module that converts a set of four control points (P0, P1, P2, P3) into a series of linear se...
faces_segment = 6; textstring1="Love you,"; textstring2="Mom!"; textstring3=""; HiddenText="Mothers day 2024"; add_a_special_character="right"; special_character=9829; distance_special_char = .5; textsize1=16; textsize2=16; textsize3=16; distance=1.1; fontname1="Luckiest Guy"; fontstyle1="Regular"; fontna...
glb/cad_a207f375cbca.glb