Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a clampable headphone mount consisting of a curved main body and a flat base. Start by creating a semi-cylindrical shell with an outer radius of 50mm and an inner radius of 45mm, with a height of 45mm. This shell should be a half-cylinder, open on one side. At the bottom of this curved section, add a flat rectan...
translate([0, 25, 30]) rotate([0, 90, 90]) difference(){ mount(); translate([15, -15, -30]){ screwhole(); translate([0, -20, 0]) screwhole(); } } translate([0, 0, 45]){ rotate([90, 0, 0]){ difference(){ rotate([90,0, 0]){ difference(){difference(){ union(){ cylinder(r=50, h=45); trans...
glb/cad_beee61195b6b.glb
Create a desktop organizer consisting of three hexagonal pencil pots arranged on a shared base. Each pot is a hexagonal prism with a wall thickness of 1.5mm. The first pot is positioned at x = -30.1mm, y = 0, with a height of 80mm and a radius of 35mm. The second pot is positioned at x = 30.1mm, y = 0, with a height of...
radius=35; heigtha=80; heigthb=110; heigthc=40; height_base=2; margin=28; height_wall=20; height_base=2; thickness=1.5; base_overfly=3; h=0.5*radius*sqrt(3); module hexa( ppos, pradius, pheigth, solid=0) { translate( ppos) rotate( [0,0,30]) difference() { cylinder( h=pheigth, r=pradius, $fn=6); if...
glb/cad_d451f2f60492.glb
Create a Chinese Name Seal Stamp by starting with a main rectangular block that is 40mm wide, 40mm deep, and 60mm tall. Hollow out the center of this block from the bottom up to a depth of 57mm, leaving a 3mm thick base, to create a recessed cavity that is 38mm wide and 38mm deep. On the bottom face of the stamp, emb...
last_name = "傅"; first_name_1 = "歐"; first_name_2 = "立"; size = 40; font = "PingFang TC:style=Semibold"; height = size*1.5; $fn = 100 * 1; rotate([180,0,0]) union(){ difference(){ cube([size,size,height], center = true); translate([0,0,-height/2]) cube([size-2,size-2,3], center = true); } translat...
glb/cad_5be3d99fef93.glb
Create a ball in box desk toy by centering a sphere with a diameter of 80mm inside a rectangular prism. The prism should have a base measuring 60mm by 60mm and a height of 70mm. Position the sphere so that its center aligns perfectly with the center of the prism, allowing the sphere to protrude from the top and bottom ...
cube ([60, 60, 70], center=true); sphere (40,40,50);
glb/cad_d4483c3a1a1f.glb
Create a Pushup Handle consisting of a main cylindrical grip and a supporting base. First, create the main handle as a cylinder with a diameter of 50.8mm (2 inches) and a height of 127mm (5 inches). To make the grip comfortable, remove a central rectangular section from the bottom of this cylinder using a cube that i...
oneInch = 25.4; baseSize = oneInch * 5; handleDiameter = oneInch*2; supportRingThickness = oneInch * .5; sideSupportHeight = oneInch*3; sideSupportThickness = oneInch * .5; sideSupportWidth = oneInch * 2; $fn = 100; CreateSmoothTopIndentedHandleOnFloor(); module CreateSmoothTopIndentedHandleOnFloor() { rotate...
glb/cad_8330f2a281c6.glb
Create a pentagonal box with a base edge length of 35mm, a height of 20mm, and a wall thickness of 2mm. Start by constructing a solid pentagonal base with an edge length of 35mm and a thickness of 2mm. From this base, extend five vertical walls, each 20mm high and 2mm thick, following the perimeter of the pentagon. T...
penta_or_hex = 1; length_edge = 35; height = 20; thickness = 2; type_side_0a = 7; type_side_0b = 4; type_side_1a = 7; type_side_1b = 3; type_side_2a = 7; type_side_2b = 2; type_side_3a = 7; type_side_3b = 2; type_side_4a = 7; type_side_4b = 1; type_side_5a = 7; type_side_5b = 2; typ...
glb/cad_a12a15a09e53.glb
Create a Parametric Mouthpiece with a total length of 88mm. The object is a rotationally symmetric piece consisting of a cup, a throat, and a shank. The top cup has a diameter of 16mm and a depth of 8mm. The rim of the cup is 6mm wide with a rounded profile defined by a radius of 2.1mm. The interior of the cup transit...
CupDiameter=16; CupDepth=8; CupSphereFactor=0.5; RimWidth=6; RimShape=0.7; RimRadius=RimShape*RimWidth/2; ThroatRadius=3.5; ThroatDiameter=4; BackPipeDiameter=9.5; FrontPipeDiameter=BackPipeDiameter+3; BoreDiameter=BackPipeDiameter-1.5; MouthPieceLength=88; PrintingFootHeight=1; HoleRadius = 0; HoleUpDown = ...
glb/cad_3f64d897843a.glb
Create a wood track overpass support pillar consisting of two identical horizontal platforms connected by vertical side bracing. Each platform is a rectangular base 41.2mm wide and 12mm thick. On each end of the platform, create a track connection consisting of a rectangular neck that transitions into a cylinder with...
track_width = 41.2; rail_width = 6.45; rail_spacing = 12.475; track_thickness = 12.0; rail_depth = 2.6; female_width = 7.4 + 0.2; female_length = 7.0; female_diameter = 12.4 + 0.2; female_depth = 17.8; male_width = 6.2; male_diameter = 11.0; male_depth = 17.2; module track_connection(track_length, track_with, conne...
glb/cad_5db9a4782b79.glb
Create a Kinect Laptop Stand consisting of a main hollowed-out rectangular box with rounded corners and two symmetrical mounting arms. The outer dimensions of the main box are 97mm wide, 82mm long, and 26mm high, with a wall thickness of 6mm. The interior cavity is 91mm wide, 74mm long, and 24mm high, with a corner rad...
include <MCAD/boxes.scad> module LaptopArm(w,l,h1,h2,gap) { wiggle = 1; wall = 4; cube([w,l,h2]); translate([0,-(gap+wall),h2-wall]) { cube([w,gap+wall,wall]); translate([0,-wall,-h1+wall]) { cube([w,wall,h1]); } } } w = 87; l = 70; h = 20; cr = 25; cable = 8; wall = 6; wiggle = 2; o_x = -1*((w+wa...
glb/cad_2d65ebe38e8a.glb
Create a Rubik's Cheese twisty puzzle with a total height of 40mm, an outer radius of 40mm, and an inner radius of 25mm. All edges must be rounded with a radius of 1.5mm. Construct the center part as a semi-cylindrical core. This core features a central cylindrical void with a radius of 11mm and a larger outer cylindr...
h=40; hh=h/2; ri=25; ra=40; z_gap=.1; xy_gap=.2+z_gap; re=1.5; $fn=45; center(); color("orange") render()segment(); module center() { difference() { union() { render()minkowski() { sphere(re,$fn=16); render()union() ...
glb/cad_df4c24bfce75.glb
Create a multiplication table visualization consisting of a 10 by 10 grid of rectangular prisms. Each prism has a base of 10mm by 10mm. Position the prisms such that they are adjacent to one another, forming a larger square area of 100mm by 100mm. The height of each prism is determined by the product of its grid coord...
use <write/Write.scad> factors_x=10; factors_y=10; for ( factor_x = [1:factors_x]) { for ( factor_y = [1:factors_y]) assign ( product = factor_y*factor_x) { echo (factor_y*factor_x); echo (product); draw_productcube(factor_x,factor_y,product); } } module draw_productcube(factor_x,factor_y,product) { transl...
glb/cad_483803e6d34a.glb
Create a ring band by revolving a specific cross-section profile around a central axis. The internal diameter of the ring is 15.54mm. The cross-section is a reverse hemi-ellipse, which is a semi-ellipse that curves inward toward the center of the ring. The band has a total width (depth) of 4.4mm and a wall thickness ...
a_bit=0.01; $fn=50; colour_RGBA_metal=[0.65,0.65,0.65,1]; ring_size_us_can=6; ring_size_uk_ie_aus_nz=12.5; ring_size_ind_chn_jpn=11; ring_size_switz=12.75; main_internal_diameter=(ring_size_uk_ie_aus_nz+29.549)/2.5352; main_wall=2; main_depth=4.4; main_feature=0.5; cs_ellipse=0; cs_rectangle=0; cs_pil...
glb/cad_440b3b78e933.glb
Create a ring band by revolving a specific cross-section profile around a central axis. The internal diameter of the ring should be approximately 15.6mm (calculated from a UK ring size of 12.5). The band should have a wall thickness of 2mm and a total depth of 4.4mm. For the cross-section, create a reverse hemi-ellips...
a_bit=0.01; $fn=50; colour_RGBA_metal=[0.65,0.65,0.65,1]; ring_size_us_can=6; ring_size_uk_ie_aus_nz=12.5; ring_size_ind_chn_jpn=11; ring_size_switz=12.75; main_internal_diameter=(ring_size_uk_ie_aus_nz+29.549)/2.5352; main_wall=2; main_depth=4.4; main_feature=0.5; cs_ellipse=0; cs_rectangle=0; cs_pil...
glb/cad_4b674f64b82f.glb
Create a ring band with an internal diameter of 16.5mm. The band should have a wall thickness of 2mm and a width (depth) of 4.4mm. The cross-section of the band is a reverse hemi-ellipse. To achieve this, create a semi-ellipse shape and rotate it 180 degrees around its own center before extruding it in a full circle ...
a_bit=0.01; $fn=50; colour_RGBA_metal=[0.65,0.65,0.65,1]; ring_size_us_can=6; ring_size_uk_ie_aus_nz=12.5; ring_size_ind_chn_jpn=11; ring_size_switz=12.75; main_internal_diameter=(ring_size_uk_ie_aus_nz+29.549)/2.5352; main_wall=2; main_depth=4.4; main_feature=0.5; cs_pill=0; cs_ellipse=0; cs_hemi_ell...
glb/cad_1ed6ebf85f99.glb
Create a ring band with an internal diameter of 18.31mm. The band should have a wall thickness of 3mm and a total width (depth) of 14mm. The cross-section of the band is a "half-pill" shape. To construct this, start with a pill-shaped profile (a rectangle with semi-circular ends) and remove a central rectangular sect...
a_bit=0.01; $fn=50; colour_RGBA_metal=[0.65,0.65,0.65,1]; ring_size_us_can=16; main_internal_diameter=(ring_size_us_can+14.312)/1.2308; main_wall=3; main_depth=14; main_feature=0.5; cs_ellipse=0; cs_rectangle=0; cs_pill=0; cs_hemi_ellipse=0; cs_scallopped_rectangle=0; cs_rounded_scallopped_rectangle=0...
glb/cad_32716dd9a85f.glb
Create a ring band by revolving a specific cross-section profile around a central axis. The internal diameter of the ring is approximately 17.24mm. The cross-section is a rounded hemi-ellipse with a total depth of 4.34mm and a wall thickness of 2mm. To construct the profile, start with a hemi-ellipse shape and apply ...
a_bit=0.01; $fn=50; colour_RGBA_metal=[0.65,0.65,0.65,1]; ring_size_us_can=6.5; main_internal_diameter=(ring_size_us_can+14.312)/1.2308; main_wall=2; main_depth=4.34; main_feature=0.5; cs_ellipse=0; cs_rectangle=0; cs_pill=0; cs_hemi_ellipse=0; cs_scallopped_rectangle=0; cs_rounded_scallopped_rectangl...
glb/cad_96bacb33ec9b.glb
Create a customizable battery holder for a single AA cell. Start by creating a solid rectangular block with a width of 15.75mm, a length of 52mm, and a height of 14.5mm. From this block, remove a central rectangular volume to create a hollow cell cavity measuring 14.5mm in width and 50.5mm in length, leaving a base t...
use <utils/build_plate.scad> type = "AA"; cells = 1; custom_length = 3.2; custom_diameter = 20; space = 1.5; wall = 1.2; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); if (type=="AAA"){ start(44.5,...
glb/cad_c0cf1cbda0fa.glb
Create a Prusa i3 Bowden Extruder bracket designed to hold a J-head and an inductive sensor. Start with a main body that is a rectangular block measuring 33mm by 24mm by 36mm. On the back side, create a slanted face by removing material at a 45-degree angle, resulting in a section 30mm wide and 10mm thick. Integrat...
use<x-carriage.scad> clearance = 0.2; print(); module clamp(){ difference(){ union(){ translate([0,-0.25,0]) cube(([24,5.5,9]),center=true); } union(){ translate([0,8,0]) jhead_cut(); translate([9,0,0]) rotate([90,0,0]) cylinder(r=1.25,h=20,center=true,$fn=20); translate([-9,0,0]) rotate([90,0,0]) cylinder(r=1.25,h...
glb/cad_d165404f2b3b.glb
Create a 40mm grenade prop by constructing a revolved geometric profile. Start with a central projectile body that has a total length of 50mm and a radius of 19mm. The top of this body is a perfect hemisphere with a 19mm radius, while the lower section is a cylinder of the same radius extending downwards. Surrounding ...
rnd_length=50; rnd_r=19; case_l=46; case_r = 20; case_base = 1.8; case_cutout_l = 4.5; case_cutout_depth = 3; rotate_extrude($fn=200) { difference() { union() { translate([0,rnd_length-rnd_r]) circle(rnd_r,center=true); translate([0,(rnd_length-rnd_r)/2]) square([rnd_r*2,rnd_length-rnd_r],center=true); } translate([...
glb/cad_89296d91a1da.glb
Create a customizable coaster by starting with a solid cylinder that has an outside diameter of 114mm and a total height of 7mm. Hollow out the center of this cylinder to create a lip, leaving a base thickness of 2mm and a wall thickness of 2mm; the resulting inner cavity should have a diameter of 110mm and a depth of ...
inside_diameter = 110; thickness = 2; lip_height = 5; message_text_line1 = "First LIne"; message_text_line2 = "Second Line"; message_scale = 1.3; outside_diameter = inside_diameter + (thickness * 2); module coaster() { difference() { cylinder(d=outside_diameter, h=(thickness + lip_height)); if (lip_he...
glb/cad_eb1cd979b7eb.glb
Create a Universal Wheel Holder endcap. Start with a solid cylinder that has a radius of 24mm and a thickness of 6mm. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 9.8mm and the same 6mm thickness to create a ring shape. To complete the part, remove a rectangular section from t...
DORN=1; CLIP=2; ECAP=3; WhatToPrint=ECAP; SpoolDepth=80; Tolerance=0.2; Thicknes=6.0; LEN=SpoolDepth+36; FN=64; if(WhatToPrint==ECAP) translate([10.5,50,5.80]) rotate([0,90,0]) Endcap(0); if(WhatToPrint==CLIP) translate([48,80,0]) rotate([90,0,0]) WeelHolder(0); if(WhatToPrint==DORN) translate([0,10,10.5]) Dorn(); ...
glb/cad_e4ac041f301b.glb
Create a Prusa i3 Power Supply Cover and Relay holder. Start by constructing a rectangular perimeter box with outer dimensions of 119mm width, 55mm depth, and 75mm height. Hollow out the interior to create a shell with a wall thickness of 2mm, leaving the bottom closed. On the front face, create three rectangular cuto...
m3_diameter = 3.75; m3_nut_diameter = 6.3; module psu_clamp(thickness=5) { difference() { union() { cube([65,thickness,20]); translate([0,-15,0]) cube([65,15,10]); } translate([5,-11,-0.25]) cube([55,7,11]); translate([10,-21,-.25]) cube([45,11,11]); translate([20,7,15]) rotate([90...
glb/cad_0e83230a5a12.glb
Create a seed bomb container consisting of two matching parts: a top cap and a bottom base. For the top cap, create a hollowed-out dome shape based on a scaled-up nuclear bomb silhouette. The interior should be hollowed out to accommodate a cylindrical cavity with a radius of 23mm. Around the outer wall of this dome,...
include <flower.scad> tolerance = 0.3; size = 0.5; scale(size) { plate(); } module plate() { translate([-28, 0, 0]) top(); translate([34, 0, 0]) bottom(); } module assembly() { translate([0,0,50]) top(); bottom(); } module flower() { difference() { linear_extrude(height=10, convexity=30) path108(); tran...
glb/cad_9399b3fcc1d5.glb
Create two identical L-shaped book stands, each consisting of a vertical back plate and a horizontal base plate. For each stand, start with a solid rectangular block measuring 100mm in length, 100mm in width, and 100mm in height. From this block, remove a smaller rectangular section to leave behind a thin-walled L-shap...
$fn = 12; l = 100; w = 100; h = 100; module toto() { } ep_bord = 2; ep_fon = 0.5; translate([l,0,0]) right(l,w,h,0); translate([0,w,0]) rotate([0,0,180]) left(l,w,h,0); module right (length,width,height) { difference() { cube([length,width,height]); translate([ep_bord/2,0,ep...
glb/cad_a1a4544ac817.glb
Create a Switch Box consisting of a main housing and an attachment. For the main housing, start with a solid rectangular block measuring 75mm x 70mm x 65mm. Hollow out the center by removing a smaller block of 70mm x 50mm x 65mm, starting from a 5mm offset from the bottom and side walls. Remove two additional thin rect...
union() { difference() { translate([0,0,0])cube([75,70,65]); translate([5,5,5])cube([70,50,65]); translate([5,55,50])cube([70,3.5,7]); translate([5,0,50])cube([75,5,17]); } difference() { translate([0,0,0])rotate(a=[90,0,0]){cube([21,21,21]);} translate([-1,-21,10.5])rotate(a=[0,90,0]){cylinder(h=23,r=5);} } differe...
glb/cad_15816b961d74.glb
Create a wheelchair simulation model for a dog with a width of 152.4mm (6 inches), a height of 203.2mm (8 inches), and a length of 355.6mm (14 inches). Construct the frame using a series of cylinders with an outer radius of 14.95mm and an inner radius of 9.85mm. The main structure consists of two parallel side rails ...
part = "wheelchair_sim_"; A = 6; B = 8; C = 14; D = 11; wheel_diameter = 4; screw_diameter = 0.25; tube_outer_radius = 0.388; $fn=60; inner_radius = tube_outer_radius * 25.4; screwsize = screw_diameter * 12.7; wheelsize = wheel_diameter * 12.7; bar = D > 10; t...
glb/cad_9ac51f4e6243.glb
Create a Customizable Double Sided Token. Start by creating a main cylindrical body with a diameter of 136mm and a thickness of 6mm. To create the rim, remove material from both the top and bottom faces. On each side, center a cylindrical hole with a diameter of 131mm (5mm smaller than the body) and a depth of 0.5mm,...
token_width = 136; token_rim_size = 5; token_thickness = 6; token_recess = .5; input ="no_input"; base_thickness = .5; stencil_width = 100; margin = 10; offX = 0; offY = 0; module void() {} dispo_width = stencil_width - 2*margin; stencil_thickness = base_thickness + token_thickness; points_array = (input=="no_inp...
glb/cad_d63b95d5e2e9.glb
Create a Fan Spill Cover designed as a shallow, truncated square pyramid with a flat top. The base is a square with a side length of 140mm. From each of the four corners of this base, extend a vertical cylindrical leg upward to a total height of 51.33mm. Each leg must have an outer diameter of 6.45mm and a concentric i...
$fn=100; ly = .2; elevation = 38; height = 20; d1 = 140; d2 = d1-d1/3; thickness = 4*ly; screwH = height/1.5; screwRi = 4.3/2; screwRo = 1.5*screwRi; D = (140-124.5-screwRi*2)/2; S1 = [d1/2-screwRo-D,0,0]; S2 = [0,d1/2-screwRo-D,0]; S3 = [-d1/2+screwRo+D,0,0]; S4 = [0,-d1/2+screwRo+D,0]; difference() { ...
glb/cad_39416b8e2465.glb
Create a Daikin air conditioner flap support. Start by constructing a main vertical plate that is 20mm long and 5.6mm thick. From this base, extend a thin rectangular flap upwards. This flap should have a base thickness of 3.4mm and a total height of 840mm. The top section of the flap is not a simple rectangle; it tr...
$fn=100; LARGO_SOLAPA=840; ANCHO_SOLAPA_A_CUBRIR=18; ESPESOR_MINIMO=3.4; ESPESOR_MAXIMO=3.8; ESPESOR_PIEZA_INTERIOR=1.6; ESPESOR_PIEZA_EXTERIOR=4; SALIENTE_A_PARTIR_DE_HENDIDURA=15; LARGO_MAXIMO_PIEZA=20; module solapa(){ color("blue") cube ([ESPESOR_MINIMO,LARGO_SOLAPA,ANCHO_SOLAPA_A_CUBRIR*3]); color("red") ...
glb/cad_e59873ea70a2.glb
Create a clip for a Mr. Maker figure by constructing a central cylindrical body and removing a rectangular slot. Start with a cylinder that has a radius of 5mm and a height of 3mm. Attach a slightly tapered cylinder to the base of this first piece, starting with a radius of 5.75mm and tapering down to 5mm over a height...
difference() { translate([0, 0, 4]) rotate([90, 0, 0]) union() { cylinder(r1=11.5/2, r2=10/2, h=1.5, $fn=32); cylinder(r=10/2, h=3, $fn=32); difference() { union() { translate([0, 0, 0.5]) cylinder(r=10/2, h=11, $fn=32); translate([0, 0, 11.5]) cylinder(r1=10/2, r2=12/2, h=1, $fn=32); translate([0, 0, 12....
glb/cad_c568b374217f.glb
Create a clip for a Mr. Maker figure by constructing a central cylindrical body and removing specific sections to create a gripping mechanism. Start with a primary cylinder 16mm long with a radius of 5mm. Add a series of concentric cylindrical layers to create a stepped profile: a 1mm thick disc with a radius increasin...
difference() { translate([0, 0, 3.5]) rotate([90, 0, 0]) difference() { union() { translate([0, 0, -8]) cylinder(r=10/2, h=16, $fn=32); translate([0, 0, 4]) cylinder(r1=10/2, r2=11/2, h=1, $fn=32); translate([0, 0, 5]) cylinder(r=11/2, h=2, $fn=32); translate([0, 0, 7]) cylinder(r1=11/2, r2=10/2, h=1, ...
glb/cad_7aefe328cf34.glb
Create a Mosaic Endstop Mount by starting with a main block 13mm wide, 13mm deep, and 17mm tall. Carve out a central rectangular channel from the front and top to create a U-shaped bracket; specifically, remove a 15mm wide by 5mm deep by 10mm tall section starting 4mm from the left edge, and remove a 5mm wide by 15mm d...
$fn = 20; module mosaic_x_endstop_mount() { difference() { union() { difference() { cube([13,13,17]); translate([0, 4, 0]) cube([15,5,10]); translate([4, 0, 0]) cube([5,15,10]); } translate([6,13,12]) cube([7, 6, 5]); translate([-6,0,12]) cube([6, 7, 5]); } for(y = [6.5, 6.5+9]) tr...
glb/cad_e7236853e934.glb
Create a Mosaic Y Min Endstop Mount. Start with a base rectangular block measuring 5mm wide, 40mm long, and 5mm high. At the front end of this base, add a 5mm cube that extends 5mm upwards from the top surface, positioned 35mm from the start of the base. Adjacent to this, add another 5mm wide by 10mm long by 5mm high b...
$fn=20; module mosaic_y_min_endstop() { cube([5, 40, 5]); difference() { translate([5,0,0]) cube([9, 10, 5]); translate([11,2.5,0]) cylinder(5, r=1.5); } translate([0,35,-5]) cube([5, 5, 5]); translate([0,30,-10]) cube([5, 10, 5]); difference() { translate([0,10,5]) cube([5,20,14]); for(d=[0,9]) transl...
glb/cad_785e8afeda97.glb
Create a Wire Cube Storage Corner consisting of a cylindrical base and four vertical fins. Start with a base cylinder with a radius of 19.5mm and a height of 3.75mm. Above this, add a second cylindrical plate with the same radius and a thickness of 2.5mm, positioned 5.5mm above the base. Extend four rectangular fins u...
$fn = 50; gapwidth = 5.5; thickness = 2.5; radius = 39/2; fin_height = 13; tooth_r = 1; fd = radius / 2 * sqrt(2); module corner() { cylinder(thickness * 1.5, r = radius); translate([0, 0, gapwidth+thickness * 1.5 - tooth_r]) cylinder(thickness, r = radius); intersection() { for(z1 = [0, 180, 90, 270]) { ...
glb/cad_87c6dc1095e7.glb
Create a Rice Cup by constructing a hollow, tapered cylinder. First, create the exterior body as a cone frustum with a height of approximately 50.9mm, a bottom radius of 30.45mm, and a top radius of 36.54mm. To create the interior cavity, remove a smaller cone frustum from the center, starting 2mm above the base. This ...
$fa=0.1; INCH=25.4; PI=3.14159; VOLUME=180000; BASE=2.25*INCH; TOP=BASE*1.2; WALLS=2; AVGDIAM=(BASE+TOP)/2; AVGRADIUS=AVGDIAM/2; HEIGHT=VOLUME/(PI*AVGRADIUS*AVGRADIUS); difference() { cylinder(r1=(BASE/2)+WALLS,r2=(TOP/2)+WALLS,h=HEIGHT+WALLS); translate( v=[0,0,WALLS] ) { cylinder(r1=(BASE/2),r2=(TOP/2),h=HEI...
glb/cad_77085404cc25.glb
Create a modern cube-style rice cup by starting with a solid cube that has a side length and height of 61.15mm. From the center of the top face, remove a conical void to create a hollow interior. This interior void should be a truncated cone with a height of 57.15mm, starting with a base diameter of 55mm at the bottom ...
$fa=0.1; BASE=55; TOP=BASE*1.2; AVGDIAM=(BASE+TOP)/2; VOLUME=180000; PI=3.14159; HEIGHT=VOLUME/((AVGDIAM/2)*(AVGDIAM/2)*PI); WALLS=2; echo( "Interior base diameter:", BASE ); echo( "Interior top diameter: ", TOP ); echo( "Interior average diameter: ", AVGDIAM ); echo( "Interior height: ", HEIGHT ); difference() { ...
glb/cad_e31778c07674.glb
Create a PCB etch tank anti-spatter lid by starting with a central rectangular plate measuring 63mm in length, 31mm in width, and 2mm in height. Centered along the length of this plate, add two perpendicular support bars. The first bar is 2mm wide, 45mm long, and 2mm high, positioned 12.5mm from the left edge of the ma...
union() { translate(v=[0,0,1]) cube(size = [63,31,2], center = true); translate(v=[-30.5+12.5,0,1]) cube(size=[2,45,2], center=true); translate(v=[-30.5+12.5,15.5+6,1]) cube(size=[6,2,2], center=true); translate(v=[-30.5+12.5,-(15.5+6),1]) cube(size=[6,2,2], center=true); translate(v=[-30.5+33,0,1]) cube(size=[2,45,...
glb/cad_e41b18138682.glb
Create a PCB etch tank anti-spatter lid by starting with a central rectangular plate measuring 63mm by 31mm with a thickness of 2mm. Add two thin rectangular ribs to the long sides of this plate; each rib should be 45mm long, 2mm wide, and 2mm thick, centered along the length of the plate and positioned 1mm above the b...
difference() { union() { translate(v=[0,0,1]) cube(size = [63,31,2], center = true); translate(v=[-30.5+10,0,1]) cube(size=[2,45,2], center=true); translate(v=[-30.5+10,15.5+6,1]) cube(size=[6,2,2], center=true); translate(v=[-30.5+10,-(15.5+6),1]) cube(size=[6,2,2], center=true); translate(v=[-30.5+33+17.5,0,1]) cu...
glb/cad_573adf906aad.glb
Create a PCB etch tank anti-spatter lid by constructing a central rectangular plate and adding specific peripheral attachments. Start with a main flat plate measuring 63mm in length, 31mm in width, and 2mm in height, centered at the origin. On the left side of this plate, add two small rectangular tabs, each measuring ...
union() { translate(v=[0,0,1]) cube(size = [63,31,2], center = true); translate(v=[-30.5+7.5,0,1]) cube(size=[2,45,2], center=true); translate(v=[-30.5+7.5,15.5+6,1]) cube(size=[6,2,2], center=true); translate(v=[-30.5+7.5,-(15.5+6),1]) cube(size=[6,2,2], center=true); difference() { union() { translate(v=[38,0,1]) ...
glb/cad_182b919d99bb.glb
Create a light clamp adapter by starting with a central rectangular block measuring 65mm wide, 100mm deep, and 50mm high, centered on the origin. Carve out a rectangular hole from this block that is 45mm wide, 110mm deep, and 50mm high, positioned 10mm below the center to create a U-shaped channel. Finally, add a solid...
union() { difference() { cube([65,100,50], center=true); translate([0,0,-10]) { cube([45,110,50], center=true); } } translate([0,0,50]) { cube([15,100,50], center=true); } }
glb/cad_4c3bfd82d63c.glb
Create a GoPro Hero camera mockup starting with a main rectangular body measuring 60.3mm in length, 30.5mm in width, and 42.2mm in height, ensuring all edges are rounded with a 2mm radius. On the front face, center a rectangular display screen measuring 14mm by 16.5mm. Position a cylindrical lens with a radius of 10.15...
Expand_Options = 1; Alpha = 0.3; Roundness = 2; translate([34.3+10.15,0,14.3+10.15])rotate([90,0,0])cylinder(r=10.15,h=7.7, $fn=20); minkowski() { cube([60.3-(Roundness*2),30.5-(Roundness*2),42.2-(Roundness*2)]); translate([Roundness,Roundness,Roundness])sphere(Roundness, $fn=20); } translate([10+3.25,10+3.25,42....
glb/cad_d4d01fd0e142.glb
Create a GoPro Hero camera mockup starting with a main rectangular body measuring 60.3mm in length, 30.5mm in width, and 42.2mm in height, ensuring all edges are rounded with a 2mm radius. On the front face, center a cylindrical lens with a radius of 10.15mm and a thickness of 7.7mm, positioned 34.3mm from the back a...
Expand_Options = 10; Alpha = 0.5; Roundness = 2; translate([34.3+10.15,0,14.3+10.15])rotate([90,0,0])cylinder(r=10.15,h=7.7, $fn=20); minkowski() { cube([60.3-(Roundness*2),30.5-(Roundness*2),42.2-(Roundness*2)]); translate([Roundness,Roundness,Roundness])sphere(Roundness, $fn=20); } translate([10+3.25,10+3.25,42...
glb/cad_9eaef6c15b64.glb
Create a door panel anchor consisting of a flat rectangular base and an attached angled stem. Start with a base block 65.5mm long, 25mm wide, and 15mm high. Hollow out the base to a wall thickness of 2.75mm, leaving a solid floor. Drill two vertical holes with a 2.5mm radius through the base at X-coordinates 10.4mm and...
baseLength = 65.5; baseWidthTilBend = 12.4; baseWidthTotal = 25; baseHeight = 15; stemHeightLower = 22; stemHeightMid = 48; stemHeightUpper = 73; stemSupportWidth = 30; stemDistanceFromBaseX = 21; stemBendDistanceFromBaseX = 28; stemDistanceFromBaseY = 7; stemOutcropHeightLower = 29; stemOutcropLength = 16.75; stemOu...
glb/cad_3d341d051a02.glb
Create a spring loaded mounting bracket consisting of two interlocking parts. For the base, create a rectangular block 60mm wide, 10mm deep, and 6mm high. Center a cylindrical cutout through the width of the block with a radius of 6mm and a height of 40mm to accommodate a spring. At each end of the base, add a small re...
x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; $fn=80; dholes=63; module tube(hh,ro,ri){ difference(){ cylinder(r=ro,h=hh,center=true); cylinder(r=ri,h=hh+1,center=true); } } module bottom(){ difference(){ translate(z*-1)rotate(90*y)cylinder(r=6,h=60,center=true); translate([5,0,6]) c...
glb/cad_2832dcb4f36a.glb
Create a spool stand base consisting of a flat, triangular-symmetric plate with a thickness of 4mm. The overall shape is formed by the intersection of a central cylinder with a radius of 60mm and three larger overlapping circular rings. Each ring has a center-to-center radius of 102.5mm, an outer width of 12mm, and an ...
$fn=128; rad = 102.5; thick = 4; width = 12; dim = 60; difference() { union() { intersection() { translate([rad,rad*0.5775,0]) cylinder(r=dim,h=2*thick,center=true); difference() { union() { cylinder(r=rad+width/2,h=thick,center=true); translate([rad*2,0,0]) cylinder(r=rad+width/2,h=thick,center...
glb/cad_f6119990802d.glb
Create a spool center part by starting with a central cylinder 6mm high with a radius of 15.75mm. Add a wider, thinner base cylinder 2mm high with a radius of 20.75mm centered on the same axis. Remove a central vertical hole with a radius of 9.5mm through the entire height. To create the mounting points, remove three i...
difference() { union() { translate([0,0,-2]) cylinder(h = 2, r = 31.5/2+5, center = true, $fn=100); cylinder(h = 6, r = 31.5/2, center = true, $fn=100); } cylinder(h = 8, r1 = 9.5, r2 = 9.5, center = true, $fn=100); for (w = [0, 120,240]) { rotate([0,0,w]) { translate([11,0,0]) cylinder(h = 8, r1 = 2...
glb/cad_b377ccbfda16.glb
Create a casing for a sous vide controller. Start with a main rectangular block with dimensions 88mm in length, 41mm in width, and 21mm in height. Apply a 1mm fillet to the exterior corners. Hollow out the center to create a base cavity starting 1.5mm from the bottom and sides. This primary cavity should be 85mm long ...
BASE=[100,38]; LCD_BOARD=[[80,36],[2,0,10]]; LCD=[[71,25,9],[8,5]]; LCD_EXTEND=4; KNOB=[4.5,[87,14.5,8]]; BOARD=1; MAX_CLEAR=4; MIN_CLEAR=2; GROOVE=0.5; PITCH=2.54; SHEATH=0.46; SKIN=1.5; USB=[[0,8,2.5],[0,22],1.5]; FTDI=[[0,PITCH*6+SHEATH,PITCH+SHEATH],[0,5.5-SHEATH]]; BOXY=[[PITCH*4+SHEATH,0,PITCH+SHEATH],[59]]...
glb/cad_118a25470ee9.glb
Create a parametric solenoid spool consisting of a circular base and a central hollow column. Start by creating a solid circular base with a radius of 63.5mm and a thickness of 4mm. In this base, create two small circular holes with a radius of 3mm: one positioned at a distance of 31.4mm from the center and another at ...
height=101.6; thickness=4; inner_clearance=25.4; radius_lip=63.5; wire_hole=3; connector_height=10; $fa=1; union() { difference() { cylinder(h=height/2, r=inner_clearance+thickness); cylinder(h=height/2, r=inner_clearance); } translate([0,0,height/2]) { difference() { cylinder(h=connector_height, r=inner_clearance+(...
glb/cad_2bc596b6bb67.glb
Create a parametric solenoid spool consisting of a hollow central column and a wide circular base. Start by constructing the main body as a hollow cylinder with an outer radius of 29.4mm and an inner radius of 25.4mm, extending to a total height of 50.8mm. At the top of this column, add a shorter concentric ring with a...
height=101.6; thickness=4; inner_clearance=25.4; radius_lip=63.5; wire_hole=3; connector_height=10; $fa=1; union() { difference() { cylinder(h=height/2, r=inner_clearance+thickness); cylinder(h=height/2, r=inner_clearance); } translate([0,0,height/2]) { difference() { cylinder(h=connector_height, r=inner_clearance+t...
glb/cad_811088959077.glb
Create a replacement wheel stand by constructing a composite solid. Start with a base cylinder 44mm in diameter and 10mm high. Centered on top of this base, add a second cylinder 15mm high that tapers linearly from a 22mm radius at the bottom to a 12.5mm radius at the top. From this combined volume, remove a central ve...
difference(){ union(){ cylinder (r1=22,r2=22,h=10); translate ([0,0,5]) cylinder (r1=22,r2=12.5,h=15); } translate([0,0,-1]) cylinder(r=5.2,h=28); translate([0,0,16]) cylinder(r=8.5,h=5); }
glb/cad_996ca4a1884f.glb
Create a nozzle holder consisting of a rectangular grid of blocks. The overall base is composed of two rows and three columns of square tiles, each tile measuring 20mm by 20mm with a total height of 5mm. For each tile, create a centered internal metric thread hole with a diameter of 6.5mm and a pitch of 1mm that exten...
use </home/oja/threads.scad> module holder_tile(text, height=5, width_x = 15, width_y= 15){ difference(){ cube([width_x,width_y,height]); translate([(width_x/2),width_y-5,0]) metric_thread(diameter=6.5, pitch=1, length=height, internal=true); translate([(width_x/2),width_y-15, height-0.8]) lin...
glb/cad_1f22c1d6ace3.glb
Create a Spool Winder Drill Attachment by constructing a truncated cone with a height of 25mm. The base of the cone should have a radius of 33.75mm, tapering upward to a top surface with a radius of 18.75mm. Centered through the vertical axis of this cone, create a cylindrical hole with a diameter of 8.4mm that passes ...
reel_diameter = 52.5; cone_variance = 15; cone_height = 25; bolt_diameter = 8; nut_diameter = 15; difference() { cylinder(h = cone_height, r1 = (reel_diameter + cone_variance) / 2 , r2 = (reel_diameter - cone_variance) / 2); cylinder(40, r = (bolt_diameter / 2) + 0.2); cylinder(r = nut_diameter / 2, $fn ...
glb/cad_203098caabf6.glb
Create a cap adaptor for a screw glass bottle. Start by creating a main cylindrical body with a height of 10mm and a diameter of 19.5mm. At the base of this cylinder, integrate a screw thread that has an inner diameter of 17.3mm and a total coil height of 11.1mm, with a pitch of 3.6125mm between the spirals. Below thi...
use <screw_thread.scad>; $fn=50; fn_value=50; rc=6.00; rf=1.75; r=1.2250; t_d1 = r*2; t_d2 = 17.30*2.0-r; t_h1 = 3.6125-r*2; t_h2 = 11.10; difference () { union () { difference() { cylinder(10.00, 19.50, 19.50, false); mirror (0,0,0) translate ([0,0,-0.05]) screw_thread( t_d1, t_d2, t_h1, t_h2 ); }; differen...
glb/cad_b8bd9abc68a0.glb
Create a filament coil holder consisting of three concentric cylindrical sections stacked vertically. Start with a wide, flat circular base with a diameter of 75mm and a thickness of 2mm. In the center of this base, create a circular cutout with a diameter of 22.6mm. On top of the base, center a middle ring with an ou...
fn=72; tol=0.02; wackel=0.6; spuleninnendurchmesser=55; kugellageraussendurchmesser=22; kugellagerdicke=7; kugellagerauflagebreite=2.5; wanddicke=2; rand=10; Materialbeschriftung="PLA"; praegetiefe=0.5; praegegroesse=5; kad = (kugellageraussendurchmesser / cos(180/fn)) + wackel; echo ("kad korrigiert nach ", kad); m...
glb/cad_6c123d906f66.glb
Create a set of four replacement nozzles, each featuring a common base and a central vertical hole with a radius of 3.5mm extending through the entire height. The base for each nozzle is composed of a bottom cylinder with a radius of 11.5mm and a height of 6.5mm, topped by a cylinder with a radius of 10.25mm and a heig...
module nozzle_base () { difference () { union () { translate ([0,0,0]) cylinder(r2=23/2,r1=20.5/2,h=6.5,$fn=60); translate ([0,0,6.5]) cylinder(r=20.5/2,h=10.7,$fn=60); translate ([0,0,6.5+10.7]) cylinder(r=28.5/2,h=2.5,$fn=60); } translate ([0,0,-0.10]) cylinder(r=16.5/2,h=10.7+6.5+0.1,$fn=60); } } ...
glb/cad_65941a3e5c88.glb
Create a fan duct for a 3D printer nozzle. Start with a base rectangular plate measuring 40mm wide, 25mm deep, and 2mm thick, centered on the origin. From this base, extend a hollow rectangular chimney upwards with a height of 31mm and a width of 36mm, centered on the base. The walls of this chimney should be 1mm thick...
union() { difference() { translate([-20,-5,1]) cube([40, 20+5, 2]); translate([-16, 16,0]) cylinder(r=3.3/2, h=13); translate([16, 16,0]) cylinder(r=3.3/2, h=13); translate([0,-4,0]) cube([36,31,31], center=true); } translate([0,-12+7,28]) rotate([0,180,0]) nozzle(); } pared=1; module nozzle() { for...
glb/cad_33a3d6ea3a56.glb
Create a cable organizer called Alga's Wishbone. The main body is a cylinder with a length of 60mm and a diameter of 7.2mm, capped at both ends with hemispheres of the same radius. Carve a central longitudinal channel through the entire length of the model. This channel is formed by a primary cylinder with a radius o...
len=60; diameter = 7.2; wall_width = 1.35; slot = 1.8; end_hole_dia = 2.5; end_slot = 1.5; end_r = end_hole_dia / 2; cc = sqrt(2)-1; r = diameter / 2; inner_r = r - wall_width; $fn=60; wishbone(); module wishbone() { difference() { difference() { union () { hull () { rotate([-90, 0, 0]) cylinder(r...
glb/cad_a53e5248cdb1.glb
Create a cable clamp plate for a 3020T router. Start with a rectangular base plate measuring 32mm wide, 87mm long, and 3mm thick, with 3mm fillet corners. At each of the four corners of the plate, create a vertical through-hole with a diameter of 3mm for mounting screws, positioned 20mm apart on the X-axis and 75.5mm a...
$fn = 96; d_clamp_screw = 3.5; d_clamp_screw_cap = 6.2; d_clamp_screw_nut = 6.2; d_clamp_hole = 11; clamp_length = d_clamp_hole + 2*d_clamp_screw_nut + 2*10; clamp_width = d_clamp_hole + 2*3; clamp_depth = d_clamp_hole*2; module rounded_box(l1,l2,height, fillet) { hull() for (i = [-1, 1]) for (j = [-1, 1]) ...
glb/cad_bc7a52150b0f.glb
Create a metric tapping tool model by extruding a specific 2D profile along a vertical axis to a height of 10mm. The profile is a polygon defined by two mirrored sinusoidal curves that create a threaded screw geometry. The first curve is generated by plotting points from 0 to 180 degrees where the radius varies based...
vis(10,5); module vis(Hauteur,Taille) { $fn=100; Pas = 0.125+0.125*Taille; List1 = [for (a=[0:1:180]) [ ( (-a/180*Pas/2+Taille/2) * sin(a)), (-a/180*Pas/2+Taille/2) * cos(a) ] ]; List2 = [for (a=[180:1:360]) [ ( ((a/180-2)*Pas/2+Taille/2) * sin(a)), ((a/180-2)*Pas/2+Taille/2) * cos(a) ] ]; color("s...
glb/cad_96f55d23044b.glb
Create a golf ball marker by constructing a hemispherical shell with an outer diameter of 50mm and an inner diameter of 46mm. This shell should be a hollow half-sphere, sliced horizontally at the equator. To the sides of this dome, add two flat wing-like extensions created by extruding a scaled circle—stretched to 31.5...
module ballcap() { union() { intersection() { difference() { sphere(25); sphere(23); } translate([-25,-25,0]) cube(100); } difference() { linear_extrude(height=2) scale([2.1...
glb/cad_8e0f41a12137.glb
Create a Vent Bracket for a car mount by starting with a central rectangular block measuring 20mm wide, 20mm deep, and 40mm tall. Hollow out the center of this block to create a U-shaped channel that is 3mm wide and 9mm deep, leaving walls that are 5.5mm thick on the sides and a base that is 9mm thick. Within the remai...
w=20; h=20; l=40; gap=3; th=gap*3; difference() { cube(size=[h,w,l],center=true); translate([th,0,gap*2]) cube(size=[h,w*2,l],center=true); translate([(th-h)/2,0,gap*2]) cube(size=[gap,w*2,l],center=true); translate([(th-h)/2,0,gap*2]) cube(size=[h*2,gap,l],center=true); translate([h/2-(h-th)/2,-4.5...
glb/cad_3bf769be8759.glb
Create a tripod foot cap designed to fit over a tapered rod. The main body is a hollow shell with a wall thickness of 2.85mm. The outer shape is based on a rod with a height of 17mm and rounded corners with a 2mm radius. The footprint is tapered, transitioning from a larger width of 14.5mm to a smaller width of 9.5mm, ...
$fn=50; rod_y=10.1; rod_x_large=14.5; rod_x_small=9.5; rod_radius=2; rod_height=17; rod_cut_angle=18.5; shoe_thickness=2.85; rubber_thickness=1.4; rubber_size=9.5; module rod(x_large, x_small, y, z, radius) { t_y=y-radius*2; t_x_l=x_large-radius*2; t_x_s=x_small-radius*2; minkowski() { l...
glb/cad_83c00bd9826b.glb
Create a tripod foot consisting of a hollowed-out shell designed to fit over a tapered rod. The overall exterior is a rounded rectangular prism with a height of 17mm. The base is a flat rectangle with rounded corners of 2mm radius, measuring 14.5mm by 10.1mm. The shape tapers slightly as it rises, narrowing to a top su...
$fn=50; rod_y=10.1; rod_x_large=14.5; rod_x_small=9.5; rod_radius=2; rod_height=17; rod_cut_angle=18.5; shoe_thickness=2.85; module rod(x_large, x_small, y, z, radius) { t_y=y-radius*2; t_x_l=x_large-radius*2; t_x_s=x_small-radius*2; minkowski() { linear_extrude(height=z-1) { ...
glb/cad_6958a6ca9ebb.glb
Create a 3D model of the Amazon AWS logo consisting of five identical geometric composite elements arranged in a specific pattern. Each element is composed of three distinct polygons: a central diamond shape with a width of 5.71mm and height of 2mm, a tall vertical rectangle 2.86mm wide and 10mm high, and a second vert...
module aws_cube(size,scale_param){ w=size[0]; h=size[1]; union(){ translate([0,h*3/2,0]) offset(r=scale_param) polygon([ [-w,0], [0,h], [w,0], [0,-h], ]); translate([-w/2,-h,0]) offset(r=scale_param) polygon([ ...
glb/cad_2d8aa68e6d37.glb
Create a 3D Amazon AWS logo consisting of a white base plate and five orange geometric elements. The base is a flat white plate measuring 40mm by 32mm with a thickness of 1mm, featuring rounded corners with a radius of 0.5mm. On top of this base, place five identical orange shapes, each 1mm thick. Each orange shape i...
module aws_cube(size,scale_param){ w=size[0]; h=size[1]; union(){ translate([0,h*3/2,0]) offset(r=scale_param) polygon([ [-w,0], [0,h], [w,0], [0,-h], ]); translate([-w/2,-h,0]) offset(r=scale_param) polygon([ ...
glb/cad_2a6715e34d6b.glb
Create a dual X-carriage idler mount for a Prusa Mendel printer. The model consists of two mirrored symmetrical halves. For one half, construct a central block measuring 5mm by 40mm by 40mm. To this block, attach two rectangular extensions: one measuring 25.5mm by 7mm by 4.4mm centered at [21, -21.5, 25.3], and another...
include <configuration.scad> corection = 1.17; use <x-end.scad> support_beam_offset=(linear==true) ? 6:0; module xendidler(linear){ xend(true,linear); translate(v = [0, 0, 12.5]){ mirror(){ difference(){ union(){ translate(v = [21, -21.5, 25.3]) cube(size = [25.5,7,4.4], center = true); transla...
glb/cad_f90c511dfeda.glb
Create a Prusa Mendel X-carriage. Start with a central rectangular block 40mm long, 15.8mm high, and 25mm wide. Modify the top sides of this block by removing two mirrored sections; each section is a block 10mm wide and 20mm high, rotated 25 degrees along the length of the carriage. Add two support beams to the center...
include <configuration.scad> corection = 1.17; use <bushing.scad> use <teardrop.scad> axis_diameter_real=4; axis_diameter_larger=4.35; pressure_pad_height=2.5; add_strenght=1; xend_height=15.8; xend_length=40; solid_end_width=3; slot_width=1; pad_height=6.5; pad_width=7; pad_connector_height=3.3; bushing_support_widt...
glb/cad_17af4c237228.glb
Create a dual X-carriage motor mount for a Prusa Mendel printer. The model consists of two mirrored carriage components. For each carriage, create a main body that includes a motor mount section. The motor mount is a plate with a thickness of 9mm. Within this plate, create four mounting holes for a NEMA 17 motor. Thes...
include <configuration.scad> corection = 1.17; use <x-end.scad> difference (){ union () { mirror() xend(true,linear); translate(v = [0, 0, 0]) positioned_motor_mount(); scale([-1,1,1]) translate(v = [0, 0, 0]) positioned_motor_mount(); } positioned_motor_mount_holes(); scale([-1,1,1]) positioned_mo...
glb/cad_6dc0d07507ac.glb
Create a bracket for an inductive sensor consisting of a circular base and a rectangular arm. Start by creating a hollow cylinder with an outer diameter of 28mm, an inner diameter of 19mm, and a height of 8mm. Attach a rectangular bar to this ring that is 4mm thick, 8mm high, and 65mm long, centered along the ring's ax...
bolt_separation = 33; bolt_diameter = 4; thickness = 4; difference() { translate([2.5, -12, 0]) cylinder(d = 28, h = 8, centre = true); translate([2.5, -12, 0]) cylinder(d = 19, h = 8, centre = true); } difference() { linear_extrude(height=8) square ([thickness, 65], centre = true); rotate ([0, 90, 0...
glb/cad_35aa8e7a134b.glb
Create a sensor bracket by starting with a rectangular bar 4mm thick, 8mm high, and 72mm long. At one end of the bar, center a hollow cylinder with an outer diameter of 28mm and an inner diameter of 19mm, ensuring the cylinder is also 8mm high and aligned with the bar's thickness. Along the length of the rectangular ba...
bolt_separation = 33; bolt_diameter = 4; thickness = 4; difference() { translate([2.5, -12, 0]) cylinder(d = 28, h = 8, centre = true); translate([2.5, -12, 0]) cylinder(d = 19, h = 8, centre = true); } difference() { linear_extrude(height=8) square ([thickness, 72], centre = true); rotate ([0, 90, 0...
glb/cad_dec3132cc1cc.glb
Create a marble elevator housing by constructing a main outer cylinder 40mm tall with a radius of 19mm. Inside this outer shell, create a second concentric cylinder 40mm tall with a radius of 13mm, offset by 16mm along the y-axis. From this combined structure, remove a central vertical core by subtracting a cylinder 10...
difference() { union(){ cylinder(40,19,19,$fn=130); translate([0,16,0]) cylinder(40,13,13,$fn=130); } translate([0,0,-1]) cylinder(100,17.2,17.2,$fn=130); translate([0,16,-1]) cylinder(100,11.2,11.2,$fn=130); }
glb/cad_84e60e4000e5.glb
Create a marble elevator housing by constructing a tall, hollow cylinder with an outer diameter of 34mm and a height of 140mm. This main body is formed by the union of two concentric cylinders: one with a 17mm radius and another with an 11mm radius, shifted 16mm along the Y-axis. To create the open-ended tube effect, r...
difference() { union(){ cylinder(140,17,17,$fn=130); translate([0,16,0]) cylinder(140,11,11,$fn=130); } translate([0,0,-1]) cylinder(150,15,15,$fn=130); translate([0,16,-1]) cylinder(150,9,9,$fn=130); }
glb/cad_65fc5d422596.glb
Create a marble elevator housing consisting of a main cylindrical body and a mounting base. Start with a primary cylinder 30mm high with an outer diameter of 34mm (17mm radius) and an inner bore of 22mm (11mm radius). Position a second, taller cylinder 50mm high with an outer diameter of 38mm (19mm radius) and an inner...
difference() { union(){ cylinder(30,17,17,$fn=130); translate([0,16,0]) cylinder(30,11,11,$fn=130); cylinder(50,19,19,$fn=130); translate([0,16,0]) cylinder(50,13,13,$fn=130); translate([-10,10,0]) cube([20,30,35]); } translate([0,0,20]) cylinder(32,17.2,17.2,$fn=130); translate([0,16,20]) cylinder(32,11.2,11.2,$...
glb/cad_f7b8b5977de5.glb
Create a marble elevator consisting of a central vertical shaft and a circular base. Start by creating a circular base plate with a diameter of 50mm and a height of 2mm. Centered on this base, place a vertical cylinder with an outer diameter of 40mm and a height of 170mm. Inside this main cylinder, create a hollow ve...
difference() { union(){ cylinder(50,17,17,$fn=130); translate([0,16,0]) cylinder(50,11,11,$fn=130); cylinder(6,40,40,$fn=130); cylinder(30,19,19,$fn=130); translate([0,16,0]) cylinder(30,13,13,$fn=130); cylinder(3,40,40,$fn=130); translate([-10,20,0]) cube([20,30,20]); } translate([0,0,3]) cylinder(170,15,15,$fn=130...
glb/cad_d7d5ab856031.glb
Create a marble elevator base consisting of a circular platform and a central cylindrical housing. Start by creating a flat circular disc with a diameter of 52mm and a thickness of 2mm. Centered on this disc, add a vertical cylinder with an outer diameter of 19mm and a height of 26mm. This central cylinder must be holl...
difference() { union(){ cylinder(26,19,19,$fn=130); cylinder(3,40,40,$fn=130); } translate([0,0,-1]) cylinder(50,16.5,16.5,$fn=130); rotate([90,0,0]) translate([0,5,-25]) cylinder(10,2,2,$fn=130); translate([23,23,-1]) cylinder(10,2,2,$fn=130); translate([-23,23,-1]) cylinder(10,2,2,$fn=130); translate([23,-23,-1]) ...
glb/cad_dfb952c16a2b.glb
Create a cylindrical motor mount for a marble elevator. Start with a main solid cylinder 20mm in diameter and 15mm in height. Center a vertical hole 10mm in diameter through the entire height of the cylinder. At the bottom face, create a 2mm diameter hole centered on the axis to accommodate a fixing bolt. On the side o...
difference() { union(){ cylinder(15,10,10,$fn=130); } translate([0,0,-1]) cylinder(20,2,2,$fn=130); translate([0,0,7.5]) cylinder(8,3,3,$fn=130); rotate([90,0,0]) translate([0,3,-20]) cylinder(30,1,1,$fn=130); rotate([90,0,0]) translate([0,11,-1]) cylinder(20,1.5,1.5,$fn=130); translate([-3,-7,-1]) cube([6,3,20]); }
glb/cad_9f24051e0af0.glb
Create a circular base plate for a marble elevator with a diameter of 70mm and a thickness of 3mm. At the exact center of the plate, create a vertical cylindrical hole with a diameter of 12mm that passes completely through the plate. Around this central hole, place eight smaller vertical holes, each with a diameter of ...
difference() { union(){ cylinder(3,35,35,$fn=130); } translate([0,0,-1]) cylinder(20,6,6,$fn=130); translate([7.5,7.5,-1]) cylinder(20,2,2,$fn=130); translate([-7.5,7.5,-1]) cylinder(20,2,2,$fn=130); translate([7.5,-19.5,-1]) cylinder(20,2,2,$fn=130); translate([-7.5,-19.5,-1]) cylinder(20,2,2,$fn=130); translate([2...
glb/cad_237b99b89ba1.glb
Create a customizable soap dish by constructing a shallow, bowl-like vessel. Start with a spherical shell created by subtracting a sphere of radius 297mm from a larger sphere of radius 300mm, then truncate this shell by intersecting it with a cube of 200mm per side and a height of 100mm to create a flat-bottomed basin....
$fn = 12; cot_cub = 200; ray_sph = cot_cub/2*3; ray_cyl = cot_cub/2; ray_trou = cot_cub/50; haut_trou = cot_cub/10; ep_bor = 3; translate([0,0,0]) union() { difference() { union() { translate([0,0,ray_sph-cot_cub/20]) rotate([180,0,0]) intersection() { ...
glb/cad_4fa789af2d76.glb
Create a printable bushing block consisting of a central bushing and an outer housing. First, construct the bushing: create a hollow cylinder with an outer diameter of 15mm and a height of 23.8mm. The inner hole should have a diameter of 8.2mm. To create the flexible support structure, remove material from the outer ...
lm8uu_od = 15; lm8uu_length = 24; lm8uu_id = 8.2; layer_height = 0.2; extrusion_width = 0.35; overlap_ratio = 0.15; wall_width = extrusion_width * 2 - extrusion_width * overlap_ratio; echo("wall_width: ",wall_width); fins = 5; contact_percent = 20; twist_percent = 50; housing_width = 35; housing_length = lm8uu...
glb/cad_4a629f56915d.glb
Create a pirate ship model based on a scale of 60mm. Construct the hull by creating a large, elongated cylinder with a radius of 15mm and a height of 10mm, then scale it by 0.7 in X and 2.1 in Y. Hollow out the center by removing a smaller cylinder of the same proportions and subtracting several rectangular blocks fr...
th = 0.6; shipscale=60; fn=64; ship(); module ship(size=shipscale) { sails(size); hull(size); rudder(size); bowsprit(size); % translate([0,0,size/4]) cube(size, center=true); } module rudder(rh) { intersection() { translate([0,rh*-25/64,rh*-10/64]) cube([th,rh*5/32,rh*13/64], center=true); translate([...
glb/cad_056d6ca580df.glb
Create a toy lightsaber hilt by generating a complex revolved profile around the Z-axis. The profile starts at the base with a point at [0,0], extending to [8,0], then slopes up to [12,6], [12,12], and [10,18]. The shape then rises vertically to [10,55], shifts slightly to [9,55], [9,57], [10,57], [10,59], [9,59], [9,6...
difference () { union() { rotate_extrude($fn=100, convexity=10) { polygon (points = [ [0,0], [8, 0], [12, 6], [12, 12], [10, 18], [10, 55], [9, 55], [9, 57], [10, 57], [10, 59], [9, 59], [9, 61], [10, 61], [10, 63], [9, 63], [9, 65], [10, 65]...
glb/cad_fdf49a746056.glb
Create a toy lightsaber hilt by combining several geometric volumes. Start with a main body formed by rotating a complex polygon around the Z-axis to create a stepped profile: the base is a cylinder with a 10mm radius extending to 70mm height, which then narrows to a 6mm radius for a short section before stepping up to...
difference () { union() { rotate_extrude($fn=100, convexity=10) { polygon (points = [ [0,0], [10, 0], [10, 70], [6, 70], [9, 75], [7, 75], [4, 72], [2, 72], [1, 76], [0, 76] ]); } translate([6, 0, 55]) cube([10, 8, 20], center=true); difference() { sphere(r=10...
glb/cad_c41580ed98cd.glb
Create a curved lithophane panel with a square footprint of 99mm by 99mm. The panel should be constructed from a base thickness of 0.6mm (three layers at 0.2mm each), with an additional variable thickness added to the surface based on an image to create a 3D relief. The total maximum height of the relief is 4mm. The ...
bend_factor=1; sz=100; num_face=20; xtra=0; image_file = "image-surface.dat"; hole_diameter = 0; hole_border = 0; lithophane_border = 0; layer_height = 0.2; number_of_layers = 20; s=0.01; length = 99; width = 99; z=sz/num_face; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; height = layer_h...
glb/cad_bda5dd73cecc.glb
Create a parametric dust collector adapter consisting of two concentric cylindrical sections connected by a tapered transition. The first section is a hollow cylinder with an inner diameter of 58.38mm (calculated as 57.4mm multiplied by a 1.017 clearance factor and a 1.005 shrinkage scale) and a wall thickness of 4.02m...
od_pipe_1 = 57.4; len_pipe_1 = 40; od_pipe_2 = 42.1; len_pipe_2 = 30; transition_length = 20; wall_thickness = 4; clearance = 1.017; taper = 1; scale = 1/0.995; function dim(x) = scale * x; r1 = dim(od_pipe_1) / 2; r2 = dim(od_pipe_2) / 2; len1 = dim(len_pipe_1); len2 = dim(len_pipe_2); tlen = dim(transitio...
glb/cad_958dbaa5a478.glb
Create a fan mount for a JHead hotend. Start with a hexagonal prism that is 30mm tall, with a radius of 16mm and 6-sided facets. Intersect this with a central rectangular block measuring 32mm by 23mm with a height of 4.5mm. Remove a central vertical cylinder with a radius of 6mm and a height of 20mm. Above this, remo...
include <configuration.scad>; barrel_radius = 8; barrel_height = 18; groove_radius = 6; groove_height = 4.5; fan_offset = 15; module hotend_fan() { difference() { union() { translate([0, 2 - fan_offset, 0]) cylinder(r=16, h=30, $fn=6); translate([0, -1.5, groove_height/2]) cube(...
glb/cad_725cfbd984d7.glb
Create a Tube Connector with a captured nut feature. Start by creating a hollow cylinder with an inner diameter of 12.7mm and an outer diameter of approximately 20.6mm, extending to a total height of 50.8mm. On the exterior wall of this cylinder, centered at half the height, integrate a hexagonal nut housing. This ho...
joinfactor = 0.1; goldenratio = 1.618; connector(IR=1/2*25.4, length = 2*25.4); module tube(IR, OR, height) { difference() { cylinder(r=OR, h=height); translate([0,0,-joinfactor]) cylinder(r=IR, h=height+joinfactor*2); } } module nutslot(OR, facets=6, thickness=3, scaler=goldenratio) { size = OR *2* scale...
glb/cad_23a4637769a1.glb
Create a Customizable Token by constructing a low-facet cylinder with a diameter of 40mm and a height of 3mm. To create the rim, remove a smaller concentric cylinder from the top of the main body, leaving a 4mm wide rim around the edge. This inner cylinder should be recessed 1mm into the token, resulting in a flat ci...
token_width = 40; token_rim_size = 4; token_thickness = 3; token_recess = 1; input ="no_input"; stencil_thickness = 1; stencil_width = 45; margin = 10; offX = 0; offY = -1.5; module void() {} dispo_width = stencil_width - 2*margin; points_array = (input=="no_input"? [[238,300],[[121.78,-1],[121.24,-0.34],[121.34,...
glb/cad_e308b103d1e9.glb
Create a pentagonal key cover with a total diameter of 28mm and a height of 6mm. The main body is a regular pentagon with a thickness of 6mm, but the top and bottom faces are recessed by 1mm, leaving a 4mm thick wall around the perimeter. Inside the body, carve out a pentagonal void centered in the middle with a diam...
$fn = 120; export2d = false; mmscale = false; totaldiameter = 28; indent = 1; tall = 6; edge = 2; totalradius = totaldiameter/2; keysize=25; keyheight=2; innerRadius = sin(54)*totaldiameter; slitoffset = innerRadius - 2; holediameter = 5; holeedge = 2; holecenter = [innerRadius/2 - 6,0,0]; module pentagon(tall=t...
glb/cad_04d4f14e73cb.glb
Create a customizable token by starting with a main cylinder 40mm in diameter and 4mm thick. Carve a shallow circular recess into the top face of this cylinder, 1mm deep and 36mm in diameter, to create a rim 4mm wide around the edge. Centered within this recess, add 3D text that reads "text" using a bold font. The text...
token_width = 40; token_rim_size = 4; token_thickness = 4; token_recess = 1; font = "Impact"; letter_size = 15; letter_height = 1; letter_text = "text"; x=0; y=0; module void() {} difference() { cylinder(h=token_thickness, d=token_width); translate([0,0,token_thickness-token_recess]){ color("blue"...
glb/cad_897070242898.glb
Create a t-shank jigsaw blade handle consisting of a main body and a matching plug. For the main body, start with a cylinder 30mm high with a 10mm radius. Add a sphere with a 20mm radius centered at a height of 65mm. From the base of the cylinder, extend a conical section 45mm high that flares from a 10mm radius at the...
module handle() { $fn=32; cylinder(r=10, h=30); translate([0, 0, 65]) sphere(r=20); cylinder(r=11, h=3); translate([0, 0, 11]) cylinder(r1=10, r2=15, h=45); translate([0, 0, 11]) cylinder(r1=12, r2=10, h=9); } module tShank(d=1, e=0) { translate([-2.7 + e, 0, 0]) cube([5.4 - e * 2, d, 4.6 + e...
glb/cad_258e0a7f66ca.glb
Create a Customizable Deck Box consisting of a main rectangular container and a matching lid. The main box is a hollow rectangular prism with outer dimensions of 73mm in width, 124mm in height, and 87mm in depth. The walls are 1mm thick. On the front exterior face, center a decorative stencil pattern that is 50mm wid...
card_count = 40; card_type = 69; input ="default_TNH"; image_size = 50; Move_Image_Left_Right = 33; Move_Image_Up_Down = 45; image_rotation = 0; use <write/Write.scad> use <MCAD/triangles.scad> use <utils/build_plate.scad> stencil_thickness =1.5 ; offX = 3; offY = 0; margin = 10; dispo_width = image_size; poin...
glb/cad_752e494df7bf.glb
Create a filament spooler bearing holder by constructing five identical units stacked linearly with a 12mm offset between each. For a single unit, start with a rectangular base measuring 40mm by 10mm with a thickness of 1.5mm. Centered on the top surface of this base, add a 10mm tall extruded polygon with a footprint d...
module bearingHolder() { rotate( [180,0,0] ) difference(){ union() { cube([40,10,1.5]); translate([20,0,1]) rotate([-90,0,0]) trap(); } translate([5,5,-1]) cylinder(r=1.6,h=3,$fn=20); translate([35,5,-1]) cylinder(r=1.6,h=3,$fn=20); translate([20,11,-5]) rotate([90,0,0]) cylinder(r=4,h=12,$fn=20); } } for ( i = [0 ...
glb/cad_cba5930ebf56.glb
Create a spirographic coaster with a total height of 2mm. The design is formed by repeating a specific geometric ring 15 times around a central point. Each ring is created by taking a 20mm radius circle and removing a concentric inner circle with an 18mm radius, resulting in a wall thickness of 2mm. Each of these rings...
num_sides = 8; num_shapes = 15; coaster_diameter = 80; thickness = 2; height = 2; center_hole_diameter=8; outer_radius = coaster_diameter/4; inner_radius = outer_radius - thickness; center_hole_radius = center_hole_diameter/2; $fn=num_sides; linear_extrude(height) difference() { for(i=[0:num_shapes]){ pos...
glb/cad_6ef1102c1e0a.glb
Create a keyboard foot replacement with a main body and two protruding pegs. The main body is a rectangular block 17.34mm wide, 13.64mm high, and 26.15mm long. The front end of this body is rounded with a radius of 5.6mm. At each side of the body, centered along the width, add a cylindrical peg with a diameter of 3.2...
rotate([180,0,0]) { difference() { union() { translate([0,12.25,3.20]) rotate([90,0,0]) union() { cylinder(d=3.25, h=24.5,$fn=24); translate([0,0,3.58]) cylinder(d=6.40, h=17.34, $fn=24); } translate([0,17.34/2,0]) rotate([90,0,0]) linear_extrude (17.34) polygon (points = [ ...
glb/cad_04960c6808ac.glb
Create a parametric pen holder consisting of a flexible plastic chassis and a mounting system for an aluminum extrusion. Construct the main body as a mirrored pair of plastic arms. Each arm is 80mm long with a base thickness of 4mm and a holder thickness of 8mm. The arms feature a central cutout to allow for Z-axis f...
$fs = 0.1; $fa = 2; module rsquare(size, r=5, center=false) { t = (center==true ? [0,0,0] : size/2); translate(t) union() { for(x=[-1,+1]) for(y=[-1,+1]) scale([x,y,1]) translate([size[0]/2-r,size[1]/2-r,0]) circle(r=r, ce...
glb/cad_b28e2723fe27.glb
Create a generic fan guard with a total thickness of 2mm. Start with a square base plate measuring 30mm by 30mm. Round the four corners of this plate with a radius of 1mm. At each of the four corners, center a circular mounting hole with a diameter of 3mm. These holes should be positioned such that the distance betwee...
fan_side_length=30; mount_hole_width=24; mount_hole_d=3; mesh_kind="hex"; mesh_holes_d=5; mesh_thickness=1; mesh_clearance=1; mesh_density_ratio= 98; solid_outer_border=1; outer_roundness=50; mesh_offset= 68; tol=0.1+0; $fa=1+0; $fs=0.33+0; dholes= mesh_holes_d; marginhole= (fan_side_length-mount_hole_width...
glb/cad_f13ac0aa0d68.glb
Create a Customizable Hard Hat Insert consisting of a text plate attached to a mounting tab. First, create the text geometry. Generate up to four lines of centered text using a serif font with a size of 17mm and an extrusion height of 3.5mm. Set the horizontal character spacing to 1.1 and the vertical line spacing to...
tabZ = 3.5; tabThick = 1.5; line4 = ""; line3 = ""; line2 = "Custom"; line1 = "Thing"; FontName="Bree Serif"; FontSize = 17; FontSpace = 1.1; FontExtrude = 3.5; LineSpace = 1.1; PostShift = 2; BarY = 1.5; BarZ = 1.5; CatchThemAll = 1; XT1 = -2; YT1 = 11; XS1 = 3.5; YS1 = 5; XT2 = 0; YT2 = 0; XS2 = 0; ...
glb/cad_20a4f5813271.glb
Create a Customizable Hard Hat Insert consisting of a mounting tab and extruded 3D text. First, construct the mounting tab. Create a base rectangular plate 28mm wide by 16mm long with a thickness of 3.5mm. Round the two top corners with a radius of 1mm. To create the clip mechanism, remove a central rectangular secti...
tabZ = 3.5; tabThick = 1.5; line4 = ""; line3 = ""; line2 = "Custom"; line1 = "Thing"; FontName="Bree Serif"; FontSize = 17; FontSpace = 1.1; FontExtrude = 3.5; LineSpace = 1.1; PostShift = 2; CatchThemAll = 1; XT1 = -2; YT1 = 10; XS1 = 3.5; YS1 = 5; XT2 = 0; YT2 = 0; XS2 = 0; YS2 = 0; XT3 = 0; YT3 = ...
glb/cad_72d6a307b05f.glb
Create a Customizable Hard Hat Insert consisting of a rectangular base tab and raised 3D text. Start by creating the base tab: a rectangular plate 28mm wide and 16mm long with a thickness of 2.8mm. The top of the plate should be mostly hollowed out by a centered rectangular cutout of 28.6mm by 17mm, leaving a thin wa...
tabZ = 2.8; tabThick = 1; line4 = ""; line3 = ""; line2 = "Custom"; line1 = "Thing"; FontName="Bree Serif"; FontSize = 12; FontSpace = 1.1; FontExtrude = 3; LineSpace = 1.1; PostShift = 2; CatchThemAll = 1; XT1 = -1.5; YT1 = 7; XS1 = 4; YS1 = 3; XT2 = 0; YT2 = 0; XS2 = 0; YS2 = 0; XT3 = 0; YT3 = 0; XS...
glb/cad_c560bab125ad.glb
Create a Customizable Hard Hat Insert consisting of a mounting tab and embossed text. First, construct the mounting tab. Create a rectangular base 28mm wide, 16mm long, and 2.8mm thick. Round the two front corners with a radius of 1mm. Remove a central rectangular section from the base, leaving a wall thickness of 1m...
tabZ = 2.8; tabThick = 1; line4 = ""; line3 = ""; line2 = "Custom"; line1 = "Thing"; FontName="Bree Serif"; FontSize = 12; FontSpace = 1.0; FontExtrude = 3; LineSpace = 1.1; OrphanSize = 0.95; stlortext = "text"; stlfile = "koss_insert.stl"; stlshift = [0,9,0]; stlscale = [1,1,1]; stlrotate = [0,0,0]; ...
glb/cad_c870925b88ed.glb