Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a customizable phone stand designed to hold two phones. The main body is a solid block with a total width of 142.24mm (2.8 inches multiplied by 2), a depth of 71.12mm (2.8 inches), and a height of 88.9mm (3.5 inches). The walls of the stand should be 3.81mm (0.15 inches) thick. Cut two identical slots into the ...
stand_height = 3.5 ; stand_width = 2.8 ; stand_depth = 2.8 ; phone_depth = 0.5 ; phone_lip = 0.2 ; phone_angle = 27 ; phone_adjust_depth_pct = 10 ; phone_adjust_height_pct = -10 ; charger_width = 0.5 ; cord_width = 0.15 ; slot_taper_pct = 30 ; wall_thickness = 0.15 ; phone_count = 2; mm_in = 25.4 ; thick =...
glb/cad_6723004e1420.glb
Create a Micro Polyhedron Vertex connector consisting of a central slot and two radiating pins. Start by creating a central slot that is a rectangular block 13mm long, 7mm wide, and 7mm high. From this block, remove a central channel 13mm long and 7mm wide, but leave a circular void with a radius of 4mm centered 9mm fr...
slotWidth = 7.0; clearing = 0.4; plongSize = 1.0; plongRadius = 2.0; $fs = 0.4; module pin() { pinWidth = slotWidth/3-clearing; union() { translate([0, -pinWidth/2,0]) difference() { cube([13, pinWidth, 7]); rotate([-90,0,0]) translate([9,-3.5, -1]) linear_extrude(height=4) { difference() { tra...
glb/cad_e113aa678f7f.glb
Create a Smart LCD Controller Case by starting with a main rectangular block measuring 27mm wide, 24mm deep, and 45mm high. Hollow out the center of this block to create a shell with walls 3mm thick, leaving a 20mm square central opening that extends through the height of the object. Remove two 8mm square sections from...
ExtrusionDimension=20; ExtrusionCenter=12; ExtrusionCorner=8; MountLength=45; WallThickness=3; MinWallThickness=1; MountDistance=30; MountHole=1.5; MountHoleHeight=20; ExtrusionSize=ExtrusionDimension*1.05; difference(){ union() { difference() { cube ([ExtrusionSize+(WallThickness*2),ExtrusionSize+WallThickness+Mi...
glb/cad_9d35c70c63f9.glb
Create a compact internal servo mount. Start with a main body consisting of three rectangular sections aligned along a central axis: a back tab measuring 6mm by 6.35mm by 5.75mm, a central main block measuring 47mm by 6.35mm by 26.5mm, and a top tab measuring 19.75mm by 6.35mm by 6.5mm. In the center of the main bloc...
nut_cutouts = false; cord_tie = true; servo_width=23.6; servo_tw = 32; servo_height=13; servo_bolt_size=3; difference() { rotate([90,0,0]) union(){ difference(){ mainblock(); translate([-5,0,2.8]) rotate([0,90,0]) servo_hole(); translate([-22,0,3.7]) nut_trap(); } } if (nut_cutouts == true){ translate([-11.5...
glb/cad_9bbc548d0174.glb
Create a parametric compartment tray by starting with a solid rectangular block measuring 191mm in length, 62mm in width, and 11mm in height. Carve out 12 identical rectangular compartments arranged in a 6 by 2 grid. Each compartment must be 30mm wide, 30mm long, and 10mm deep. Position these openings so that there is ...
compx = 30; compy = 30; wall = 1; nox = 6; noy = 2; deep = 10; difference() { cube ( size = [nox * (compx + wall) + wall, noy * (compy + wall) + wall, (deep + wall)], center = false); for ( ybox = [ 0 : noy - 1]) { for( xbox = [ 0 : nox - 1]) { translate([ xbox * ( compx + wall ) + wall, ybox *...
glb/cad_76687a4a1395.glb
Create a Heptagonal Finger Ring by constructing a hollow heptagonal prism with a height of 5mm. The outer boundary should be a regular heptagon with a radius of 11.5mm, extruded vertically to 5mm while simultaneously twisting 10 degrees around the center axis. To create the ring's thickness, remove a concentric heptago...
size = 11.5; difference() { linear_extrude( height=5, twist=10, slices=20 ) { circle( r=size, $fn=7 ); } linear_extrude( height=5, twist=10, slices=20 ) { circle( r=size-0.5, $fn=7 ); } }
glb/cad_e2ccc0b7dd3c.glb
Create a horizontal spool holder consisting of a central cylindrical hub and three radiating arms. Start by creating a main cylinder with a radius of 19mm and a total height of 10mm. Subtract a smaller concentric cylinder from the center with a radius of 18mm to create a thin-walled tube. At the base of this tube, ad...
$fn = 60; Delta = 0.01; Big = 100; SpoolHoleRadius = 39 / 2; SpoolHolePlay = 0.5; SpoolHoldDepth = 4; SpoolHolderThickness = 2; PlateRadius = 30; PlateThickness = 2; PlateRimThickness = 2; SpokeLength = SpoolHoleRadius + 30; SpokeWidth = 10; SpokeBallWidth = SpokeWidth / 2 + 1; BottomGap = SpokeBallWidth; TotalSp...
glb/cad_4fe2c3676ea9.glb
Create a Nut, Bolt, Washer and Threaded Rod Factory model consisting of several repeating geometric components. First, construct a "foot" element. Start with a rectangular block 80mm long, 8mm wide, and 8mm high. At one end, blend the shape into a sphere with an 8mm diameter. At the opposite end, add two small cubes,...
footLength=80; iClampDia = 8.5; iClampLen = 15; module banner() { } bottomPlateSize=10; bottomPlateWidth=8; bottomPlateHeight=3; holeDiameter=4.5; iClampWidth = 3; iClampHeight = 24.5; plateSpace=4.2; iRbHookWidth = 5; footDiameter=8; module bottomPlate(x=bottomPlateHeight, y=bottomPlateSize) { difference() { ...
glb/cad_c21c3f84bc1d.glb
Create a Mendel Frame Vertex with a total height of 13.6mm. The main body is a structural joint designed to hold M8 bolts. Start by creating a central cylindrical hub with a diameter of 30.15mm. From this hub, extend two arms separated by 60 degrees. Each arm should feature a vertical hole with a diameter of 8.6mm to...
m8_diameter = 8.6; basefoot=true; vfvertex_height=m8_diameter+5; vertex(with_foot=basefoot); module teardrop (r=8, h=20) { render() rotate([-270, 0, 90]) { cylinder(r=r, h=h, $fn=64); translate([-(r * sqrt(2)) / 2, 0, 0]) cube([r * sqrt(2), r * sqrt(2) / 2, h]); difference() { rotate([0, 0, 45]) cube([r, ...
glb/cad_d5157db8c886.glb
Create a 3D model of an endstop bracket. Start with a base structure consisting of a rectangular block 4mm wide, 37mm long, and 10mm high. Add a second rectangular block on top of the first, starting at a Y-offset of 15mm, with dimensions 4mm wide, 22.3mm long, and 19mm high. Integrate a central vertical cylinder with...
vertical = 11; horizontal = 22.3; holes_offset = 15; hole_radius = 1.5; axel_radius = 8.1; axel_support_height = 21; difference() { union() { cube([4,23++holes_offset,10]); translate([0,22+holes_offset,0]) cube([4,10+horizontal,8+vertical]); translate([axel_radius, 15,0]) cylinder(h = axel_support_hei...
glb/cad_33f407202943.glb
Create a Feed Me spool platform mount. Start by constructing a main vertical plate that is 167mm tall, 60mm wide, and 10mm thick with rounded corners. At the base of this plate, create a horizontal support platform that is 56mm high and 60mm wide. Within this assembly, integrate two vertical cylindrical posts with a ...
use <MCAD/boxes.scad> use <MCAD/triangles.scad> spacer=2; module Post() { difference() { cylinder(r=8,h=28); cylinder(r=4,h=30); } } ht = 56; spacerwd = 15; module Stand(ht,spacerwd) { difference() { union() { translate([0,0,spacerwd/2]) roundedBox([60,20,spacerwd],2); translate([0,ht/2+4,5]) r...
glb/cad_6450c8fb0619.glb
Create a pseudo-battery for an OpenMoko or GTA04 phone. Start with a rectangular base measuring 34mm by 52.5mm with a height of 6.7mm, ensuring the corners are rounded with a 3mm radius. From the top surface, centered along the height, create two identical hexagonal mounting holes for M3 bolts. Each hole consists of ...
bl6c_x=34.0; bl6c_y=52.5; bl6c_z=6.7; sw=6; hole_dist=sw+3; hole_left=3.5+3-sw/2; module m3() { rotate([-90,0,0]) union() { rotate([0,0,30]) translate([0,0,-0.1]) cylinder(r=sw/2/cos(30),h=2.5,$fn=6); cylinder(r=1.7,h=20,$fn=20); } } module rounded(x,y,z,r) { translate([r,0,r]) minkowski() { rotate([-90,0,0]) ...
glb/cad_6877b4deadee.glb
Create a printer calibration part starting with a 50mm by 50mm square base plate that is 1mm thick. Cut a 44mm square hole through the center of this base, leaving a 3mm border. Add two rectangular tabs extending from the base: one 10mm wide by 15mm long on the right edge and one 15mm wide by 10mm long on the top edge....
difference() { union() { difference() { cube([50,50,1]); translate([3,3,-1]) cube([44,44,3]); } translate([40,0,0]) cube([10,15,1]); translate([0,40,0]) cube([15,10,1]); for(s=[0:1:5]) { translate([0,0,1+4*s]) { cube([40-6*s,3,4]); cube([3,40-6*s,4]); translate([39.9-6*s,3,3]) rot...
glb/cad_ad6e85f4064a.glb
Create a printer calibration part starting with a 50mm by 50mm square base that is 1mm thick. Remove a 44mm square section from the center of this base, leaving a 3mm border. Add two rectangular tabs of 1mm thickness: one measuring 10mm by 15mm positioned at the edge of the X-axis, and another measuring 15mm by 10mm at...
difference() { union() { difference() { cube([50,50,1]); translate([3,3,-1]) cube([44,44,3]); } translate([40,0,0]) cube([10,15,1]); translate([0,40,0]) cube([15,10,1]); z=[1,3,6,10,15,21]; for(s=[0:1:len(z)-1]) { translate([0,0,z[s]]) { cube([40-6*s,3,2+s]); cube([3,40...
glb/cad_8c56091913b1.glb
Create a Vertex Idler Cap by starting with a base shape formed from the intersection of a 40mm cube and a cylinder with a 27mm radius, both centered on the same axis. The resulting slab should have a total thickness of 4mm. Remove a central vertical hole with a radius of 5.5mm and a height of 50mm to accommodate the ...
include <configuration.scad>; module idler_block(length=4, shaft_radius=5.00/2) { difference() { union() { intersection() { translate([0, 0, 0]) rotate([0, 0, 0]) cube([40, length, 40], center=true); translate([0, 0, 0]) rotate([90, 0, 0]) cylinder(r=27, h=length+1, center=true, $fn=20); } trans...
glb/cad_3b425e865527.glb
Create a MiniStruder extruder body for a uDelta printer. Start with a central base body formed by the hull of a centered cube measuring 32mm x 32mm x 18mm and a cylinder with a radius of 11mm and a height of 18mm. Smooth the overall exterior by applying a Minkowski sum with a sphere of radius 5mm. Carve a vertical cen...
play_wire = 0.2; play_cyl = 1; q=10; wd = 1.75; dr = 6.30; motor_screw = 15.5; module fix() { rotate([0, 0, 90]) difference() { union() { translate([0,0,3]) cylinder(d1=20, d2=0, h=6, $fn=8*q); cylinder(d=20, h=3, $fn=8*q); } translate([5,0,-10 ]) cylinder...
glb/cad_093174903ffc.glb
Create a Parametric Funny Feet Leg consisting of two mirrored, interlocking components designed for servo rotors. First, construct a leg part with a rectangular base of 11mm by 23mm and a height of 4.5mm. The outer profile should be a hull formed between a circle of 11mm diameter and a rectangle of 11mm by 2.5mm. Cen...
module fillet_extrude(r, h) { translate([r / 2, r / 2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); } } module inverse_fillet(r, h) { difference() { cube([r * 2, r * 2, h]); fillet_extrud...
glb/cad_09f17075f6a5.glb
Create a Random Walk Pendant by constructing a path of 55 connected cubes, each measuring 3mm on all sides. Starting from an initial position at the origin, place each subsequent cube so that its faces align perfectly with the previous one, moving only in 1mm increments along the X and Y axes based on a random walk pat...
cantidad = 55; direction = rands(0,4,cantidad); function calcx(vector , pos) = pos == -1?0:vector[pos]>3?calcx(vector,pos-1)+1:vector>2?calcx(vector,pos-1)-1:calcx(vector,pos-1); function calcy(vector, pos) = pos == -1?0: vector[pos] <1? calcy(vector,pos-1)+1:vector[pos] <2?calcy(vector,pos-1)-1:calcy(vector,pos...
glb/cad_83fa5caec860.glb
Create a grappling hook model consisting of a central shaft and three curved arms. Start by constructing the shaft as a tapered cylinder starting at a height of 50mm, with a base radius of 5mm and expanding to a top radius of 14mm over a height of 125mm. At the base of this shaft, add a spherical pommel with a radius o...
module GrapplingHook(){ union(){ Shaft(); Arms(); } } module Arms(){ difference() { difference() { translate ( [0, 0, 120] ) sphere (r=60, $fn=120); translate ( [0, 0, 120] ) sphere (r=45, $fn=120); } union(){ translate ( [10, 10, 60] ) cube( [80, 80, 120]); translate ( [-90, 10, 60] ) cube...
glb/cad_e46638781f80.glb
Create a Raspberry Pi Camera Telescope Mount consisting of a cylindrical sleeve and a mounting base. Start by creating a hollow cylinder with an outer diameter of 31.75mm and a wall thickness of 1mm, with a total height of 20mm. This cylinder should be centered vertically. Attached to the bottom of this cylinder, crea...
$fn = 100; include <RaspberryPiCamera.scad> module eyepiece() { difference() { cylinder(r=31.75/2, h=20, center=true); cylinder(r=31.75/2-1, h=21, center=true); } } module eyepieceMount_base() { difference() { translate([lens_housing_x,lens_housing_y,0]) cube([31.75,31.75,board_thickness], center=true); ...
glb/cad_186f44c73158.glb
Create a 40mm fan to blower adapter. Start with a square mounting plate measuring 40mm by 40mm with a thickness of 3mm. At the four corners of this plate, place four 4mm diameter circular holes that pass completely through the plate. Centered on the plate, construct a conical reduction funnel that transitions from a ba...
difference(){ union(){ translate([-20, -20, 0]) cube([40, 40, 3], false); cylinder(h=14, d1=39, d2=19); translate([-12.5, 0, -4]) rotate([0, 33, 0]) translate([0 - (15/2), 0 - (19/2), 0]) cube([15, 19, 48]); translate([2...
glb/cad_a6a8dc5788a6.glb
Create a 9V battery box with a retainer clip. Start by constructing a main outer rectangular shell with a width of 20.75mm, a length of 48.8mm, and a height of 30mm. Hollow out the center of this shell by removing a rectangular volume of 16.75mm width, 44.8mm length, and 26mm height, leaving a wall thickness of 2mm on ...
battery_h = 26; battery_w = 16.75; battery_l = 44.8; shell = 2; slot = true; slot_h = 19; slot_w = 6; difference() { union () { cube([battery_w + (shell * 2), battery_l + shell, battery_h + (shell * 2)]); translate([-.02, -1 * shell, (battery_h + shell) * .33]) cube([shell * 2, s...
glb/cad_3a63d58f9600.glb
Create a Sinus Rinse Dual Drying Rack consisting of a rectangular base platform and four vertical cylindrical posts. The base platform is a rectangular slab measuring 174mm in length, 70.8mm in width, and 3mm in thickness. Position two tall outer cylinders to act as bottle holders. Each cylinder has a radius of 3.6mm...
bottleDiameter = 59; bottleHeight = 129; bottleMouthDiameter = 18; nozzleStemHeight = 107; nozzleStemDiameter = 15; nozzleCapDiameter = 25; platformThickness = 3; platformLength = 1.2 * ((bottleDiameter * 2) + nozzleCapDiameter); platformWidth = 1.2 * bottleDiameter; difference() { cube(size=[platformLength, platfor...
glb/cad_c83f6e35787d.glb
Create a Sinus Rinse Dual Drying Rack consisting of a rectangular base platform and two vertical support stems. The base platform should be 178.2mm long and 70.8mm wide. Position two identical vertical stems on the platform, each spaced 20mm from the center along the length. Each stem is a hollow tube with an outer dia...
bottleDiameter = 59; bottleHeight = 129; bottleMouthDiameter = 18; nozzleStemHeight = 107; nozzleStemDiameter = 15; nozzleCapDiameter = 25; platformLength = 1.2 * ((bottleDiameter * 2) + nozzleCapDiameter); platformWidth = 1.2 * bottleDiameter; module nozzleHolderStem() { translate([platformLength/2, platformWidth/2...
glb/cad_d831d223f712.glb
Create a Ramps Cooler Guard by starting with a rectangular base plate measuring 101.9mm in width, 59mm in length, and 4mm in thickness, with all four corners rounded to a 2.5mm radius. Remove four mounting holes with a radius of 1.7mm each: two positioned at the lower edge (one at x=13.97mm, y=2.54mm and another at x...
ramps_board_width = 101.9; ramps_board_length = 59; ramps_board_thickness = 4; ard_hole_radius = 1.7; LED_Rad = 2.7; fan_rad = 2.5; $fn = 20; difference() { base(); translate ([30, ramps_board_length/2-25, 0]) fan_cutout(); translate ([15, ramps_board_length-53.34, 0]); translate ([7.5,ramps_board_length/2-15,0]) ...
glb/cad_90c7335bc5aa.glb
Create a customizable wax stamp consisting of a wide cylindrical base and a narrower handle. Start by creating a wide cylinder for the stamp face with a diameter of 27.5mm and a height of 3mm, centered on the origin. Atop this base, add a narrower cylindrical handle with a diameter of 10mm and a height of 12mm, positio...
use <write/Write.scad> first_character = "W"; second_character = "S"; text_depth = 1.5; text_angle = 3.5; show_border = "No"; border_type = 0; border_depth = 0.3; preview_tab = ""; stamp_imprint(); module stamp_imprint() { difference() { union() { translate([0, 0, 3 + 6]) cylinder(12, d=10,...
glb/cad_5ebd3c0cdbbb.glb
Create an Axial Flux Generator rotor framework. Start by creating a main cylindrical disc with a radius of 20mm and a height of 10mm. Remove a smaller concentric cylinder from the center of this disc with a radius of 5mm and a height of 60mm to create a hollow core. On the top surface of the disc, at a height of 10mm...
include <params.scad> use <magnet.scad> use <magnet_cap.scad> use <screws.scad> module magnets() { for( i = [0:mag_count/2 - 1] ) { rotate(a=i*(360/(mag_count/2))) magnet(); } } module caps() { for( i = [0:mag_count/2 - 1] ) { rotate(a=i*(360/(mag_count/2))) cap(); } } module disc() { difference()...
glb/cad_96f43c719a66.glb
Create a magnet for an axial flux generator by constructing a thick ring and intersecting it with a bounding block to isolate a single segment. Start with a hollow cylinder that has an outer radius of 25mm, an inner radius of 15mm, and a height of 10mm. To isolate one magnet, intersect this ring with a cube measuring 5...
include <params.scad> module ring() { difference() { cylinder(h=mag_height, r=mag_ring_or); translate([0, 0, -1]) cylinder(h=mag_height+2, r=mag_ring_ir); } } module block() { cube([(mag_ring_or*2)+2, mag_ring_or+2, mag_height+2]); } module magnet() { intersection() { ring(); translate([-mag_ring_or-1, -1...
glb/cad_9c4d2401a932.glb
Create an Axial Flux Generator framework consisting of a central cylindrical hub and a series of vertical mounting pins. Start by creating a main cylinder with a radius of 25mm and a height of 20mm. This cylinder should have a low facet resolution of 12 sides, giving it a polygonal, gear-like appearance. Around this ce...
include <params.scad> module screw() { translate([0, 0, -20]) cylinder(h=mag_height+50, r=1); } module screws() { rotate(-(360/mag_count)/2) { for(i = [0:4]) { rotate(a=i*90) { translate([(mag_ring_or+25)/2, 0, 0]) screw(); translate([(mag_ring_or+25)*(3/4), 0, 0]) screw(); } } } } screws();
glb/cad_25217dbbf982.glb
Create an Axial Flux Generator framework. Start by constructing a main stator body as a solid cylinder with a radius of 300mm and a height of 10mm. On top of this cylinder, add a concentric pipe section with an outer radius of 50mm and an inner radius of 45mm, extending upwards by an additional 10mm. To form the indu...
include <params.scad> turbine_or = 300; airfoil_or = 50; airfoil_ir = 45; module ring() { difference() { cylinder(h=stator_height, r=mag_ring_or); translate([0, 0, -1]) cylinder(h=stator_height+2, r=mag_ring_ir); } } module block() { cube([(stator_or*2)+2, stator_or+2, stator_height+2]); } module inductor() {...
glb/cad_0b3a7ffc34f7.glb
Create a Vertical-Axis Wind Turbine rotor arm. Start by constructing a rectangular base block that is 25mm wide and 25mm high, with a length determined by the difference between the turbine outer radius and the airfoil inner radius. At the end of this arm, integrate an airfoil shape. This airfoil is formed by taking a ...
include <params.scad> use <screws.scad> module airfoil() { union() { difference() { cylinder(h=25, r=airfoil_or); cylinder(h=25, r=airfoil_ir); cylinder(h=15, r=airfoil_or-2.5); rotate(-20) { translate([-50, -(airfoil_or*2), -1] ) cube([airfoil_or*2, airfoil_or*2, 27]); } } ...
glb/cad_f5789bff9a8f.glb
Create a tie for a vertical-axis wind turbine by constructing two identical rectangular prisms. Each prism must measure 150mm in length, 20mm in width, and 5mm in height. Position the first prism centered at the origin. Create the second prism with the same dimensions and position it at the center, but rotate it 90 deg...
include <params.scad> use <screws.scad> module tie_raw() { cube([150, 20, 5], center=true); rotate(90) cube([150, 20, 5], center=true); } module tie() { difference() { tie_raw(); rotate((360/mag_count)/2) screws(); } } tie();
glb/cad_5008e8dfb2a4.glb
Create a curved lithophane panel with a total height of 47mm. The model is composed of 10 vertical segments, each 10mm wide, arranged to form a curved surface with a total bend of 180 degrees. The geometry is based on a 99mm by 99mm square base. The thickness of the panel varies across its surface to create an image ...
tile_height=47; bend_factor=2; sz=100; num_face=10; xtra=3; image_file = "image-surface.dat"; hole_diameter = 0; hole_border = 0; lithophane_border = 0; layer_height = 0.2; number_of_layers = 12; s=0.01; length = 99; width = 99; z=sz/num_face; min_layer_height = layer_height*3; hole_radius = hole_diameter/2; hei...
glb/cad_699062351a66.glb
Create a MIWI Power Supply Mount designed for a 100 Watt DIN power supply. Start by constructing the main body as a composite of rectangular blocks: a base plate measuring 127mm by 68mm by 8mm, with a vertical wall extending 12mm high along one side and a central section rising to 20mm. Add two perpendicular side suppo...
use <MCAD/nuts_and_bolts.scad>; use <basek.scad>; $fn=128; space=135.52; psux = 89; psuy = 34; module psu_body() { translate([space/2-19,-58,0]) rotate([0,0,-120+90]) cube([8,80,40]); translate([space/2-19,-20,0]) cube([30,8,20]); translate([-2-space/2,-20,0]) cube([127,8,20]); translate([-2-space/2,...
glb/cad_84527b717c16.glb
Create a cable guide clip starting with a central rectangular block measuring 25mm in length, 10mm in width, and 7mm in height. Apply a 1mm chamfer to all edges of this block. Through the center of the block along its length, create a cylindrical cable channel with a diameter of 5.5mm. The bottom of this channel shou...
use <write/Write.scad> H_cube = 7 ; L_cube = 25 ; W_cube = 10 ; R_Chamf = 1.0 ; D_cab = 5.5 ; H_Bottom = 1.0 ; D_dist = 13 ; D_dome = 8.5 ; D_screw = 2.8 ; D_head = 5.8 ; H_head = 3 ; H_chamf = 1.2 ; cutaway = 0 ; text_mode = 1 ; Text = "X axis" ; txt_size = 5 ; txt_height = 0.6 ; module minkocube (x,...
glb/cad_c39a2b804ff1.glb
Create a car wheel center cap. Start by creating a solid base cylinder with a radius of 27.25mm and a height of 7mm. On top of this base, add a second concentric cylinder with a radius of 25.55mm and a height of 17.2mm. Hollow out the center of the model by removing a cylinder with a radius of 21.25mm, starting from ...
Cap_Radius = 27.25; Cap_Height = 7; Throat_Radius = 25.55; Grip_Height = 17.2; Thickness = 6; center_radius = Cap_Radius - Thickness; notch_offset = 3.5; notch_height = Grip_Height - notch_offset - Cap_Height; Notch_Bevel_Height = 1.6; Cut_Width = 22; $fn=64; difference() { union() { color("red") cap(); ...
glb/cad_a3608cb7ac8e.glb
Create a Mountain Bike Handlebar End Cap by constructing a composite shape based on two parallel vertical axes separated by 10mm. The main body is formed by the convex hull of two cylinders, each 17.5mm tall, with one having a radius of 10.5mm and the other a radius of 7mm. The top of this shape is capped with a rounde...
$fn=90; big_radius = 10.5; small_radius = 7; cylinder_center_distance = 10; cylinder_height = 17.5; top_edge = 1.5; wall_thickness = 4; cut_height = cylinder_height - 2; cut_width = 0.5; ridge_z = 1.6; ridge_height = 0.5; difference() { union() { top(top_edge, 0); bottom(0); ridge(-cylinder_height*3/4); ridg...
glb/cad_fb412c5464a9.glb
Create a Shelf Mount consisting of a main slider body with two integrated tabs. Start by creating a rounded rectangular base 190mm long, 25mm wide, and 10mm deep, with a corner radius of 6.25mm. Carve out a centered rectangular channel from the top face that is 180mm long, 11mm wide, and 4.5mm deep, with a corner radiu...
use <MCAD\boxes.scad> bwidth = 25; blength = 190; bdepth = 10; module slider(){ difference(){ translate([0,0,bdepth/2]) roundedBox([blength,bwidth,bdepth],bwidth/4,true); translate([0,0,bdepth-2]) roundedBox([blength-10,11,4.5],5,true); translate([0,0,6]) roundedBox([blength-20,4,12],2,true); } translate ([-blength/3....
glb/cad_f05a76ab969a.glb
Create a rectangular enclosure for a fridge open door detector with external dimensions of 72.4mm in width, 53.4mm in depth, and 30.8mm in height, using a wall thickness of 1.2mm. The main body is a hollow box with an interior space of 70mm by 51mm by 30mm. On the top surface, create a rectangular cutout measuring 7m...
wallThickness = 1.2; batteryRadius = 15 / 2; $fn=50; boxInnerX = 70 + 36+7+20; boxInnerY = 51; boxInnerZ = 30; module box() { difference() { cube([2*wallThickness + boxInnerX, 2*wallThickness + boxInnerY, 0.8+boxInnerZ ]); translate([wallThickness,wallThickness,0.8]) cube([boxInner...
glb/cad_d38914acad6f.glb
Create a battery box designed to hold three cylindrical batteries. The main body is a rectangular enclosure with a total height of 11mm. The outer dimensions are approximately 47.2mm in width, 71.8mm in length, and 11mm in height, with a wall thickness of 0.82mm. Inside the box, create three circular compartments for ...
ew=0.41; wallThickness=2*ew; $fn=40; module spring(d=1.4+ew, n=4, wallThickness=ew, width=10, height=11, gap=2) { translate([0,-width/2,0]) difference() { cube([n*d-0.01, width, height]); for(i=[0:n-1]) { translate([2*i*d+wallThickness,+wallThickness,-0.1]) c...
glb/cad_cb2fdbf47dcc.glb
Create a uArm bearing by constructing a thick-walled hollow cylinder with a height of 6mm. The outer boundary should be a cylinder with a constant diameter of 8.43mm. Centered vertically and horizontally through the middle of this shape, remove a smaller cylindrical core with a diameter of 4.2mm at the bottom face, tap...
difference() { cylinder($fn = 60, h = 6, r1 = 8.43/2, r2 = 8.43/2, center = false); cylinder($fn = 60, h = 6, r1 = 4.2/2, r2 = 4.0/2, center = false); }
glb/cad_6a047ed6aa2b.glb
Create a uArm Bearing by constructing a hexagonal prism with a height of 38.1 mm. The hexagon should have a flat-to-flat width of 11.127 mm. Centered along the longitudinal axis of this prism, remove a cylindrical internal threaded hole with a diameter of 3.302 mm and a thread pitch of 32 threads per inch, extending th...
include <threads/threads.scad> include <MCAD/shapes.scad> include <MCAD/2Dshapes.scad> nutOD = 5/16*.866; hex_length = 1.5; inchesToMM = 25.4; scale(inchesToMM,inchesToMM,inchesToMM) difference() { linear_extrude(height = hex_length) ngon(6, nutOD/2, center=false); english_thread(diameter=.13, threads_per_in...
glb/cad_b787ccd224f0.glb
Create a uArm Bearing by constructing a hexagonal prism with a flat-to-flat width of 20.0775 mm (5/16 inches) and a height of 25.4 mm (1 inch). Centered vertically through the prism, remove a cylindrical internal threaded hole with a diameter of 3.302 mm (0.13 inches) and a thread pitch of 32 threads per inch. Ensure t...
include <threads.scad> include <MCAD/shapes.scad> include <MCAD/2Dshapes.scad> threadDiameter = .13*(.12/.1); nutOD = 5/16; hex_length = 1.; inchesToMM = 25.4; screwMajorDiameter=.1380; screwMinorDiameter=.1141; alpha = .85; holeRadius = (screwMinorDiameter + (screwMajorDiameter-screwMinorDiameter)*alpha)/2; scale...
glb/cad_8a2a3aa37e0e.glb
Create a 35mm fan grille consisting of a mounting frame and a protective inner grate. Start with a square outer frame 46mm wide and 4mm thick. Round the four corners of this square using a 30mm radius. At each corner of the square, centered 19mm from the middle in both X and Y directions, create a 1mm diameter hole tha...
hole_spacing = 38; hole_size = 1; outer_size = 46; corner_cut_radius = 30; outer_circle_diameter = 38; inner_circle_diameter = 5; outer_thickness = 4; inner_thickness = 3; vane_count = 8; vane_width = 2; ring_count = 2; ring_width = 2; vane_angle = 360 / vane_count; ring_spacing = (outer_circle_diameter - inner_circ...
glb/cad_116aa0464dcf.glb
Create a fan mount for two 40mm fans. Start with a base plate 10mm thick. Form the main body by combining two overlapping rectangular blocks: one 42mm by 32mm and another 32mm by 42mm, both 10mm high, centered on the origin. Add four cylindrical pillars with a radius of 5mm and a height of 10mm, positioned at the corne...
difference() { union() { translate([-21,-17,0]) cube([42,32,10]); translate([-17,-21,0]) cube([32,42,10]); translate([16,16,0]) cylinder(r=5, h=10, $fn=36); translate([-16,16,0]) cylinder(r=5, h=10, $fn=36); translate([-16,-16,0]) cylinder(r=5, h=10, $fn=36); translate([16,-16,0]) cylinder(r=...
glb/cad_edc19de7df50.glb
Create a fan mount for two 40mm fans. Start with a base rectangular plate 35mm wide, 30mm deep, and 10mm thick. At the center of the outer edge, add a cylindrical boss with a radius of 5mm and a height of 10mm. Position two additional cylindrical bosses with a radius of 2.5mm and a height of 10mm, spaced 25mm apart sym...
difference() { union() { translate([0,-15,0]) cube([35,30,10]); translate([35,10,0]) cylinder(r=5,h=10,$fn=36); translate([35,-10,0]) cylinder(r=5,h=10,$fn=36); translate([35,-10,0]) cube([5,20,10]); translate([0,12.5]) cylinder(r=2.5,h=10,$fn=36); translate([0,-12.5,0]) cylinder(r=2.5,h=10,$...
glb/cad_39defc096921.glb
Create a fan mount for a 3D printer X stage. Start with a base plate consisting of three joined rectangular blocks: one 45x25x10mm block, one 20x25x10mm block centered at x=15, and one 9x20x10mm block at x=30. Add two cylinders with a radius of 5mm and height of 10mm, positioned at x=34 and y=10 and y=-10 respectively....
module extruder() { difference() { union() { translate([-10,-10,0]) cube([45,25,10]); translate([15,-15,0]) cube([20,25,10]); translate([30,-10,0]) cube([9,20,10]); translate([34,10,0]) cylinder(r=5,h=10); translate([34,-10,0]) cylinder(r=5,h=10); translate([-10, 12.5, 0]) cy...
glb/cad_fb6366b97069.glb
Create a container with a complex, undulating profile based on a 50mm diameter. Start with a solid base 2mm thick. From this base, extrude a section 20mm high that scales outward to 1.5 times the original diameter, creating a flared lower body. Above this, add a middle section 50mm high that further scales to 1.1 times...
diameter=50; difference(){ pot(diameter); translate([0,0,2]) linear_extrude(height=160) scale([0.7,0.7,0]) wall(diameter,false); } module base(diameter){ circle(diameter); translate([diameter*2/3,0,0]) circle(30); translate([0,diameter*(2/3),0]) circle(30); translate([-(diameter*(2/3)),0,0]) ci...
glb/cad_8db9c96d70d7.glb
Create a Customizable Backpack Strap Clip with a total length of 20mm and a wall thickness of 2.5mm. The main body is a rectangular block with an overall height of 47mm (calculated as the 40mm strap width plus two 2.5mm walls and two 1mm margins) and a width of 13mm (calculated as 3 times the wall thickness plus two st...
strapWidth = 40; strap1Thickness = 2; strap2Thickness = 0; opening1 = 5; opening2 = 0; opening1Position = 0.5; opening2Position = 0.1; length = 20; thickness = 2.5; margin = 1; resolution = 30; $fn = resolution; module makeouter() { strap2Thickness = strap2Thickness == 0 ? strap1Thickness : strap2Thicknes...
glb/cad_0f64bcc99f0b.glb
Create a Wheel Cap consisting of a circular top disk and a supporting cylindrical structure. The top disk should have an outer diameter of 66mm and a thickness of 3mm, with a rounded outer edge. Below the disk, create a cylindrical sleeve with an inner diameter of 56.5mm and a height of 15mm. The wall thickness of thi...
th=3; id=56.5; od=66; slheight=15; logoName = "batman.STL"; logoXoffset = 0; logoYoffset = -5; logoZoffset = 0; logoXscale = 0.5; logoZscale = 1.5; logoYscale = logoXscale; NoSides = 200; $fn=NoSides; module pipe(he,rout,thick,cent=true,sides=50,quarters="1234",qarray=[1,1,1,1]){ difference(){ cylinder(h=he,r=r...
glb/cad_5f9c52306db8.glb
Create a home-brew run-off tube splint designed to hold a pipe with an inner diameter of 15mm. The splint has a wall thickness of 3mm. Start with a straight section of a half-cutaway pipe, 15mm in length. Transition this into a curved section that bends at a 135-degree angle with a curve radius of 18.75mm. Following ...
thickness = 3; pipe_diameter = 15; splint_curve = 135; length_before_curve = 15; length_after_curve = 10; overlap = 7; outer_leg_length = 15; inner_leg_length = 25; coarseness = 100; inner_radius = pipe_diameter / 2; outer_radius = (pipe_diameter / 2) + thickness; curve_radius = pipe_diameter * 1.25; rotate([...
glb/cad_51cc8617a2fc.glb
Create a Dissolvable Support Gearbox consisting of a shell containing two gears. First, construct the shell by combining a central 30mm x 30mm x 8mm cube with two cylinders of radius 15mm and height 8mm centered at x=15 and x=-15. Add a larger central cylinder of radius 25mm and height 8mm. From this shell, remove two ...
use </Users/tbuser/Code/MCAD/involute_gears.scad> %cube([80, 80, 0.1], center=true); gear_box(); module gear_box_support() { difference() { union() { translate([-15, 0, 0]) cylinder(r=18, h=7); translate([15, 0, 0]) cylinder(r=18, h=7); translate([0, 0, 0]) cylinder(r=25, h=7); } rend...
glb/cad_8862174e2a6d.glb
Create a key rack consisting of a thin backplate and five protruding pegs. Start by constructing a rectangular backplate that is 10mm high, 1.6mm thick, and 123mm long. Center two circular mounting holes with a radius of 2mm through the backplate: one positioned 5mm from the left edge and the other 5mm from the right e...
length = 15; width = 3; height = 2; spacing = 25; count = 5; bp_thickness = 1.6; bp_height = 10; bp_hole_radius = 2; bp_side_width = 10; $fn = 50; module peg() { cube ( [ width, length, height ] ); translate ( [ 0, 0, height ] ) { rotate ( [ 0, 90, 0 ] ) { cylinder ( r=height, ...
glb/cad_89eced5bc7ea.glb
Create a key rack consisting of a rectangular backplate with five protruding pegs. Start by forming the backplate as a thin rectangular slab with a thickness of 1.6mm, a height of 10mm, and a total length of 123mm. Center two circular mounting holes with a radius of 2mm through the thickness of the backplate; position ...
length = 15; radius = 1.5; spacing = 25; count = 5; bp_thickness = 1.6; bp_height = 10; bp_hole_radius = 2; bp_side_width = 10; $fn = 50; module peg() { translate ( [ radius, length, radius ] ) { rotate ( [ 90, 0, 0 ] ) { cylinder ( r=radius, h=length ); } } } for...
glb/cad_fd0d4e91bd24.glb
Create a Custom LM8UU Half Block bearing mount. Start with a base rectangular plate measuring 30mm in length, 34mm in width, and 3.75mm in height, with all four corners rounded to a 3mm radius. Centered on this plate, construct a bearing block that is 20mm wide, 26.5mm long, and 11.03mm high, also featuring 3mm round...
holeCreationOffset=0.001; boltLength = 18; boltWidth = 24; bracketLength = 30; bracketWidth = 34; bracketHeight = 3.75; bracketScrewHeight=50; bracketScrewDiameter=3.5; bracketScrewRadius=bracketScrewDiameter/2; bracketScrewHeadDiameter=6; bracketScrewHeadRadius=bracketScrewHeadDiameter/2; bearingLength = 24.5; bearing...
glb/cad_7b85fdb4d8b7.glb
Create a measuring spoon consisting of a hemispherical bowl attached to a flat rectangular handle. Form the bowl by creating a sphere with a radius of 23mm, then hollow out the top half by removing a cube with dimensions 46mm by 140mm by 46mm centered at a height of 27.5mm. Attach a handle to the bowl by combining a cu...
module sbase (rs,ty,cx,cy,cz) { union() { sphere (r=rs,center = true,$fn=100); translate ([0,ty,0]) minkowski() { cube (size = [cx,cy,cz],center=true); cylinder(r=3,h=cz); } } } module hole() { minkowski() { cube(size = [rx,ry,rz],center=true,$fn=20); cylinder(r=rx,h=rz,$fn=20); } } union() { difference() { s...
glb/cad_3959715b65f0.glb
Create a rectangular base block measuring 41mm in width, 20mm in depth, and 5mm in height, centered on the origin. Drill two vertical screw holes with a radius of 1.6mm and a height of 5.1mm, positioned symmetrically at x = 16.125mm and x = -16.125mm. Create two larger circular recesses with a radius of 2.5mm and a hei...
difference () { cube ([41,20,5],center=true); translate ([16.125,0,0])cylinder (r=1.6,h=5.1,center=true); translate ([-16.125,0,0])cylinder (r=1.6,h=5.1,center=true); translate ([16.125,0,1.7])cylinder (r=2.5,h=2.6,center=true); translate ([-16.125,0,1.7])cylinder (r=2.5,h=2.6,center=true); } differe...
glb/cad_25f1635c0e63.glb
Create a bracket consisting of several joined rectangular prisms. Start with a base block that is 15mm wide, 38mm long, and 2mm thick. Attached to the bottom of this base, add a second block measuring 15mm by 17.25mm by 2mm, positioned so it extends from the base. Add a third block measuring 15mm by 15.1mm by 2mm, posi...
cube ([15,38,2]); translate ([0,0,-15.25]) rotate ([90,0,0])cube([15,17.25,2]); translate ([0,40,-13.1]) rotate ([90,0,0]) cube ([15,15.1,2]); translate ([0,36,-15.1]) cube ([15,4,2]); translate ([0,-2,-17.25]) cube ([15,4,2]);
glb/cad_8c4b4c879886.glb
Create a rectangular block with dimensions 40mm in width, 12mm in depth, and 14mm in height. From this main body, remove a rectangular section measuring 221mm by 5.1mm by 6.1mm, positioned starting at coordinates (-0.1, -0.1, 2). Additionally, remove a rotated rectangular volume measuring 41mm by 4.2mm by 4.2mm, positi...
difference() { translate ([10,12,0])cube ([20,10,4]); translate ([25,17,-.1]) cylinder (r=1.7,h=4.2); translate ([205,17,-.1]) cylinder (r=1.7,h=4.2); } difference () { cube ([40,12,14]); translate ([-.1,-.1,2]) cube([221,5.1,6.1]); translate ([-.05,5,2]) rotate ([45,0,0])cube ([41,4.2,4.2]); }
glb/cad_d4d28a7c6090.glb
Create a rectangular block with overall dimensions of 40mm in width, 12mm in depth, and 14mm in height. From this main volume, remove a rectangular section measuring 221mm by 5.1mm by 6.1mm, positioned starting at coordinates (-0.1, -0.1, 2) to create a wide slot. Additionally, remove a diagonal wedge-shaped volume sta...
difference() { translate ([10,12,0])cube ([20,10,4]); translate ([15,17,-.1]) cylinder (r=1.7,h=4.2); translate ([205,17,-.1]) cylinder (r=1.7,h=4.2); } difference () { cube ([40,12,14]); translate ([-.1,-.1,2]) cube([221,5.1,6.1]); translate ([-.05,5,2]) rotate ([45,0,0])cube ([41,4.2,4.2]); }
glb/cad_b6f01b6bf4cd.glb
Create a 3D model of an A5-2Z XL bracket. Start with a main vertical rectangular block measuring 6mm wide, 13.7mm deep, and 47.7mm high. From this main block, remove a central rectangular section measuring 7.2mm wide, 12.5mm deep, and 42mm high, positioned with its front face 0.1mm back from the origin and its base 3mm...
translate ([0,11.7,41.7]) cube ([6,2,4]); translate ([ 0,11.9,2]) cube([6,3,10.5]); translate ([4,9.9,12.5]) cube ([2,5,3]); difference() { cube ([6,35,3]); translate ([3,20,-.1])rotate ([0,0,0]) cylinder (r=1.3,h=7); } difference () { cube ([6,13.7,47.7]); translate ([-.1,3,3])rotate ([0,0,0])cube ([7.2,12....
glb/cad_1325da6e82a5.glb
Create an endstop mount consisting of a base plate and a vertical wall. Start with a rectangular base plate measuring 16mm wide, 42mm long, and 3mm thick, centered at coordinates (-2.5, 0, 0). Remove two cylindrical holes from this base, each with a radius of 1.7mm and a height of 8.3mm, positioned symmetrically at (3,...
difference () { translate ([-2.5,0,0])cube ([16,42,3],center=true); translate ([3,15.25,0]) cylinder (r=1.7,h=8.3,center=true); translate ([3,-15.25,0]) cylinder (r=1.7,h=8.3,center=true); } difference () {translate ([-8.75,1,9]) cube ([3,40,16],center=true); translate ([-10.5,17.5,13]) rotate ([0,90,0]) cylind...
glb/cad_974229645b55.glb
Create a rectangular block measuring 36mm in length, 7mm in width, and 7mm in height. From this main body, remove several geometric features to create mounting holes and notches. First, create four vertical cylindrical holes with a radius of 1.5mm and a height of 8.2mm. Position the centers of these holes at (3, 8, 3...
difference() { cube ([36,7,7]); translate ([3,8,3.5]) rotate ([90,0,0])cylinder (r=1.5,h=8.2); translate ([25,8,3.5]) rotate ([90,0,0]) cylinder (r=1.5,h=8.2); translate ([11,8,3.5]) rotate ([90,0,0])cylinder (r=1.5,h=8.2); translate ([33,8,3.5]) rotate ([90,0,0]) cylinder (r=1.5,h=8.2); trans...
glb/cad_22c431c9c23a.glb
Create a rectangular block with dimensions 34mm x 18mm x 35mm, centered at the origin. From this main body, remove several geometric shapes to create the final part. First, remove a rectangular volume of 16mm x 30mm x 36mm, centered at [12, 4, 0] and rotated 20 degrees around the Z-axis. Second, remove a rectangular vo...
difference() {cube([34,18,35],center=true); translate ([12,4,0]) rotate ([0,0,20]) cube ([16,30,36],center=true); translate ([-12,-10.5,-10]) rotate ([0,0,20])cube([27,20,16],center=true); translate ([-14,6,0]) cylinder(r=1.2,h=36,center=true); translate ([-8,-8,8]) rotate ([0,0,20]) cube ([18,18,21],center...
glb/cad_1a5faabf1eb6.glb
Create a rectangular mounting bracket for a switch with overall dimensions of 51.5mm in length, 17mm in width, and 3.1mm in height. At both the left and right ends of the bracket, create rectangular cutouts measuring 6.1mm by 18mm with a depth of 14.6mm, starting from a height of 5.1mm. Drill two mounting holes with ...
difference() { cube ([51.5,17,3.1]); translate([-.1,-.5,5.1]) cube ([6.1,18,14.6]); translate ([45.5,-.5,5.1]) cube ([6.1,18,14.6]); translate ([3,8.5,-.1]) cylinder (r=2,h=5.3); translate ([48.5,8.5,-.1]) cylinder (r=2,h=5.3); translate ([9.5,3.5,-.1]) cylinder (r=1.2,h=19.8); translat...
glb/cad_9aa5882c3cb5.glb
Create a moveable tensioner body by starting with a cylinder that has a radius of 10mm and a height of 10mm, centered on the Z-axis at a height of 1mm and positioned at X -36mm. Integrate a cube into this body with dimensions of 10mm by 20mm by 10.2mm, centered at X -46mm, Y 0, and Z 1mm. From this combined mass, rem...
difference() { translate ([-36,0,1]) cylinder (r=10,h=10,center=true); translate ([-46,0,1]) cube ([10,20,10.2],center=true); translate ([-36.125,0,1])cylinder (r=1.5,h=10.2,center=true); translate ([-30.125,0,1])cylinder (r=1.5,h=10.2,center=true); translate ([-34...
glb/cad_48000df88e23.glb
Create a Fan Blade consisting of a central cylindrical ring and twenty-one radiating blades. Start by constructing a main cylinder with a height of 10mm and a radius of 13mm, centered on the origin. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 12mm and a height of 12...
$fn=750; difference(){ cylinder(h=10,r=13,center=true); translate([0,0,-8]) cylinder(h=12.5,r=12); } for(i=[0:20]) { rotate((360*i)/21) rotate([0,-105,0]) { linear_extrude(height = 30, twist =40,center=false) translate([-0.1,+61/+4.85]) square([10.8/1-1,0.8],ce...
glb/cad_61e7d7cfd2a9.glb
Create a Tapered Pocket Coin-Op bottle opener. Start with a main body that is 50mm long and 22mm wide, with a total thickness of 6mm. The body should have a tapered profile, narrowing toward the center to a thickness of 2.5mm. The outer corners should be rounded with radii of 5mm. Cut a key ring slot through the body,...
coinRadius = 9.5; coinThickness = 1.75; coinOverhang = 3; thickness=6; inset =1.75; centerthickness=2.5; slotWidth = 17; slotHeight = 5; slotInset=3.75; UseBadge=false; base = 22; length=50; baseR1=5; baseR2=5; angle = 13.5; holeBaseWidth=23; holeBaseLoc=25.5; holeLength=19.5; holeR1=2; holeR2=6; rotate([0,0,90])...
glb/cad_eb9e2aa92808.glb
Create a square funnel for a pet feeder. Start by constructing a solid rectangular base measuring 82mm wide by 91mm long with a height of 13mm. From the top surface of this base, extend a hollow square pyramid shape upwards to a total height of 50mm. The top opening of the funnel should scale outward to be 1.75 times l...
thickness=3; height=13; length=91; width=82; fun_h=50; myscale=1.75; difference () { union(){ translate([0,0,height]) linear_extrude(height = fun_h, scale = myscale) square([width,length],center = true); translate([0,0,height/2]) cube ([width,length,height...
glb/cad_d71a5cd1527c.glb
Create a Foo Funnel designed for pouring liquids. Start by constructing a conical base with a top diameter of 50mm and a bottom diameter of 16.67mm, reaching a height of 25mm. This cone should be hollowed out by removing a smaller concentric cone from its center, leaving a wall thickness of 2mm throughout. At the botto...
width=50; buildSurface(); funnel(width, 2, 3); module buildSurface() { %translate([0,0,-5/2]){ rectangle(100, 100, 5); } } module funnel(width, wall, hole) { translate([0,0,wall]){ difference(){ solidFunnel(width, wall+hole, width/3, wall); solidFunnel(width-wall*2, hole, width/2+wall*2, wall); } } ...
glb/cad_f9d872fb5157.glb
Create a CraftBot hole cover by constructing a long, thin profile. Start with a base rectangular plate measuring 215mm in length, 20.67mm in width, and 2mm in height. Centered atop this base, add a raised rectangular section that is 205mm long, 8mm wide, and 2mm high. To complete the shape, extend a thin vertical ledge...
cube([205,1.6,15]); hull() { cube([205,1.6,8]); cube([205,8,2]); } translate([0,-1.7,0]) cube([205,20.67,2]); translate([-5,-1.7,0]) cube([205+10,20.67,0.8]); #translate([0,20.67-1.7,0]) rotate([60,0,0]) cube([205,3,2]);
glb/cad_3649af739037.glb
Create a shelf support by starting with a solid block that is 8mm wide and 15mm high. Shape the front face into a rounded profile by removing a cylindrical section with a 7.5mm radius, but leave a flat section on the top edge that is 3mm high. Carve a vertical hole through the center of the block to accommodate a scr...
screw_core_diameter = 2.5; screw_head_diameter = 7; screw_conical_head_length = 2.5; screw_cilindrical_head_length = 0.8; radius = 15; width = 8; shrink_ratio = 0.8; flat_ratio = 0.2; slot_top_margin = 2; smooth = 40; difference() { translate([0,width/2,0]) difference() { translate([0,-width/2,0]) rotate(...
glb/cad_a6841bdb3fe5.glb
Create a Triforce keychain by constructing a solid equilateral triangular prism. The prism should have a thickness of 8mm and a side length of 50mm, oriented so that one flat face lies on the horizontal plane. From this main body, remove a smaller, centered equilateral triangular prism that is 8mm wide and 50mm long, b...
translate([25*sin(60),0,0]) rotate([0,-90,0]) difference(){ polyhedron ( points = [[0,0,50*sin(60)], [8,0,50*sin(60)], [8,-25,0], [0,-25,0], [0,25,0], [8,25,0], ], triangles = [[0,3,2], [0,2,1], [3,0,4], [1,2,5], [0,5,4], [0,1,5], [5,2,4], [4,2,3], ]); # translate([12,0,25*sin(60)]) scale([2,0.4,0.4]) rotate(...
glb/cad_5594eeb28824.glb
Create two identical shower door guides. For each guide, start with a rectangular base block measuring 42.5mm in length, 25mm in width, and 16mm in height. Remove a central rectangular section from this block, leaving a 4mm thick floor and walls that are 2mm thick on the ends and 4mm thick on the sides, effectively cre...
difference() { cube([42.5,25,16]); translate([2,-1,4]) cube([38.5,28,18]); translate([21,12.5,-1]) cylinder(r=2.5,h=8,$fn=80); } translate([11.18,0,2.5]) rotate([0,-40,0]) union() { translate([0,0,17]) cube([2,25,6]); translate([1,0,17]) rotate([-90,0,0]) cylinder(r=.998,h=25,$fn=80);...
glb/cad_e12031b44700.glb
Create a shower door guide by starting with a rectangular base block measuring 39mm wide, 40mm deep, and 16mm high. Carve three rectangular slots out of this base to create a comb-like structure. The first slot should be 9mm wide, starting 1mm from the left edge and 3mm from the bottom, extending 44mm deep and 16mm hig...
rotate([90,0,0]) union() { difference() { cube([39, 40, 16]); translate([-1, -1, 3]) cube([9, 44,16]); translate([13,-1, 3]) cube([8, 44, 16]); translate([26,-1,3]) cube([7,44,16]); } translate([39,0,-4]) cube([2,40,20]); }
glb/cad_ca580c8b8465.glb
Create a Dimension test for CraftBot consisting of three rectangular prisms, each with a height of 2mm and a width of 5mm, arranged to form an L-shape on a flat plane. First, create a base prism 145mm long and 5mm wide. Second, create a second prism 17mm long and 5mm wide, positioned perpendicular to the first so that ...
h=2; w=5; l=12; d=140; cube([d+w,w,h]); cube([w,l,h]); translate([d,0,0]) cube([w,d+w,h]); translate([d-l+w,d,0]) cube([l,w,h]);
glb/cad_3cc7a75d44a8.glb
Create a Hinge Mortise Router Guide by starting with a solid rectangular block measuring 90mm in length, 31.75mm in width, and 29mm in height. Carve a central rectangular cavity out of the top of the block to create a guide for a router bit. This cavity should be 88.9mm long and 15.875mm wide, with a depth of 29mm. T...
function i(in)=in*25.4; $voffset=29; $xscale=1.012; $yscale=1; $fn=90; scale([$xscale,$yscale,1]) rotate([180,0,0]){ difference(){ translate([-i(.25),-i(.25),0]) cube([i(3.5+.25+.25),i(1.25+(5/8)+.5),$voffset]); union(){ translate([0,i(5/8),0])cube([i(3.5),i(.75+.5),i(3)]); translate([i(5/8),0,...
glb/cad_c36d278f17e2.glb
Create a fan nozzle for a 3D printer head. Start by constructing a main body that consists of a rectangular block measuring 12.6mm by 17.3mm with a height of 26.5mm. Attach a larger rectangular base to this block, measuring 15.6mm by 20.3mm with a height of 20mm. Carve a central rectangular slot through the bottom of t...
detailLevel = 64; module 12ptStar(size, height) { starNum = 3; starAngle = 360/starNum; for (s = [1:starNum]) { rotate([0, 0, s*starAngle]) cube([size, size, height], true); } } module basicShape() { $fn = detailLevel; resize([10,6,0]) difference() { scale([1,0.6,1]) union() { ...
glb/cad_ff0ef325f817.glb
Create a fan nozzle for a 3D printer head. Start with a main circular ring with an outer diameter of 47mm and a wall thickness of 3mm. The ring should be centered and oriented horizontally. Attached to one side of the ring, construct a rectangular intake housing that is 12.6mm wide, 17.3mm high, and 26.5mm deep. This ...
detailLevel = 64; module 12ptStar(size, height) { starNum = 3; starAngle = 360/starNum; for (s = [1:starNum]) { rotate([0, 0, s*starAngle]) cube([size, size, height], true); } } module basicShape() { $fn = detailLevel; resize([10,6,0]) difference() { scale([1,0.6,1]) union() { ...
glb/cad_18eb3c8d40aa.glb
Create a parametric pen clip designed to hold a cylindrical object. Start by creating a hollow cylinder with an inner diameter of 14.5mm, an outer diameter of 18.5mm, and a height of 7.5mm. Attached to this ring, center a vertical clip arm that is 5mm wide and 30mm long. The arm begins at the ring's outer edge and exte...
pen_d = 14.5; pen_thick = 2; pen_l = 7.5; clip_l = 30; clip_thick = 3; clip_w = 5; clip_bump = 5; huge = 500; union() { difference() { cylinder(r=pen_d/2 + pen_thick, h=pen_l); translate([0,0,-0.5]) cylinder(r=pen_d/2, h=pen_l+1); } translate([-clip_w/2,0,0]) { translate([0,pen_d/2 + (clip_bump-clip_...
glb/cad_5bc09d99dad9.glb
Create a Rebel Alliance symbol with a total thickness of 10mm. Start by creating a main cylinder with a radius of 50mm and a height of 10mm, centered on the origin. Remove a smaller concentric cylinder from the top section, shifted 18mm along the Y-axis, with a radius of 35mm and a height of 15mm, to create a crescent-...
color([1,0,0]) difference(){ cylinder (h = 10, r=50, center = true); translate([0,18,0]) color([0,0,5]) cylinder (h = 15, r=35, center = true); } color([1,0,0]) difference(){ translate([0,-5,0]) cube([70,30,10], center=true); #translate([-20,10,0]) rotate([0,0,-60]) color([0,0,1]) scale([0.8,0.6,1]) cy...
glb/cad_a34d624e2bbb.glb
Create a light attachment for a printer head by starting with a rectangular base measuring 49mm wide, 20mm deep, and 3mm thick. At the center of the base, carve out a concave semi-circular channel with a radius of 28mm that spans the full 20mm depth of the part. On the flat surface of the base, place two circular holes...
$fs=0.4; intersection() { union() { difference() { cube([49, 20, 3]); translate([ 4.0, 4,-1]) cylinder(r=2, h=5); translate([45.0, 4,-1]) cylinder(r=2, h=5); translate([24.5,-20,-1]) cylinder(r=28, h=5); } difference() { translate([8,0,3]) cube([33, 20, 20]); translate([24.5,-20,-1]) rotat...
glb/cad_453fb418f03d.glb
Create a French DCL standard ceiling light cover by starting with a primary thin disc. This main body is a truncated cone with a height of 7mm, a bottom radius of 128mm, and a top radius of 126mm. Center a vertical cylindrical hole with a radius of 2.5mm and a height of 10mm through the middle of this disc. From this...
$fn =256; difference(){ difference(){ color ("black") translate([0,0,3.5]) cylinder(h = 7, r1 = 128, r2 = 126, center = true); translate([0,0,5]) cylinder(h = 10, r = 2.5, center = true); translate([-20,8,-5+3.5]) cube(size = [40,22,10], center = false); translate([-10,8+21.9,-5+3.5]) cube(size = ...
glb/cad_2fb439551a23.glb
Create two mirrored templates for Warrior Trike front forks. For each template, start with a solid block that is 44.45mm wide, 44.45mm deep, and 76.2mm high. From the center of this block, remove a rectangular column of material to create a hollow square tube. This internal void must be 39.6875mm wide and 39.6875mm dee...
INCHES=25.4; FUDGE=3/64; PIPE=(1.5+FUDGE)*INCHES; THICK=(1.75*INCHES/2)-(PIPE/2); module steelpipe(height) { difference() { union() { cube([1.75*INCHES,1.75*INCHES,height]); translate([0,0,0]) { difference() { cylinder(h=0.4, r=4); translate([0,0,-1])cube([4,4,2]); } } translate([1.75*...
glb/cad_d2db76889efc.glb
Create a headphone holder designed to mount onto two parallel poles. Start by creating a main arch with a radius of 40mm and a length of 80mm. This arch should have a wall thickness of 2mm. To refine the shape, remove a cylindrical section from the underside of the arch with a radius of 25mm. Add a retaining lip to the...
pole_diameter= 14.9; pole_separation = 50; arch_radius = 40; arch_length = 80; arch_thickness = 2; arch_cutaway_radius = 25; arch_lip_radius = 8; clamp_pole_wall_thickness= 4.2; clamp_gap= 1.2; clamp_screw_d= 3; clamp_screw_head_d= 6.2; clamp_nut_d= 6.01; clamp_screw_shoulder_thickness=4.5; clamp_screw_rev...
glb/cad_e1f797b4889e.glb
Create a Volagi Liscio Fender Mount bracket. Start with a central rectangular block measuring 46mm wide, 5mm thick, and 15mm high. At each end of the block, centered on the width, create a vertical support structure. Each support is formed by the convex hull of two cylinders: a 6mm diameter cylinder and a 4mm diamete...
fenderWidth = 46; fenderThick = 5; stayAngle = asin(6/(11*25.4)); otherAngle = atan(90/250); module fenderStay(dir=1) { translate([0,8,0]) { rotate([90,0,stayAngle*dir]) cylinder(d=5, h=13*25.4, center=false); } } rotate([0,0,0]) difference() { union() { hull() { cube([fende...
glb/cad_3e6d7ea68ca7.glb
Create a Customizable Cup Holder Adapter consisting of two stacked cylindrical sections. First, create a base cylinder with a height of 53mm. The outer diameter is 75mm, but the walls taper slightly from a top diameter of 75mm to a bottom diameter of 67.5mm. Hollow out the center of this cylinder to create a wall thi...
cup_text = "Tea"; holder_diameter = 75; expanded_diameter = 103.5; base_height = 53; wall_thickness = 3; include_cup_handle_slit = true; slit_width = 18; slit_distance_from_base = 0; shim_height = 10; translate([0,0,0]) difference() { cylinder(d1=holder_diameter*0.9,d2=holder_diameter,h=base_height ); ...
glb/cad_61a6153926a7.glb
Create a filament spacer consisting of a wide base and a central hollow column. Start by creating a flat circular base with a diameter of 70mm and a height of 3mm. Centered on top of this base, add a cylinder with a diameter of 52mm and a height of 33mm. Finally, remove a coaxial cylindrical hole with a diameter of 32m...
$fn=360; difference() { union() { cylinder(d=70, h=3); cylinder(d=52, h=33); } translate([0,0,-5]) cylinder(d=32, h=45); }
glb/cad_b38d91b2ce0a.glb
Create a joinable organizer box with a base footprint of 30mm by 60mm and a total height of 12mm. The main body is a hollow rectangular shell with wall thicknesses of 1.2mm. On the exterior of the front and right walls, add protruding tongue joints. Each tongue is a centered rectangular block 8mm wide, 5mm deep, and ...
bl=30; bh=12; mx=1; my=2; xt = true; xg = true; yt = true; yg = true; _sep = 0.2; _wall = 1.2; module tongue() { linear_extrude(bh-_wall-_sep) polygon([[-2,0],[-3,4],[3,4],[2,0],[2,-1],[-2,-1]]); } module base() { difference() { cube([mx*bl-_sep,my*bl-_sep,bh]); translate([_wall,_w...
glb/cad_bc9e32fd5aa9.glb
Create a bone-shaped dog tag with a total thickness of 5mm. Construct the main body by placing two cylinders with a radius of 14mm at each end of a central rectangular block that measures 30mm wide and 50mm long. Position the cylinders so that their centers are 50mm apart, creating the rounded lobes of the bone. On the...
$fa=1; $fs=1; bone_height = 5; pet_name="Sammy"; phone_number="555-0212"; font_face="Consolas"; font_thickness=3; module t(t){ translate([-1,(-len(t)*3.8),bone_height]) rotate([0, 0, 90]) linear_extrude(height = font_thickness) text(t, 10, font = str(font_face), $fn = 16); } translate([-12,-25,0]) { ...
glb/cad_5e5ec481e625.glb
Create a Folding Wallet Cassette consisting of two symmetrical mirrored halves joined by a central hinge. Each half is a hollowed-out rectangular box with a height of 12mm, designed to hold cards measuring 87mm by 55mm. The outer walls have a thickness of 2mm, while the base is 1.2mm thick. Round all exterior corners w...
use <../library/hinge.scad> card_length = 87; card_width = 55; card_width_clearance = 3; height = 12; head_thickness = 3; opening_clearance = 0.3; side_thickness = 2; base_thickness = 1.2; corner_rounding_r = 5; right_thickness_fraction = 0.5; hole_dia = 15; hinge_dia = 100*height; hinge_gap = 60; amount = 7; hing...
glb/cad_ab187c0cfe32.glb
Create a Folding Wallet Cassette consisting of two symmetrical mirrored halves designed to be joined by a hinge. Each half is a hollowed-out rectangular box with a total height of 12mm and a base thickness of 1.2mm. The interior cavity is sized to fit standard cards (87mm length by 55mm width), with a 3mm clearance add...
use <../library/hinge.scad> card_length = 87; card_width = 55; card_width_clearance = 3; height = 12; head_thickness = 3; opening_clearance = 0.3; side_thickness = 2; base_thickness = 1.2; corner_rounding_r = 5; right_thickness_fraction = 0.5; hole_dia = 15; hinge_dia = 100*height; hinge_gap = 60; amount = 7; hing...
glb/cad_42b2ee924544.glb
Create a Folding Wallet Cassette consisting of two symmetrical halves joined by a hinge. Each half is a hollowed-out rectangular box with a total height of 12mm and a base thickness of 1.3mm. The internal cavity of each side is designed to hold cards of 87mm by 55mm, with a small clearance of 3mm added to the width. F...
use <../library/hinge.scad> use <../library/logo.scad> use <voronoi.scad> card_length = 87+3; card_width = 55; card_width_clearance = 3; height = 12; head_thickness = 3; opening_clearance = 0.5; side_thickness = 2; base_thickness = 1.3; corner_rounding_r = 5; right_thickness_fraction = 0.5; hole_dia = 15; hinge_d...
glb/cad_52e3b5f92730.glb
Create a Folding Wallet Cassette consisting of two symmetrical halves joined by a hinge. Each half is a hollowed-out rectangular box with a total height of 12mm and a base thickness of 1.2mm. The interior cavity is designed to hold cards of 87mm by 55mm, with an added 3mm clearance for the card length. For the right s...
use <../library/hinge.scad> use <../library/logo.scad> use <../library/WriteScad/Write.scad> use <voronoi.scad> card_length = 87+3; card_width = 55; card_width_clearance = 3; height = 12; head_thickness = 3; opening_clearance = 0.5; side_thickness = 2; base_thickness = 1.2; corner_rounding_r = 5; right_thickness_fr...
glb/cad_afb9794c8089.glb
Create a Folding Wallet Cassette consisting of a decorative Voronoi-style plate. Start by generating a Voronoi pattern based on a specific set of points: [0,0], [30,0], [20,10], [50,20], [15,30], [85,30], [35,30], [12,60], [45,50], [80,80], [20,-40], [-20,20], and [-15,10], [-15,50]. Extrude this pattern to a height ...
function normalize(v) = v/(sqrt(v[0]*v[0] + v[1]*v[1])); module voronoi(points, L=200, thickness=1, round=6, nuclei=true){ for (p=points){ difference(){ minkowski(){ intersection_for(p1=points){ if (p!=p1){ translate((p+p1)/2 - normalize(p1-p) * (thickness+round)) assign(angle=90+atan2(p[1]-p1[1...
glb/cad_172e03e77879.glb
Create a Folding Wallet Cassette consisting of two identical, interlocking hinge components that mirror each other to form a flexible joint. For each half of the hinge assembly, create a series of five repeating segments. Each segment is based on a cylinder with a diameter of 10mm and a height of 1.25mm. Within each ...
epsilon = 0.00001; hinge_start = 0.40; hinge_end = 1.25-hinge_start; module hingepair(x0_extra=0, x1_extra=0) { union() { translate([0,0,-x0_extra]) cylinder(h=hinge_start+x0_extra, r=0.5); translate([0,0,hinge_start-epsilon]) cylinder(h=0.25, r1=0.5, r2=0.25); translate([0,0,1.25-hinge_start+epsilon]) cylinde...
glb/cad_0ac0a65446db.glb
Create a Folding Wallet Cassette consisting of two symmetrical mirrored halves joined by a hinge. Each half is a hollowed-out rectangular box with a total height of 11mm, an internal width of 55mm, and an internal length of 87mm. The walls have a thickness of 4.5mm, while the base is 1mm thick. For the right half, cre...
use <../library/hinge.scad> use <../library/logo.scad> card_length = 87+3.5; card_width = 55; height = 11; head_thickness = 3.5; opening_clearance = 0.3; side_thickness = 4.5; base_thickness = 1.0; corner_rounding_r = 5; right_thickness_fraction = 0.5; hole_dia = 15; hinge_dia = 100*height; hinge_gap = 100; amoun...
glb/cad_2048ad6dc7d2.glb
Create a 3D Jolly Roger badge consisting of a skull centered over two crossed bones. All elements should have a uniform thickness of 5mm. First, construct the skull. Create a rounded cranium with a flat base. On the front of the face, add two circular eye sockets and a triangular nasal cavity. Below the nose, create a...
fudge = 0.1; module poly_path2994(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-36.072266,85.836914],[-52.072266,93.836914],[-62.244141,98.209961],[-71.384766,101.633789],[-80.056641,104.190430],[-88.822266,105.961914],[-98.244141,107.030273...
glb/cad_bca7290ec096.glb
Create a 3D Jolly Roger badge consisting of a central skull superimposed over two crossed scimitars. All elements should have a uniform thickness of 5mm. Position a stylized human skull in the center. The skull should feature hollowed-out eye sockets and a nasal cavity. The lower jaw area is defined by a series of sma...
fudge = 0.1; module poly_path744(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[170.687500,112.492188],[178.687500,117.492188],[174.562500,125.617188],[172.921875,130.289063],[172.576172,132.490234],[172.687500,134.492188],[173.022217,136.250977],[173.630859,137.781250],[...
glb/cad_d60120284d31.glb
Create a set of triangle table legs consisting of three rectangular plywood supports and two connecting mounts. Each plywood support must be 550mm long, 50mm wide, and 12mm thick. First, create a central middle mount as a cylinder with a radius of 55mm and a height of 10mm. Subtract a central vertical cylinder with a ...
use <../library/holes.scad> middle_thickness = 10; middle_dia = 110; top_dia = 85; top_thickness = 30; clearance = 0.5; side_thickness = 3; leg_thickness = 12; leg_width = 50; module legs(size=[leg_width+clearance,leg_thickness+clearance,450]) { for(rot = [0, 120, 240]) { rotate([0,0,rot]) translate([40,30,0...
glb/cad_83ce61c96e02.glb