Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Sawyer Squeeze Hiking Water Filter Adapter consisting of two identical threaded sections mirrored vertically to form a hollow tube. For each section, create a main cylindrical body with an outer diameter of 32mm and an inner diameter of 26mm, with a total height of 10mm. Within each cylinder, carve out a spi...
use <spiral_extrude.scad> thread_outer_wall_thickness = 3.0; thread_top_wall_thickness = 2; bottle_thread_diameter = 26.0; bottle_thread_pitch = 3.0; bottle_thread_width = 2.0; bottle_thread_height = 10.0; bottle_thread_turns = 2.25 + 1.5; bottle_rim_inner_dia = 21.5; bottle_rim_outer_dia = 25.8; bottle_rim_depth = 0....
glb/cad_d81407ae53fb.glb
Create a Sky Puck Wall Mount consisting of a hollowed-out square frame and a central mounting plate. Start by constructing an outer square block with a total width and depth of 107.5mm and a height of 18.5mm. All outer vertical edges must be rounded with a radius of 15mm. Hollow out the center of this block to create...
SIZE=107.5; RADIUS=15; HEIGHT=18.5; $fn=50; SIDE=SIZE-(2*RADIUS); OFFSET=6; THICK=2.5; difference() { translate([-1,-1,0]) minkowski() { cube([SIDE+2,SIDE+2,HEIGHT+THICK]); cylinder(r=RADIUS, h=2); } translate([0,0,THICK]) minkowski() { cube([SIDE,SIDE,HEIGHT-2.8]); cylinder(r=RADIUS, h=2); ...
glb/cad_a27f3a3b9c4d.glb
Create a Duotight Removal Tool by constructing a main body that is 22mm high and 12mm wide. Start with a base formed by the convex hull of two cylinders, each 23mm in diameter and 2mm high, positioned 30mm apart along the x-axis. Integrate this with two additional cylinders of 19mm diameter and 1.5mm height, positioned...
finger = 19; finger_h = 2; thickness = 4; seperation = 30; hose_635 = 6.85; hose_8 = 8.5; hose_95 = 10; width = 12; height = 22; angle = 5; $fn = 100; difference() { union() { hull() { translate([ seperation/2, 0, 0]) cylinder(d=finger+thickness, h=finger_h); translate([-seperation/2, 0, 0]) cylinder...
glb/cad_73bbcaa99da3.glb
Create a wide foot for an AMS drawer unit by constructing three stacked cylindrical sections. Start with a base cylinder that is 13mm in radius and 6mm in height. Centered on top of this base, add a second cylinder with a radius of 2.5mm and a height of 7mm, positioned so its bottom sits at the 6mm mark. Finally, place...
$fn=360; cylinder(13, 13, 6); translate([0,0,13])cylinder(3,2.5,2.5); translate([0,0,16])cylinder(1.5,2.5,1);
glb/cad_a27e97792cdb.glb
Create a toothpaste nozzle reducer consisting of a cylindrical tube and a circular base ring. Start by creating a base ring with a diameter of 14mm and a height of 2mm. This ring should be hollowed out by a central hole with a diameter of 8.5mm. On top of this base ring, add a hollow cylindrical tube with a total heig...
Nozzle_Length = 7.5; Nozzle_Top_Outer_Diameter = 8.5; Nozzle_Top_Inner_Diameter = 7; Nozzle_Bottom_Outer_Diameter = 8.5; Nozzle_Bottom_Inner_Diameter = 8.5; Base_Ring_Diameter = 14; Base_Ring_Length = 2; Curved_Inner = false; Curved_Outer = false; cutx=false; $fn = 64; ff = 0.01; function CalcRadius(width,height) = ...
glb/cad_99fccf52c0d8.glb
Create a DIY 100w LED COB video light housing. Start by constructing a main rectangular body shell with a width of 90mm, a length of 208mm, and an internal height of 85.5mm. Inside the shell, create two primary hollow compartments for cooling and components: one for a heatsink measuring 69mm wide by 23mm deep, and an...
include <NopSCADlib/lib.scad> include <NopSCADlib/utils/core/core.scad> include <NopSCADlib/printed/handle.scad> HEATSINK = 23; HEATSINK_FAN = 45; LIGHTING_SECTION = HEATSINK + HEATSINK_FAN; FLOOR_H = 2; FLOOR_EXTRA_LIGHTING_SECTION = 4.5; BODY_LEN = 208; BODY_W = 90; INNER_Z = 81 + FLOOR_EXTRA_LIGHTING_SECTION; COV...
glb/cad_0b1ca677ab30.glb
Create a Small Lithophane Lamp consisting of a square base, a matching lid, and four vertical corner rails that hold four lithophane panels. For the base and lid, create two square plates measuring 66mm by 64mm with a thickness of 7mm. In the base plate, center a circular hole with a radius of 11mm and a rectangular ...
lithoheight=75; lithowidth=56; sqbase=lithowidth+10; module rail(s1,s2,s3,s4) { difference() { rotate([90]) linear_extrude(5) square([6,lithoheight]); rotate([90]) translate([s1,0,s2]) linear_extrude(1.3) square([1.3,...
glb/cad_dc5c489ccbdc.glb
Create a Hygge card game box consisting of a bottom shell and a matching top lid. For the bottom shell, create a rectangular box with an interior cavity to hold a card stack of 33mm by 64mm with a height of 90mm. The walls should be 2mm thick. On the exterior of the bottom shell, center the text "HYGGE" on the base. ...
type="bottom"; Long_edge=33; Short_edge=64; Height=90; wiggle=1; TAB_THICKNESS = 10; Wedge_thickness=1.6; CARD_SIZE_LONG_EDGE =Long_edge+wiggle; CARD_SIZE_SHORT_EDGE = Short_edge+wiggle+2*Wedge_thickness; CARD_STACK_HEIGHT = Height+wiggle ; WALL_THICKNESS = 2; EXTRA_SPACE = .25; Cutout_hole_top = "false"; C...
glb/cad_2c6e8f0efec2.glb
Create an Analog VFD clock housing consisting of a main body and a front faceplate. For the main body, create a rounded rectangular shell with overall dimensions of 158mm width, 60mm height, and 65mm depth. The exterior corners should have a radius of 15mm. Hollow out the center to create a cavity 142mm wide and 42mm...
$fn=90; breite=158; hoehe=60; color("teal") difference(){ minkowski(){ cube([breite,hoehe,65],center=true); cylinder(r=15); } minkowski(){ translate([0,0,6])cube([breite-16,42,65.2],center=true); cylinder(r=13); } minkowski(){ translate([0,0,30])cube...
glb/cad_5f77e501ac16.glb
Create a 2020 Dial Indicator Mount consisting of a bracket designed to fit a 20mm extrusion. The main body is a C-shaped channel with an interior width of 20mm and a wall thickness of 3.105mm. Construct the mount by creating a base plate that is 40mm long and 3.105mm thick. From this base, extend two vertical walls u...
DialIndicatorPath = "/Users/Greg/Dropbox/3dprint/Creality_CR-10_Dial_Indicator.stl"; tol_factor = 1.035; thickness = 3*tol_factor; module chop() { difference() { import(DialIndicatorPath, convexity=3); translate([-10,-78,-1]) linear_extrude(35) square([72,55]); } } module...
glb/cad_ddb0508c7269.glb
Create a decorative hex nut by starting with a hexagonal prism that is 10mm tall. This prism is formed by the union of a hexagon with a side length of 10mm and a cylinder with a radius of 8.6mm, both centered on the same axis. Bore a central circular hole with a radius of 6.6mm through the entire height of the object. ...
$fa = 1; $fs = 0.5; cyl= 8.6; h=10; difference(){ union(){ scale([10,10,h]) linear_extrude(1,center=true) polygon([for (i = [0:6]) [sin(i*(60)),cos(i*(60))] ]); cylinder(h*1.1,cyl,cyl,center=true); } linear_extrude(15,center=true) circle(r=6.6); for (r = [0:2]){ ...
glb/cad_eeb3dfe57d4b.glb
Create a spotlight mount consisting of a central rectangular plate with two vertical support columns. The base plate is 12mm thick and 20mm wide. At each end of the base plate, create a vertical rectangular column that is 12mm thick, 20mm wide, and 7mm tall. In the exact center of the base plate, create a vertical ho...
include <common.scad>; $fn = 20; quarter_20_inner_d = 8; quarter_20_outer_d = 14; screw_mount_thickness = 12; module mounting_base(quarter_20_height, quarter_20_space){ cube_height = quarter_20_height + quarter_20_space; translate([total_len, 0, 0]) rotate([0, 270, 0]) cube([cube_height, ear_ou...
glb/cad_ad37176ac4a0.glb
Create a spotlight mount consisting of a hollow cylindrical body with a flat base. The main body is a cylinder with an outer diameter of 22mm, an inner diameter of 17mm, and a total height of 28mm. The bottom of the cylinder is closed by a solid circular base that is 5mm thick. On one side of the cylinder, integrate a...
include <common.scad> stand_mount_h=28; top_segment=5; mid_cutout=10; bottom_segment=13; under_thread_dist = 4; cutout_width = 12; inner_width = 17; outer_width = 22; module stand_hole(h, outer_d, inner_d, attach_offset){ difference(){ cyl_w_m5_side_attach(h, outer_d, attach_offset); cylinder(h=...
glb/cad_ae10a13966e6.glb
Create a spotlight mount consisting of a hollow cylindrical body with a flat base. The main body is a cylinder with an outer diameter of 27mm and a total height of 40mm. The center is hollowed out by a smaller concentric cylinder with a diameter of 17mm, which extends from the top down to a height of 28mm from the base...
include <common.scad> stand_mount_h=28; top_segment=5; mid_cutout=10; bottom_segment=13; under_thread_dist = 4; cutout_width = 12; inner_width = 17; outer_width = 24; large_outer = 27; large_outer_h = 40; module stand_hole(h, outer_d, inner_d, attach_offset){ difference(){ cyl_w_m5_side_attach(h, outer...
glb/cad_8720ef567596.glb
Create a spotlight mount consisting of a rectangular base with integrated mounting ears. The base is a rectangular block with a total length of 20mm, a width of 10mm, and a thickness of 8mm. At each end of the base, incorporate a mounting hole designed for an M5 bolt. These holes should be 5.2mm in diameter and pass ...
include <led_tube_mount.scad>; $fn=32; m5_mount_recess = 2; module make_ear(ear_len, ear_thick){ difference() { union(){ translate([0,ear_len,0]) cylinder(h=ear_thick, d=ear_outer); rotate([0, 0,180]) translate([-ear_outer/2, -ear_len,0]) ...
glb/cad_f3c098323d8d.glb
Create a Belt Buddy clip by starting with a solid rectangular block with rounded corners. The outer dimensions of this block should be 39mm in width, 11mm in height, and 20mm in depth, with a corner radius of 1mm applied to all edges. To create the slot for the belt, remove two rectangular sections from the interior....
belt_width=37; belt_thickness=4; wall_thickness=1; width = 20; difference() { roundedcube([belt_width+2*wall_thickness,2*belt_thickness+3*wall_thickness,width],false,wall_thickness,"all"); translate([wall_thickness, wall_thickness, 0]) cube([belt_width, belt_thickness, width]); translate([wall_thickness, wa...
glb/cad_ec0cf628eb75.glb
Create a bird deterrent strip consisting of a long rectangular base with a series of spikes. The base is a flat plate measuring 170mm in length, 10mm in width, and 3.5mm in height. Centered along the length of this base, place five spikes. Each spike is formed by a square prism 20mm wide and 20mm long, rotated 45 degre...
resolution = 50; $fn = resolution; module tooth() { translate([14.15, 0, 3.5]) difference() { rotate([90, 45, 0]) linear_extrude(2) square([20, 20], center=true); translate([0, 1, -20]) rotate([90, 0, 0]) linear_extrude(4) square([40, 40], center=true); ...
glb/cad_b618fe896a9e.glb
Create a Glowforge Exhaust Port Extender by constructing a hollow cylinder with an outer diameter of 99.5mm and an inner diameter of 95.5mm, reaching a total height of 24.5mm. Within this main body, create a recessed ring (a lip) starting at a height of 10mm from the base. This recess should be 6mm tall, with its outer...
$fn=100; port_od = 95.5; port_depth = 12.5; extender_depth = port_depth + 12; extender_thickness = 4; extender_od = port_od + extender_thickness; extender_connect_lip_depth = 10; extender_connect_lip_length = 6; extender_connect_recess = extender_od-1; difference() { cylinder(r=extender_od/2, h=extender_depth); ...
glb/cad_3d0a8f3f74f1.glb
Create an air stone for a fish tank. The main body is a cylinder with a diameter of 15mm and a height of 10mm. The walls of this cylinder are 1.2mm thick. Inside the main body, create a hollow central chamber. This chamber is formed by removing a cylinder with a diameter of 12.6mm and a height of 8.8mm. Additionally,...
$fn=30; tol=0.1; hose_id=5.5; hose_slop=0.5; fitting_l=10; wall_thick=1.2; stone_d=15; stone_h=10; hole_h=0.4; hole_w=0.25; hole_min_h_space=0.8; hole_v_space=0.4; fill_cylinder(); module fill_cylinder() { translate([0,0,wall_thick])cylinder(d=stone_d-wall_thick*2-tol*2,h=stone_h-wall_thick); } module stone()...
glb/cad_8d3b073b7216.glb
Create a cabinet handle with a total length of 82mm and a height of 22mm. The main body is a horizontal bar with rounded ends, formed by a hull connecting two cylinders of 7.5mm radius centered at the ends. The ends of the handle are thickened into vertical mounting blocks. Within this structure, create a series of c...
$fn = 30; module womo_griff(){ difference(){ union(){ translate([30, 15, -1]) cylinder(h=8, r=4.8); translate([30, 15, 7]) cylinder(h=22, r=3.8); translate([30, 15, -7]) cylinder(h=6, r=2.75); hull(){ transla...
glb/cad_3f9fc365614b.glb
Create a cooling standoff for a Ratrig V-core 3 Octopus 1.1 board. Start by constructing a base foot that is a hull of a cylinder with a 8mm diameter and 5mm height, and two additional cylinders with 8mm diameters extending upwards to a total height of 30mm, positioned at coordinates [0,0] and [-9,0] and [0,-9]. Inters...
$fa = 1; $fs = 0.1; module pcb_corner() { union() { cylinder(d=10, h=2); translate([0, 0, -10]) cylinder(d=3.2, h=15); translate([0, 0, 2]) cylinder(d=5.6, h=3); translate([0, -5, 0]) cube([30, 35, 2]); translate([-5, 0, 0]) cube([35, 30, 2]); } } module pcb_corner_clea...
glb/cad_d84afcd27866.glb
Create a cooling mount for a Ratrig V-core 3 Octopus 1.1 board. Start by constructing a base shape that is the convex hull of two cylinders, each with a 5mm radius and 2.5mm height, positioned at [ -25, -25, 0 ] and [ -25, 25, 0 ] relative to the center, combined with a rectangular block measuring 10mm wide, 60mm long,...
$fs = 0.1; $fa = 1; difference() { hull() { for(tx=[-50/2, 0]) for(ty=[-50/2, 50/2]) translate([tx, ty, 0]) cylinder(r=5, h=2.5); translate([0, -30, 0]) cube([10, 60, 12]); intersection() { hull() { translate([10, 5, 11]) cylinder(d=6...
glb/cad_9e00a9a96cf8.glb
Create a pair of rectangular glasses frames for a fursuit head. The frames consist of two symmetrical lens rims, a central bridge, and two side hinges. Each lens rim is a rectangular ring with a thickness of 5mm and a frame width of 5mm. The outer dimensions of each rim are 90mm wide by 70mm high. The corners are roun...
LensWidth=90; LensHeight=70; InnerUpperRadius=25; InnerLowerRadius=45; OuterUpperRadius=20; OuterLowerRadius=33; PupillaryDistance=110; FrameThickness=5; FrameWidth=5; HingeSpacing=5; HingeHeight=33; BridgeDiameter=70; BridgeHeight=33; BridgeWidth=15; BridgeCutOffHeight=0; $fn=100; translate([PupillaryDistance/2,0...
glb/cad_b4fc37f133e8.glb
Create a pair of rectangular fursuit glasses frames with a thickness of 5mm. The front consists of two symmetrical lens rims connected by a central bridge. Each lens rim is based on a rectangle 90mm wide and 80mm high. The outer upper corners have a 20mm radius, the outer lower corners have a 20mm radius, the inner upp...
LensWidth=90; LensHeight=80; InnerUpperRadius=30; InnerLowerRadius=30; OuterUpperRadius=20; OuterLowerRadius=20; PupillaryDistance=110; FrameThickness=5; FrameWidth=5; HingeSpacing=10; HingeHeight=20; BridgeHeight=20; BridgeWidth=15; $fn=100; mirror([1,0,0]) translate([PupillaryDistance/2,0,0]) linear_extrude(height...
glb/cad_282f02df2343.glb
Create a protective sleeve for PCBite probes. The outer body is a composite shape formed by the hull of three cylinders with a radius of 0.65mm and a height of 3.7mm. Position two cylinders at the base, 7.8mm apart on the X-axis at Y=0.65mm, and a third cylinder at the tip, 22mm away on the Y-axis. Hollow out the cen...
TipLength = 22; BaseWidth = 7.8; BaseLength = 12.5; PCBthickness = 1.0 + 0.1; SolderJoints = 2.75; Wall = 1.3; Radius = Wall/2; TipTolerance = 0.2; $fn = 25; epsilon = 0.05; module outer_shape() { zpos = -(Wall + PCBthickness/2); union() { hull() { translate([-(BaseWidth/2 + Radius), Radius, zpos]) ...
glb/cad_7962ae4b8449.glb
Create a MONSTER M4SK Lens Mount Alignment Jig consisting of two mirrored side supports connected by a central crossbar. Each side support is a rectangular block measuring 55mm x 50mm x 8.6mm. Position the right support at the origin and the left support 125mm away along the X-axis. Rotate the right support -30 degre...
include <nutsnbolts/cyl_head_bolt.scad>; $fa=1; $fs=0.5; $fn=0; function dah(diameter, vertical = true) = vertical == true ? (1.0155 * diameter) + 0.2795 : (0.9927 * diameter) + 0.3602; module fillet(r, h) { translate([r / 2, r / 2, 0]) { difference() { cube([r + 0.01, r + 0.01, h], center ...
glb/cad_3b81a98adb67.glb
Create a MONSTER M4SK lens holder by starting with a base plate that is 3mm thick. The outer boundary of this plate is formed by the intersection of two cylinders, each 51mm in diameter, offset by 2mm along the X-axis, and further clipped by a centered rectangular block measuring 50mm by 46.36mm. From this base, remov...
include <nutsnbolts/cyl_head_bolt.scad>; $fa=1; $fs=0.5; $fn=0; function dah(diameter, vertical = true) = vertical == true ? (1.0155 * diameter) + 0.2795 : (0.9927 * diameter) + 0.3602; module fillet(r, h) { translate([r / 2, r / 2, 0]) { difference() { cube([r + 0.01, r + 0.01, h], center ...
glb/cad_b653d05cf815.glb
Create a Conduit Cover consisting of a semi-cylindrical shell and a flat base. The main body is a semi-cylinder with an outer diameter of 34mm and a length of 120mm. The walls of this shell have a thickness of 2mm. The shell is open on one end to allow a conduit to slide in. The base is a flat rectangular plate that s...
cd=30; cli=120; clo=140; ww=2; sigma=0.01; lh=0.5; hh = 5; hd = 5; shd = 10; shx = 5; cr = 4; hdc = 3; xw=0.3; translate([0,0,-cd/2]) difference(){ union(){ hull() { rotate([90,-90,0]) rotate_extrude(angle=90, $fn=120) translate([cd/2+ww*2,0]) rotate(30) circle(d=cd+ww*2, $fn=64); translate([0...
glb/cad_ed8cfde5c95e.glb
Create a Unifi G4 Doorbell Pro POE Edge Mount. Start with a main rectangular shell with rounded corners, measuring 53mm by 162.5mm with a total depth of 100mm. Carve out a central rectangular cavity with a width of 31mm and a length of 50.5mm, featuring rounded corners. Within this cavity, create two circular screw h...
angle = 15; siding_angle = -5; siding_extra_offset = 7.5; mount_door_side = 1; trim_back_edge = false; rotate_for_printing = true; $fa = 3; $fs = 0.25; module screw_hole (offset = [0, 0, 0]) { translate(offset) { color("cyan") mirror([0, 0, 1]) cylin...
glb/cad_dc9ba6053864.glb
Create a 15ml Falcon Tissue Anchor consisting of a threaded base and a hollow cylindrical extension. Start by creating a hexagonal nut-shaped base with a diameter of 27mm and a height of 12mm. Inside this base, carve out a central hole with a diameter of 10mm. The interior of this base should feature a female helical t...
use <guided_extrude.scad>; length=12; D=20; P=3; ND=27; H=sqrt(3)/2 * P; R=H/(P/2); ppr=97; ww=1.5; msw=1; ahd=4; exl=40; mhd=10; loops=length/P; xw=0.2; sigma=0.01; tid=13.5; trapezoidShape = [ [-H/2+xw+0.1*R,-P/2+0.1], [1/4*H+xw,-P/8], [1/4*H+xw,P/8], [-H/2+xw+0.1*R,P/2-0.1] ]; helicalPath = [ ...
glb/cad_5616c7a13f86.glb
Create a hanging vernier caliper holder consisting of a flat rectangular base with two vertical support arms and two mounting holes. The base is a rectangle with rounded corners, measuring 35mm in width and 45mm in height, with a thickness of 4mm. At each end of the width, add a vertical support arm that is 4mm wide ...
wt=4; r=1.9; bt=4; wh=10; lwl=24; rwl=24; rwo=17; ht=.6; hh=7; cw=31; bh=45; pad=1; sr=1.8; $fn=90; multmatrix([[1,0,0,0],[0,1,ht,lwl-2*r-10-((bt+hh)*ht)],[0,0,1,0],[0,0,0,1]])linear_extrude(bt+wh)minkowski(){ circle(r); square([wt-2*r,10]); } difference() { linear_extrude(bt)minkowski() { circle(r); ...
glb/cad_3ee72f640709.glb
Create a tool holder as a solid rectangular block measuring 115mm in width, 61mm in depth, and 30mm in height. Subtract the following openings from the top face, all extending 28mm deep: First, place two circular holes with a diameter of 12.75mm. Position the first at x=14.75mm, y=15.5mm and the second at x=40.25mm, y...
include <Basic_Library.scad> wall=2; difference() { linear_extrude(30)square([115,61]); offset1=wall; translate([12.75+offset1,15.5,2])linear_extrude(55)crisp_circle(25.5/2); offset2=offset1+wall+25.5+1; translate([12.75+offset2,15.5,2])linear_extrude(55)crisp_circle(25.5/2); offset3=offset2+...
glb/cad_9e6123fab049.glb
Create a BeamBridge girder, a structural support piece with a length of 96mm and a height of 40mm. The main body is a rectangular frame with a thickness of 8mm. The top and bottom edges of the frame are rounded with a radius of 4mm. Inside the frame, create three diagonal stiffener ribs that span between the two long ...
GirLength=96; GirTopLength=56; GirSideGap=0; GirTrapOff=(GirLength-GirTopLength-GirSideGap)/2; GirHeight=40; GirStiffeners=3; GirHoleDirection="Left-Right"; GirShape="Rectangle-Trapezoid"; GirLegoHeight="full"; GirLHeight=GirLegoHeight=="full"?8:4; up_correction = 0.18*1; Stiffeners=GirStiffeners==0?[]:GirStif...
glb/cad_af88f5324696.glb
Create a Screw Fit Test Strip by designing a rectangular block 5mm high. The block is formed by a series of 11 vertical cylindrical holes arranged in a row, where each hole is slightly larger than the previous one. Starting from the first hole with a diameter of 1.0mm, increase the diameter of each subsequent hole by 0...
$fn=90; min=1.0; step=0.1; max=2.0; gap=0.6; wt=0.8; height=5; linear_extrude(height)difference(){ minkowski(){ union(){ for(n=[0:1:(max-min)/step]){ translate([n*min+n*(step+gap)+(n*n*step)/2,0,0])circle(d=min+n*step); } } circle(wt); } for(n=[0:1:(max-min)/step]){ translate([n*min+n*(step+gap)+(n*n*step)/2,0,...
glb/cad_3a528ad182c5.glb
Create a protective case for a USBAromory MkI consisting of a main base and a matching lid. Construct the base as a rounded box with overall dimensions of 57.76mm length, 23.74mm width, and 5.525mm height, with a corner radius of 2mm. Hollow out the center of this base by removing a rectangular volume of 54.20mm by 1...
use <MCAD/boxes.scad> mainBox=[57.760, 23.74, 5.525]; lidBox=[mainBox[0], mainBox[1], 2]; insideBox=[54.20, 19.95, 8.526]; lidInside=[54.20, 19.95, 3]; usbBox=[59, 11.95, 10.5]; sdBox=[16.66, 14.42, 1.88 * 2]; compBox=[29.15, 18.4, 1.88 * 2]; pegOffset=10; module hole() { cylinder(h=5, r1=2, r2=2, center=true);...
glb/cad_fb2c52652a72.glb
Create a FiTorch K3 Lite flashlight holder. Start by creating the main body as a hull of two cylinders, each with a diameter of 11.6mm and a height of 56.6mm, spaced 20mm apart. Inside this body, remove a central flashlight-shaped cavity created by the hull of two cylinders with a diameter of 11.6mm and a height of 56....
Delta = .02; CLR = .3; FN = 120; FL_H = 11; FL_L = 56; FL_W = 30; FL_lens_D = 8.5; FL_lens_h = .8; FL_SW_D = 8; FL_SW_THK = 1.75; FL_SW_H = 40; THK = 2.5; L = FL_L + THK; W = FL_W + 2*(THK+CLR); H = FL_H + 2*(THK+CLR); Screw_D = 4.5; Screw_L = 20; Screw_HD_D = 10; Screw_HD_THK = 4; Screw_HD_recess = 1.5; SB_H = Scr...
glb/cad_1283e0d3536c.glb
Create a Microscope VESA Mount consisting of a central cylindrical clamp and an attached rectangular mounting plate. Start by creating a main body that is a cylinder with an outer diameter of 25mm and a height of 10mm. Remove a concentric inner cylinder with a diameter of 22.5mm to create a ring. Cut a small rectangula...
;$fn=100; shaft_diameter = 45; shaft_width = 10; plate_length = 95; plate_thickness = 4; plate_screw_distance = 75; module screw_hole(dia){ cylinder(20, dia/2, dia/2); cylinder(15, (dia+5)/2, (dia+5)/2); } module plate(){ hull(){ translate([-(shaft_diameter + 5)/2+5, -shaft_diameter/4, 0]){ ...
glb/cad_491f8ad1e40a.glb
Create a Kirigami soft robotic gripper with a uniform thickness of 5mm. The main body is a rectangular plate 188mm wide by 515mm long. Constrain the top and bottom edges of this rectangle to form two large semi-circular caps with a diameter of 203mm. Within the main body, create a series of 19 equidistant longitudinal...
thickness = 5; total_length = 515; total_width = 188; circle_diameter = 203; cap_size = 56; num_cuts = 19; cut_width = 3.5; theta = 80; ear_height = 35; ear_width = 54; ear_circle_diameter = 16; ear_stem_width = 16; $fn = 128; difference() { intersection() { cube([total_width, total_length, thickness], cen...
glb/cad_6f53a73ab148.glb
Create a solder holder designed to mount a spool to a wall. Start by creating a main support arm with a diameter of 12mm. This arm consists of a straight section 29mm long that extends perpendicularly from the wall, which then transitions through a 90-degree bend into a second straight section 58mm long. At the far end...
FN = 90; Delta = .11; ItoM = 25.4; solder_OD = 54; solder_spool_OD = 42; spool_THK = 1.8; solder_ID = 19.4; solder_L = 56.5; pipe_d = 12; pipe_l1 = 58; pipe_l2 = 29; corner_r = 10; stop_end_d = 16; stop_end_l = 4; Screw_D = 4.5; Screw_HD_D = 10; Screw_HD_THK = 4; screw_os1 = -pipe_l2-Screw_HD_THK+2*Delta; screw_Cl...
glb/cad_662813133f4a.glb
Create an Inland Filament clip by starting with a solid rectangular block measuring 8.5mm in width, 7.5mm in depth, and 7.8mm in height. From this block, remove a central rectangular section to create a spool cutout that is 2.5mm wide, 7.5mm deep, and 6.3mm high, leaving a 1.5mm thick wall at the top. Above this cuto...
FN = 90; Delta = .11; CLR_Delta = .25; ItoM = 25.4; THK = 1.5; D = 7.5; FD = 1.75; LH = 4.8; LW = 3.5; SW = 2.5; H = LH+2*THK; W = LW+2*THK+FD; OS1 = -FD*1.5+W-THK; OS2 = W-SW-THK-FD; difference() { color("blue") cube([W,D,H]); translate([OS1,D+Delta,THK+FD/2]) rotate([90,0,0]) hull() { ...
glb/cad_10a06993b9e5.glb
Create three pneumatic connector clips with the following specifications. Each clip consists of a C-shaped ring with a flat handle tab. For the first clip (PC4-M10), create a ring with a thickness of 1.8mm, an internal diameter of 5.7mm, and an outer diameter of 9.6mm. The ring should have an opening of 4.4mm. Attach ...
clip_dimensions=[ ["PC4-M10", 1.8, 5.7, 9.6, 4.4, 3.7, 5.7, 1.8, 4.5], ["KJH04-M6", 1.4, 4.8, 7.8, 3.2, 3.4, 4.5, 1.4, 3.8], ["PC4-M6", 1.0, 5.7, 9.6, 4.4, 3.7, 5.7, 1.8, 4.5], ]; module clip(name, thickness, in_dia, out_dia, opening, ...
glb/cad_3275b077bfee.glb
Create a Bike Reflector Bracket consisting of a vertical mounting plate and a perpendicular base. Start with a vertical plate 45mm high, 15mm wide, and 4mm thick. In this plate, create two aligned circular holes with a diameter of 9mm, spaced 18.5mm apart vertically. The top hole should be centered within the upper por...
hds=5; hdh=6; hdl=7; shw=9; shxr=3; sht=1; xw=0.2; hs=18.5; bh=45; bt=4; sigma=0.01; $fn=64; sd = shw+shxr*2; rotate([0,90,0]){ difference(){ linear_extrude(height=bt+sht) hull(){ circle(d=shw+shxr*2); translate([hs,0]) square([shw+(bt+sht)*2, shw+shxr*2], center=true); translate([bh-sd/2,0]) square(sd, c...
glb/cad_9bcea7cc6dbf.glb
Create a spool rod plug consisting of two stacked cylindrical sections with a central vertical bore. Start with a base cylinder 11mm in diameter and 6mm in height. Centered on top of this base, add a second cylinder 6mm in diameter and 18mm in height. Through the center of both cylinders, create a vertical hole to ac...
outer_diameter = 11; outter_length = 6; inner_diameter = 6; inner_length = 18; M3_cap_diameter = 6; M3_cap_height = 3; M3_dia = 3; M3_length = 20; $fn=30; difference() { union() { cylinder(h=outter_length, d=outer_diameter); translate([0, 0, outter_length]) cylinder(h=inner_length,d=inner_...
glb/cad_de92c8ca582c.glb
Create a VESA monitor mount bracket starting with a square backplate measuring 120mm by 120mm with a thickness of 5mm. Center four screw holes through this plate, each with a diameter of 4mm, positioned at the corners of a 100mm by 100mm square. Attached to the center of one edge of the backplate, construct a C-shape...
$fn = 360; box_size = 120; thickness = 5; hang_radius = 12; hang_length = 80; vesa_size = 100; screw_hole_diameter = 4; extentions_length = 20; module backplate() { difference() { translate([0, 0, thickness / 2]) cube([box_size, box_size, thickness], center = true); translate([-vesa_size / 2, -vesa_size ...
glb/cad_088bb2572301.glb
Create a cabinet handle consisting of a horizontal bar supported by two vertical cylindrical posts. The two posts are cylinders with a diameter of 10mm and a height of 13mm (calculated as the total height of 20mm minus the 7mm bar thickness), positioned 50mm apart from center to center. Connecting these posts is a hori...
fn = 50; height = 20; width = 10; lenght = 50; edge = 2; thickness = 7; hole_diameter = 2; hole_depth = 15; module cabinet_handle(height, width, lenght, edge, thickness, hole_diameter, hole_depth, fn = fn){ difference(){ union(){ for (i = [1, -1]) translate([(lenght / 2) * i...
glb/cad_55e818c9ea1f.glb
Create a mini locomotive model. Start by constructing a central boiler as a cylinder with a length of 8mm and a radius of 2mm. At the front end of this cylinder, attach a hemisphere with a 2mm radius. Position a smaller cylinder with a radius of 2mm and a height of 1mm on top of the boiler. At the rear, attach a rectan...
Length=8; $fn=30; Width=2; Text=str(Length); Color="red"; color("green") rotate([0,90,0]) translate([0.75*Width,0,Length*0.749]) cylinder(Length,Width,Width,true); color("blue") cube([Length*0.75,Width*2.5,Width*3.5],true); color(Color) translate([Length,0,0]) cylinder(Width,Width/2,Width/2,false); color("yellow") ...
glb/cad_ddf284e83dad.glb
Create a Sonos Beam ceiling mount wedge. The main body is a wedge-shaped block with a width of 164mm and a total height of 30mm. The block is tilted at a 30-degree angle. The top surface is flat, while the bottom surface is rounded with a diameter of 21mm. The sides of the wedge are rounded with a radius of 3mm. Th...
angle = 30; base_width = 164; circle_dia = 21; wedge_height = 30; wedge_start = 3; wedge_rounding = 3; screw_hole_dia = 8.5 * (8.7/8); screw_hole_dia2 = 4 * (4/3.3); hole_dist = 10; hole_start = 6.5; hole_dia = 8; hole_len_real = 43.5; hole_len_central = hole_len_real - hole_dist; hole_len_sides = hole_len_real...
glb/cad_88e46d242518.glb
Create a rubber foot for a Kenwood Titanium Chef by constructing a composite geometric shape. Start with a central vertical cylinder that has a diameter of 8mm and a height of 12mm. At the base of this cylinder, add a rounded cap created by combining a cylinder with a 10mm diameter and 2.5mm height with a sphere of 2mm...
$fn=100; difference() { union() { translate([0,0,1]) minkowski(){cylinder(d=10,h=2.5,center=false);sphere(d=2);}; cylinder(d=8,h=12,center=false); }; cylinder(d=2.5,h=50,center=true); cylinder(d=4.5,h=3.5,center=false); translate([0,0,3.25]) sphere(d=4.5); };
glb/cad_63a20603bb53.glb
Create a PVC pipe connector designed for a pipe with an outer diameter of 21.5mm. The main body is a cube with a side length of 21.5mm plus a small clearance of 0.25mm. From this central block, create a cylindrical insert that extends 10mm in length. This insert must have an inner diameter of 18.75mm to allow the pip...
$fn=120; inner_pipe_diameter = 18.75; out_diameter = 21.5; insert_length = 10.0; insert_fin_thickness = 1.5; coupler_space = 0.25; z_intersect = sqrt((inner_pipe_diameter*inner_pipe_diameter)-(insert_fin_thickness*0.5*insert_fin_thickness*0.5*2)); z_down_to_fin = inner_pipe_diameter-z_intersect; round_c_d = out_di...
glb/cad_761d9d41ee13.glb
Create a wall-mounted battery dispenser with a total height of 147.01mm and a wall thickness of 1.601mm. The device consists of a series of adjacent vertical columns tailored to specific battery sizes: three for AAA, three for AA, and two for 9V batteries. For each tube-style battery column (AAA and AA), create a rect...
Battery_List = ["AAA", "AAA", "AAA", "AA", "AA", "AA", "9V", "9V"]; Holder_Height = 147.01; Screw_Shaft_Diameter = 5.01; Screw_Head_Diameter = 9.38; Name_Font = "Courier 10 Pitch:style=Bold"; Name_Plaque_Height = 3.501; Name_Inset = 0.201; Wall_Thickness = 1.601; Slide_Space = 0.161; Generate_Reference_Hardwar...
glb/cad_dd854f8cf4d0.glb
Create a Trikube puzzle consisting of two main pieces and two wing pieces. Each main piece is based on a cube with a side length of 50.8mm. From this cube, remove a central rectangular volume and several rotated rectangular prisms to create a complex, interlocking void. Specifically, remove a central square prism with ...
cs =25.4*2.0; hoffset = 0.1; bevel = 1.0; woffset = 0.1; foffset = 0.2; btrad = 2.0; btrad1 = 1.5; btdep = 0.4; s2 = 0.5*sqrt(2.); mainPiece(); *wingPiece(); module mainPiece() { rotate(a=[-90,0,0]) difference() { difference() { cube(size=cs,center=true); rotate(a=[0,0,45]) scale(v=[1...
glb/cad_aa38436fd845.glb
Create a wheel for a wooden railway car. Start with a main cylindrical body that has a radius of 10mm and a total height of 2.5mm. The bottom of this cylinder is not flat but is instead shaped by the intersection of the cylinder and a sphere with a 10mm radius, creating a rounded, convex underside. At the center of t...
Radius=20; R=Radius/2; Axis=3.35; A=Axis/2; Height=2.5; AxHeight=5; $fn=90; difference() { intersection() { union() { cylinder(Height,R,R,false); difference() { intersection() { cylinder((Height+2*AxHeight)/3,R-2,R-2,false); translate([0,0,-Height*1...
glb/cad_7acaa98cc606.glb
Create a wooden railway car with a rectangular base and a wider flat top. The main body is a rectangular prism 28mm wide, 55mm long, and 48mm high. The bottom section is a narrower rectangular block 16mm wide, 71mm long, and 18mm high, which is blended into the upper section using a hull operation to create a tapered t...
Length=55; Width=28; Height=48; wWidth=16*1; wHeight=Height-4; cHeight=Height-8; rHeight=Height/2+4; roof=false; $fn=50; difference() { intersection() { union() { translate([0,0,-11]) hull() { cube([16,71,18],true); } translate([0,0,-1]) cube([28,71,3.5],true); for (i=[-1,1])...
glb/cad_8d2c0776630a.glb
Create a wooden railway car with a total length of 95mm, a width of 28mm, and a height of 48mm. The main body is a centered rectangular block with a roof. The lower chassis is a hull that transitions from a 16mm wide center to a wider base, with the bottom surface flattened at -21.7mm. Integrate three axle positions a...
Length=95; Width=28; Height=48; wWidth=16*1; wHeight=Height-4; cHeight=Height-8; rHeight=Height/2+4; roof=true; mRad=(8/2)*1.08; $fn=50; difference() { union() { intersection() { union() { translate([0,0,10]) cube([28,Length,32],true); for (i=[-1,1]) for (j=[-1,0,1]) translate([i*Width/2,j*...
glb/cad_946c714fdbd7.glb
Create a wooden railway car with a total length of 71mm, a width of 28mm, and a height of 48mm. The main body is a rectangular block with a width of 28mm and a length of 71mm, but the bottom section is narrower, measuring 16mm in width and 44mm in height. The transition between the wide upper body and the narrow base i...
Length=71; Width=28; Height=48; wWidth=16*1; wHeight=Height-4; cHeight=Height-8; rHeight=Height/2+4; roof=true; $fn=50; difference() { intersection() { union() { translate([0,0,-13]) hull() { cube([16,71,18],true); } translate([0,0,10]) cube([28,71,32],true); for (i=[-1,1]) f...
glb/cad_34ec6020231b.glb
Create a Customizable Filament Sample Card. Start with a base rectangular plate measuring 90mm wide, 50mm high, and 1mm thick, with rounded corners of 3.2mm radius. On the face of the card, create eight identical square sample pockets. Each pocket should be a rounded square with a 3.2mm corner radius. Arrange these po...
use <MCAD/boxes.scad>; line_1_text="Prusa PLA"; line_2_text="Galaxy Black"; line_3_text="215 / 55"; layerHeight=.1; numLayers=8; sample_option="bordered"; keep_square=true; CardWidth = 90; CardHeight = 50; CardDepth=1.0; cornerRadius = 3.2; text_position=-1; text_horizonal_alignment="right"; textPadding=2...
glb/cad_c4b3b9194eb9.glb
Create a Morse taper pegboard holder. Start with a rectangular backplane measuring 60mm wide, 15mm deep, and 34mm high. Center this block and remove two mirrored holes to fit a pegboard; each hole consists of a 6.6mm diameter cylinder 16mm deep, with a 13mm diameter cylinder 4.25mm deep at the base of each. Below the ...
$fn=300; difference() { translate([0,0,-5]) cube([60,15,34],center = true); translate([0,-8,0]) { mirror_copy([1,0,0]) { rotate([-90, 0, 0]) { translate([12.75,0,0]) union() { cylinder(h = 16, d = 6.6); cylinder(h = 4.25, d = 13); } ...
glb/cad_c251d04a1526.glb
Create a Toilet Push Button Socket replacement part. Start with a wide, shallow cylindrical top disk with a diameter of 60mm and a height of 4mm. Centered beneath this disk, attach a larger cylindrical section with a diameter of 37mm and a height of 30mm. Below that, add a narrower cylindrical stem with a diameter of 1...
button_dia = 33; button_hole_dia = 34; button_socket_dia = 60; button_socket_dep = 4; button_depth = 10; button_plunger_dia = 6; button_plunger_dep = 32; button_plunger_dep2 = 60; socket_plunge_depth = 30; socket_plunge_dia = button_hole_dia + 1; screw_dia = 11; screw_length = 36; screw_hole_dia = screw_dia -1; sc...
glb/cad_04b3c7e537fd.glb
Create a DJI O3 Antenna Mount consisting of two vertical standoff tubes connected by a central block, with an angled antenna holder. First, create two hollow vertical cylinders with an outer diameter of 7.75mm and an inner diameter of 5.5mm, each 20mm tall. Position these cylinders 27.5mm apart, center-to-center. Co...
$fn = 50; standoff_diameter = 5.5; standoff_height = 20; standoff_wall_thickness = 1.25; standoff_distance = 27.5; antenna_diameter = 4.5; antenna_length = 45; antenna_wall_thickness = 1.5; antenna_slot_width = antenna_diameter * 0.33; antenna_angle = 45; antenna_z_offset = 8; standoff_total_diameter = standoff_diam...
glb/cad_7a1755e63571.glb
Create a DJI O3 AirUnit Mount consisting of two symmetrical mirrored halves. Each half is built around a central cylindrical spacer with an outer diameter of 7.6mm (5.35mm inner diameter) and a height of 20mm. Attached to each spacer is a rectangular housing designed to enclose an AirUnit of 32.75mm length, 30.5mm wi...
$fn = 50; spacer_diameter = 5.35; spacer_height = 20; spacer_wall_thickness = 1.25; spacer_distance = 42; air_unit_wall_thickness = 1.5; air_unit_length = 32.75; air_unit_width = 30.5; air_unit_height = 15; air_unit_mount_width = 7; air_unit_usb_c_width = 13; air_unit_usb_c_height = 5; air_unit_antenna_connector_w...
glb/cad_a012ec3d9375.glb
Create a bicycle mud flap with a total width of 120mm, a total length of 230mm, and a uniform thickness of 2mm. The main body consists of a rectangular section and a semi-circular end. Specifically, create a rectangular base measuring 210mm in length and 120mm in width. Attached to one end of this rectangle, add a semi...
$fn=100; $width=120; $length=230; $distance=20; $thickness=2; $radius=$width/2; $cubelength=$length - $radius; difference() { union() { translate([0,-$radius,0]) cube([$cubelength,$width,$thickness]); translate([$cubelength,0,0]) cylinder($thickness,$radius,$radius); }; translate([7,0,-2]) cylinder(...
glb/cad_a80a1e8d3579.glb
Create a paint tube rack by starting with a solid rectangular block that is 141mm wide, 141mm high, and 120mm deep. Carve out a grid of 16 identical square compartments, arranged in 4 rows and 4 columns. Each compartment must be 46mm wide and 46mm high, with a depth of 118mm, leaving a 2mm thick base at the bottom and ...
$fn=100; $maxwidth=200; $maxheight=200; $depth=120; $swidth=46; $sheight=46; $wcount=floor($maxwidth / $swidth); $hcount=floor($maxheight / $sheight); $width=($wcount * $swidth) + $wcount + 3; $height=($hcount * $sheight) + $hcount + 3; difference() { translate([0,0,0]) cube([$width,$height,$depth]); unio...
glb/cad_47a62274b64f.glb
Create a paint tube rack by constructing a solid rectangular block with a total width of 123mm, a total height of 123mm, and a depth of 120mm. From this main volume, carve out a grid of 16 identical square compartments arranged in a 4 by 4 layout. Each square cutout must measure 30mm by 30mm and extend to a depth of 12...
$fn=100; $maxwidth=200; $maxheight=200; $theight=180; $twidth=62; $extra=round($twidth/15); $depth=round($theight/3*2); $swidth=round(sqrt(($twidth+$extra)*($twidth+$extra)/2)); $wcount=floor($maxwidth / $swidth); $hcount=floor($maxheight / $swidth); $width=($wcount * $swidth) + $wcount + 3; $height=($hcount * $sw...
glb/cad_9482bafa7ce6.glb
Create a Cutlery Travel Container consisting of a lower base and an upper lid. For the lower part, create a hollow rectangular shell with internal dimensions of 50mm width, 20mm depth, and 150mm height. The walls should be 1.2mm thick with a corner radius of 4.5mm. The bottom exterior should have a 1.2mm chamfer, and...
fn = 64; fn_dent = 16; show_lower=true; width = 50; depth = 20; height1 = 150; height2 = 50; overlap = 20; margin = 0.1; rad = 4.5; thick = 1.2; thick_over = 1.0; indent_h = 5; indent_r = 0.6; indent_l = 6; indent_blend = 1; indent_short = true; dent_mirror = indent_short ? [1, 0, 0]: [0, 1, 0]; ch_bot = 1.2; ch_t...
glb/cad_6cf8fc077f78.glb
Create a Waddington's Formula 1 Speed Dial consisting of a flat base and a rounded top. Start with a base that is 1.3mm thick, formed by the convex hull of a cylinder with a 6.5mm diameter centered at the origin and a smaller cylinder with a 2.8mm diameter positioned 18mm away along the x-axis. On top of this base, add...
diameterCircle = 6.5; baseThickness = 1.3; maxHeight = 4.5; semiCircleHeight = maxHeight - baesHeight; distanceToEnd = 18; supportLineThickness = 0.8; $fn = 60; translate([distanceToEnd + 2.8/2 + 1.5 - 1/2,0,0]) { hull() { translate([-3,0,0]) cylinder(d=1, h=baseThickness); cylinde...
glb/cad_f25fde6ef65d.glb
Create a ball jointed doll head cap by starting with an ellipsoid that has a long axis radius of 6.4mm and a short axis scaled to 80% of that length. Hollow out this shape by removing a smaller concentric ellipsoid with a wall thickness of 1mm. To create the opening for the head, remove a large section of the front usi...
longAxisLength = 6.4; shortAxisLengthScaler = 0.8; thickness = 1; magnetOffset = 0; magnetRad = 0.3; rotationOfCutaway = 10; $fn=100; difference(){ scale([1,shortAxisLengthScaler,1]){sphere(longAxisLength);} scale([1,shortAxisLengthScaler,1]){translate([-longAxisLength-thickness,-longAxisLength,0]){rotate([0,r...
glb/cad_53e8ce6c6328.glb
Create a Parametric Spool Holder for a drybox. Start with a rectangular base measuring 485mm in length, 55mm in width, and 6mm in depth. Along the center line of the base, create six mounting points for posts. At each point, create a circular cutout for a gasket with an outer diameter of 25mm and an inner diameter of...
$fa=1; $fs=.4; total_length=485; total_width=55; base_depth=6; total_height=125; axel_slot=([10,10,11]); axel_rod=8; extra_wall=4; total_spools=5; post_depth=5; screw_shaft=6; screw_head=10; gasket_thickness=3.5; gasket_OD=25; gasket_ID=15; post_top=axel_slot[2]+extra_wall; post_width=axel_slot[0]+extra_wall; post_he...
glb/cad_a8156cfdfd13.glb
Create a Parametric Spool Holder for a drybox consisting of two identical rectangular base plates. Each plate must be 161.67mm long, 55mm wide, and 6mm thick. For each plate, create a series of mounting holes designed for M6 socket cap bolts. Each hole must include a recessed circular space beneath it to accommodate ...
total_length=485; total_width=55; import_file="C:\\filepath\\file.stl"; part=1; if(part==1){ union(){ intersection(){ translate([(0),-70,0])cube(total_length/3); import(import_file); } translate([total_length/3-.01,3,0])cube([20,10,6]); translate([total_length/3-.01,total_width-3-10,0])cube([20,10,6]); }} e...
glb/cad_dd7b5f09c454.glb
Create a vase by constructing a central cylinder with a radius of 40mm and a height of 150mm, surrounded by a complex lattice of extruded shapes. To form the lattice, create an 8-sided polygonal prism with a radius of 4mm. Position this prism 40mm away from the center axis. Extrude this shape vertically to a height of ...
rsp=4; h=150; rv=40; n=360/12; module le(tw=100 ) { linear_extrude(height = h, center = false, convexity = 10, twist = tw, scale=1.5,$fn=3) translate([rv, 0, 0]) circle(r = rsp,$fn=8); } module lf(tw=360){ for (a =[0:n:360]) rotate ([0,0,a]) le(tw=tw); for (a =[0:n:360]) rotate ([0,0,a]) le(tw=-tw); }...
glb/cad_8a7f9bba79ca.glb
Create an enhanced silicone caulk shaping tool designed to smooth beads in corners. The main body is a wedge-like profile with a curved back. The shaping edge is defined by an 80-degree angle between the two primary long edges to better fit non-orthogonal surfaces. Construct the tool with a chamfer size of 6mm. The s...
edge_angle=35; handle_angle=15; min_t=0.5; chamfer=6; cylinder_angle=76; module edge() rotate([90]) linear_extrude(200,center=true) polygon([[0,0],[0,-min_t],[100,-min_t],[3/tan(edge_angle)+100,3+100*tan(handle_angle)],[3/tan(edge_angle),3]]); module partial_cone(extrusion_angle) hull() { cylinder(r1=0,r2=100...
glb/cad_931183402f63.glb
Create a heart-shaped keychain with a personalized text inlay. Start by constructing a heart base with a thickness of 2mm. The heart's overall size should be proportional to the length of the text "I LOVE YOU", scaled by a width ratio of 0.99. On top of this base, add the text "I LOVE YOU" using a bold sans-serif fon...
text_var = "I LOVE YOU"; add_loop = true; base_size = 2; font = "Futura:style=Bold"; font_size = 7; heart_width_ratio = 0.99; avg_char_width = font_size * 0.99; text_width = len(text_var) * avg_char_width; heart_size = (text_width / 4) * heart_width_ratio; keychain_loop_size = 20; keychain_loop_thickness = 4; $fn...
glb/cad_0a769e012a8c.glb
Create a protective cap for a craft knife by starting with a main cylinder 50mm tall with a diameter of 16mm. Hollow out the center of this cylinder to create a cavity for the knife blade. The internal cavity begins at the base with a cylinder 10.668mm in diameter for a height of 2mm, which then transitions via a short...
$fn= $preview ? 32 : 128; rotate([180,0,0]) { difference() { translate([0,0,0.1]) cylinder(h=50,d=16); translate([0,0,-1]) union() { cylinder(h=2,d=10.668); translate([0,0,1]) cylinder(h=1,d1=10.668,d2=11.43); ...
glb/cad_5d783c12111f.glb
Create a mounting bracket plate that is 30mm wide, 30mm long, and 3mm thick. The main body should be a square slab with rounded corners, where each corner has a radius of 5mm. On the top face of the plate, place four circular bolt holes, each with a diameter of 5mm. Position these holes so that their centers are exactl...
sizex = 30; sizey = 30; thickness = 3; gap = 5; boltsize = 5; boltsx = 2; boltsy = 2; rounding = 5; boltspreadx = sizex - 2*gap; boltspready = sizey - 2*gap; boltpitchx = boltspreadx / (boltsx - 1); boltpitchy = boltspready / (boltsy - 1); module slab(){ translate([rounding, rounding]) minkowski(){ ...
glb/cad_abdcd4f2a504.glb
Create a Shop Vac adapter consisting of a main body and a removable screw-on cap. For the main body, construct a central hollow cylinder with an inner diameter of 57.15mm and an outer diameter of 67.15mm, extending vertically. At the top, integrate a tapered transition that narrows from an outer diameter of 95.67mm to ...
use <threads.scad>; vacuum_diameter = 57.15; attachment_diameter = 91.44; taper_factor = 0.05; attachment_length = 30; wall_thickness = 5; thread_height = 20; thread_pitch = 7.5; junction_height = vacuum_diameter + 2 * attachment_length; asod = attachment_diameter * (1 + taper_factor); asod2 = attachment_diameter * (...
glb/cad_3507b73b4b3f.glb
Create a bathroom drain cover consisting of a tiered cylindrical structure with a total height of 15mm. Start by creating a base disc with a diameter of 98.5mm and a height of 3.5mm. On top of this base, center a second cylinder with a diameter of 86mm and a height of 11.5mm. From the center of the entire assembly, re...
include <NopSCADlib/lib.scad> use <NopSCADlib/utils/sector.scad> diameter = 98.5; height = 3.5; inner_diameter = 86; inner_width = 4.5; total_height = 15; inner_hole = 8.0; num_holes = 12; middle_width = 6; $fn = 360; module pipe(height, diameter, inner_diameter) { difference() { translate([0,0,0]) cy...
glb/cad_44228f2318c7.glb
Create a Mooncake Box Divider by constructing a lattice grid with an overall width of 205mm and a height of 54mm. The structure is based on a repeating pattern of intersecting rectangular frames with a wall thickness of 1.28mm. First, generate a primary grid consisting of two concentric rectangular rings: an outer ri...
width = 205; thickness = 1.28; height = 54; chamfer=5; unit = (width - thickness) / 5; module rectangle() { difference() { offset(delta = thickness / 2) square([1, 2] * unit, center = true); offset(delta = - thickness / 2) square([1, 2] * unit, center = true); } } module shadow() { for (th = [0, 90, 180...
glb/cad_176ba7b437c5.glb
Create a rectangular filament dryer base with a width of 120mm, a length of 144mm, and a thickness of 9mm. At the center of the rear edge, remove a semi-circular cutout with a radius of 40mm that penetrates through the full thickness of the base. On the top surface, create two rectangular slots that penetrate through...
$fn=90; Breite=120; Laenge=144; Dicke=9; Hoehe=25; Tubus=80; SchlitzBreite=6; Fuss=10; SchlitzLaenge=30; difference(){ cube([Breite,Laenge,Dicke]); translate([Breite/2,Laenge,0]) cylinder(h=Dicke,r=Tubus/2); translate([(Breite-SchlitzLaenge)/2,5,0]) cube([SchlitzLaenge,SchlitzBreite,Dicke]); translate([(Breite-SchlitzL...
glb/cad_bf281d2246e9.glb
Create a Tefifon HS Mounting Rack corner bracket. The part is a structural corner piece with a base thickness of 5mm and wall thickness of 7.5mm. Construct the main body as a block with a rounded outer corner. The outer radius of the corner is 49mm. The overall footprint of the bracket is 98mm in length and 40mm in w...
include <lib_markus.scad> cutoutRackCorner(); bottomThickness = 5; wallThickness = 7.5; d1 = 49; d2 = 40; d3 = 18; d4 = d3 + 2*wallThickness; h1 = 10; h2 = 8; h3 = 24; bottomLength = 98; bottomWidth = 40; module cutoutRackCorner() { rackCorner(cutout=true); } module normalRackCorner() { rackCorner(cutout=fals...
glb/cad_638e186ed074.glb
Create a Bellows Adapter for a Eureka Atom by constructing a hollowed-out composite shape. Start with a base cylinder 52mm in diameter and 25mm high. On top of this base, add a conical section that transitions from a 69mm diameter at its bottom to a 74mm diameter at its top over a height of 40mm. Above the conical sect...
difference() { group() { cylinder(d=52, h=25,$fn=100); translate([0,0,25]) cylinder(d1=69,d2=74, h=40,$fn=100); translate([-14.5,0,9+7]) cube([29,10,18],center=true); } cylinder(d=43, h=25,$fn=50); translate([0,0,25]) cylinder(d1=43, d2=65, h=20,$fn=50); translat...
glb/cad_dc1f6e260664.glb
Create a grinder foot consisting of two stacked cylindrical sections. Start with a wide base cylinder that is 20mm in diameter and 10mm in height. Centered on top of this base, place a second, narrower cylinder that is 11mm in diameter and 10mm in height. To create a recessed channel between the two cylinders, remove a...
translate([0,0,10]) cylinder(d=11,h=10,$fn=50); translate([0,0,15]) cube([1,12,10],center=true); translate([0,0,15]) cube([12,1,10],center=true); translate([0,0,0]) cylinder(d=20,h=10,$fn=50);
glb/cad_fa580985036b.glb
Create a dosing collar for a Eureka Atom by constructing a tiered cylindrical object. Start with a base disc 70mm in diameter and 2.5mm thick. Atop this base, center a cylinder 57mm in diameter and 29mm tall. To create the internal cavity, remove a central cylinder 52.5mm in diameter that extends 25mm upward from the b...
difference() { group() { cylinder(h=2.5, d= 70,$fn= 100); cylinder(h=29, d= 57,$fn= 100); translate([0,0,25]) cylinder(h=18, d= 53, $fn= 100); translate([57/2,0,19/2+2.5]) cube([6,12.5,19],center=true); } cylinder(h=25, d= 52.5,$fn= 100); translate([0,0,25]) cylinder(h...
glb/cad_1f30faf10cdd.glb
Create a smartphone case consisting of a hollow outer sleeve and a removable inner drawer. First, construct the outer sleeve as a rectangular shell with external dimensions of 82mm width, 165mm depth, and 15mm height. The walls of this sleeve should be 2mm thick. On two opposite sides of the sleeve, create a rectangu...
WM = 78; HM = 12; DM = 161; THO = 2; THS = 2; TOL = 1; GTOL = 0.5; ZS = 15; LOGO = ""; LD = 0.75; LS = 0.75; LR = 180; WS = WM+2*THS+TOL; HS = HM+THS+TOL; DS = DM+THS+TOL; difference() { union() { cube([WS+2*THO, DS+THO, HS+2*THO], center=true); translate([0, -((DS+THO)/2-(ZS+THS)/2), 0...
glb/cad_ed229e21131c.glb
Create a drawer rail consisting of a main rectangular body with three cylindrical pegs. The main body is 199mm long, 16mm wide, and 8mm thick. The ends of this body are rounded with a radius of 8mm, forming semi-circles. Position three vertical pegs along the center line of the rail at 20mm, 84mm, and 180mm from the ...
length = 199; width = 16; depth = 8; peg_height = 9; peg_diameter = 7.9; pegs = [20, 84, 180]; peg_chamfer_ratio = 0.9; $fn = 80; rail(); for (position = pegs) { peg(position); } module rail() { module end() { translate([0, (length-width)/2, 0]) cylinder(depth, d=width, center=true)...
glb/cad_ad3fde16d0cf.glb
Create a geared toothpaste tube squeezer consisting of an inner shell, an outer shell, and two internal rollers. The inner shell is a hollow cylinder with a vertical slot to allow a toothpaste tube to pass through. The outer shell fits over the inner shell and features two internal helical threads that translate rotati...
use <../Getriebe.scad> use <publicDomainGearV1.1.scad> pi=3.141592653589793236; $fn=120; module rack_tooth_profile(rack_pitch,pressure_angle) intersection() { projection() zahnstange(modul=rack_pitch/pi*1.0526, laenge=rack_pitch*2, hoehe=1, breite=1, eingriffswinkel=pressure_angle); square([rack_pitch, rack_pi...
glb/cad_d6592087fa6b.glb
Create a geared toothpaste tube squeezer consisting of an inner shell, an outer shell, and two internal rollers. The inner shell is a cylinder with a radius of 28.3mm and a height of 160mm. It features two vertical slots and internal helical rack teeth with a module of approximately 0.63mm. The outer shell is a lar...
use <../Getriebe.scad> use <../thread_profile.scad> use <sliping_gear.scad> use <knurledFinishLib_v2.scad> mm_per_tooth=2; w=43; l=160; t=1; target_roll_r=6; shaft_r=2.5; inner_bottom_t=2; outer_bottom_t=0; $fn=120; pi=3.141592653589793236; pressure_angle=25; top_t=2; top_h=15; short_shaft_h=1.5; long_shaft_h=6; cylind...
glb/cad_06721a970937.glb
Create a five-sided, open-top Hex Crate. The crate consists of a rectangular floor and four walls made of a hexagonal grid with a wall thickness of 3.175mm. The floor is a rectangle measuring 127mm by 50.8mm. Two opposite walls are 127mm wide; one is 76.2mm tall and the other is 76.2mm tall. The remaining two side wa...
$fn = 6; inch = 25.4; half = inch/2; quar = half/2; aith = quar/2; x = 5*inch; y = 2*inch; lil = 3*inch; big = 3*inch; rotate([90,0,0]) layout(x,big,lil); translate([0,y,0]) rotate([90,0,0]) layout(x,big,lil); translate([aith/2,-aith/2,0]) rotate([0,-90,0]) layout(lil,y,y); translate([x-aith/2,-aith/2,0]) rotate([...
glb/cad_eecc5fc38573.glb
Create a customizable luggage tag by starting with a rectangular base 80mm wide, 30mm high, and 1.5mm thick. Soften the edges and corners of this base by applying a fillet or radius of 8mm. On the left side of the tag, centered vertically, create a vertical slot cutout that is 1mm wide, 17mm high, and penetrates throug...
$fn=50; text=["Pierre MARTIN", "3 rue de Paris", "13000 Marseille", "france"]; space=0; xmax=80; ymax=30; yStartText=25; ztext=0.5; fontSize=5; tagHeight=1.5; textHeight=0.3; rSpace = (space==0) ? (ymax+5)/len(text) : space ; difference(){ union(){ minkowski() { cube([xmax,ymax,tagHeigh...
glb/cad_fabeee64d7a0.glb
Create a customizable luggage tag. Start by creating a rectangular base measuring 80mm in width and 30mm in height, with a thickness of 1.5mm. Soften the corners of this base by applying a fillet or rounding with a radius of 8mm. On the left side of the tag, centered vertically, create a vertical slot for a strap. Thi...
$fn=50; text=["Pierre MARTIN", "3 rue de Paris", "13000 Marseille", "France"]; space=0; xmax=80; ymax=30; yStartText=25; ztext=0.5; fontSize=5; tagHeight=1.5; textHeight=0.3; border=0; strap=0; strapLen=100; strapColor=0; rSpace = (space==0) ? (ymax+5)/len(text) : space ; difference(){ union(){ differenc...
glb/cad_3857e417e584.glb
Create a scraper tool consisting of a handle and a flat blade. First, construct the handle by extruding a complex cross-section to a height of 60mm. This cross-section is formed by the convex hull of two small ellipses centered at X=8.5 and X=-8.5 (each 3mm wide and 6mm deep) and two circles with a 5mm diameter centere...
$fn=60; module handle_cross_section_2d() { hull() { translate([8.5, 3]) resize([3, 6]) circle(); translate([-8.5, 3]) resize([3, 6]) circle(); translate([-5, 10]) circle(d=5); translate([-5, 10]) circle(d=5); translate([5, ...
glb/cad_3c8a4c8091ec.glb
Create a puzzle game piece consisting of five spheres, each with a diameter of 11mm, connected by thin cylindrical rods. Arrange the spheres in an L-shape: place three spheres in a straight line centered on the X-axis at positions (0,0,0), (11,0,0), and (22,0,0), and a fourth sphere at (22,11,0) to form a right angle. ...
$fn = 60; diameter=11; link_height=3*diameter*0.8; sphere(d=diameter); for (i=[0:diameter:diameter]) translate([i+diameter,0,0]) sphere(d=diameter); for (i=[0:diameter:diameter]) translate([0,i+diameter,0]) sphere(d=diameter); rotate([90,0,0]) translate([0,0,-diameter]) cylinder(h=link_h...
glb/cad_adf813024203.glb
Create a Treasure Island compass as a flat octagonal plate with a thickness of 1.72mm. The overall width of the octagon is 119.90mm. At the center, create a circular hole with a diameter of 18.91mm. Radiating from the center hole, create eight rectangular slits spaced every 45 degrees. Each slit is 2.96mm wide and 41...
$fs = 0.1; $fa = 0.1; width = 119.90; slit_length = 41.90; slit_width = 2.96; slit_distance = 6.87; hole_diameter = 18.91; thickness = 1.72; text_large = 10; text_medium = 7.5; text_small = 5; text_distance = 55; text_font = "Noto Sans:style=Black"; linear_extrude(thickness){ difference(){ intersection(...
glb/cad_3f52d2b71357.glb
Create a Treasure Island replacement search token by constructing a thin, flat ring. Start with a solid cylinder that has an outer diameter of 49.90mm and a height of 1.72mm. From the center of this cylinder, remove a smaller concentric cylindrical volume with a diameter of 29.91mm and a height of at least 3.44mm to cr...
$fs = 0.1; $fa = 0.1; inner_diameter = 29.91; outer_diameter = 49.90; thickness = 1.72; difference() { cylinder(h = thickness, d = outer_diameter, center=true); cylinder(h = 2*thickness, d = inner_diameter, center=true); }
glb/cad_5f79ca9b9a7d.glb
Create a large search compass ring for the Treasure Island game. Construct a thin, flat cylinder with an outer diameter of 74.89mm and a height of 1.72mm. Centered within this cylinder, remove a smaller concentric cylindrical volume with a diameter of 54.83mm and a height that exceeds the thickness of the ring to creat...
$fs = 0.1; $fa = 0.1; inner_diameter = 54.83; outer_diameter = 74.89; thickness = 1.72; difference() { cylinder(h = thickness, d = outer_diameter, center=true); cylinder(h = 2*thickness, d = inner_diameter, center=true); }
glb/cad_348d13e806ce.glb
Create a motion light switch cover with overall dimensions of 32mm width, 8mm depth, and 34mm height. The main body is a hollow shell with walls 1mm thick. The top edge is open, with a 2mm gap removed from the center of the top rim. Centered on the front face, 16mm from the sides and 12mm from the bottom, create a sphe...
width = 32; depth = 8; height = 34; wallWidth = 1; tabWidth = 1.7; tabDepth = 2.2; tabHeight = 2; tabOffset = 3.9; prongWidth = 2.8; prongDepth = 10; prongHeight = .8; prongOffset = 4.3; holeOffsetHeight = 16; holeOffsetWidth = 12; holeSize = 1.8; pusherOffsetHeight = 6.3; pusherOffsetWidth = 15.3; pusherWidth = 1...
glb/cad_c73e562db228.glb
Create a Wii PCB mount by starting with a central rectangular block measuring 16.1mm wide, 20.8mm deep, and 3mm high, centered on the origin. Subtract two vertical cylindrical holes from this block to create mounting points. Position the first hole at x = -6.05, y = 8, and z = 3, and the second hole at x = -6.05, y =...
$fn=100; module controls() { difference() {union() {cube([13.40,74.4,4],center=true); cube([26.8,66.4,4],center=true); translate([0,20,5]) cylinder(d=5,h=7,center=true); translate([0,20,12]) sphere(d=9); translate([0,20,2]) cylinder(d=10,h=2,center=true); translate([0,-12,-2]) sphere(d=12); translate([0,-12,4]) cylinde...
glb/cad_e568af055d66.glb
Create a miniature model of a Napoleon Travel Q Pro grill. Start by constructing the main body as a rounded, capsule-like shape with a width of 60mm, depth of 45mm, and height of 50mm. The body should be a hollowed-out shell with a flat bottom. On top of the body, add a lid that mirrors the rounded contours of the bas...
$fn=60; use <MCAD/2Dshapes.scad> module lid() { difference() { union() {translate([0,-19,5]) rotate([0,90,0])cylinder(d=4,h=30,center=true); resize ([60,45,50]) intersection() { rotate_extrude() ellipsePart(60,40,2); translate([0,10,0]) cube([50,60,60],center=true); }; resize ([40,35,6])rotate([0,0,22])translate([7,18...
glb/cad_a8fd8a2e9747.glb
Create a segmented train track consisting of 9 identical interlocking segments arranged in a linear chain. Each segment is based on a rectangular block with a width of 14mm. For the internal segments, create a block that features a cylindrical pin on one end and a corresponding cutout on the other to allow them to li...
left = "male"; right = "female"; segments = 9; $o = .001; $fn=25; pad = .5; ring_buffer = 2; ring_width = 6; ring_length = 10 + ring_buffer; ring_wall = 2.5; hole_radius = (ring_length - 2*ring_wall)/2; cutout_length = ring_length - ring_buffer + pad; cutout_width1 = ring_width + pad; cutout_width2 = cutout_width1...
glb/cad_d07c2263137d.glb
Create an encoder knob with a total height of 22mm. Start by forming the main body from two stacked shapes: a base cylinder 6.2mm high with a bottom diameter of 17mm tapering to 16mm, and a conical top section 15mm high that starts at a diameter of 15mm and tapers outward to 10mm. Hollow out the center to create the ...
knob(22); module knob(ZZ){ difference(){ union(){ translate([0, 0, 4]) cylinder(h=ZZ-7, d1=15, d2=10, $fn=200, center=false); translate([0, 0, 0]) cylinder(h=4.1+2, d1=17, d2=16, $fn=200, center=false); } for(i = [0: 60: 360]){ rotate([0,0,i]) translat...
glb/cad_bbe9e08cb9ec.glb
Create a Shama divMMC case consisting of a hollow rectangular enclosure with rounded corners. The main body is a rounded cube with overall dimensions of 90mm in width, 51mm in depth, and 20mm in height, with a corner radius of 2mm. Hollow out the center of this volume with a rectangular cutout measuring 85mm by 45mm by...
$fn = 64; module pin_hole(h) { translate([0,0,h/2]) difference() { cylinder(h = h, r = 3, center = true); cylinder(h = h + 1, r = 1.2, center = true); } cylinder(h = h/2, r1 = 4, r2 = 3,center = true); } module roundedcube(xdim ,ydim ,zdim,rdim) { hull(){ translate([rdim,...
glb/cad_e2857ab3270b.glb
Create a filament guide goal post consisting of two vertical arms connected by a horizontal span. Each vertical arm should be a rectangular prism 160mm high, 15mm wide, and 5mm thick. Connect these arms at the top with a horizontal span that is 110mm wide, 20mm high, and 30mm thick. Modify the horizontal span by carv...
arm_height=160; arm_thickness=5; arm_width=15; span_width=220/2; span_height=20; span_thickness_before_cut=30; trough_width = span_width*0.8; trough_height = 10; module arm() { minkowski() { union() { arm_pre_mink(); color("yellow") translate([span_width+span_width,...
glb/cad_7beda161c5df.glb