Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a delta effector carriage for magnetic supports. Start with a main rectangular block measuring 15mm wide, 15mm deep, and 60mm high. Attach a thin vertical strip to the side, extending the width by 4mm and the depth by 4mm, while adding a smaller 1.5mm wide by 7mm deep vertical insert. Carve a horizontal cylind...
h=60; difference() { difference() { union() { cube([15,15,h]); translate( [-3.5,15/2-2,0]) #cube([4,4,h]); translate( [-3,15/2-3.5,0]) #cube([1.5,7,h]); } translate([-1,15/2,h/2]) rotate([0,90,0]) cylinder(r=1.7,h=20); translate([-10,15/2,h/2]) rotate([0,90,0]) cylinder(r=3.3,h=10+3,$fn=6); translate([-5,15/2,h/2]) rot...
glb/cad_7415920c58f7.glb
Create a pluggable tea light candle holder consisting of a square base and four foldable side panels. The base is a square with a side length of 60mm and a thickness of 3mm. Centered on this base, create a cylindrical hole with a radius of 21mm and a height of 5mm. Construct four rectangular frames, each 57mm wide and...
sidelength=60; height=55; text1=["frohe","Weihnachten"]; text2=["einen","guten", "Rutsch"]; text3=["ein gutes", "neues Jahr",]; text4=["viel Glück", "&", "Gesundheit"]; textsize=[6.5,7.5,7.5,6.5]; font=["Pacifico","Pacifico","Pacifico","Pacifico"]; what_to_print="rest"; borderthickness=2; borderwidth=4; windowthic...
glb/cad_193987a84a66.glb
Create a Venturi conduit replacement consisting of a main vertical cylinder and an angled secondary tube. Start with a primary vertical cylinder 45mm tall with an outer diameter of 10.5mm and a centered longitudinal hole 6mm in diameter. At a height of 45mm, add a connector piece that transitions from the 10.5mm diam...
diametrecylindre = 10.5; diametretroucylindre = 6; hauteurcylindreprincipal = 45; hauteurcylindresecondaire = 20; diametrecylindresecondaire = 9.5; diametretroucylindresecondaire = 6.5; anglecylindresecondaire = 30; hauteurintersection = 45; hauteurconnecteur = 16; diametreconnecteur = 10; epaisseurconnecteur = 3.5 ; h...
glb/cad_b786a5ce97bc.glb
Create an Ultrasonic Levitator Bracket consisting of two identical circular mounting clamps connected by a flat rectangular base. Each clamp is a cylinder with an outer diameter of 16.51mm and a height of 12.7mm. Create a central hole through each cylinder with a diameter of 15.875mm to accommodate the transducers. T...
gap=15.875; $fn=50; in=25.4; rotate(100)stand(); module stand() { Length=.5*in; Dia = .625*in + .03*in; throat=1*in; wt=.25*in; t=.06*in; tab=.3*in; H_stand=.75*in; Dhole1=.15*in; Dhole2=.2*in; Dhole3=Dhole2; difference() { union() { half...
glb/cad_9626a68a27b3.glb
Create three Tungsten Level Cups spaced 20mm apart along the X-axis. Each cup is a hollowed cylindrical gauge. To construct a single cup, start with a main outer cylinder with a radius of 8.45mm and a height of hi+4mm (where hi is 6mm for the first, 7mm for the second, and 8mm for the third), centered on the Z-axis and...
q = 10; CupRadius = 6.45; module tungstenLevel(hi) { difference() { translate([0, 0, -2]) cylinder(r=CupRadius+2, h=hi+4, center=false, $fn=4*q); translate([0, 0, 0]) cylinder(r=4, h=hi+2.1, center=false, $fn=4*q); translate([0, 0, hi]) cylinder(r=CupRadius+0.4, h=2.1, cente...
glb/cad_1e5195fefd02.glb
Create three Tungsten Level Cups of varying heights. Each cup is based on a main outer cylinder with a radius of 8.45mm and a height that varies for each of the three versions: 7mm, 8mm, and 9mm respectively. For each cup, center a vertical hole with a radius of 4mm through the middle. At the top of each cylinder, cr...
q = 10; CupRadius = 6.45; module tungstenLevel(hi) { difference() { translate([ 0, 0, -2]) cylinder(r=CupRadius+2, h=hi+4, center=false, $fn=4*q); translate([ 0, 0, 0]) cylinder(r=4, h=hi+2.1, center=false, $fn=4*q); translate([ 0, 0, hi]) cylinder(r=CupRadius+0.4, h=2.1, ...
glb/cad_79aa981c6d0e.glb
Create a set of four Tungsten Level Cups, each a hollowed cylindrical gauge. For each cup, start with a main cylinder of radius 8.45mm and a height of 7mm. Remove a central vertical hole with a radius of 4mm. At the top of the cylinder, create a shallow centering recess with a radius of 6.85mm and a depth of 2.1mm. To ...
q = 10; CupRadius = 6.45; module tungstenLevel(hi) { difference() { translate([ 0, 0, -2]) cylinder(r=CupRadius+2, h=hi+4, center=false, $fn=4*q); translate([ 0, 0, 0]) cylinder(r=4, h=hi+2.1, center=false, $fn=4*q); translate([ 0, 0, hi]) cylinder(r=CupRadius+0.4, h=2.1, ...
glb/cad_a385568a0301.glb
Create a parametric curtain rod holder with a width of 15mm and a thickness of 7mm. The holder consists of a flat base and an angled arm. Start with a rectangular base 50mm long and 7mm thick. At one end, create an arm that extends 70mm from the bend to the center of the rod clamp, angled upwards at 30 degrees. At th...
hdWidth = 15.0; hdThick = 7.0; hdLengthBot = 50.0; hdLengthTop = 70.0; hdAngleTop = 30.0; hdChamfLen = 2.0; clDiaIn = 11.5; clOffset = 0.0; clDia = clDiaIn + 2*hdThick; scDia = 4.0; scDist = ...
glb/cad_ec19f20d7071.glb
Create an Animated Halloween Prop base consisting of a rectangular platform and a supporting gear housing. Start with a rectangular base plate measuring 90mm by 180mm with a thickness of 15mm. Centered on this plate, create a vertical cylindrical shaft. At the bottom of the plate, carve out a central hole with a radius...
use <MCAD\servos.scad>; use <MCAD\bearing.scad>; use <MCAD\involute_gears.scad>; use <arduino.scad>; width =20.5; length=42; height=39.8; screwspaceing = 10; screwflaplen = 7.5; screwflapheight = 3.2; screwflapposition = 29; screwholeoffset = 2.75; shaftlenghtoffset = 10.5; shaftheight=8.5; cablewidth = 7;...
glb/cad_8d5d8acb57e8.glb
Create a custom name plate consisting of a flexible frame and embedded 8-bit style text. First, construct the frame. The main body is a rectangular plate with a total length of 120mm (calculated as 4 letters at 30mm each) and a height of 48mm. The frame has a thickness of 2.5mm. On the left and right edges, add integ...
chars = ["I", "a", "n"]; char_count = 3; letterSize = 30; frame = 1; module partB() { translate(v = [-(letterSize / 2 - char_count * letterSize / 2), 24, 0]) rotate(a = - 90, v = [0, 0, 1]) scale(v = [letterSize, -letterSize, 1]) 8bit_str(chars, char_count, 1 / 8, 2.5); } if (frame) { partA(); }else { color([0...
glb/cad_7e5a638f81c1.glb
Create a lid for a PET bottle and a matching disk with hose barbs. First, construct the lid. Create a main cylinder with an outer diameter of 32mm and a total height of 11.5mm. The top surface should have a wall thickness of 1.5mm. Inside the lid, create a negative trapezoidal thread starting 1.5mm from the bottom, w...
include <Thread_Library.scad> $fs=0.75;$fa=5; WhatToPrint = 3; ExtDiameter = 32; TotalHeight = 11.5; TopWall=1.5; HoseBarbDiskHeight = 1; HoseBarbTotalHeight = 9; HoseBarbDiameter = 6; HoseBarbInnerDiameter = 4; HoseBarbOffset = 6; ThreadOuterDiameter=27.7; ThreadInnerDiameter=26.0; ThreadPitch=2.7; ToothHeight=1....
glb/cad_ed2d227bb727.glb
Create a Tower bearing holder by constructing a hollow rectangular prism with external dimensions of 18mm in length, 18mm in width, and 56mm in height. Center a square hole through the entire height of the prism with dimensions of 12mm by 12mm. At the base of the prism, add four thin circular discs, each with a radius ...
ext_prism_height=56; ext_prism_l=18; ext_prism_w=18 ; hole_prism_height=ext_prism_height+2; hole_prism_l=12; hole_prism_w=12; union(){ #translate(v=[0,0,-ext_prism_height/2])mouse_ears(); difference() { cube ([ext_prism_l, ext_prism_w, ext_prism_height], center=true); #cube ([hole_prism_l, hole_pris...
glb/cad_20ac3218e03a.glb
Create a hollow cylinder with an outer radius of 7.5mm and a total height of 56mm, centered vertically. The cylinder should have a 20-facet resolution. Remove a concentric inner core to create a bore with a radius of 5.75mm and a height of 58mm, ensuring the hole passes completely through the shape. At the base of the ...
a_bit=2; ext_cylinder_height=56; ext_cylinder_radius=7.5; bore_cylinder_height=ext_cylinder_height+a_bit; bore_cylinder_radius=ext_cylinder_radius-1.75; union(){ #translate(v=[0,0,-ext_cylinder_height/2])mouse_ears(); difference() { cylinder (h=ext_cylinder_height, r=ext_cylinder_radius, center=true, $fn=20); ...
glb/cad_e9547c2bdd10.glb
Create a 3D model of a DHT22 temperature and humidity sensor. Start with a main rectangular body measuring 15.4mm in width, 20.2mm in length, and 8mm in height, featuring rounded corners with a radius of 0.5mm. On the bottom face, center a vertical cylindrical hole with a diameter of 2.5mm and a height of 10mm. Addit...
q=4; module rcube(siz, rad) { xi = max(0,siz[0]/2-rad); yi = max(0,siz[1]/2-rad); hi = siz[2]; hull() { translate([ xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([-xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([ xi,-yi,0]) cylinder(r=rad...
glb/cad_22c71d40c9bc.glb
Create a 3D model of an MQ-2 or MQ-135 gas sensor. Start with a rectangular base plate measuring 19.5mm by 33.5mm with a thickness of 1.6mm. At the center of the plate, place a cylindrical sensor assembly. This assembly consists of a lower cylinder with a diameter of 19.5mm and a height of 5.8mm, topped by a smaller, t...
q=4; module rcube(siz, rad) { xi = max(0,siz[0]/2-rad); yi = max(0,siz[1]/2-rad); hi = siz[2]; hull() { translate([ xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([-xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([ xi,-yi,0]) cylinder(r=rad...
glb/cad_206d4d819792.glb
Create a sensor support mount for a 3D printer frame. The main body is a flat plate with a thickness of 4mm. Construct the base by combining several rounded rectangular sections: a central area of 25mm by 110mm and a perpendicular cross-section of 50mm by 20mm, both with corner radii of 2.5mm. At the top end, create a...
q=4; module rcube(siz, rad) { xi = max(0,siz[0]/2-rad); yi = max(0,siz[1]/2-rad); hi = siz[2]; hull() { translate([ xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([-xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([ xi,-yi,0]) cylinder(r=rad...
glb/cad_bf8283a1be92.glb
Create a safety cutoff support part consisting of a top section and a bottom section. The top section is centered around a main rectangular block measuring 60mm x 7mm x 7mm. Attached to this is a smaller rectangular block measuring 15mm x 5mm x 7mm. This top assembly features two holes with a radius of 2mm, positione...
a_bit=3; top_part=1; bottom_part=1; second_top_part=0; second_bottom_part=0; c_supp_x=60; c_supp_y=7; c_supp_z=7; c_top_x= 15; c_top_y= 5; c_top_z=c_supp_z; c_height_x=c_top_x; c_height_y=4; c_height_z=45; c_bottom_x=c_top_x; c_bottom_y=17; c_bottom_z=c_height_y; radius_hole_top=2; L_betw_holes=44; pos_hole_bo...
glb/cad_e18eaf444167.glb
Create a Mendel Light Holder by constructing a main cylindrical body with an outer radius of 17.5mm and a height of 10mm. Hollow out the center of this cylinder with a concentric hole of radius 15.7mm and a height of 11mm to create a ring. Add a rectangular base extending from the side of the ring. This base should b...
$fn = 20; light(); module holder(){ difference(){ union(){ cube([45, 10, 3]); translate([0, 5, 0]) cylinder(r=5, h=3); translate([45, 5, 0]) cylinder(r=5, h=3); } translate([0, 5, 0]) cylinder(r=1.5, h=3); translate([45, 5, 0]) cylinder(r=1.5, h=3); translate([45/2, 5, 0]) cyl...
glb/cad_b58218ece640.glb
Create a Smart Phone Adaptive Otoscope consisting of a flat rectangular base and a protruding conical viewing tube. Start with a rectangular base measuring 45mm in length, 15mm in width, and 3mm in height. At one end of this base, centered along the width at a position 37mm from the opposite edge, integrate a hollow ta...
difference(){ cube([45,15,3]); translate([37,7.5,0]) hull(){ translate([0,0,0]) cylinder(4,7,7, $fn=90); translate([-11,0,0]) cylinder(4,5.5,5.5);}} rotate([0,0,0]) translate([37,7.5,0]) union(){ difference(){ difference(){ hull(){ translate([0,0,0]) cylinder(30,7,4, $fn=90); translate([-13,0,-3]) rotate([0,30,0])...
glb/cad_f3a27b22ec6d.glb
Create a Parametric Snowflake Cookie Cutter consisting of a hexagonal outer frame and an internal snowflake design. The overall shape is based on a hexagon with an edge length of 25mm. Construct the outer cutter wall by extruding a hexagonal perimeter with a thickness of 1mm and a total height of 7.5mm (6mm dough thic...
edge_l = 25; edge_w = 1; cookie_t = 6; hub = 3; hub_s = 6; dot = 3; dot_dist = 2; spoke_l = 25; spoke_w = 1.5; branch_l = 7; branch_a = 60; branch_n = 4; branch_w = 1.5; strut_l = ((edge_l/2)/tan(30))+(edge_w*3); strut_w = 4; $fn = 50; X = [1, 0, 0]; Y = [0, 1, 0]; Z = [0, 0, 1]; module mcad_rotate_mult...
glb/cad_fd454f96afef.glb
Create a Parametric Snowflake Cookie Cutter. Start by constructing a hexagonal outer frame with an edge length of 25mm and a wall thickness of 0.8mm, extruded to a total height of 14mm (6mm for the dough plus 8mm for the cutter edge). Inside this frame, create a central hub using a 6-sided polygon with a radius of 3m...
use <MCAD/array/along_curve.scad> use <MCAD/shapes/2Dshapes.scad> include <MCAD/units/metric.scad> edge_l = 25; edge_w = 0.8; cookie_t = 6; hub = 3; hub_s = 6; dot = 6; dot_s = 6; dot_dist = 2; spoke_l = 22; spoke_w = 0.8; branch_l = 10; branch_a = 35; branch_n = 4; branch_w = 0.8; strut_l = ((edge_l/2)/ta...
glb/cad_db503a4343a6.glb
Create six identical tensegrity struts. Each strut is a hexagonal prism with a radius of 3mm and a total length of 100mm. For each strut, carve a rectangular slot through the center of both the top and bottom faces. Each slot must be 2mm wide and 5mm long, centered on the face. The orientation of the slot on the bott...
part = 0; fn = 6; r = 3.0; sw = 2.0; dist = 10; l = 100.0; sl = 5.0; side = 0; ns = 6; h = 10.0; b = 2.0; w = 1.0; ncr = 3; ncc = 2; module strut(r, sw, l, sl, side) { rotate([0, -90, 0]) rotate([0, 0, side*360/$fn]) difference() { rotate([0, 0, 180 + 180/$fn]) cylinder(r=r, h=l); ...
glb/cad_01883a962940.glb
Create a Cable Junction Enclosure consisting of two matching circular halves, a case and a lid, each with a height of 15mm. Both halves have an outer diameter of 59mm (a 56mm internal radius plus 1.5mm walls). For the case, create a hollow cylinder with a 56mm internal diameter and 1.5mm wall thickness. Remove a centr...
Component = "all"; number_cables=2; cable_diameter=7; height=30; enclosure_diameter=56; number_standoffs=2; standoff_inner_diameter=2.5; mount_hole_centre="true"; mount_hole_centre_diameter=3.5; mount_hole_top="false"; mount_hole_top_diameter=3.5; mount_hole_bottom="false"; mount_hole_bottom_diameter=3.5; ...
glb/cad_c92c7f0b708a.glb
Create a golf tee consisting of a head, a shaft, and a spike. Start with a head formed by a cylinder 10mm high with a radius of 1mm. Attached to this is a shaft that transitions from the head into a tapered spike. The shaft section is a cylinder 8mm high that tapers from a base radius of 1mm down to a top radius of 0.1...
use <write/Write.scad> show_text="yes"; text_font="write/orbitron.dxf"; text_itself="MARCO"; text_size = 2; font_thickness = 3; rotate(90,[0,1,0]) rotate(-75,[0,0,1]) union(){ golfTea(); if (show_text=="yes") { rotate(180,[0,1,0]) color("salmon") writecylinder(text=text_itself,where=[0,7,-38.5],radius=7,hei...
glb/cad_114a56d1685b.glb
Create a Ping Pong Net Holder by constructing a flat, L-shaped bracket with a uniform thickness of 50mm. The main body consists of two rectangular arms meeting at a right angle. One arm is 50mm wide and 675mm long, while the other arm is 300mm wide and 112.5mm long. These two sections are joined by a central square blo...
thickness = 50; module rounded_corner( radius, height ) { difference() { cube( [ radius+1, radius+1, height ] ); translate( [ 0, 0, -1 ] ) cylinder( r = radius, h = height + 2, $fn = 72 ); } } rotate( [ 0, 0, -20 ] ) scale ( 25.4/100 ) { difference () { union () { difference () { union () { cube( size = [...
glb/cad_babf3683109f.glb
Create an open-face mold consisting of a solid rectangular base and surrounding walls. The base should be a flat slab 1.5mm thick with overall dimensions of 65mm in width and 75mm in height. From this base, extend four vertical walls to a height of 30mm. These walls must be 1.5mm thick, creating a hollow rectangular in...
model_filename = "Sample inputs/supershape5_fixed.stl"; model_scale = .7; model_translate = [0,0,-22]; model_rotate = [0,0,0]; mold_width = 65; mold_height = 75; wall_thickness = 1.5; wall_height = 30; walls = true; removable_wall = false; removable_wall_thickness = 1; wiggle_room = 0.25; base_height = 1.5; genera...
glb/cad_6e6e7fea81f1.glb
Create a negative open-face mold by starting with a solid rectangular base measuring 100mm in width, 70mm in height, and 10mm in depth. Center this base at the origin. To create the mold indentation, import the "superformula-tray.stl" model, keeping it at a scale of 1. Rotate and translate the imported model to the pos...
model_filename = "Sample inputs/superformula-tray.stl"; model_scale = 1; model_translate = [-50,-34,5]; model_rotate = [0,0,0]; mold_width = 100; mold_height = 70; mold_depth = 10; generate_mold(); module generate_mold() { difference() { translate([0, 0, mold_depth/2]) cube([mold_width, mold_height, mold_depth...
glb/cad_f78fd1b55afd.glb
Create a stable bookend consisting of a flat base and a vertical support wall. Start by creating a rectangular base plate measuring 110mm in length, 100mm in width, and 1mm in height. At one end of this base, construct a vertical rectangular wall that is 2.4mm thick, 100mm wide, and 150mm high. To reinforce the struc...
function cosh(x) = 0.5*(exp(x)+exp(-x)); module strebe(x,y,z,b=0.6){ dx=(x)/$fn; ym=cosh(x*b); dy=y/ym; p=[for (j=[0:$fn])[x-j*dx,dy*cosh(j*dx*b)]]; pp=concat(p,[[0,0]]); linear_extrude(height=z,slices =$fn) polygon(pp); } w=100; h=150; union(){ translate([-10,0,0])cube([110,w,1]); ...
glb/cad_38df4082cbbd.glb
Create a tealight holder based on a five-pointed star geometry. First, construct a flat, five-pointed star base with an outer radius of 58mm and a height of 3mm. Hollow out the center of this base by removing a smaller five-pointed star with a radius of 50mm, leaving a thin outer rim. In the center of the star, place ...
tau=2.0-(sqrt(5)+1)/2; module penta(r=10,h=3){ ri=r*tau; linear_extrude(height=h,convexity = 30)polygon([ [r*sin(0),r*cos(0)],[ri*sin(36),ri*cos(36)], [r*sin(72),r*cos(72)],[ri*sin(108),ri*cos(108)], [r*sin(144),r*cos(144)],[ri*sin(180),ri*cos(180)], [r*sin(216),r*cos(216)],[ri*sin(252),ri*cos(2...
glb/cad_adcf9d9a1a14.glb
Create a replacement fan knob with a total height of 26.67mm. The main body is a tapered cylinder with a bottom outer diameter of 34.925mm and a top outer diameter of 32.64mm, and a wall thickness of 1.778mm. The bottom edge of this cylinder features 64 evenly spaced vertical ridges around its circumference. In the ce...
bot_od = 1.375; top_od = 1.285; cap_height = 0.500; thickness = 0.070; shaft_dia = 0.250; shaft_cutout = 0.080; total_height = 1.050; num = 64; size = ( bot_od + top_od ) / 2 * PI / num; scale ( 25.4 ) { difference () { union () { difference () { cylinder( r1 = top_od/2, r2 = bot_od/2, h = cap_hei...
glb/cad_97db657ea96a.glb
Create a toothbrush cover consisting of a main cylindrical head and an attached arm. The main head is a cylinder with an outer diameter of 18.8mm and a height of 17mm. Inside this head, create a hollow cavity to fit a toothbrush head, starting with a diameter of 17mm at the base and tapering slightly to 16mm at a heigh...
cnt=1; d_b=16; h_b=17; d1=8; d2=9; ws=1.4; $fn=100; d3=d2+2*ws; hk=d3/5; module Ring(d, h) { rotate_extrude() translate([d/2-h/2, 0, 0]) circle(d=h); } module HalterMassiv() { hull() { translate([0, 0, h_b+ws-ws/2+hk]) Ring(d_b+2*ws, ws); translate([0, 0, ws/2-0.3]) Ring(d_b+3*ws, ws); } hull() { ...
glb/cad_28a02e59650a.glb
Create a GEB Logo consisting of three interlocking, stylized letters. Start with a central block that is 40mm wide, 40mm deep, and 10mm thick, centered on the XY plane. From this base, carve out three rectangular channels to form the letters G, E, and B. The letter E is formed by two horizontal rectangular voids, eac...
translate( v=[0,0,20] ) { rotate( v=[1,0,0], a=90 ) { difference() { cube( size=40, center=true ); translate( v=[0,5,7.5] ) { cube( size=[40, 30,10], center=true ); } translate( v=[0,5,-7.5] ) { cube( size=[40, 30,10], center=true ); } translate( v=[-2.5,0,7.5] ) { cube( size=[35, 40,10], center=true ); }...
glb/cad_60d69875bec9.glb
Create a Z Endstop support bracket. Start with a central rectangular block measuring 12mm wide, 56mm long, and 8mm high. From the center of this block, remove a smaller central rectangular volume of 15mm by 15mm by 6mm. Create two vertical holes passing through the block, each with a diameter of 3.2mm, positioned 15....
longueur=56; largeur=12; hauteur_support_ecrou=largeur; ecart=31; ecart_2=ecart/2; module tx( _x) translate([_x,0,0]) children(); module ty( _y) translate([0,_y,0]) children(); module tz( _z) translate([0,0,_z]) children(); module hexa_cyl( _diametre, _hauteur) { cos_pi_6=sqrt(3)/2; diametre= _diametre/cos_pi_6...
glb/cad_d0830f2606fa.glb
Create a Z Endstop adjustable support bracket. Start with a main rectangular base measuring 42mm in width, 42mm in height, and 5mm in thickness. At the rear, add a reinforcement section that is 42mm wide, 19mm high, and 9mm thick. On the sides of this structure, create two mounting tabs. Each tab is 12mm wide, 4mm thi...
cub_actif=1; largeur=42; hauteur=42; hauteur_renfort=19; epaisseur= 9; epaisseur_diff= 4; epaisseur_patte=4; largeur_patte=12; longueur_patte=14.5; diametre=21; ecart=31; ecart_2=ecart/2; decalage_trou=4; oblong_endstop_y=30; oblong_endstop_largeur=6; ecart_trous_endstop=20; bosse_endstop_y=6; bosse_endstop_longueur=...
glb/cad_1758a94aa428.glb
Create a Spool Mount Smoother by starting with a cylinder that has a radius of 10mm and a height of 73mm. From this main body, remove a central rectangular slot to create a channel that is 6.75mm wide, 30mm deep, and 80mm high, centered along the cylinder's length. Additionally, remove two rectangular sections from the...
width = 73; inside = 6.75; difference(){ cylinder(h=width, r=10); color([1,0,0]){ translate([(-inside/2),-6,0]){ cube([inside,30, 80]); } } color([1,0,0]){ translate([7,-10,0]){ cube([6.75,30, 80]); } translate([-13.75,-10,0]){ cube([6.75,30, 80]); } } }
glb/cad_58fe1a4a6685.glb
Create a metric wrench adapter for 1/4 inch screwdriver bits. The design consists of two distinct types of hexagonal sockets. First, create a 12-point socket by combining two hexagonal prisms, each with a flat-to-flat diameter of 10mm and a height of 8mm, where one prism is rotated 30 degrees relative to the other. S...
inch=25.4; hauteur=8; hauteur_debouchage=30; module tx( _x) translate([_x,0,0]) children(); module ty( _y) translate([0,_y,0]) children(); module tz( _z) translate([0,0,_z]) children(); module hexa_cyl( _diametre, _hauteur) { cos_pi_6=sqrt(3)/2; diametre= _diametre/cos_pi_6; rayon=diametre/2; cylinder( r=ra...
glb/cad_43505db7f442.glb
Create a Customizable Mother's Day Cube by starting with a solid cube that measures 50mm on all sides. Carve out two distinct rectangular slots through the center of the cube to create letter-like voids. On the front face, create a wide vertical cutout that is 1.5mm wide and 0.7mm high, extending through the depth of t...
M_Slit_Width = 150; M_Slit_Height = 70; O_Width = 40; O_Height = 40; size = 5; Clip_O_To_Match_M_Slits = 0; Upside_Down = 0; if(Upside_Down==0) { scale(size*10) object(); } else { scale(size*10) translate([0,0,1]) scale([1,1,-1]) object(); } module object() { difference() { translate([0,0,0.5]) cube(size=1, cente...
glb/cad_df68f14dc8ef.glb
Create a Minecraft-style tree composed of 10mm cubes. First, construct the trunk by stacking four cubes vertically. The trunk should be centered relative to the canopy, with the bottom-most cube positioned at the base and three cubes extending upwards. For the canopy, build a foliage structure using a grid of cubes. T...
$fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+sqrt(5))/2; a=10; f=.5; g=.5; dxprint=3; col1="red"; col2="lime"; house= [ [ [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,1,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0], [0,0,...
glb/cad_87a6bd5444f8.glb
Create a parametric terracotta pot and a matching base plate. For the pot, construct the outer shell as a tapered cylinder with a height of 50mm, a bottom radius of 27mm, and a top radius of 30mm. Add a cylindrical rim at the top with a height of 15mm and a radius of 33mm. Hollow out the center by removing a cylinder s...
height = 50; radius = 30; drainHole = 5; $fn=100; module outside() { cylinder(height, radius*0.9, radius, false); translate([0,0,height]) cylinder(height*0.3, radius*1.1, radius*1.1,true); } module inside() { translate([0,0,height*0.1]) cylinder(height*1.2, radius*0.8, radius*0.955, false); } module hole() { ...
glb/cad_0ecd4885e050.glb
Create a parametric timing belt shaped as an Archimedean spiral. The belt body should be a flat ribbon with a width of 6mm and a thickness of 0.76mm. The spiral starts with an inner radius of 80mm and expands with a spacing of 4mm between each winding. The total length of the belt is 30mm. Along the outer edge of the ...
teeth_type = "GT2 2mm"; teeth_pitch = 2; belt_width = 6; belt_thickness = 0.76; belt_lenght = 30; spiral_spacing = 4; spiral_inner_radius = 80; init_radian = 3.14159 * (spiral_inner_radius/2); b = spiral_spacing / 2 / 3.14159; number_of_teeth = ceil(belt_lenght/teeth_pitch); function r(b, theta) = b * theta; functi...
glb/cad_2aac50cdc0a8.glb
Create a Simple Knob by starting with a main cylinder that is 50mm in diameter and 25mm high, centered on the origin. Remove a central shaft hole from this cylinder that is 15mm deep and 10mm in diameter. This hole should not be a full circle; instead, create it by removing a 10mm diameter cylinder but leaving a flat s...
ShaftHeight = 15; ShaftDiameter = 10; FlatToRound = 7; KnobHeight = 25; KnobDiameter = 50; $fs = .02; $fa = 1; module CutCylinder(H, D, FlatToRound) { CutDepth = D - FlatToRound ; R = D / 2; CircleEdge = (R - (CutDepth / 2 ) ); difference() { cylinder( h = H , d = D ,center = true ); ...
glb/cad_48ab13254d5c.glb
Create a parametric socket tool. Start with a main outer cylinder that has a diameter of 30.48mm (calculated as the hypotenuse of a 1-inch socket size plus 5mm wall thickness) and a total height of 55.88mm. From the center of this cylinder, remove a hexagonal-shaped hole that extends from the top face down to a depth...
isSixPoint = 1; isMetric = 0; Socket_Size = 1; Drive_Size_Numerator = 3; Drive_Size_Denominator = 8; Socket_Depth__Negative_1_for_Auto = -1; Wall_Thickness = 5; $fa = .5; $fs = .1; function SquareHypotenuse(Length) = sqrt((Length * Length)*2); function LenghtViaHight(Height) = sqrt((Height * Height * 4)/3) ; functi...
glb/cad_f2a0987bc1bb.glb
Create a Synchromesh clamp for a Reprap printer. Start with a central rectangular block measuring 18mm wide, 10mm deep, and 7mm high, centered on the X and Y axes and positioned 3.5mm up along the Z axis. Attach two hexagonal prisms to the sides of this block; each prism should have a radius of 8mm, a height of 7mm, an...
include <configuration.scad> belt_tooth_distance = 3.81; module beltclamp(){ difference(){ union(0){ translate(v = [0,0,3.5]) cube([18,10,7], center=true); translate(v = [-7, 0, 0]) cylinder(r=8,h=7, $fn=6); translate(v = [7, 0, 0]) cylinder(r=8,h=7, $fn=6); } translate(v = [7,0, -.5]) nut(m3_nut_d...
glb/cad_0ab6c8c3f373.glb
Create a housing for an AD584 voltage reference module. Start by creating a solid block that is the convex hull of four cylinders, each with a diameter of 10.5mm and a height of 10mm, positioned at the corners of a 51mm by 51mm square. Hollow out the center of this block by removing the convex hull of four smaller cyli...
height = 10; module ad584_housing () { difference () { hull () { translate ([0,0,0]) cylinder (d=10.5, h=height, $fn=64); translate ([51,0,0]) cylinder (d=10.5, h=height, $fn=64); translate ([51,51,0]) cylinder (d=10.5, h=height, $fn=64); translate ([0,51,0]) cy...
glb/cad_208c7d200732.glb
Create a Wall thickness test model. Start with a base rectangular plate measuring 20mm wide, 75mm long, and 2mm thick, positioned from x=-1 to x=19 and y=2.5 to y=77.5. Along the length of this plate, add 15 rectangular protrusions starting at y=5 and repeating every 5mm. Each protrusion should be 8mm wide, 5mm tall, a...
q = 10; difference() { union() { translate([-1, 2.5, 0])cube([22, 75, 2]); for(i = [1:15]) { translate([0, i*5, 0]) cube([8, i*0.1, 5]); } } for(i = [1:15]) { translate([12, i*5, -1]) cube([8, i*0.1, 5]); echo(i*5); echo(i*0.1); } translate([10, 25+0.5/2, 0]) cylinder(r=1, h=99, center=true, $fn=3*...
glb/cad_814893a14e33.glb
Create an RGB LED Ring by first constructing a flat circular base with an outer diameter of 44.5mm and a height of 1.6mm. Remove a concentric inner cylinder with a diameter of 31.6mm to create a ring shape. Around this ring, place 16 identical LED components equally spaced every 22.5 degrees. Each component consists of...
module ring(de,di,n) { color([0.15,0.15,0.15]) difference() { translate([0, 0, 0 ]) cylinder(d=de, h=1.6, $fn=40*q); translate([0, 0,-0.1]) cylinder(d=di, h=2.0, $fn=40*q); } for(i=[0:n]) { rotate([0,0,i*360/n]) translate([di/2+2.5+0.75, 0, 1.6]) { color([0.99,0.99,0.99]...
glb/cad_17add9adb6d0.glb
Create an air quality sensor housing consisting of a cylindrical base and a matching cover. Construct the base as a cylinder with a diameter of 60mm and a height of 20mm. Hollow out the center with a 55mm diameter cylinder, leaving a 2.5mm wall thickness. Create a series of cutouts and slots in the base to accommodat...
q=4; module rcube(siz, rad) { xi = max(0,siz[0]/2-rad); yi = max(0,siz[1]/2-rad); hi = siz[2]; hull() { translate([ xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([-xi, yi,0]) cylinder(r=rad,h=hi, center=true, $fn=10*q); translate([ xi,-yi,0]) cylinder(r=rad...
glb/cad_6e4fa7061fb8.glb
Create an Echo Button Wall Mount. Start with a circular base disk that has a diameter of 77.9mm and a thickness of 1.2mm. On top of this base, center a conical frustum with a bottom diameter of 77.9mm and a top diameter of 72mm, reaching a height of 8mm. From this combined volume, remove a large central cylinder with...
edge=75.5; middle=72; feet=3.7; to_middle=8; cut_offset=edge/6; extrusion_width=1.2; layer_height=0.4; wall=extrusion_width; walll=wall*2; base=wall; brim=10; tack_stem=3; tack_pad=20; pad=0.1; padd=pad*2; module body(extra=0,padding=0) { translate([0,0,feet-padding]) cylinder(d1=edge+extra,d2=middle...
glb/cad_eeb7e39e95ea.glb
Create a stepper controller and driver mount box. Start with a main outer cube measuring 129mm x 129mm x 90mm, centered on the origin. Hollow out the center by removing a smaller cube of 123.5mm x 123.5mm x 90mm and two intersecting cylinders, each with a diameter of 84mm and a height of 130mm, oriented along the X and...
module box () { difference () { cube([129,129,90],center=true); translate ([0,0,3])cube([123.5,123.5,90],center=true); rotate([0,90,0])cylinder(d=84,h=130,center=true); rotate([90,0,0])cylinder(d=84,h=130,center=true); } translate ([59,57,0])cube([9,11,82],center=true); translate ([-59,-57,0])cube([9,11,82]...
glb/cad_632de78cb3e5.glb
Create a stepper driver mount box by starting with a central cube measuring 138mm x 138mm x 65mm. Hollow out the center of this cube by removing a smaller internal cube of 131mm x 131mm x 60mm, positioned 2.5mm from the bottom, to create a thick-walled container. At the bottom of the box, create a circular opening by ...
module box() { difference () { cube([138,138,65],center=true); translate ([0,0,2.5]) cube([131,131,60],center=true); } } module taper () { difference () { translate ([0,0,28.5]) cylinder(d1=160,d2=138, h=6.5,center=true); } } translate ([0,0,-28.5]) cylinder(d1=138,d2=160, h=6.5,center=true); module slots (...
glb/cad_a881f389db01.glb
Create a KeyForge Deck Box designed to hold a deck of cards and a top loader lid. Start by creating a solid outer rectangular case with rounded corners (radius 1.2mm). The outer dimensions are 80mm wide by 104mm high. The total height of the case is approximately 18.5mm. Carve a central rectangular cavity for the deck...
FIRST_LAYER_HEIGHT = 0.27; LAYER_HEIGHT = 0.18; function roundToLayers(h) = ceil(h / LAYER_HEIGHT) * LAYER_HEIGHT; BOTTOM_LAYERS = 2; BOTTOM_THICKNESS = FIRST_LAYER_HEIGHT + LAYER_HEIGHT * (BOTTOM_LAYERS - 1); TOP_LAYERS = 2; TOP_THICKNESS = TOP_LAYERS * LAYER_HEIGHT; SIDE_WALL_THICKNESS = 1.5; DECK_WIDTH = 63; D...
glb/cad_73d8f89c44d2.glb
Create a bike flashlight mount by starting with a central rectangular block measuring 18mm wide, 40mm deep, and 32mm high. Carve a cylindrical hole through the center of the block along the depth axis with a radius of 12.5mm and a length of 33mm. Remove a thin 2mm slice from the top face and a 2mm thick rectangular sec...
difference() { union() { difference() { cube([18, 40, 32], center=true); translate([0,0,32/2-2]) #cube([19,41, 2],center=true); rotate([0,90,0]) translate([0,5,0]) #cylinder(r=25/2, h=33, center=true); translate([0,-12,0]) rotate([-20,0,0]) #cube([19,20,2], center=true); translate([0...
glb/cad_4a3c8bbda43b.glb
Create a knurled knob for a 6mm D-shaft controller. Start with a main cylinder that has a diameter of 36.6mm and a height of 8mm. Apply a knurled texture to the outer vertical surface of this cylinder. In the center of the cylinder, create a vertical hole with a radius of 3.2mm and a height of 6mm. To accommodate a D-s...
include <knurledFinishLib_v2.scad> $fn=0; $fs=0.1; r_main=18.3; r_insert=3.2; h_inner=6; h_main=8; dent_width=12; dent_depth=1.5; difference() { knurl(k_cyl_hg=h_main, k_cyl_od=r_main*2, s_smooth=40); difference(){ translate ([0,0,h_inner/2]) cylinder(r=r_insert, h=h_inner, center=true); translate ([-3.5,-5,0]...
glb/cad_0c97cee36ee5.glb
Create a raclette tool for 3D printer bed cleaning. Start by constructing a handle that is a rectangular block 119mm long, 25mm wide, and 10mm thick. Add two semi-cylindrical grips to the top of the handle, each with a diameter of 14mm and a height of 9mm, positioned at opposite ends of the block. Carve out a central...
color("blue") manche(); color("silver") translate([3,0,-0.3]) rotate([8,0,0]) lame(); module lame() { translate([0,2,0]) cube([109,16,0.6]); translate([54.5,0,0.6]) rotate([0,90,0]) linear_extrude(height = 109, center = true, convexity = 10, twist = 0) polygon(points=[[0,2],[0.6,2],[0.3,0]]); } module manche() { d...
glb/cad_e3f3e8e5bd31.glb
Create a Screw Cup by extruding a specific complex profile vertically to a height of 60mm. The profile is based on a central circle with a radius of 20.1mm, surrounded by 7 overlapping circular "petals." Each petal is a circle with a radius of approximately 8.5mm, centered 20mm from the main axis. Extrude this combin...
ScrewBox(r=20, h=60, count=7, overlap=1.3, twist=120, wall=2.5, floor=4); module ScrewBoxProfile(r, count, overlap, offsetsize) { angle = 360/count; threadR = r * sin(angle / 2) * overlap + offsetsize; innerR = r * cos(angle / 2) + 0.1; union() { for (i=[1:count]) { rotate([0,0,angle * i]) translate([r,0,0])...
glb/cad_6faf13cef554.glb
Create a Screw Cup by extruding a specific profile vertically to a height of 60mm. The profile consists of a central circle with a radius of approximately 22.6mm, surrounded by 7 smaller circular "petals" arranged symmetrically around the perimeter. These petals are positioned such that they overlap slightly, creating ...
ScrewBox(r=25, h=60, count=7, overlap=1.3, twist=120, wall=2.4, floor=4); module ScrewBoxProfile(r, count, overlap, offsetsize) { angle = 360/count; threadRtmp = r * sin(angle / 2) * overlap; innerRtmp = r * cos(angle / 2); shrinkRatio = (threadRtmp + innerRtmp) / r; innerR = innerRtmp / shrinkRatio; threadR = ...
glb/cad_4ba433f9ac79.glb
Create a floor protector boot for a dining table castor. Start by forming the main body as a hull between a cylinder with a 25mm diameter and 5mm height at the base, and a larger horizontal cylinder with a 26.9mm diameter and 25mm length that passes through the center. Trim the top of this volume to create a flat upper...
D = 26.9; W = 6.2; Off = 22.5; PD = 15.4; PH = 13; T = 2; BD = 9; RL = 17.5; RD = 8; G = 6; BH = 4.3; HOC = 7; Disc= 25; DT = 5; Clr = 0.1; $fn = 100; module Castor() { translate([-2*Off,-Off,PH+G])cube([3*Off,2*Off,2*T]); translate([0,RL/2,0])rotate([90,0,0])cylind...
glb/cad_c603f66cdb94.glb
Create a BP-511 battery connector consisting of a rectangular base and two vertical contact tabs. Start with a solid rectangular base measuring 37.7mm in width, 3.4mm in depth, and 0.9mm in height. From this base, extend a main outer wall upwards to a height of 16mm. This wall should be 1.55mm thick and run along the...
batt_w=38.4+0.4; slot_t=1.6-0.2; slot_to=2.8-0.2; ht=16; base=0.9; tab_t=2; slot_t=1.6; retain_w=35.3; tol=0.35; wall=1.2+tol; slot_w=31.3; cs1=2+2.3/2; cs2=14+2.3/2; difference(){ cube([retain_w+2*wall,wall+tab_t+slot_t,ht+base]); translate([wall-tol,wall-tol,base]) cube([retain_w+2*tol,tab_t+2*tol,ht+1]); ...
glb/cad_ce8171e5c287.glb
Create a protective case for an Arduino Uno R3. The main body is a rounded rectangular prism with external dimensions of 60mm by 60mm and a height of 10mm. The corners should be rounded with a radius of 10mm. The case features a hollowed-out interior to fit the board, with a wall thickness of 1.5mm. On the top surface...
$fn=50; T=1.5; mirror(){ difference() { union() { difference() { union() { body(60,60,8,10); } translate([0, 0, 7]) body(60-T,60-T,8+2,10-T); translate([0, 0, 3*T]) body(60-2*T,60-2*T,8-T,10-2*T); } ...
glb/cad_69c2a5af532a.glb
Create a protective case for an Arduino Uno R3. Start by constructing the main body as a union of two rectangular prisms: a primary base measuring 60mm wide, 15mm deep, and 8mm high, centered on the X-axis, and a smaller secondary rectangular section measuring 50mm wide, 5mm deep, and 8mm high, positioned directly adja...
$fn=50; difference(){ body(); hole(23,13-7.5); hole(-23,13-7.5); oreilles(); } module body(){ union() { translate([0, -2.5, 0]) linear_extrude(height = 8) square([60, 15], center = true); translate([0, 7.5, 0]) linear_extrude(height = 8) square([50, 5], center = tru...
glb/cad_868bfbdd8c6c.glb
Create an Arduino UNO R3 case. Start with a main body that is 60mm by 60mm with a height of 10mm. The vertical walls should be 1.5mm thick, and the exterior corners must be rounded with a 10mm radius. The floor of the case is raised by 3mm from the bottom. Cut four circular holes with a 3mm diameter (1.5mm radius) int...
$fn=50; T=1.5; difference() { union() { difference() { union() { body(60,60,8,10); translate([0, 0, 2*T]) body(60-T,60-T,8+2,10-T); } translate([0, 0, 3*T]) body(60-2*T,60-2*T,8-T,10-2*T); } ...
glb/cad_92ee7d74ee32.glb
Create an Arduino UNO R3 case with a main body measuring 60mm by 60mm with a height of 10mm. The body should have rounded corners with a 10mm radius. The walls are 1.5mm thick, creating a hollow interior. On the top surface, add four mounting pillars at the corners, each featuring a 3mm diameter outer cylinder and a 1...
$fn=50; T=1.5; difference() { union() { difference() { union() { body(60,60,8,10); translate([0, 0, 2*T]) body(60-T,60-T,8+2,10-T); } translate([0, 0, 3*T]) body(60-2*T,60-2*T,8-T,10-2*T); } ...
glb/cad_1eba794d51ab.glb
Create a Custom Blade Disposal Box with outer dimensions of 40mm width, 20mm depth, and 60mm height. The main body should be a rounded capsule shape with a flat bottom and a wall thickness of 1mm throughout. On the top surface, center a blade insertion slot that is 25mm long and 1mm wide. To facilitate blade entry, c...
resolution = 50; base_model = "Round"; outer_dimensions = [40,20,60]; wall_thickness = 1; slot_dimensions = [25, 1, 10]; slot_wedge_diameter = 5; slot_wedge_angle = 60; slot_position_offset = 0; fillet_diameter = 5; flat_bottom = "Yes"; debug_cross_section = "None"; $fn=resolution; mround = base_model == "R...
glb/cad_51a5f5e935c8.glb
Create a Replicator Reset Button Pusher consisting of two stacked octagonal prisms. Start with a wide octagonal base that has a diameter of 20mm and a height of 3mm. Centered on top of this base, add a narrower octagonal column with a diameter of 8mm and a height of 15mm. To accommodate a USB connector, remove a rectan...
pusherSmallHeight = 15; pusherSmallDiameter = 8; pusherLargeHeight = 3; pusherLargeDiameter = 20; $fn = 8; difference() { rotate([0,0,360/16]) union() { translate( [0, 0, pusherLargeHeight] ) cylinder( r = pusherSmallDiameter / 2, h = pusherSmallHeight ); cylinder( r = pusherLargeDiameter / 2, h = push...
glb/cad_d08ebc41c72b.glb
Create a Snap-locking Sphere Container consisting of two identical interlocking hemispherical shells. Each shell is derived from a hollow sphere with an outer radius of 27mm and an inner radius of 25.5mm, creating a wall thickness of 1.5mm. To form the shells, divide the hollow sphere into two equal halves using a co...
r=27; innerR=r-1.5; innerWall=1.5; cut = 0.25; translate([0,0,r/sqrtOf2]) rotate([0,0,0]) largerPart(); *translate([0, 0, (1-cut)*r]) difference() { sphere(r=innerR); sphere(r=innerR-innerWall); translate([0,0, (2.5-cut)*r]) cube([3*r, 3*r, 3*r], center=true); translate([0,0, -(2.5-cut)*r]) cube([3*r, 3*r, 3*r]...
glb/cad_b6d0bb7e2f96.glb
Create a baby-soothers cup designed to hang on a cradle bar. The main body is a rectangular container with a flat floor 1.3mm thick. The outer dimensions of the container are 92.8mm in length, 65mm in width, and 45mm in total height, though the storage walls only rise to 27mm. To allow the cup to hang, create two iden...
barDiameter=17; barSpace=54; partHeight=27; partWidth=65; floorHeight=1.3; clearance=0; PrinterFirstLayerHeight=0.3; PrinterNozzleWidth=0.4; PartNumberWall=6; cylinderPath=barSpace+barDiameter; rPath=PrinterNozzleWidth*PartNumberWall/2+0.01; helper(); output(); module barreau(clearance=0,cut=0){ translate([...
glb/cad_25d348075bb2.glb
Create a cork cutting tool for HO scale model railroading. Start with a central rectangular block measuring 100mm x 44mm x 46mm. From this main body, remove several geometric shapes to create the cutting guides. First, remove three cylindrical holes, each with a radius of 2.5mm and a length of 60mm, passing through t...
$fn = 50; module base(){ difference(){ cube([ 100, 44, 46], true); union() { translate([30, 0, -11.25]) rotate([90, 0, 0]){ translate([ 0, 0, 20.5]) cylinder(h=3.8, r1=2.5, r2=5, center=true); translate([ 0, 0, -19.92]) ...
glb/cad_cadd64d09ec6.glb
Create a bearing spool holder by starting with a main cylinder that has a diameter of 37mm and a height of 10.5mm. Remove a central vertical cylinder with a diameter of 16mm that runs through the entire height of the object. Within this central void, create a wider cylindrical cutout with a diameter of 11.2mm and a hei...
spool_bore=35; bearing_diameter=22; bearing_bore=8; bearing_depth=7; bearing_rim=3; spool_rad=spool_bore/2; clearance_rad=(bearing_diameter-(2*bearing_rim))/2; bearing_rad=(bearing_diameter/2)+0.2; difference (){ cylinder (bearing_depth*1.5,spool_rad-2,spool_rad+1,$fn=60); cylinder (bearing_depth*4,clearance_r...
glb/cad_9038eaa1f0de.glb
Create a carry handle for a sewing machine. Start with a main rectangular block that is 121.9mm long, 86mm wide, and 19mm thick. Round the four vertical corners of this block with a radius of 7mm. Hollow out the center of the block by removing a smaller rounded rectangle from the top, leaving a wall thickness of 5.3m...
T=5.3; TLong=8; W=19; Side1=43+TLong/2; LongSide=20.4+101.9 -1; DHoleEnd=7.5; HoleR=5/2; HoleFlangeR=7.7/2; HoleFlangeL=6; NotchL=13; NotchOffset = DHoleEnd; module createMeniscus(h,radius) difference(){ translate([radius/2+0.1,radius/2+0.1,0]){ cube([radius+0.2,radius+0.1,h+0.2],center=true); } cylin...
glb/cad_ddb112dd743c.glb
Create a Bulldog Extruder mount for a Kossel mini. Start by constructing a central base formed by the union of two intersecting rectangular prisms: one measuring 15mm x 75mm x 5mm and another measuring 30mm x 52.5mm x 5mm, both centered on the X and Y axes. Add two rectangular blocks measuring 30mm x 5mm x 10mm, positi...
difference(){ union(){ cube(size=[15,75,5],center=true); cube(size=[30,52.5,5],center=true); translate([0,23.75,7 ])cube(size=[30,5,10],center=true); translate([0,-23.75,7 ])cube(size=[30,5,10],center=true); } union(){ translate([0,32,0])cylinder(h=8,r=1.6,center=true); translate([0,-32,0])cylinder(h=8,r=1.6,center=tru...
glb/cad_0c34b7cdcea2.glb
Create a Cube-Within-a-Cube ornament by constructing a wireframe network of rounded cylinders connecting two concentric cubes. First, define two sets of vertices: an inner cube with vertices at coordinates ±12.5mm on all axes, and an outer cube with vertices at ±25mm on all axes. Connect the vertices to form the edge...
W1 = 12.5; W2 = 25; R = 5; points = [ [-W1, -W1, -W1], [-W1, -W1, W1], [-W1, W1, -W1], [-W1, W1, W1], [ W1, -W1, -W1], [ W1, -W1, W1], [ W1, W1, -W1], [ W1, W1, W1], [-W2, -W2, -W2], [-W2, -W2, W2], [-W2, W2, -W2], [-W2, W2, W2], [ W2, -W2, -W2], [ W...
glb/cad_82fa84b2e865.glb
Create a handlebar end cap consisting of a tiered cylindrical base and a central protruding hub. Start by creating a truncated cone for the base that is 5mm high, with a bottom radius of 25mm and a top radius of 30mm. On top of this base, add a hollow cylindrical ring that is 8mm high, with an outer radius of 30mm and ...
cylinder(h = 5, r=25, r2=30); difference () { translate([0,0,5]) cylinder(h = 8, r=30); translate([0,0,5]) cylinder(h = 8, r=25); } translate([0,0,5]) cylinder(h = 10, r=17); difference () { translate([0,0,15]) cylinder(h = 20, r=17, r2=16); translate([-3,-20,15]) cube([5, 40, 20]); translate([20, -3,15]) rotat...
glb/cad_d16f15499c1d.glb
Create a kitchen mixer holding device consisting of a base plate and two vertical support arms. Start with a rectangular base that is 115mm wide, 10mm deep, and 15mm thick. Attached to the side of this base, add a vertical block that is 85mm wide, 10mm deep, and 35mm tall. On the main body, create two circular holes t...
$fn=100; front(); back(); module front() { difference() { union() { cube([200-85,10,15]); translate([0,-60+10,0])cube([70,60,15]); translate([0,-60+10,14])cube([70,2,3]); } translate([12.5,45-50,-1])langloch(); translate([50,45-50,-1])langloch(); } } module back() { diff...
glb/cad_fc51097f97da.glb
Create a 3D model of a diode electronic component. Start by creating a main cylindrical body with a radius of 2mm and a length of 8.89mm (2.54mm * 3.5), oriented horizontally along the X-axis. At one end of this cylinder, add a thin white cylindrical band with a radius of 2.05mm and a thickness of 1mm to indicate the c...
$fn=36; Text="1N4007"; Size=1; Solder=1; module Diode(Text,Size,Solder) { if(Size==0) translate([0,0,2.75]) { color("Black") translate([0,0,0]) rotate([0,90,0]) cylinder(r=1.45,h=2.54*3,center=true); color("White") translate([-2.54*1.49,0,0]) rotate([0,90,0]) ...
glb/cad_0094be707550.glb
Create a printing plate by starting with a rectangular base measuring 60mm in width, 45mm in height, and 3mm in thickness. To create a relief version of the plate, extrude a 2D design from a DXF file to a height of 1.5mm and place it directly on top of the base. For an intaglio version, instead of adding the design to ...
plate_width = 60; plate_height = 45; plate_thickness = 3; design_filename = "Sample inputs/flourish-60x45.dxf"; design_thickness = 1.5; relief(); module relief() { translate([-plate_width/2, -plate_width/2, 0]) { cube(size = [plate_width, plate_height, plate_thickness]); translate([0,0,plate_thickness]) li...
glb/cad_af0a7998b235.glb
Create a printable dummy of a Digispark PRO PCB. Start with a base rectangular plate measuring 18.4mm wide, 26.8mm long, and 1.6mm thick. On top of this base, add several rectangular components. Place two black strips, each 2.54mm wide and 22.86mm long, positioned at the left and right edges. Add a small rectangular ...
pcb_x = 18.4; pcb_y = 26.8; pcb_z = 1.6; header_height = 1.8; inch = 25.4; it = inch/10; $fn = 12; difference() { union() { color("green") cube([pcb_x,pcb_y,pcb_z]); color("black") translate([0.4, 0.4, 0]) cube([it, 9*it,pcb_z+2.6]); color("black") translate([0.4 +6*it, 0.4, 0]) cube([it,...
glb/cad_f8a60da5a1f5.glb
Create a fan shroud for a Kossel Mini hotend. Start with a base mounting plate for a 30mm fan, featuring four screw holes with a radius of 1.4mm positioned 12mm from the center in both X and Y axes. Build a tapered housing that extends 25mm in height. The lower section should transition from the 30mm fan base into a ...
include <MCAD/shapes.scad> include <fanMountPlate.scad> endEffectorMountPlateHeight = 4; endEffectorMountPlateWidth = 36; coolEndWidth = 14 + 15.8; coolEndHeight = 18; shroudWallWidth = 1; ceww = coolEndWidth + 2*shroudWallWidth; cehw = coolEndHeight + endEffectorMountPlateHeight + shroudWallWidth; fanWidth ...
glb/cad_5776d43dfd30.glb
Create a fan shroud for a 30mm fan. Start with a base mounting plate that is 30mm wide and 30mm deep, featuring four 2.8mm diameter screw holes positioned 12mm from the center in both X and Y axes. From this base, build a tapered housing that extends upward to a total height of 25mm. The housing should transition fro...
include <MCAD/shapes.scad> include <fanMountPlate.scad> endEffectorMountPlateHeight = 4; endEffectorMountPlateWidth = 36; coolEndWidth = 15.8; coolEndHeight = 18; shroudWallWidth = 1; ceww = coolEndWidth + 2*shroudWallWidth; cehw = coolEndHeight + endEffectorMountPlateHeight + shroudWallWidth; fanWidth = 30;...
glb/cad_2d9ddf2e0116.glb
Create a small house-shaped keychain. The main body is a hollow rectangular prism with a width of 22mm, depth of 20mm, and wall height of 24mm, with a wall thickness of 2.5mm. On the roof, create a peaked structure with a height of 14mm. At the top center of the roof, add a small chimney-like block that features a ve...
breedte=22; diepte=20; hoogte_muur=24; wanddikte=2.5; hoogte_dak=14; hoekdakY=atan(hoogte_dak/(breedte/2)); hoekdakX=atan(hoogte_dak/(diepte/2)); raam_b=breedte/3; raam_h=hoogte_muur/5; raam1_b=breedte/4.5; raam1_h=hoogte_muur/6; sleutelhanger(); module sleutelhanger(){ difference () { union(){ wanden(); translate (...
glb/cad_e6b30ef93166.glb
Create a DB Power 4K Action Camera Mount consisting of a main camera case and a mounting connector. For the case, start with a solid block measuring 66mm by 48mm by 13mm. Hollow out the center by removing a block of 46mm by 30mm by 13mm. Create a cutout for the shutter button by placing a cylinder with a 20mm diameter ...
translate([0, 0, 5,]) difference(){ difference(){ cube([66, 48, 13, ], center=true ); cube([46, 30, 13, ], center=true ); } translate([0, 0, 3,]) cube([60, 41, 13, ], center=true ); translate([20.5, -18, 9,]) rotate([90, 0, 0]) { cylinder(h=11, d=20, $fn=30 );} translate([33, 0, 3,]) cube([10, 36, 10, ], cente...
glb/cad_7b989ef55d0c.glb
Create a slider for a Trammel of Archimedes. Construct a main body by extruding a profile along a central axis for a total length of 50mm. The profile is a rounded rectangle created by the convex hull of four circles, each with a radius of 2mm. These circles are positioned at the corners of a rectangle defined by a top...
include <config.scad> module slider(lenght=slider_lenght, margin=0){ x1=(top_width/2)-rad_round+margin; x2=(down_width/2)-rad_round+margin; y=(slider_height/2)-rad_round; z=0; base = [ [x1,y,z], [x2,-y,z], [-x1,y,z], [-x2,-y,z] ]; translate([0,0,slider_height/2]) rotate([90,0,0]) linear_extrude(...
glb/cad_4c8a18c1a749.glb
Create a Trammel of Archimedes consisting of a hexagonal base and intersecting slider channels. Start by constructing the base as a hexagonal prism with a height of 10mm. This base is formed by the convex hull of six circles, each with a radius of 2mm, positioned at a distance of 20mm from the center, rotated every 60 ...
include <config.scad> use <slider.scad> six_sides(); module base4(){ x=(base_lenght/2)-down_width/2; y=(base_lenght/2)-down_width/2; z=0; base = [ [x,y,z], [x,-y,z], [-x,y,z], [-x,-y,z] ]; linear_extrude(height=base_thickness+base_height) hull(){ for(i = [0:3]) translate(base[i]) circle...
glb/cad_125870503527.glb
Create a Trammel of Archimedes arm by designing a flat plate with a thickness of 4mm. The main body is formed by the union of three rounded rectangular sections. First, create a central horizontal section that spans from a circle of 10mm diameter at the origin to another 10mm circle centered at x=40mm, y=0. Second, add...
include <config.scad> arm6(); module arm4(){ gap=0.2; linear_extrude(height=arm_thickness) difference(){ hull(){ translate([-base_lenght/2,0,0]) circle(d=arm_width); translate([arm_lenght,0,0]) circle(d=arm_hole+ext_width); } circle(d=slider_axe+gap); translate([-base_lenght/2,0,0...
glb/cad_1496dc8ff508.glb
Create a Direct Drive Hot End Effector mount starting with a central rectangular base measuring 40mm by 18mm with a thickness of 3mm. At each end of the base, centered at x=17 and x=-17, add a vertical support structure. Each support is formed by the union of a 5mm by 14mm by 1mm rectangular block and a 5mm by 18mm by ...
$fn=30; module dia(){ hull(){ cube([13,5,1],center=true); translate([-5,0,15]) cube([1,5,1],center=true); }} module brace(){ hull(){ cube([5,18,1],center=true); translate([0,0,25]) cube([5,14,1],center=true); }} difference(){ union(){ cube([40,18,3],center=true); translate([17,0,0]) brace(); ...
glb/cad_caa48c27d32b.glb
Create a Direct Drive Hot End Effector consisting of two symmetrical clips. For each clip, start with a central rectangular block measuring 32mm wide, 15mm deep, and 13mm high. Center a vertical cylindrical hole with a radius of 5.85mm through the block. Add two smaller cylindrical protrusions, one above and one below ...
$fn =20; module upper(){ module LClip(){ difference(){ translate([0,-7.5,6.5]) cube([32,15,13],center=true); cylinder(25,r=5.85,center=true); translate([0,0,14.3]) cylinder(10,r=8.1,center=true); translate([0,0,-1.8]) cylinder(10,r=8.1,center=true); rotate([90,0,0]) translate([-12,8,0]) cylinder(40,r=2,center=true); ...
glb/cad_7bcdd450a63a.glb
Create a Direct Drive Hot End Effector for an Athena II printer. The model consists of a central effector base with a thickness of 6mm. Construct the base as a triangular platform with rounded apexes. At three equidistant points around the perimeter, add magnet mounts. Each mount is a cylinder with an outer diameter ...
$fn = 10; module plate(){ layer_height = 0.25; d_M2_screw = 2.3; d_M2_screw_head = 4; h_M2_screw_head = 2; d_M3_screw = 3.5; d_M3_screw_head = 6.2; d_M3_washer = 6.9; d_M3_nut = 6.2; h_M3_nut = 2.7; d_M3_cap = 6.0; h_M3_cap = 3; h_M3_washer = 0.5; d_M4_screw = 4.3; d_M4_cap = 7.4; h_M4_cap = 4; d_M4_nut = 8.7; h_M4_...
glb/cad_e2a9c123ab79.glb
Create a Direct Drive Hot End Effector mount by starting with a rectangular block measuring 48mm in length, 3mm in width, and 9mm in height, centered on the X and Z axes. To this block, add two small cylindrical pins, each with a radius of 1.5mm and a height of 6mm, positioned at the far ends of the block. Specifically...
$fn=30; difference(){ union(){ translate([0,16.5,38.7]) cube([48,3,9],center=true); rotate([90,0,0]) translate([-20,38,-18]) cylinder(6,r=1.5,center=true); rotate([90,0,0]) translate([20,38,-18]) cylinder(6,r=1.5,center=true); } rotate([90,0,0]) translate([-12,36,-10]) cylinder(40,r=2,center=true); rotate([90,0,0])...
glb/cad_524ebc915e6a.glb
Create a Direct Drive Hot End Effector for an Athena II Printer by constructing a hollow rectangular block. Start with a solid outer rectangular prism measuring 8.8mm in width, 8.5mm in depth, and 4mm in height, centered on the origin. From the center of this volume, remove a smaller rectangular prism measuring 6.5mm i...
difference(){ cube([8.8,8.5,4],center=true); cube([6.5,5.5,5],center=true); }
glb/cad_4bd6a3b58832.glb
Create a Direct Drive Hot End Effector mount by starting with a central rectangular block measuring 41mm x 41mm x 7mm. Remove a large central cylinder with a radius of 12.5mm and a height of 20mm, centered within the block. At each of the four corners of the block, centered at coordinates (±15.5, ±15.5), remove a small...
$fn=60; difference(){ cube([41,41,7],center=true); translate([15.5,15.5,0]) cylinder(20,r=1.5,center=true); translate([-15.5,15.5,0]) cylinder(20,r=1.5,center=true); translate([-15.5,-15.5,0]) cylinder(20,r=1.5,center=true); translate([15.5,-15.5,0]) cylinder(20,r=1.5,center=true); cylinder(20,r=12.5,center=true);...
glb/cad_5240e8108348.glb
Create a Direct Drive Hot End Effector by combining two rectangular blocks and removing specific sections. First, construct a primary vertical block measuring 6mm by 5mm by 30.5mm, centered at coordinates (10.5, 0.5, 23). To this, attach a second rectangular block measuring 7mm by 8mm by 5mm, centered at (11.5, 6.8, 23...
difference(){ union(){ translate([10.5,0.5,23]) rotate([90,0,0]) cube([6,5,30.5],center=true); translate([11.5,6.8,23]) rotate([90,0,0]) cube([7,8,5],center=true); } translate([13.5,12.75,21]) cube([2,6.5,20],center=true); translate([13.5,-12,21]) cube([2,6.5,20],center=true); }
glb/cad_c5bf7e11f07d.glb
Create a cable tray consisting of two separate parts: a support mount and a rail. First, construct the support mount. Start with a central block 10mm wide, 15mm deep, and 15.5mm high. Add a cylinder with a radius of 7.5mm and a height of 10mm, centered and rotated 90 degrees. Incorporate a rectangular block 10mm by 1...
$fn=20; translate([-1,0,-10]) rotate([0,0,0]) { support();} translate([0,0,-0.2]) rotate([0,0,0]) { rail();} Width=15; module support() { difference() { union() { translate ([0,0,-15.5/2]) {cube([10,15,15.5], center=true);} translate ([0,0,0]) rotate([0,90,0]) {cylinder(h=10,r=7.5, center=true);} translate ([0,0,8...
glb/cad_ccff528f0bc6.glb
Create a simple Christmas tree model by stacking geometric primitives along a central vertical axis. Start with a circular base that has a radius of 10mm and a height of 2mm. Centered on top of this base, place a cylinder with a radius of 3mm and a height of 10mm to serve as the trunk. Above the trunk, stack three cone...
$fn=100; module base() { linear_extrude(height=2) { circle(10, true); } } module tige() { cylinder(10,3,3,false); } module branches(d) { cylinder(15,d,0,false); } base(); tige(); translate([0,0,5]) branches(8); translate([0,0,10]) branches(7); translate([0,0,15]) branches(6);
glb/cad_37e5ccd6ed31.glb
Create a Parametric Cover for AC Power Wiring Connector consisting of a main housing and an optional snap-on safety cover. For the main housing, create a rectangular box with a base height of 1.6mm and walls 9.5mm high with a thickness of 1.6mm. The outer dimensions are determined by the number of connector units (de...
$fn = 128; c_Fit_Tolerance = 0.25; c_Wall_Tolerance = 0.3; c_CC_Unit = 11.2; c_CC_SameLine = 7.2; c_Hole_Diam = 5.9; c_Unit_Width = 7.6; c_Unit_Gap = 3.8; c_Conn_Width = 5.5; c_Conn_Height = 19.6; c_Hole_Diam_Inst = 2.9; c_Num_Units = 3; c_Outter_Tolerance = 2; c_Conn_Screw_Height = 5.8; c_Outter_Round_Corner = 0.5...
glb/cad_6f508bf03dd1.glb
Create a Parametric Cover for AC Power Wiring Connector consisting of four main components: a main box, a wire holder, a top cover, and an optional safety cover. First, construct the main box as a rounded rectangular shell with a base height of 1.6mm and walls 9.5mm high and 1.6mm thick. The outer dimensions are based...
$fn = 128; c_Fit_Tolerance = 0.2; c_Wall_Tolerance = 0.3; c_CC_Unit = 12.1; c_CC_SameLine = 9.45; c_Hole_Diam = 7.6; c_Unit_Width = 8.4; c_Unit_Gap = 3.6; c_Conn_Width = 5.5; c_Conn_Height = 22; c_Hole_Diam_Inst = 2.9; c_Num_Units = 2; c_Outter_Tolerance = 2; c_Conn_Screw_Height = 7.5; c_Outter_Round_Corner = 0.5; ...
glb/cad_b8ce867d190b.glb
Create an egg holder unit measuring 50mm by 100mm. The main structure consists of two conical sockets aligned along the center of the 100mm length, spaced 50mm apart. Each socket is formed by two stacked sections: a lower frustum 30mm high that tapers from a bottom diameter of 50mm to a top diameter of 37mm, and a uppe...
hd=50; ed1=35; h1=10; ed2=48; h2=30; ws=0.8; $fn=100; module Trapez2D(l1, l2, h) { d=(l1-l2)/2; polygon([ [-l1/2,0], [-l1/2+d,h], [l1/2-d,h], [l1/2,0] ]); } if(ed1>ed2) { text("error: ed1>ed2"); } else if(h2<5) { text("error: h2<5"); } else if((ed2+2*ws)>hd) { text("error: (ed2+2*ws)>hd"); } else if((...
glb/cad_114f038f0b1a.glb
Create a make-up kit consisting of a hinged box and a removable circular pad. First, construct the box. The box is composed of two rectangular halves connected by a hinge. Each half has a thickness of 3mm. The bottom half of the box features a circular recessed compartment with a diameter of 30mm and a depth of 3mm t...
partWidth=30; partHeight=3; sizeBoxX=1; sizeBoxY=1; clearance=0.4; output=1; numberWall=8*1; PNW=0.4+0.005; realSizeBoxWidth=sizeBoxX*(2*PNW*numberWall+partWidth)+2*PNW*numberWall; realSizeBoxHeight=sizeBoxY*(2*PNW*numberWall+partWidth)+2*PNW*numberWall; if(output==0 || output==1 || output==6 || output==7)boite...
glb/cad_b7dc81f5529b.glb
Create a Melzi board protection casing. The main body is a hollow rectangular box with outer dimensions of 218mm in length, 80mm in width, and 27mm in height. The walls are 2mm thick. The interior cavity is a smaller rectangular void measuring 214mm by 76mm by 25mm. At the four corners of the main body, integrate four...
$fn=40; wall=2; sq1h=218; sq1b=80; sq1d=27; sq2h=sq1h-2*wall; sq2b=sq1b-2*wall; sq2d=sq1d-wall; case(); translate ([0,0,sq1d+20]) lid(); module 1halflid() { difference() { translate ([0,0,wall/2]) rotate( [0,0,0]) {lid();} translate ([100,0,0]) {cube ( [200,200,60], center=true);} } } module 2halflid() { differe...
glb/cad_47eb416aa302.glb
Create a customizable bead by starting with a sphere that has a diameter of 14.5mm. Scale this sphere along the Z-axis by a factor of 1.0 to maintain its proportions, or adjust the skew factor to create an oval shape. Bore a clean, vertical hole straight through the center of the bead from top to bottom with a diameter...
BeadDiameter = 14.5; HoleDiameter = 6; SkewFactor = 100; $fn = 75; difference() { scale ([1,1,SkewFactor/100]) sphere (BeadDiameter/2); translate([0,0,(BeadDiameter*3)*(-1)]) cylinder (BeadDiameter*6,HoleDiameter/2, HoleDiameter/2); }
glb/cad_472147837c2a.glb
Create an LM6UU Quick Change Build Platform. Start with a main platform body that is 61.3mm wide, 21.5mm high, and approximately 71.62mm long (total length including the catch). The body has rounded ends with a radius of 10.75mm. At the front, add a catch mechanism. The catch body is 44.7mm wide and 15.35mm long. It f...
$fn = 100; inch = 25.4; mm = 1; degrees = 1; radical_two_over_two = sqrt(2) / 2; radical_three_over_two = sqrt(3) / 2; extra_length = 2 * mm; half_extra_length = extra_length / 2; quarter_extra_length = half_extra_length / 2; small_fudge = 0.2 * mm; half_small_fudge = small_fudge / 2; micro_fudge = 0.01 * mm; cat...
glb/cad_71818e260abe.glb
Create a TechZone Huxley J-Head groove mount tip clamp by starting with a rectangular base block measuring 73mm in length, 25mm in width, and 10mm in height. Center a large vertical hole with a radius of 8.5mm through the block at coordinates (36, 11, 0). From this central hole, remove a rectangular section measuring...
rotate( [0, 0, 180] ) union() { difference() { translate( [0, -3, 0] ) cube( size = [73, 25, 10], center = false ); translate( [36, 11, 0] ) { cylinder( h = 10.2, r=8.5, $fs=.5 ); } translate ([27.5, 11, -0.5]) cube (size = [17, 11, 11], center = false ); translate( [5.75, 11, 0] ) cylinder( h = 10.1, r=1...
glb/cad_92d6a3c0dfb6.glb