Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Pcurve1a object by generating a mirrored, sweeping curved form composed of 61 sequential segments. Each segment is a composite shape consisting of a 10mm by 3mm by 2mm rectangular block positioned at [0, -1, 0] and a cylinder with a 1.5mm radius and 2mm height centered at [10, 0, 0]. For each step from 0 to ...
steps=61; module yine() { translate ([0,-1,0]) cube ([10,3,2]); translate ([10,0,0]) cylinder (r=1.5,h=2, $fn=36); } module doit(z) { echo (max(0,20-z)); translate ([-z/8,0,0]) rotate ([z,0,0]) translate ([0,-z/2,z/8]) rotate ([0,-z*4,-90+z*90/19.5]) scale([pow(1.015,z/1.4),1,1]) yine(); } module L()...
glb/cad_317dbf301410.glb
Create a fire extinguisher wall mount bracket designed for an 80mm diameter cylinder. Start by creating a circular base ring with an outer diameter of 88mm and an inner diameter of 80mm, with a total height of 16mm. The bottom 4mm of this ring should be a solid disc, while the remaining 12mm height is a hollow shell wi...
part = "Base"; extinguisher_diameter = 80; bracket_width = 4; screw_hole_diameter = 3; arm_angle = 120; $fn=50; ext_r = extinguisher_diameter/2; screw_r = screw_hole_diameter/2; back_width = ext_r*1.5; arm_angle = 120; angle = (arm_angle - 90 )/2; back_height = 8*bracket_width+screw_hole_diameter; cube_size = 10...
glb/cad_5c137fb09a17.glb
Create a parametric filament spool hub adapter. Start by creating a thin circular flange with a diameter of 83mm and a thickness of 2mm. From the center of this flange, extend a cylindrical hub upwards to a total height of 10.5mm. This hub should have a base diameter of 73mm, tapering slightly to 72mm at the top to fac...
Axle_Diameter = 8; Spool_Hub_Diameter = 73; Hub_Depth = 8.5; Flange_Thickness = 2; Flange_Diameter = Spool_Hub_Diameter + 10; Spoke_Thickness = Spool_Hub_Diameter*0.07; $fn = 200; difference() { union() { difference() { union(){ translate ([0,0,Flange_Thickness/2]) ...
glb/cad_10eed2d0bb97.glb
Create a Hot Tub Tool Holder starting with a rectangular base measuring 75mm in length, 75mm in width, and 10mm in height. At the far end of the base, add a vertical lip that is 10mm thick, 75mm wide, and 50mm high. Attached to the top of this lip, place a vertical anchor block that is 10mm thick and 75mm wide, extendi...
maxSize=150; thickness=10; width=75; lipHeight=50; baseLength=75; anchorHeight=125; anchorEdgeHeight=maxSize-anchorHeight; color("black") cube([baseLength, width, thickness], center = false); color("red") cube([thickness, width, lipHeight], center = false); translate([baseLength-thickness, 0, 0]){ cube([thic...
glb/cad_b38767a1ff5c.glb
Create a turtle-shaped SD card holder by assembling several geometric primitives. Form the main shell using a central cylinder with a diameter of 44.8mm and a height of 13mm, flanked by two spheres of 45mm diameter positioned at the front and back. Add four smaller spheres of 15mm diameter to serve as legs: two at the ...
module body() { translate([-5.8,0,-4.4]) rotate([0,90,0]) cylinder(h=13,d=44.8); translate([5,0,-4.4]) rotate([0,90,0]) sphere(d=45); translate([-3.6,0,-4.4]) rotate([0,90,0]) sphere(d=45); translate([14,20,0]) rotate([-15,90,0]) ...
glb/cad_e6f68ae53333.glb
Create a badge holder with a total height of 91mm, a width of 60mm, and a thickness of 4.9mm. The main body is a rectangular slab with rounded corners of 4mm radius. Carve out a central rectangular pocket starting 2mm from the edges, measuring 83mm by 52mm and 0.9mm deep, to hold a card. This pocket should have round...
badge_thickness = 0.9; badge_width = 56; badge_height = 87; holder_wall_size = 2; holder_bezel_size = holder_wall_size + 3; holder_height = badge_height + (holder_wall_size * 2); holder_width = badge_width + (holder_wall_size * 2); holder_thickness = badge_thickness + (holder_wall_size * 2); holder_radius = 4; cli...
glb/cad_c8515e59dae7.glb
Create a Ball Transfer Unit consisting of two main components: a base housing and a lid. For the base, create a cylinder with a diameter of 51mm and a height of 22.95mm. Remove a spherical void from the center with a diameter of 40mm to create the ball cavity. To allow for mounting, create four vertical holes with a ...
BallDiameter = 30; RollerDiameter = 5; ScrewDiameter = 3; PartRatio = 0.85; WallThickness = 5; MountingHolePattern = "automatic"; MountingHoleDiameter = 55; BaseHeight = (BallDiameter/2 + RollerDiameter + WallThickness) * PartRatio; TopHeight = (BallDiameter/2 + RollerDi...
glb/cad_c4c8c4478993.glb
Create a modular robotic arm with a total length of 60mm between opposing connectors. The main body is a slender beam with a profile that blends between a rectangle and a rounded shape. At each end of the arm, create a GoPro-style connector. For a male connector, create two parallel plates, each 2.8mm thick, with a ce...
length = 60; type = "double"; connector_a = "male"; connector_b = "female"; $fn = 64; eps = 1e-8; module gopro_profile(l, r, b) { difference() { union() { circle(r); translate([0, -r]) square([l+r, 2*r]); } circle(b); } } module gopro_male(length=1, base=fa...
glb/cad_02df92a93690.glb
Create a set of Customizable Message Board Characters designed to fit into a letter board. Each character should have a face thickness of 2.4mm and a nominal X-height of 21.1mm, with a line width of 3.5mm. For each character, add two rectangular pegs on the back that project 3.5mm from the rear face. These pegs must ...
Generate=1; FontHeight=21.1; FontLineWidth=3.5; ConnectorWidth=1.2; CharThickness=2.4; PegWidth=1.4; PegHeight=3.5; RoundPegs=0; HollowCharacters=0; WallThickness = 0.8; FaceThickness = 0.9; test=false; PointedPegEnds=true; module NoMoreCustomiziation() {} scale = FontHeight/7; lw=FontLineWidth / scale; p...
glb/cad_3ccefada435e.glb
Create a Y-Axis GT2 Belt Tensioner replacement part. Start with a rectangular main body measuring 9.15mm wide, 8mm deep, and 30mm high. Remove two sets of identical vertical holes to accommodate M3 hex nuts and screws. Each set consists of a cylindrical shaft with a 3.4mm diameter and a surrounding hexagonal cutout 5...
include <MCAD/shapes.scad> $fa = 1; $fs = 0.1; Belt_Space = 6; Belt_Support = 6; module body() { Height = 30; Depth = 8; Width = 9.15; cube([Width, Depth, Height], center=true); } module screws() { Height = 20; Diameter = 3.4; M3_Width = 5.7; M3_Height = 3; rotate([90, 90, 0]) cylinder(Height, d=Diame...
glb/cad_0dbecadcb4f7.glb
Create a screen stand by starting with a rectangular base measuring 150mm in length, 50mm in width, and 10mm in height. Centered along the length of this base, construct a vertical support structure that is 50mm wide and 50mm tall, with a thickness of 10mm. This support should be positioned so that it leaves a 60mm fla...
difference(){ union(){ cube([150,50,10]); translate([20,0,10]) #cube([6,50,15]); translate([50,0,10]) #cube([10,50,55]); translate([25,0,10]) #cube([25,50,5]); translate([60,0,10]) #cube([35,50,35]); } translate([60,-2,45]) rotate([0,45,0]) #cube([50,55,35]); translate([25,-2,15]) rotate([0,3,0]) #cube([25,55,55...
glb/cad_2c5ce0a2a6ca.glb
Create a screen stand by starting with a rectangular base measuring 150mm in length, 50mm in width, and 10mm in height. From this base, remove a series of geometric volumes to create a hollowed-out support structure. First, remove a large central section to create a slot for the screen, which is 25mm thick. This is a...
difference(){ union(){ cube([150,50,10]); translate([20,0,10]) #cube([6,50,15]); translate([50,0,10]) #cube([10,50,55]); translate([25,0,10]) #cube([25,50,5]); translate([60,0,10]) #cube([35,50,35]); } translate([60,-2,45]) rotate([0,45,0]) #cube([50,55,35]); translate([25,-2,15]) rotate([0,3,0]) #cube([25,55,55...
glb/cad_aafdd8a46197.glb
Create a watering can rose consisting of a two-stage conical base and a perforated flat head. First, construct a hollow connector for the spout by creating a conical shell with a wall thickness of 2mm; the bottom opening has an internal diameter of 22.5mm and the top opening has an internal diameter of 21mm, with a hei...
$fn=25; h1=14; h2=30; dx=22.5; dw=21; dout=100; holes=20; holeD=2; th=2; hsep=dout/7.5; connector(h1,dx,dw,th); translate([0,0,h1]) connector(h2,dw,dout,th); translate([0,0,h2+h1]) difference() { cylinder(h=th,d=dout+th*2); holes(hsep*3,holes); holes(hsep*2,holes*.75); h...
glb/cad_d117ae0279bc.glb
Create a Sparkfun Bus Pirate case bottom. Start with a solid rectangular block measuring 60.5mm in length, 37mm in width, and 8.5mm in height. Hollow out the center to create an internal cavity measuring 54mm by 31.5mm with a depth of 6mm, leaving a base thickness of 2.5mm. At each of the four corners, integrate cylin...
internal_x = 54; internal_y = 31.5; internal_z = 6; wall = 2.75; base = 2.5; lugs_rad = 5; bolt_rad = 3.1; out_box_x = internal_x + wall * 2; out_box_y = internal_y + wall * 2; out_box_z = internal_z + base; module case() { difference() { union() { translate([0, 0, out_box_z / 2]) ...
glb/cad_fa50b067a094.glb
Create a Sparkfun Bus Pirate Case lid. Start with a rectangular base plate measuring 60.5mm in length, 37mm in width, and 2.5mm in thickness. At each of the four corners, integrate a cylindrical fastener lug with a radius of 5mm. Center a vertical hole with a radius of 1.55mm through the middle of each lug. To creat...
internal_x = 54; internal_y = 31.5; internal_z = 6; wall = 2.75; base = 2.5; lugs_rad = 5; bolt_rad = 3.1; out_box_x = internal_x + wall * 2; out_box_y = internal_y + wall * 2; out_box_z = base; module lid() { difference() { union() { translate([0, 0, out_box_z / 2]) cube([out_box...
glb/cad_fd2180a29b63.glb
Create a Customizable Pocket Organizer by starting with a solid rectangular block that has rounded corners. The block should have a total height of 65mm, a width of 10mm, and a length of 55mm, with all corners rounded to a radius of 3mm. Inside this block, create five vertical cylindrical holes that pass completely t...
Number_of_holes = 5; Pocket_Height = 65; Pocket_Width = 10; Pocket_Lenght = 55; Corner_Radius = 3; Hole_Size = 10; Hole_Distance = 1; Resolution = 30; difference(){ body(Pocket_Width, Pocket_Lenght, Corner_Radius,Resolution); translate([-((Hole_Size+Hole_Distance) * (Number_of_holes-1)/2), 0, 0]) union(){ f...
glb/cad_53bb88a1013a.glb
Create a Reagenzglas Vase consisting of a base, a vertical support, and a top plate. Start by creating a rectangular base block (the Sockel) with dimensions 45.5mm x 45.5mm and a height of 17.5mm. Above this, place a square foot plate (Fuss) with dimensions 45.5mm x 45.5mm and a thickness of 4mm. This plate must ha...
staerke = 4; breite = 35; reagenzglasD = 16; reagenzglasH = 150; reagenzglasSpiel = 1.1; bodenFaktor = 1.3; rundeEckeBoden = 100; laserDiameter = 0.25; sockelFaktor = 0.5; kopfstueck = breite + laserDiameter; zapfen = 2*staerke; rueckenH = 0.8*reagenzglasH; rueckenB = 0.7*kopfstueck; zapfenVersatz = rueckenB/2-zapf...
glb/cad_57e6179e81eb.glb
Create a wall socket stub by starting with a thin circular disk that has a radius of 32mm and a thickness of 4mm. Remove four identical bolt holes from this disk, positioned symmetrically around the center at a distance of 29.65mm from the origin along the X and Y axes. Each hole must consist of a primary cylindrical b...
$fn=100; thickness = 4; radius = 32; bolt_hole_position = 29.65; hole_radius=1.6; head_radius=2.6; head_height=2; module bolt_hole() { cylinder(h = thickness, r = hole_radius); cylinder(h = head_height, r = head_radius); } difference() { cylinder(h = thickness, r = radius); translate([bolt_hole_position, 0, 0...
glb/cad_ebcda6074142.glb
Create a USB Switch Box consisting of a main rectangular enclosure and a matching lid. Construct the main box as a hollow rectangular prism with outer dimensions of 63mm in length, 33mm in width, and 35mm in height, using a wall thickness of 1.5mm. On the bottom face, center a circular hole with a 6mm diameter and a ...
$fn=50; Lenght = 60; Width = 30; Height = 35; WallThickness = 1.5; CableHoleDiam = 3.5; translate([0,0,Height / 2 + 0.8 + 20]){ Lid(); } Box(); module Box(){ difference(){ cube([Lenght + WallThickness *2 ,Width+ WallThickness *2,Height],center=true); translate([0,0,WallThickness]){ ...
glb/cad_1b3e3b0716de.glb
Create a hotend mount for a deltabot V2. Start with a rectangular base measuring 30mm by 42mm with a thickness of 3mm. At each of the two rear corners of the base, add a cylindrical column with a radius of 4mm and a height of 20mm. Within the base, create a central circular hole with a radius of 6mm to accommodate a ...
translate([0,0,0]) rotate([0,0,270]) extruder_block(); nema_l=71.5; nema_x=42; nema_y=42; nema_z=47.4; screw_l=30; insert_l=15; nozzel_nut=12; column_h=20; module axle_8mm() { cylinder(16,r=3.80, $fn=40); translate([-5,-0.5,0]) cube([10,1,1]); translate([-0.5,-5,0]) cube([1,10,1]); difference() { cylinder(1,r=...
glb/cad_62fb3a8fc3e0.glb
Create a screw top container consisting of a cylindrical base and a matching threaded cap. For the base, create a cylinder with an outer radius of 30mm and a total height of 100mm. Center the cylinder on the Z-axis. Subtract a smaller concentric cylinder with a radius of 20mm and a height of 30mm, positioned at Z=7mm...
use <threads.scad> mark = 3; if (mark==1) difference() { union() { english_thread(2, 4, .5); translate([0,0,-4.95]) cylinder(r=30,h=10,center=true); } translate([0,0,7]) cylinder(r=20,h=30,center=true); translate([-2,0,-9]) linear_extrude(height=2) scale (0.065) shorebird(); } else if (mark==2) difference() ...
glb/cad_80b2bda144c3.glb
Create a parametric finger hook consisting of a circular base and an angled projecting peg. Start by creating a cylindrical base plate with a radius of 22mm and a height of 4mm. In this base, place four vertical drill holes with a diameter of 2mm each; position these holes in a square pattern, each located 17mm from th...
size=8; holeDiameter=size; drillDiameter=2; dimensions=20; angle=35; difference() { union() { union() { cylinder(4,dimensions*1.2, dimensions*1.1); } translate ([0,0,sin(angle)*dimensions]) rotate(angle, [1,1,0]) union() { cylinder(...
glb/cad_0bb72165ccc6.glb
Create a Flashforge Adventurer 3 Thermometer Holder consisting of a hollow rectangular frame and a separate cable clip. For the main holder, create a rectangular shell with outer dimensions of 49.6mm width, 29.5mm height, and 14.4mm depth. The walls should be 2mm thick. The top and two sides are open to form a pocket....
model_type = "Top"; avoid_supports = true; default_tolerance = 0.3; default_thickness = 2; height_excl_lip = 25.5; height_incl_lip = 28.0; width_excl_lip = 45.0; width_incl_lip = 48.2; width_incl_snaps = 48.6; depth_incl_lip = 16.8; lip_thickness = 2.4; snap_width = 6.8; snap_margin_front = 1; snap_margin_back = 2; c...
glb/cad_2d8ae5820f2e.glb
Create an FPV GoPro connector consisting of a base plate and a mounting bracket. First, create a rectangular base plate with a total length of 39.7mm and width of 28.7mm, and a thickness of 0.1mm. Round the corners of the base plate with a radius of 1.3mm. Position four screw holes with a diameter of 3.7mm at the cor...
length = 36; width = 25; height = 0.1; mount_height = 1; margin = 1.5; hole_diameter = 3.7; camera_inset_depth = 7; corner_radius = 1.3; round_bottom = true; module gopro_mount( length, width, height, margin, hole_diameter, camera_inset_depth = 0, corner_radius = 0, round_bott...
glb/cad_d6891dcc6273.glb
Create a microscope smartphone adapter consisting of a hollow cylindrical tube and a rectangular mounting plate. Start by creating a cylinder with an outer diameter of 35mm and an inner diameter of 30mm, extending to a height of 32.5mm. This tube should be hollowed out to create a sleeve that fits over a microscope eye...
eyepiece_diameter = 30; distance_away = 2.5; lens_diameter = 20; cam_x = 9.28; cam_y = 7.35; wall_height = 10; wall_thickness = 3; tube_length= 30; outer_diameter = eyepiece_diameter+5; plate_w = cam_y + outer_diameter/2 + wall_thickness; plate_h = cam_x + outer_diameter/2 + wall_thickness; rotate([0,180,0]){ differe...
glb/cad_c77398be7469.glb
Create a Piano Keyboard LED Lights Support case. Start by creating a rectangular base with rounded corners, defined by a width and depth, and extrude it to a specific height. Hollow out the center of the base to create a floor at a set height, leaving a wall thickness around the perimeter. Cut four rectangular slots i...
include <BoxCase_Params.scad> $NUT_DIAMETER = 6.0; $NUT_DIAMETER_OFFSET = 0.8; $NUT_HEIGHT = 2.3; $NUT_HEIGHT_OFFSET = 0.6; nutHoleRadius = $NUT_DIAMETER / 2 + $NUT_DIAMETER_OFFSET; nutHoleHeight = $NUT_HEIGHT + $NUT_HEIGHT_OFFSET; module NutHole() { color("orangeRed") rotate([90, 0, 0]) translate([...
glb/cad_d0622b2de43d.glb
Create a Piano Keyboard LED Lights Support case designed to house an Arduino Uno or Leonardo. The main body is a rectangular enclosure with a height of 14mm. The base is a rounded rectangle with a width of 100mm and a depth of 20mm. The enclosure features a hollowed-out interior to accommodate the PCB, with a floor he...
include <BoxCase_Params.scad> frontX = 100; frontY = 20; height = 14; backX = 0; *color("blue") cube([10,10,9]); *translate([0,0,21]) color("blue") cube([10,10,9]); *translate([-33,20,21-8]) color("cyan") cube([3,3,17]); *color("magenta",0.5) cube([5,5,30]); connectorRoundR = 2.54/2; connectorWide = 2.54*3; upperC...
glb/cad_ed5a715cece1.glb
Create a Piano Keyboard LED Lights Support case designed to house an Arduino Uno or Leonardo. The main body is a rectangular enclosure with a height of 14mm. The base is a rounded rectangle with a width and depth defined by the PCB dimensions, featuring a floor height that elevates the internal components. The enclosu...
include <BoxCase_Params.scad> frontX = 0; frontY = 0; height = 14; backX = 100; height = 56; *color("blue") cube([10,10,9]); *translate([0,0,21]) color("blue") cube([10,10,9]); *translate([-33,20,21-8]) color("cyan") cube([3,3,17]); *color("magenta",0.5) cube([5,5,30]); difference() { color("green", 0.3) translate(...
glb/cad_aea1a482526a.glb
Create a Flashforge Adventurer 3 External Filament Guide. The model consists of a cylindrical coupler designed to hold a PTFE tube. Construct a hollow cylinder with a height of 10mm. For the PTFE tube variants, create a ring with an outer diameter of 10mm and an inner diameter of 8mm (for 4mm outer diameter tubes) or...
default_min_facettes = 8; default_render_quality = 75; default_render_min_facette_length = 0.25; default_render_max_facette_length = 3; default_preview_quality = 25; default_preview_min_facette_length = 0.75; default_preview_max_facette_length = 5; $facettes = undef; $rounder_facettes = undef; $object_facettes = und...
glb/cad_d7e8c71d1cdf.glb
Create a Flashforge Adventurer 3 External Filament Guide consisting of a base foot and a filament guide neck. Start by creating a rectangular base foot with a length of 55mm, a width of 13mm, and a thickness of 3.5mm. Round the corners of this base. In this base, create two vertical holes with a diameter of 4.05mm, s...
guide = "tube 6mm"; model = guide == "tube 6mm" ? "tube" : guide == "tube 4mm" ? "tube" : guide == "ring" ? "ring" : guide == "tube 6mm test" ? "tube" : guide == "tube 4mm test" ? "tube" : guide == "ring test" ? "ring" : guide == "foot test" ? "foot" : undef; test = guide == "tube ...
glb/cad_8bb93e312f47.glb
Create a simple rivet consisting of two interlocking parts: a male part and a female part. For the male part, create a circular base head with a diameter of 8.3mm and a thickness of 1mm. From the center of this head, extend a cylindrical shaft upwards with a total length of 6.4mm. The shaft should have a diameter of 3...
model = "rivet"; ShaftDiameter = 3.93; ShaftThickness = 0.7; ShaftLength = 3.5; ShaftLengthMargin = 2.9; ShaftInnerMargin = 0.16; HeadDiameter = 8.3; HeadThickness = 1; GripSize = 0.3; MaleGripOffset = 0.01; FemaleGripOffset = -0.01; PusherDiameter = 15; PusherHeight = 5; PusherThickness = 2; use <rounders.scad>; ...
glb/cad_c10db953b179.glb
Create a Parametric Magnetic Box consisting of a main body and a separate lid. The main body is a rectangular container with four internal compartments, each measuring 40x40x20mm. The exterior walls should be thick enough to house magnets. In the base of each of the four compartments, create a circular recessed hole ...
default_min_facettes = 8; default_render_quality = 75; default_render_min_facette_length = 0.25; default_render_max_facette_length = 3; default_preview_quality = 25; default_preview_min_facette_length = 0.75; default_preview_max_facette_length = 5; $facettes = undef; $rounder_facettes = undef; $object_facettes = und...
glb/cad_2f407b5f7652.glb
Create a Parametric Magnetic Box consisting of a main box, a lid, and a separate bottom piece. For the main box, create a rounded rectangular block with a total height of 20mm and a base size that accommodates a 2x2 grid of compartments. Each of the four compartments should be 40x40x20mm with a corner rounding radius ...
CreatePart = "Test"; CutOut = false; Tolerance = 0.3; CompartmentCountX = 2; CompartmentCountY = 2; CompartmentSizeX = 40; CompartmentSizeY = 40; CompartmentSizeZ = 20; CompartmentRoundingRadius = 10; CompartmentMargin = 2; CompartmentBottomMargin = undef; CompartmentMagnetDiameter = 15; CompartmentMagnetSizeZ = 2; ...
glb/cad_4be2c87b6436.glb
Create a wooden box with overall dimensions of 1000mm x 500mm x 500mm, scaled down by a factor of 87. The box is constructed from planks with a width of 100mm and a thickness of 20mm. For the front and back faces, create a series of five parallel planks, each 1000mm wide and 20mm thick, spaced with a gap of 0.1mm betw...
scaler=87; fdm=0; size=[1000,500,500]; wdosk=100; hdosk=20; yhld=260; ddosk=0.1; depth=0.1; walls=0.5; drain=2.2; furn=0.07; ddoss=ddosk*scaler; dpth=depth*scaler; ws=walls*scaler; dri=drain*scaler; rel=furn*scaler; ndh=floor(size[2]/wdosk); ddh0=(size[2]-wdosk*ndh)/(ndh-1); ddh=(ddh0<ddoss?ddoss:ddh0); wdh=(size[2...
glb/cad_65b28ad6032f.glb
Create a replacement stand part for a Megami Device model. Start by constructing a rectangular base block measuring 85mm in length, 8mm in width, and 6mm in height. Along the length of this block, create a series of 9 evenly spaced rectangular cutouts. Each cutout should measure 9.5mm in length, 6mm in width, and 2.5mm...
$fn=50; length_cells = 8; clearance = 0.05; difference(){ cube([1+(9.5+1)*length_cells,8,6]); for (c=[0:length_cells]) { translate([1+(9.5+1)*c,1,0]) cube([9.5, 6, 2.5]); translate([1+(9.5+1)*c,1,3.5]) cube([9.5, 6, 2.5]); } } translate([-4,0,0]) cube([4,1,3]); translate...
glb/cad_11f38f43a6d3.glb
Create an adjustable toilet paper holder consisting of two main coaxial tube assemblies. First, construct the large tube assembly. Create a hollow cylinder with an outer diameter of 25mm, a wall thickness of 1.8mm, and a length of 80mm. At the top end of this cylinder, add a cap consisting of a 2mm thick base with a ...
lg_dia = 25; lg_len = 80; lg_d = 1.8; cap_dia = 15.5; cap_len = 7; cap_d = 1.2; total_len = 160; sp_len = 68; lock_h = (lg_len - ((sp_len) * .9))/2; sm_dia = 21.5; sm_len = total_len - lg_len + lock_h; sm_d = 1.5; key_sz = 3; module tube(len,dia,thick) { difference() { cylinder(len,d=dia,dia/2); translate([...
glb/cad_d92c8e5cc992.glb
Create a wall pad for zip ties by constructing a composite geometric shape. Start with a wide, flat circular base with a diameter of 60mm and a height of 1mm. Centered on this base, add a truncated cone that rises to a height of 10mm, tapering from a bottom diameter of 30mm to a top diameter of 20mm. Finally, carve a r...
difference(){ union(){ cylinder(d=60,h=1); cylinder(d1=30,d2=20,h=10);} #translate([0,0,5])cube([10,50,3],center=true); #translate([0,0,5])rotate([0,0,90])cube([10,50,3],center=true);}
glb/cad_33185f5bdbdb.glb
Create a snap-on filament spool holder designed to clamp onto a 3.2mm thick plate. The main body is a vertical mount with a total height of 36mm and a width of 11.7mm. The mount features a clamp mechanism with a central slot 3.2mm wide and 50mm long to accommodate the frame plate. The arm extends from this base at a ...
$fs=0.2; $fa=1; angle=-20; armThickness=15; holderLength=120; armLength=130; armThicknessCS=15; holderDia=22; plateThickness=3.2; clampSpace=50; clampLen=clampSpace + 10; mt=plateThickness+8.5; wl=32; function getDX(d) = cos(angle)*wl/2-(d/armLength)*(cos(angle)*wl-holderDia)/2; module solid() { hull() { ...
glb/cad_4d32bf17a9d4.glb
Create a tube socket for electronics. Start with a base that is a combination of a cylinder with a radius of 17mm and a height of 5mm, blended with two smaller cylinders of 5mm radius and 5mm height positioned 38.5mm apart from each other along the x-axis to create a rounded, elongated footer. On top of this base, add ...
socket_hight = 15 ; socket_radius = 17; pin_radius = 1.5; pin_numbers = 8; pin_distance = 8.5 ; center_radius = 4; notch_size = 2; notch_position = 112.5; notch_distance = center_radius; $fs = 0.01*1; difference() { union() { hull() { translate([77/2,0,0]) cylinder(5,10/2,10/2); translate([0,0,...
glb/cad_de156761a8bb.glb
Create a threaded funnel consisting of a cylindrical base and a conical top. Start by creating a hollow cylindrical cap with an outer diameter of 23.5mm and a height of 13.2mm. Inside this cap, carve out a trapezoidal threaded hole with an internal diameter of 21.5mm, a height of 12.2mm, and a thread pitch of 3.35mm. ...
include <BOSL/constants.scad> use <BOSL/threading.scad> use <BOSL/transforms.scad> PPart="Funnel"; CIDia=21.5; CapZ=12.2; DTop=60; TPitch=3.35; ConeZ=30; NVents=4; VSpace=360/NVents; VDia=2; VAng=90; VBot=11; $fn=0; rotate([180,0,0]) { if(PPart=="Funnel") funnel(); else cap(); } mod...
glb/cad_da0457634fd7.glb
Create a fan and heatsink duct. Start with a main rectangular block measuring 42mm in width and depth, and 15.1mm in height. Cut a circular hole with a diameter of 37.5mm through the center of the block for the fan. Create a large rectangular recess measuring 38mm by 38mm and 20mm deep to accommodate the heatsink. ...
$fs=0.8; $fa=4; %translate([0,0,-0.5])cube([200,200,1],center=true); sc = 32; wall=2; hole = 37.5; x=42; y=x; z=15.10; heo = 2.5; hbr = 16; size=11; joint_spacing =0; joint_thickness = 3; joint_arms = 2; arm_width = 5; ventB=(x/2)-(hbr/2)+heo-2; ventS=(x/2)-(hbr/2)-heo; module ball() { sphere(r=size); translate([...
glb/cad_42516e467602.glb
Create a curtain rod holder consisting of two separate parts: a base mount and a clamping bracket. For the base mount, create a square plate 21mm wide, 21mm deep, and 2mm thick. Centered on top of this plate, add a square block 17mm wide, 17mm deep, and 10mm high. Remove a central square hole 13mm wide and 13mm deep ...
use <rcorn_cube.scad> include <ISOThread.scad> $fn=50; round_precision=6; angle=false; double=false; difference(){ union(){ cube([21,21,2]); translate([2,2,0])cube([17,17,10]); } translate([4,4,2])cube([13,13,10]); translate([10.5,10.5,0]) { cylinder(h=5,r=2); translate([0...
glb/cad_96e8e6938422.glb
Create a pool drainage nozzle by starting with a solid cylinder 29mm in radius and 13mm in height. Carve a central vertical hole through the entire height with a radius of 19.5mm. Around the outer perimeter of the top surface, create 15 evenly spaced vertical holes, each 7mm in diameter, positioned 2mm inward from the ...
include <ISOThread.scad> use <dotscad/on_arc.scad>; $fn=100; difference() { intersection() { union() { cylinder(h=13,r=58/2); translate([-58/2+2,0,0]) for(a = [0 : 24 : 360]) { on_arc(58/2-2, a) cylinder(h=30,r=3.5); } } translate([0,0,-75+15])sphere(r = 75); } translate([0,0,-0.1])cylinder(h=...
glb/cad_c98d162770b6.glb
Create a pool nozzle by starting with a sphere of radius 20.5mm. Flatten the top and bottom of the sphere by intersecting it with a cube that is 50mm wide, 50mm deep, and 23mm high, centered on the origin. Remove a vertical cylindrical hole with a radius of 11mm that passes through the center from the bottom to a heigh...
include <ISOThread.scad> include <meshscreen.scad> $fn=100; difference(){ translate([0,0,0])intersection(){ sphere(r=41/2); cube([50,50,23],center=true); } translate([0,0,-15])cylinder(h=40,r=11); translate([0,0,-30.5])cylinder(h=40,r=16); } translate([0,0,8.5])meshscreen_cirlce(h=3,border_w=2,mesh_w=1,mesh_...
glb/cad_c3af3444ed51.glb
Create a pool drainage nozzle consisting of a shallow circular flange and a threaded cylindrical base. Start by creating a flat circular disc with a radius of 44mm and a thickness of 9mm. Attached to the bottom of this disc, create a cylindrical body that extends downwards to a total depth of 45mm from the top surface....
include <ISOThread.scad> $fn=100; epaisseur_plate = 9; profondeur_totale = 45; rayon_sphere_plate = 170; difference() { intersection() { union() { cylinder(h=epaisseur_plate,r=44); translate([0,0,-(profondeur_totale-epaisseur_plate)])thread_out_centre_pitch(59,37,2.0); translate([0,0,-(profondeur_totale-epa...
glb/cad_de10b41fb79a.glb
Create a pool nozzle by starting with a sphere that has a radius of 20.5mm. Flatten the top and bottom of this sphere by constraining it within a cube that is 50mm wide, 50mm deep, and 23mm high, centered on the origin. Bore a vertical hole through the center of the object with a radius of 11mm, extending from a height...
include <ISOThread.scad> $fn=100; difference(){ translate([0,0,0])intersection(){ sphere(r=41/2); cube([50,50,23],center=true); } translate([0,0,-15])cylinder(h=40,r=11); translate([0,0,-30.5])cylinder(h=40,r=16); }
glb/cad_d8dd50466933.glb
Create a pool nozzle adapter by starting with a hexagonal nut shape. Construct a hexagonal prism with a flat-to-flat width of 83mm and a total height of 20mm. Center this prism on the origin, extending from Z=10 to Z=30. Inside this hexagonal body, remove a central cylindrical hole with a radius of 30.9mm that passes...
include <ISOThread.scad> $fn=100; epaisseur_bague = 20; #thread_in_ring(61.5,epaisseur_bague-5,2.0); thread_in_pitch(61.5,epaisseur_bague-5,2.0); difference() { intersection(){ translate([0,0,10])cube([83,83,20],center = true); translate([0,0,10])rotate([0,0,45])cube([83,83,20],center = true); } translate([0,...
glb/cad_b3be9c6cdfa0.glb
Create a parametric card case by starting with a solid rectangular block measuring 93mm in length, 60mm in width, and 38mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 89mm by 58mm by 37mm, positioned 2mm from the front, side, and bottom faces. To create the open-access sid...
len_cart=89; wid_cart=58; hei_cart=34; tick=2; wid_otstup=5; len_box=len_cart+tick*2; wid_box=wid_cart+tick; hei_box=hei_cart+tick+2; difference() { cube ([len_box,wid_box,hei_box]); translate ([tick,tick,tick]) cube ([len_cart,wid_cart+1,hei_cart+3]); translate ([-1,tick+wid_otstup,tick+wid_otstup]...
glb/cad_8ec5610d664c.glb
Create a parametric card case consisting of a main box and a matching cover. For the main box, create a solid rectangular block measuring 93mm in length, 60mm in width, and 38mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 89mm by 58mm by 34mm, positioned 2mm from each wall...
len_cart=89; wid_cart=58; hei_cart=34; tick=2; wid_otstup=5; len_box=len_cart+tick*2; wid_box=wid_cart+tick; hei_box=hei_cart+tick+2; {difference() { cube ([len_box+tick*2,wid_box+tick*2,hei_box+tick]); translate ([tick,tick,0]) cube ([len_box,wid_box,hei_box]); ...
glb/cad_597fbd54530b.glb
Create a print-in-place parametric pulley with a mount. Start by creating a rectangular mount base 27mm wide, 25mm long, and 3mm thick. At each end of the base's length, center a countersunk screw hole: the main hole is 4mm in diameter, transitioning to a 9mm diameter countersink 2mm deep. Round the corners of the base...
pulley_dia = 25; pulley_radius = pulley_dia/2; mount_base_thickness = 3; mount_outer_plate_thickness = 4; pulley_width = 12; depthOfPullySlot = 6; smallPercentOfWidth = pulley_width*0.12; bigPercentOfWidth = pulley_width*0.52; gap_between_mountbase_and_pulley = 4; gap_between_mountwall_and_pulley = 1; pulley_pin...
glb/cad_4bee0956a0d6.glb
Create a print-in-place parametric pulley with a mount. Start by constructing a rectangular mount base 21mm wide, 25mm long, and 3mm thick. At each end of the base, center a vertical cylinder with a radius of 7.5mm and a height of 3mm. Within these cylinders, create countersunk screw holes that taper from a 4.5mm radiu...
pulley_dia = 25; pulley_radius = pulley_dia/2; holes_alignment = "axial"; mount_base_thickness = 3; mount_outer_plate_thickness = 4; pulley_width = 12; depthOfPullySlot = 6; smallPercentOfWidth = pulley_width*0.12; bigPercentOfWidth = pulley_width*0.52; gap_between_mountbase_and_pulley = 4; gap_between_mountwall...
glb/cad_8d5ff9377e93.glb
Create a Tipi Spool holder consisting of two identical rectangular arms joined at a single pivot point. Each arm must be a block measuring 15mm wide, 20mm thick, and 115mm long. Position the two arms so they are mirrored and angled away from each other at an 18-degree angle. At the outer end of each arm, create a circu...
rotate([0,-90,0]) difference(){ union(){ translate([0,0,0]) rotate([-18,0,0]) translate([0,-10,-1.5]) cube([15,20,115]); translate([0,60,0]) rotate([18,0,0]) translate([0,-10,-1.5]) cube([15,20,115]); } translate([0,00,0]) rotate([0,90,0]) cylinder(r=4.2, h=15); translate([0,60,0]) rotate([0,90,0]) cylinder(r=...
glb/cad_6e3d519d1679.glb
Create an Orb Qi Charger Shell by designing a hollowed-out hemispherical casing with a wall thickness of 2mm. Start with an outer sphere of 83mm diameter and a corresponding inner spherical void of 79mm diameter. Slice the sphere in half horizontally and add a cylindrical base plate with a thickness of 3.91mm to the bo...
orbdia = 79; top_plate = 3.91; angle = 35; wallthick=2; support=5; support_indent=10; casehole=3.7; outdia = orbdia+(2*wallthick); module stuff_to_remove () { translate([0,0,wallthick+(orbdia/2.0)]) union() { rotate([0,180+angle,0]) union() { difference() { ...
glb/cad_6484b439a3dc.glb
Create a battery cap for an 18650 cell. Start by constructing a hollow cylinder with an outer diameter of 22mm and an inner diameter of 19mm, reaching a total height of 20mm. The bottom wall of this cylinder should be 1.5mm thick, while the rest of the body remains a hollow shell. On the bottom face, create two small c...
ht=20; id=19; th=1.5; hd=2; a=4; w=2.5; b=2; $fn=50; cap(); module cap() { difference() { difference() { cylinder(h=ht,d=id+th*2); translate([0,0,th]) cylinder(h=ht-th,d=id); } translate([-3,0,0]) cylinder(h=th,d=hd); translate([3,0,0]) cylinder(h=th,d=...
glb/cad_77df89af46b0.glb
Create a door opener and stylus tool with a thickness of 10mm. The main body is a rectangular beam 75mm long and 10mm wide. At one end of the beam, create a finger hole by centering a ring with an outer diameter of 35mm and an inner diameter of 25mm. At the other end of the beam, create a door hook by centering a ring ...
thick=10; finger=25; outerdiam=10+0; fingeroutside=finger+outerdiam; door=30; douterdiam=12+0; doutside=door+douterdiam; dooropening=-30; len=75; wire=2; offset=51; $fn=50+0; module fingerhole() { difference() { cylinder(d=fingeroutside,h=thick); cylinder(d=finger,h=2*thick); } } module ...
glb/cad_59462ad03057.glb
Create a furniture foot plug consisting of a skewed cover and an inserted plug. First, create a cover with a thickness of 4mm. The cover's base shape is a rectangle with dimensions 34.8mm by 50mm and corner radii of 10mm. Extrude this shape, but apply a 10-degree skew angle along the 34.8mm dimension. The top edges o...
show_slice = "On"; hole_shape = "Rectangle"; hole_dimension1 = 34.8; hole_dimension2 = 50; hole_radius = 10; hole_depth = 20; plug_length = 15; plug_clearance = 1; plug_thickness = 1.5; features = "Fins"; feature_length = 1.0; feature_height = 1.5; fin_number = 3; snap_width_factor = 0.5; cover_thickness ...
glb/cad_7b87f63e6c72.glb
Create a ladder foot protector consisting of a plug and a zigzag cover. First, create a hollow plug with a rectangular outer profile of 50mm by 25mm and rounded corners with a 10mm radius. The plug should have a total length of 25mm and a wall thickness of 5.5mm. Along the length of the plug, add 5 evenly spaced fins...
show_slice = "On"; hole_shape = "Rectangle"; hole_dimension1 = 50; hole_dimension2 = 25; hole_radius = 10; hole_depth = 30; plug_length = 25; plug_clearance = 1; plug_thickness = 5.5; features = "Fins"; feature_length = 1.0; feature_height = 1.5; fin_number = 5; snap_width_factor = 0.5; cover_thickness = ...
glb/cad_542ae47a7e27.glb
Create a mounting bracket for an Azteeg X3 controller board. The main body is a flat plate 10mm thick. Start by creating a base structure that includes two 20-facet cylinders with a radius of 5.4mm (based on a 10.8mm diameter threaded rod plus 2.4mm) and a central rectangular section 10mm high. The overall footprint ...
include <configuration.scad> module bottom_controller_mount(hole_spacing,bar_spacing){ outer_diameter = (threaded_rod_diameter-0.0)/2+2.4; difference(){ union(){ translate([outer_diameter, outer_diameter, 0]) cylinder(h = 10, r = outer_diameter, $fn = 20); translate([outer_diameter, 0, 0]) cube([outer_diameter+...
glb/cad_1ad79a33756b.glb
This OpenSCAD code defines a modular system for creating a custom dog collar or harness accessory, specifically designed for various breeds. ### Core Functionality The script uses a conditional logic system based on a variable (presumably `breed_`) to determine which geometric profile to use. Each breed has a unique `...
breed_ = 0; if(breed_=="none"){ union(){ union(){ translate([-22.5,0,0]){ translate([0,-40,21]) rotate([45,0,0]) cube([10,10,5]); translate([0,-45,0]) cube([10,5,25]); } translate([12.5,0,0]){ translate([0,-40,21]) rotate([45,0,0]) cube([10,10,5]); translate([0,-45,0]) cube([10,5,25]); } translate([-60,0,0]...
glb/cad_5e059a0731ba.glb
Create a Moving Eye assembly consisting of a case, an eye, and an iris. First, construct the case as a hollow cylinder with an outer diameter of 120mm and a height of 40mm. The wall thickness is 10mm. On the outer surface, add two rectangular holders, each 35mm long, 15mm wide, and 8mm high, positioned symmetrically ...
type= "case"; fn_value=200; eye_diameter=100; eye_case_space=2; iris_diameter=30; iris_h=20; case_h=40; case_border=10; case_holder_h=8; case_holder_l=35; case_holder_b=15; case_holder_border=10; case=false; eye=false; iris=false; axis_holder=false; if(case || type == "case"){ difference() { case(...
glb/cad_cf7ac3c33d3e.glb
Create a simple open-top rectangular box. Start by forming a solid rectangular block with a total width of 124mm, a depth of 94mm, and a height of 52mm. From this solid, remove a smaller rectangular volume from the center to create a hollow interior. This interior cavity should measure 120mm in width, 90mm in depth, an...
Width = 120; Depth = 90; Height = 50; Thick = 2; difference() { cube([Width+2*Thick,Depth+2*Thick,Height+Thick]); translate([Thick, Thick, Thick]) { cube([Width,Depth,Height]); } }
glb/cad_a4182966309e.glb
Create a replacement horizontal blind clip with a total length of 46.37mm, a width of 21.21mm, and a height of 7.2mm. The main body is a rectangular base with a thickness of 2mm. On the left side, construct two symmetrical clip arms. Each arm is formed by a union of a 1.8mm wide rectangular block and a larger section...
bh = 7.2; l = 46.37; w = 21.21; t = 2; module clipside() { union () { cube(size=[1.8,12.1, bh]); difference() { translate(v=[0, 10.25, 0]) cube(size=[5, 1.85, bh]); translate(v=[4.75, 10, -.2]) rotate(a=45, v=[0, 0, 1]) cube(size=[4, 4, bh+.4]); } } } module clip() { translate (v=[7.3, 0...
glb/cad_7462a7196675.glb
Create an air vent for a DAF33 consisting of a base, a slanted section, and a funnel. Start with a rectangular base 90mm long, 48.8mm wide, and 1.4mm thick, with corners rounded to a 4mm radius. Centered on the base, add a slanted section 80mm long and 41.8mm wide. This section rises from the base to a height of 4.8m...
thickness = 1.4; eps = 0.05; $fn = 90; basewidth = 48.8; baselength = 90; baser = 4; spwidth = 41.8; splength = 80; spheight = 4.8; spxoffset1 = 51.0; spxoffset2 = 73.7; funnelwidth = 38.5; funnellength = 16.4; funnelheight = 18.8; fscdepth = 2.8; fscheight = 15.8; fscposition = -1; ridgediam = 14.4; ...
glb/cad_13d446b8780a.glb
Create an EZstruder Mounting Adapter starting with a base plate that is 90mm long, 14mm wide, and 5mm thick. Position two vertical holes with a radius of 1.5mm passing through the base plate: one at the center of the front edge (0,0,0) and one at the far end (0,85,0). At the rear of the base, add a rectangular block me...
include <configuration.scad>; z = 5; difference(){ union(){ translate([7,0,0])rotate([0,0,90])cube([90,14,z], center=false); translate([-32,27,0])cube([25,10,z], center=false); translate([-32,27,z])cube([10,10,41]); translate([-7,74,z])cube([14,z,30]); } translate([0,5,-1])cylinder(r=m3_radius,h=8,center=false,$fn=10...
glb/cad_04beeb2aa899.glb
Create a replacement wall switch button by combining two rectangular prisms. First, create a wide, thin base plate measuring 9.4mm in width, 13.5mm in depth, and 2.5mm in height. Centered on top of this base, place a second, taller rectangular block measuring 7.55mm in width, 9.75mm in depth, and 6.5mm in height. Final...
difference() { union() { translate([0,0,2.5/2]) cube(size=[9.4,13.5,2.5],center=true); translate([0,0,6.5/2]) cube(size=[7.55,9.75,6.5],center=true); } translate([0,0,2.5]) cylinder(r=2.2,h=7); }
glb/cad_2ed9907ee07e.glb
Create a centering plate for a Maslow CNC router by extruding a specific 2D profile around a central axis to form a 30-degree arc segment. The profile consists of two connected rectangular sections. First, create a base rectangle that is 2mm thick and extends from a radius of 46mm to 58.5mm from the center. Attached to...
router=92; ring=209; ring_grip=10; space=(ring-router)/2; ring_h=3; base=2; wall=2; $fn=200; module profile() { translate([ring/2-wall,0]) square([wall,base+ring_h]); translate([router/2,0]) square([space+ring_grip,base]); } rotate_extrude(angle=30) profile();
glb/cad_d4817f77804c.glb
Create a Parametric Hexa Cable Organizer consisting of a honeycomb grid of hexagonal tubes. The overall structure should have a maximum width of 230mm, a maximum depth of 150mm, and a height of 100mm. Each hexagonal cell is defined by a wall thickness of 1.2mm and an inner flat-to-flat diameter of 30mm. Arrange these ...
function toPointy(flatMeasure) = flatMeasure / cos(30); function toFlat(pointyMeasure) = pointyMeasure * cos(30); function borderFuz(measure) = measure * 1.00000000001; Cell_size = 30; Wall_thickness = 1.2; th = Wall_thickness; pth = toPointy(th); Width = 230; Depth = 150; Height = 100; Scaling_strategy="none"; ...
glb/cad_2b590a09f60c.glb
Create a smoothie maker bottle dryer consisting of a circular base and three symmetrical upright supports. The base is a flat disc with a diameter of 75mm. From this base, extend three identical arms spaced 120 degrees apart. Each arm is a vertical structure 20mm high. The core of each arm is formed by a vertical sha...
$fn=8; h_total=20; d_element=4; d_inner_bottle=61; d_basement=75; t=2.5; d_outer_bottle=d_inner_bottle+2*t; fillet(r=5,steps=7,include=true) { rotate([0,0,000]) fillet(r=1.0,steps=3,include=true) { hull() { translate([-d_outer_bottle/2+d_element*2+1,0,h_tot...
glb/cad_705eb3196393.glb
Create a sprinkler for a small watering can. Start with a base cylinder 17mm in diameter and 20mm high. On top of this base, create a flared, wedge-like head that transitions from the 17mm diameter to a wider, flattened oval shape approximately 40mm long and 8mm thick, angled upwards at 20 degrees. Hollow out the cente...
$fn=30; difference() { union() { translate([0,0,0]) cylinder(d=17,h=20); hull() { translate([0,0,18]) cylinder(d=17,h=2); translate([0,-5,30]) rotate([20,0,0]) resize([40,8,10]) ...
glb/cad_37d18290f500.glb
Create a parametric fabric pleating tool with a uniform thickness of 2.4mm. The tool consists of a wide head and a narrower handle. The head is a rectangle 28mm wide and 30mm long. Attached to the head is a handle 13mm wide and 50mm long, ending in a semi-circular cap with a diameter of 13mm. The transition between the...
THICKNESS = 2.4; PLEAT_WIDTH = 20; PLEAT_LENGTH = 30; PRONG_WIDTH = 5; PRONG_SPACE = 3; PRONG_SPACE_OFFSET = 5; HANDLE_WIDTH = 13; HANDLE_TRANSITION = 10; HANDLE_LENGTH = 50; HOLE_DRILL = 4; FONT_SIZE=8; TEXT_HEIGHT=0.6; $fs=0.5; PLEAT_TOTAL_WIDTH = PLEAT_WIDTH + PRONG_WIDTH + PRONG_SPACE; module pleater_base(){ ...
glb/cad_e4252507d49a.glb
Create a Guitar Pick Holder consisting of a shallow, rounded triangular tray. The main body is a flat plate with a thickness of 2.5mm. The outer perimeter is defined by the intersection of three circles: two large circles with a radius of 41mm and one smaller circle with a radius of 20mm, creating a teardrop-like trian...
BOX_HEIGHT = 1; CURVE_RADIUS = 41; SMALLER_CURVE_RADIUS = 20; TOP_SEPERATION = 60; BOTTOM_SEPERATION = 36; ROUNDED_EDGE = 3; PICK_THICKNESS = 1; $fn = 150; top(); module box(){ difference(){ scale(1.03)pick(12,5); translate([0,0,3])pick(12,3.1); translate([0,0,-1])scale(.75)pick(3); translate([0,-18,-1])cub...
glb/cad_85bae9452854.glb
Create a Suzuki DP-1000 hinge base for a piano key. Start with a top plate that is a rectangular block measuring 30.7mm in width, 13mm in depth, and 2.5mm in height. Remove two notches from this plate: the first from x=22.5mm, y=-0.1mm, z=-0.1mm with dimensions 11mm by 2.5mm by 3.5mm, and the second from x=22.5mm, y=10...
$fn=155; color("green"){ translate([0,0,21.8]) difference(){ cube([30.7,13,2.5], false); translate([22.5,-.1,-.1]) cube([11,2.5,3.5],false); translate([22.5,10.6,-.1]) cube([11,2.6,3.5],false); } translate([17.0,0,23.3]) cube([2.5,5.0,3.5],false); translate([17.0,0.0,27.2]) rotate([0,90,0]) lin...
glb/cad_010eb1a9c853.glb
Create a LILYGO TTGO VGA32 V1.4 Controller Case consisting of a main body and a lid. For the main body, create a rectangular enclosure with outer dimensions of 63.4mm x 37.4mm x 18.5mm (wall thickness of 1.2mm). Hollow out the center to create a PCB cavity of 61mm x 35mm x 17.5mm. At each of the four corners, add a c...
$fn = 32; wall = 1.2; base_z = 17.5; brd_x =61.0; brd_y =35; nub_z = wall+2.7; tap_drill = 2.26; clr_drill = 3.175; nub_dia = 3.75; module main_body() { difference() { union() { translate([-wall,-wall,0])cube([brd_x+2*wall,brd_y+2*wall,base_z+wall]); translate([-wall,-wall,0]) cylinder(d=6,h=...
glb/cad_ca49cbe5dd6a.glb
Create a LILYGO TTGO VGA32 V1.4 Controller Case consisting of a main body and a lid. For the main body, create a rectangular enclosure with outer dimensions of 63.4mm x 37.4mm x 18.5mm (based on a 61mm x 35mm internal area with 1.2mm walls). The interior should be hollowed out from a height of 1.2mm up to 18.5mm. At ...
$fn = 32; wall = 1.2; base_z = 17.5; brd_x =61.0; brd_y =35; nub_z = wall+2.7; tap_drill = 2.26; clr_drill = 3.175; nub_dia = 4.5; module main_body() { difference() { union() { translate([-wall,-wall,0])cube([brd_x+2*wall,brd_y+2*wall,base_z+wall]); translate([-wall,-wall,0]) cylinder(d=6,h=b...
glb/cad_95a5ab28a663.glb
Create a fake 18650 battery by constructing a main cylinder with a diameter of 18mm and a height of 65mm. At the top face of this cylinder, create a recessed circular indentation to represent the positive pole. This is achieved by removing a central cylinder with a diameter of 14mm (a 2mm radius reduction from the oute...
diameter = 18; height = 650; $fn = 360; radius = diameter / 2; real_height = height / 10; module plus_pole_cut() { difference() { cylinder(h = 1, r = radius - 1); cylinder(h = 1, r = radius - 2); } } module battery() { difference() { cylinder(h = real_height, r = radius); translate([0, 0, real_...
glb/cad_4e9e233919bd.glb
Create a pencil holder in the shape of an equilateral triangular prism with rounded corners. The outer wall is based on a triangle with a side length of 100mm and a total height of 100mm. The corners of this triangle are rounded with a radius of 5mm. Hollow out the center of the prism to create a storage cavity. The ...
side = 100; module triangle(a=50, r=5, height=10) { h = (sqrt(3) * a) / 2; base = [[0, h], [a / 2, 0], [-a / 2, 0]]; linear_extrude(height) { minkowski() { polygon(base); circle(r); } } } difference() { cntr = -1/3*side; translate([0, cntr+4,0]) { ...
glb/cad_f3b3ee211a9d.glb
Create a customizable combination lock safe consisting of a container, a lid, and rotating combination discs. The container is a prism with 4 sides, a radius of 20mm, and a wall thickness of 1.2mm. Its total height is determined by the number of discs used (3 in this case), each 10mm high, plus a 2mm base and top. Th...
part = "container"; baseSize = 2; wallSize = 1.2; clearance = 0.3; containerSides = 4; containerRadius = 20; extraHeight = 4; lockCoreRadius = 3; lockInnerGap = 0.8; numberOfDiscsPerLock = 3; discHeight = 10; discRadius = 9; letterDepth = 0.8; letterExtrude = false; discString = "ABCDEF"; print_part(); ...
glb/cad_b9d877cd0f3e.glb
Create a Bee Waterer consisting of a shallow circular basin and a threaded adapter for a wine bottle. First, construct the threaded adapter. Create a nut with an M30x2.5 thread specification, having 4 turns and an outer diameter of 36mm. This nut should have a total height of 13mm. Cut two intersecting rectangular sl...
use <threadlib/threadlib.scad> slot = 12; myheight = 1; height = slot + myheight; beam = 40+0; offs = 11; shape = 100; $fn=100+0; dia = 100; rim = 2; bottom = 3; dheight = 0.5; xheight = height+dheight; position = 25; free = 10 ; center = 20 ; module bottlethread() { nut("M30x2.5", turns=4, Douter=36);...
glb/cad_c4b6b6ce87be.glb
Create a wine bottle water supply stand by starting with a hollow cylindrical nut. The nut should have an outer diameter of 36mm, an inner diameter of 30.5mm, and a height of 20mm, featuring internal M30x2.5 threading with 4 turns. Position this cylinder so its base is 11mm above the origin. To allow water to escape, c...
use <threadlib/threadlib.scad> nut("M30x2.5", turns=4, Douter=36); specs = thread_specs("M30x2.5"); $fn=100; hole=14; difference() { translate([0,0,11])color("red")cylinder(d=36,h=20); translate([0,0,10])color("red")cylinder(d=30.5,h=22); translate([-(hole/2),-50,11])color("blue")cube([hole,100,17]); ...
glb/cad_5bbbbfb4bd85.glb
Create a wine bottle bird drinker consisting of a threaded bottle mount and a wide drinking dish. First, construct the bottle mount by creating a nut with M30x2.5 specifications, featuring 4 turns and an outer diameter of 36mm. This mount should have a total height of 13mm, starting from a base offset of 11mm. Within t...
use <threadlib/threadlib.scad> slot = 12; myheight = 1; height = slot + myheight; beam = 40+0; offs = 11; shape = 100; $fn=100+0; dia = 100; rim = 2; bottom = 3; dheight = 2; xheight = height+dheight; position = 25; module bottlethread() { nut("M30x2.5", turns=4, Douter=36); specs = thread_specs("M30...
glb/cad_636a6ec3ac3d.glb
Create a rectangular storage box for a machine vice. Construct the main body as a solid rectangular prism with outer dimensions of 52mm in width, 104mm in depth, and 52mm in height. Hollow out the center of this prism to create a cavity that is 46mm wide, 98mm deep, and 50mm high. Position this internal cavity so that ...
$fs = 0.01; include <fillets.scad>; box_width = 52+6; box_depth = 104+6; box_base_height = 50+2; box_lid_height = box_base_height+2; xoffset1 = 3; yoffset1 = 3; zoffset1 = 2; module box_lid() { difference() { union() { cube(size=[box_width+6, box_depth+6, box_lid_height]); } translate([2.5,2.5,2]) c...
glb/cad_e4301bd53061.glb
Create a Customizable Round Corner Spool Drawer. The main body is a sector-shaped container designed to fit within a circular spool area. The outer boundary is an arc with a radius of 100mm, and the inner boundary is an arc with a radius of 43.9mm. The walls of the drawer have a thickness of 1.6mm. The drawer floor is...
$fn=48; ep=0.001; mode=6; spool_od=200; spool_id=87.8; spool_ih=55.5; drawer_hgap=1; drawer_vgap=0.5; drawer_fthick=2; drawer_wthick=1.6; n_drawer=4; cell_wheight=100; cell_wthick=1.1; n_cell=2; lid_vgap=0.6; lid_tthick=1.5; lip_thick=0.7; lip_height=5; pin_gap=0.35; pin_dia=4; pin_adj=0.1; pin_hdia...
glb/cad_2d4043973b3e.glb
Create a knob with a total height of 16mm. The base is a cylinder with a diameter of 15mm and a height of 8mm. Above this base, add a chamfered section 0.8mm high that tapers from a 15mm diameter down to 14.25mm. Atop the chamfer, add a final cylindrical section with a diameter of 14.25mm and a height of 7.2mm. Around...
$fn=30; test_fit_model = "no"; knob_test_height = 1; knob_height = 16; knob_diameter = 15; knob_bot_height_fraction = .5; knob_chamfer_height_fraction = .05; knob_top_daimeter_fraction = .95; number_of_cutouts = 15; diameter_of_cutouts = .1; rounded_top = "no"; rounded_top_radius_multiplier = 5; hole_type = "...
glb/cad_d923fa0b253d.glb
Create a Die with Plumbing puzzle by starting with a solid cube with a side length of 40mm. Inside this cube, carve out a network of interconnected cylindrical pipes, each with a radius of 2.5mm, that travel between the faces of the cube. The pipes are arranged in several segments. Some are straight paths that connect...
$fn=20; bore = 5/2; size = 16*bore; edge = 3*bore; dice(); module dice(){ %scale(1.05)cube(size); union(){ spots(); link0(); link1(); link2(); link3(); link4(); link5(); link6(); } } module link6(){ connect( face = 6, position = 1, length = 2, translate=[0,0,-2] ); connect( ...
glb/cad_c90479234166.glb
Create a Fan 40 mount for a NEMA 17 motor. Start by constructing a central base plate that is 41mm wide, 41mm deep, and 11mm thick, with rounded corners using a 2mm radius. In the center of this base, remove a cylindrical hole with a radius of 18.5mm and a height of 10mm. To create the mounting pillars, place four cy...
fan_nema(); module fan_nema(){ $fn=50; difference(){ union(){ difference(){ union(){ translate([0,0,5.5]) minkowski() { cube([41,41,20], center=true); cylinder(r=2,h=2); } } union(){ translate([0,0,14/2+1]){ minkowski() { cube([38,38,20], center=true); cylinder(r=2,h=2); } } ...
glb/cad_93ff37d18e42.glb
Create a Snap In Connector consisting of three distinct parts: two U-Hooks, one Snap-In-Unit, and two Lock-Blocks. For the U-Hooks, create a U-shaped wire with a diameter of 5mm. The straight sections of the hook should be 20mm long. The geometry is formed by a torus and cylinders, ensuring the ends are capped to allo...
_0_part = "U-Hook"; _1_diameter_of_wire = 5; _2_maximal_diameter_of_counter_hook = 6; _3_length = 20; _4_scale = 1; f = _4_scale; $fa = 5*1; $fs = 0.5*1; _5_wall_thickness= 1.75; t = _5_wall_thickness; a = 0*1; lgroove = 3*1; lcoupler = 3*lgroove+_1_diameter_of_wire+3*lgroove+2*a; if(_0_part == "U-Hook") scale(...
glb/cad_1fc680f176a1.glb
Create a parametric music pipe with a total length of 200mm and a wall thickness of 1mm. The shape is a hollow, flared bell formed by stacking thin cylinders. The radius of these cylinders should follow the formula $R = 310 / (2 \cdot (z + 5)^{0.5})$, where $z$ is the height from the base. Start the pipe at $z = 0$ a...
BellLength=200; SectionOffset=5; Factor_B=310; Factor_x0=SectionOffset; Coefficient_a=0.5; PipeThickness=1; ElementsPerMillimeter=0.2; ConnectionSleeve="Yes"; union(){ difference() { bell(PipeThickness); bell(0); } if (ConnectionSleeve=="Yes") { difference() { translate([0,0,BellLength-1]) cylinder...
glb/cad_7906b419f6eb.glb
Create a parameterized spool support hub consisting of a central shaft support and a surrounding flange system. Start with a central vertical cylinder with an inner diameter of 7.5mm and a height of 10mm. Around this, build a spool support base that is a cylinder with an outer diameter of 56mm and a height of 8mm. Fr...
spoolSupportOD = 56; spoolMinWidth = 55; spoolMaxWidth = 70; shaftHoleID = 7.5; shaftSupportLen = 10; innerHubBaseLen = 5; outerHubLen = 38; outerHubThickness = 3; minHubBaseSep = 10; minHubInsertion = 18; innerHubNumSlots = 5; slotWidth = 3; innerHubExtThickness = 1.5; innerHubTabThickness = 2; innerHubTabLen = 6; ...
glb/cad_4566308043b4.glb
Create a Maslow CNC Meticulous Z Lead Ingot Weight mount. The main body is a grip with a height of 17mm. First, construct the ingot cavity. The cavity is a tapered rectangular void designed to hold a lead ingot. The top of the cavity is 35mm by 99mm, and it tapers outward to a base that is approximately 45.5mm by 111...
in=25.4; ingot_height=40; ingot_angle=15; ingot_top_x=35; ingot_top_y=99; ingot_tree=65; ingot_tree_h=8; ingot_tree_w=10; ingot_base_x = ingot_height*tan(ingot_angle)*2+ingot_top_x; ingot_base_y = ingot_height*tan(ingot_angle)*2+ingot_top_y; echo("base"); echo(ingot_base_x); echo(ingot_base_y); grip_h = 17; pad=0....
glb/cad_30bfdf61a70d.glb
Create a series of hollowed cylinder sectors with varying dimensions. First, construct a full hollow cylinder with a height of 20mm, an outer radius of 10mm, and an internal radius of 5mm. Second, create a cylinder sector with a height of 10mm, an outer radius of 20mm, and an arc angle of 60 degrees. Third, create a cy...
module hollowcylindersector(height, radius, angle=360, intradius=0, center=false) { translate ([0, 0, center?(-height/2):0]) rotate (center?(-angle/2):0, [0, 0, 1]) rotate_extrude(angle = angle, convexity = 2) polygon([[intradius, 0],[intradius, height],[radius, height],[radius, 0]]); } hollowcylin...
glb/cad_cc6c7afaae1d.glb
Create a Maslow CNC Counterweight Chain Tension Pulley Mount. Start with a base body formed by the hull of two cylinders with a diameter of 23.5mm and a height of 5mm, positioned at the top and bottom of the central axis. Integrate this with a rectangular mounting block measuring 80mm in length, 3mm in thickness, and 5...
in=25.4; rail_x=150; rail_y=1.5*in; rail_z=3.5*in; rail_angle=15; rope=6; pulley_od=13.5; pulley_id=10; pulley_bolt=4; pulley_h=7.5; screw=5.5; screw_head=10; guide=pulley_od+rope*2; guide_h=5; mount_wall=3; mount_x=80; mount_y=rail_y+mount_wall; mount_z=rail_z/2; mount_front_z=mount_wall; pad=0.1; rope_h=20.3;...
glb/cad_3c4ef592e1ec.glb
Create a Modular Bar for a mask ear saver. Start by creating a flat rectangular bar with a thickness of 0.5mm and a total width of 14mm. The bar's length is determined by the number of holes it contains; for a 2-hole bar, the length is 15mm. At each end of the bar, create a semi-circular cap with a diameter of 14mm, c...
echo(version=version()); $fn=100; holeNumber=2; width=14.0; thickness=0.50; holeDiameter=10.0; holeOnCenter=15.0; difference() { base(); holes(); } module base() { color("red") translate([0, 0, 0]) linear_extrude(height = thickness) circle(d=width); color("red") translate([0, ...
glb/cad_ef63cc949b73.glb
Create a steering wheel center plate for a toy car. Start by creating a main circular body with a diameter of 58.8mm and a height of 6mm. The profile of this body is not a simple cylinder; it should follow a specific stepped contour that rises from 0mm to 4mm, then drops slightly to 2mm at the outer edge, and features ...
name = "SIMON"; textSize = 11; $fn = 100; module buttonShape(radius = 29.4) { pts = [[0, 2.5], [0, 4], [radius-2, 4], [radius, 2], [radius, 0], [radius-1.3, 0], [radius-1.4, 1], [radius-5, 1], [radius-6, 2], [radius-10, 2], [radius-11, 2.5]]; union() { ...
glb/cad_59b3d4068a81.glb
Create a house number plate by starting with a rectangular base 100mm wide and 70mm high with a thickness of 10mm. The four corners of this base must be rounded with a radius of 12.5mm. To create a recessed panel effect, remove a central rectangular area from the top face that is 80mm wide and 50mm high, with a depth o...
q = 5; le = 100; hi = 70; th = 10; th2 = 5; de = 25; dh = 8; de2 = 20; di2 = 15; sc = 5.5; translate([-le/2+dh, -hi/2+dh, th/2]) linear_extrude(height = th2, center = true, convexity = 10, twist = 0) scale([sc, sc]) text("10"); plaque(); module plaque() { difference() { hull() quad(de, th); quad...
glb/cad_7693e3d5271e.glb
Create an OpenScan Mini Ring by constructing a partial circular ring with an outer diameter of 200mm and an inner diameter of 186mm. The ring should span an arc of 204 degrees. Along the outer circumference, add 41 gear teeth, each 5.8mm deep and 4mm wide, spaced evenly around the ring. Create a cutout section in the...
debug_scad = 0.2; facettes_high = 200; facettes_low = 32; ring_height = 61.5; ring_outer_dia = 200; ring_inner_dia = 186; ring_top_x_cut = 3; ring_top_y_cut = 3.5; ring_degree = 204; ring_cut_height = 19.095; ring_cut_z_offset = 21.505; ring_cut_degree = 157; ring_cut_degree_offset = 26; ring_cut_depth_from...
glb/cad_6b96f24cbb6a.glb
Create a tough spray can cap by constructing a hollow cylinder with an outer diameter of 54mm and a total height of 51mm. The walls should be 1mm thick, created by removing a concentric inner cylinder with a diameter of 50mm. The base of the cap must be completely open, while the top is closed by a flat circular lid th...
module dimc () linear_extrude(50) circle(d=51, $fn=360); difference () { translate([0,0,1.5]) minkowski() { dimc(); sphere(d=3,$fn=72); } dimc(); } translate([0,0,2]) linear_extrude(1) difference () { circle(d=51, $fn=360); circle(d=50, $fn=360); ...
glb/cad_8b77d71388cc.glb
Create a Logitech C525 camera mount for a GoPro system. Start with a rectangular base plate measuring 60mm wide, 10mm deep, and 5mm thick. Round the two outer ends of this base with a radius of 5mm. In the center of the base, add a cylindrical riser with a diameter of 19mm and a height of 5mm. On top of this riser, pl...
$fa = 1; $fs = 0.2; gp_reika = 5.2; gp_vali = 3.3; gp_laippa_x = 2.7; gp_laippa_y = 15; gp_laippa_z = 21; gp_kok_leveys = gp_laippa_x * 2 + gp_vali; pohja_x = 60; pohja_y = 10; pohja_z = 5; module gpmount() { difference() { union() { translate([0,0,0]) cube([gp_laippa_x,gp_laippa_y,gp_laippa_z]); ...
glb/cad_ef4c747a44d0.glb
Create a 9V battery box by starting with a rounded rectangular container measuring 20.7mm in length, 30.2mm in width, and 66mm in depth, with corner radii of 2mm. Hollow out the center of this box to create a cavity measuring 16.7mm by 26.2mm with a depth of 64mm, leaving a wall thickness of 2mm on the sides and a base...
use <MCAD/boxes.scad> grani = 64; bWidth = 26.2+4; bLength = 16.7+4; bDepth = 56+2+10; difference() { translate([bLength/2,bWidth/2,bDepth/2]) roundedBox([bLength,bWidth,bDepth], 2, true, $fn=grani); translate([2,2,0]) cube([bLength-4, bWidth-4, bDepth-2]); translate([-5,bWidth/2,5]) rotate([0,90,0]) cylinder(...
glb/cad_40732703dce7.glb
Create a storage box for a Sherline 2.5" 3-jaw chuck by starting with a solid cube measuring 80mm in width, 80mm in depth, and 34mm in height. From the top center of this cube, remove a cylindrical volume with a radius of 32mm and a height of 33mm, starting 2mm from the bottom face. Additionally, remove a rectangular s...
$fs = 0.01; box_width = 80; box_depth = 80; box_height = 34; module chuck25() { cylinder(h=33, r=64/2); } module chuck_box_base() { difference() { cube(size=[box_width,box_depth,box_height]); translate([box_width/2,(box_depth/2)-1,2]) chuck25(); translate([2,70,2]) cube(size=[76,8,box_height]); } } ...
glb/cad_ae53bfa9de53.glb
Create a cap for an Expandable Parametric Container Stacker. Start by creating a hexagonal prism with a diameter of 100mm and a height of 3mm. From the center of this hexagon, remove a concentric hexagonal hole with a diameter of 77mm (the 75mm container diameter plus a 2mm tolerance) to create a thin-walled hexagonal ...
$tol = 2; $explode = 1.3; container_diameter = 75; container_height = 52; block_height = 75; block_size=100; finger_hole = 25; connector_height=6; connector_thickness=3; cap_thickness=3; cap(); module assembly() { components = [0, 1, 2]; for(ix = [0:len(components)]) { translate([0, 0, ix*(bloc...
glb/cad_efa06a72732a.glb