Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Mazzer espresso grinder hopper consisting of a tapered funnel and an integrated finger guard. Construct the funnel with a total height of 45mm. The bottom section is a cylinder with an outer diameter of 58mm and a height of 20mm. From there, the walls flare outward to a top outer diameter of 100mm over a ris...
Large_End_Diameter = 100; Small_End_Diameter = 58; Wall_Thickness = 2; Funnel_Height = 45; Top_Band = 5; Bottom_Spout_Length = 20; spout_or = Small_End_Diameter/2; wall = Wall_Thickness; flare_percentage = Large_End_Diameter / Small_End_Diameter * 100; height = Funnel_Height; bottom_band=Bottom_Spout_Length; res...
glb/cad_30d1abd1c768.glb
Create a simple comb consisting of a long rectangular back and a series of teeth. The back is a solid bar with a thickness of 1.5mm and a width of 5mm. The main body of the back is a cylinder with a diameter of 1.5mm, extending to a total length that accommodates the teeth and the end caps. Create 39 teeth, each start...
$fn = 50; backWide = 5; endWide = 0.75; toothDia = 1.5; toothGap = 1.5; toothLen = 20; numTeeth = 39; backLen = (numTeeth-1)*(toothDia+toothGap); endLen = endWide*toothDia; comb(); module comb() { translate([-((numTeeth*(toothGap+toothDia))+toothGap)/2,0,toothDia/2]) { for(x=[1:numTeeth]) translate([(x...
glb/cad_1bce3099989f.glb
Create an Open Source Hardware Logo ear plug. Start by constructing a main plug body with a diameter of 10mm and a height of 11mm. The profile of the body should be curved, with a radius of 6mm at the widest points and a slight inward taper toward the center. On the flat top face of the plug, carve out a recessed logo...
type = 6; part = 0; diameter = 10; weight = 11; groove = 1; edges = 1; cursor = 100; margin = 0.1; $fn = 50; module Curve(p1, p2, cursor, steps = 5, filled = true) { stepsize1 = (cursor - p1) / steps; stepsize2 = (p2 - cursor) / steps; for (i = [0:steps - 1]) { assign(point1 = p1 + st...
glb/cad_095b5caf9e7a.glb
Create a Ball Mold consisting of two identical mirrored halves. For each half, start with a centered cube measuring 30mm x 30mm x 16mm. From this cube, remove a central sphere with a radius of 12mm to create a hemispherical cavity. Additionally, remove a central vertical cylinder with a radius of 3mm that passes throug...
module BallMoldTop () { difference () { translate([0, 0, 8]) cube(size=[30,30,16], center=true); translate([0, 0, 0]) sphere(r = 12); translate([0, 0, 10]) cylinder(h = 80,r = 3, center = true); translate([12, 12, 0]) sphere(r = 2.2); translate(...
glb/cad_9e51f9e8f7c9.glb
Create a Crochet Hook Stand with a total height of 100mm and a wall thickness of 3mm. The stand is a rectangular frame consisting of a top plate, a bottom plate, and two vertical side walls. The top and bottom plates each feature a row of four circular rings. Each ring is created by concentric cylinders: an outer cyli...
include <puzzlecutlib.scad> $hole_r = 25/2; $sm_hole_r = 12/2; $thickness = 3; $tab_w = 10; $tab_l = 10; $height = 100; $jigsaw = 0; $fn=100; module circ() { translate( [$hole_r + $tab_w, 0, 0] ) { difference() { cylinder( r=$hole_r + $thickness, h=$thickness, center=true); cylin...
glb/cad_f3236105819a.glb
Create a two-handled cup with an overall height of 115mm. The main body is a hollow cylinder with an outer radius of 41mm and a wall thickness of 4mm. The bottom of the cup is rounded with a radius of 10mm. The top rim is also rounded with a radius of 2mm. To create the hollow interior, remove a smaller cylinder from t...
$fn = 60; cornd=10; ovrht = 115; cupwd = 41; cupwal = 4; handlr = 5.25; cornerd = min(cornd,cupwd/2); cupht = ovrht - cornerd - cupwal*.5; module cupprim(h1,r1,rc) { cylinder(h1,r1,r1); rotate_extrude (convexity=10) translate ([r1-rc,0,-rc/2]) circle (r=rc); translate ([0,0,-rc]) cylinder(rc,r1-rc,r1-rc); } tra...
glb/cad_dfd5f4830eff.glb
Create a bowl based on the composite of a rhombicosidodecahedron and its dual. First, construct a rhombicosidodecahedron scaled by 12 and its dual scaled by 16.5. Combine these two polyhedra into a single shell. To hollow out the center and create the bowl shape, subtract a smaller version of this composite shell, scal...
a = 1.13383; b = 1.74536; gr = ( 1. + sqrt(5.))/2.; mark = 3; if (mark==1) difference() { rotate([0,148.28,0]) scale(12) polyhedron(rhom_icosi_dodeca_cords,r_triangles); rotate([0,148.28,0]) scale(11.25) polyhedron(rhom_icosi_dodeca_cords,r_triangles); translate([0,0,110]) cube(200,center=tr...
glb/cad_e3ed4ede53d2.glb
Create a customizable horn with attachment tabs. Start by constructing a hollow, tapered horn shell with a total length of 100mm. The horn should have a constant wall thickness of 4mm throughout its length. The base of the horn begins with an inner radius of 25mm, which tapers to a point at the tip. Apply a 90-degree t...
HORN_FACE_NUMBER = 8; HORN_LENGTH=100.0; HORN_INNER_RADIUS=25.0; HORN_WALL_THICKNESS=4.0; HORN_TWIST_X_AXIS=0; HORN_TWIST_Y_AXIS=0; HORN_TWIST_Z_AXIS=90; HORN_TIP_OFFSET_X=-30.0; HORN_TIP_OFFSET_Y=-30.0; HORN_ROTATE = 0.0; HORN_VERT_RESOLUTION = 4.0; BASE_HEIGHT = 10.0; INCLUDE_TAB = "true"; TAB_HEIGHT = 5; TAB...
glb/cad_a14d72ca88fa.glb
Create a Vallejo 17ml paint bottle holder consisting of a grid of 10 circular cells arranged in 2 rows and 5 columns. Each individual cell unit is a cube measuring 32mm in width, 32mm in depth, and 32mm in height. For each cell, create a base block 10mm high. In the center of this base, remove a cylindrical hole with...
Rows = 2; Columns = 5; Height = 32; Bottle_Diameter = 27; Nozzle_Diameter = 8; Base_Width = 32; End_Width = 4; Base_Height = 10; Top_Height = Base_Height / 2; Hole_Depth = Base_Height / 2; MakeTray(Rows, Columns); module MakeTray(rows, cols) { for(r = [0 : 1 : rows-1]) { for(c = [0 : 1 : cols-1]) { ...
glb/cad_1b0cc20abd5a.glb
Create a two-part protective case for a Bus Pirate v3.6 board. The board dimensions are 60.1mm by 37.1mm with a thickness of 1.65mm. For the bottom shell, create a rounded box with a wall thickness of 1.2mm and a corner radius of 4.05mm. The interior should feature a resting area for the board with a radius of 3.3mm a...
include <oshw.scad> fudge_factor=0.75; board_length=60.1 + fudge_factor; board_width=37.1 + fudge_factor; board_thickness=1.65; board_corner_radius=3.3 + fudge_factor/2; board_clearance_top=0; board_clearance_bottom=2; clearance_top=2; usb_width=8.6; usb_height=4.6; cutout_header_width=20.3 + 1; cutout_header_len...
glb/cad_fad9bf984134.glb
Create a MakerBot Replicator Z18 Spool Holder consisting of a main horizontal rod and a supporting base. Start by creating a horizontal cylinder with a diameter of 28mm and a length of 90mm. This cylinder should be hollowed out by removing a smaller concentric cylinder with a diameter of 10mm to create a tube. At one e...
d=28; l=90; height=120; difference() { union() { cube([35,6,d]); cube([4,13,d]); translate([0,10,0]) { cube([height,3,d]); } difference() { union() { translate([height,12,d/2]) { rotate([-90,0,0]) { cylinder(r=d/2, h=l+1+2, $fn=100); } } translate([height-3,12+1+l,d/2]) {...
glb/cad_15683961643f.glb
Create a cutter knife snap off tool by combining several geometric primitives. Start with a central rectangular block measuring 7.3mm in width, 10mm in depth, and 3.2mm in height, centered at the origin but shifted 5mm along the Y-axis. Add a second rectangular block measuring 5mm in width, 10mm in depth, and 5mm in he...
union(){ translate([0, 5, 0]){ translate([0, 0, 2.5]) cube([5, 10, 5], center=true); translate([0, 0, (3.2/2)]) cube([10.5 - 3.2, 10, 3.2], center=true); translate([5 - (3.2/2), 0, 3.2/2]) rotate([90,0,0]) cylinder(r=(3.2/2), h=10, center=true, $fn=32); translate([-(5 - (3.2/2)), 0, 3.2/2]) rotate([90,0,0]) cylin...
glb/cad_b95e0f15a9c6.glb
Create a butterfly nut for an M5 bolt. Start by creating a central cylinder with a diameter of 12.6mm and a height of 12mm. Atop this cylinder, add a handle section that is 12mm high. This handle is formed by the intersection of a cylinder with a 34mm diameter and a sphere with a 17mm radius, further modified by a scal...
cylinder_dia = 12.60; cylinder_height = 12; hexagone_size = 9.5; hexagone_depth = 4; hole_size = 5.5; handle_dia = 34; handle_height = 12; translate([0,0,cylinder_height+handle_height]) rotate([0,180,45]) difference() { union() { cylinder(r=cylinder_dia/2, h=cylinder_height, $fn=64); translate([0,0,cylinder_...
glb/cad_4d606ac34528.glb
Create a PCB holder consisting of three separate blocks: a left support, a middle spacer, and a right support. Each block has a width of 100mm, a height of 25mm, and a thickness (strength) of 15mm. For the left support, create a rectangular block 15mm thick. Drill two horizontal cylindrical holes with a diameter of 8....
width=100; height=25; rod_height=8; rod_spacing=15; rod_diameter = 8.4; strength=15; reduce_sliding_surface=true; use_right_hex_head_screw=true; right_anti_lift=-0.2; right_screw_fn = 30; module left() { difference() { cube([strength,width,height]); translate([0,rod_spacing,rod_height]) rotate...
glb/cad_0d9873d92a00.glb
Create a Z coupling for a lead screw and motor shaft. Start with a rectangular block that is 11.4mm wide, 41mm long, and 7.8mm high. Carve two V-shaped grooves into the top of the block to create seats for the shafts. The first groove is 24mm long and is positioned to hold a larger shaft with a diameter of 7.9375mm. ...
largerShaftDiam = 7.9375; largerShaftLength = 24; smallerShaftDiam = 3; smallerShaftLength = 17; bindingScrewDiam = 3.25; bindingNutDiam = 9.5; radFractionLarger = 0.35; radFractionSmaller = 0.5; covFraction = 0.9; baseThickness = 3; r_1 = largerShaftDiam/2; r_2 = radFractionLarger*r_1; r_3 = sqrt(2*r_1*r_2-pow(r_2,2)...
glb/cad_eb429451c124.glb
Create a Prusa Bed Trapped Nut Leveler by starting with a rectangular block measuring 33.75mm in length, 13.35mm in width, and 5.6mm in height. From this base, remove three vertical holes to create slots for hardware. First, create a hexagonal cutout centered 5.625mm from the left edge and 6.675mm from the bottom. This...
baseThickness = 1.5; trappedNutDiam = 1.1*8.9; trappedNutHeight = 4.6; trappedNutClearance = 0.5; levelingScrewDiam = 1.3*3.35; bindingScrewDiam = 1.3*3.35; bindingNutDiam = 9; totalHeight = baseThickness+trappedNutHeight-trappedNutClearance; totalWidth = 1.5*trappedNutDiam; totalLength = 1.5*(2*bindingNutDiam+trapped...
glb/cad_0a5eab2966b5.glb
Create a flat-plane 4-cylinder engine crankshaft. The model consists of a central longitudinal axis with alternating journals and counterweights. Start with a central main journal, a cylinder with a radius of 2.5mm and a length of approximately 6.13mm. Along the axis, place four rod journals, each being a cylinder wit...
include <MCAD/shapes.scad> $fn=128; height=25; diameter=12; compression_height=11; pin_radius=3; ring_to_deck=2; parts_gap=5; gap=0.02; rod_length=70; rod_width=rod_length/2.5; rod_pin_radius=pin_radius*1.5; rod_height=pin_radius*2; rod_thick=rod_height*.8; crank_radius=(rod_width*.75)/2.5; rod_bolt_radius=rod_thick...
glb/cad_09fcdd3ed990.glb
Create a motor gear hub featuring a herringbone gear. The gear should have 25 teeth, a circular pitch of 320, and a pressure angle of 30 degrees. The total gear height is 10mm, composed of two mirrored 5mm thick gear halves with a 1mm rim width and a 1mm hub diameter. The center of the gear must have a vertical bore wi...
use <MCAD/teardrop.scad> use <MCAD/involute_gears.scad> motor_shaft_diameter=4.1; nholes = 6; module herringbone_gear( teeth=12, circles=0, shaft=4.1 ) { twist=200; height=10; pressure_angle=30; gear( number_of_teeth=teeth, circular_pitch=320, pressure_angle=pressure_angle, clearance = 0.2, ge...
glb/cad_57da164d1639.glb
Create a uStepper linear actuator gear. Start by constructing a herringbone gear with 10 teeth, a circular pitch of 320mm, a pressure angle of 30 degrees, and a total height of 10mm. The gear should have a bore diameter of 5mm and a hub diameter of 1mm. From the center of this gear, remove a hexagonal hole with a diam...
use <MCAD/teardrop.scad> use <MCAD/involute_gears.scad> M8_nut_diameter = 9.5; nut_separation = 3; module herringbone_gear( teeth=12, circles=0, shaft=5 ) { twist=200; height=10; pressure_angle=30; gear( number_of_teeth=teeth, circular_pitch=320, pressure_angle=pressure_angle, clearance = 0.2, ...
glb/cad_247d9b6f2dc9.glb
Create a hydroponic 4x distributor manifold. Start with a central cylindrical base 8mm thick and 40mm in diameter. On top of this base, center a smaller cylinder 12mm high with a diameter of 16mm. At the very top center, add a small cylindrical protrusion 20mm high with a diameter of 8mm. Extend four arms radially from...
$fn=60; difference() { union() { cylinder(h=8, r=20, center=true); cylinder(h=12, r=8, center=false); cylinder(h=20, r=4, center=false); rotate([90,0,0]) cylinder(h=90, r=4, center=true); rotate([90,0,90]) cylinder(h=90, r=4, center=true); } cylinder(h=3, r=8, center=true); rotate([90,0,0]) cylinder(h=...
glb/cad_5a33eb38b6d0.glb
Create a variable width filament spool hub with a total width of 38mm. Start by creating a main cylindrical body with a diameter of 38mm, but instead of a smooth circle, use an 8-sided prism (octagonal cross-section). From this octagonal hub, remove a central core consisting of two cylinders: a primary cylinder with ...
reelWidth = 38; module core() { innerCylWidth = max(10, (reelWidth/4)); union() { translate([0,0,-0.05])cylinder(reelWidth+0.1,26,26); translate([0,0,min(reelWidth,reelWidth-(innerCylWidth+0))]) cylinder(innerCylWidth+.05,30,30); } } module arch() { translate([0,0,reelWidth/3])union() { difference()...
glb/cad_cc3352632e0c.glb
Create a DSO138 digital oscilloscope enclosure. Start with a main rectangular box measuring 118.8mm x 77.8mm x 21mm. Hollow out the center to create a shell with walls 0.9mm thick, leaving a base floor 0.9mm thick. At the four corners of the base, add cylindrical mounting pillars with a diameter of 9mm and a height of...
use <text_on/text_on.scad> $fn = 35; DSO = [117, 76, 15.5]; pcb_thick = 5.5; wall_top = 0.9; wall_side = 0.9; hole_dist = 5; hole_dia = 3; bolt_head_dia = 5.6; bolt_head_thick = 3; top(); module top(){ rotate([0,0,0]){ difference(){ union(){ main_box(); mount_holes(); buttons(); Jumper2(); } scr...
glb/cad_ded1d5bf7848.glb
Create a Webcam Mounting Bracket consisting of a flat base plate with a central circular cutout. The main body is a ring with an outer diameter of 112mm and an inner cutout diameter of 92mm, creating a wall thickness of 10mm. The ring is not a perfect circle; it is integrated into a larger flat profile that extends 75m...
wall=5; walls=wall*2; diam = 102; rad = diam/2; extl = 15; extw = 75; hgt = 32; tr = 5; module shape(marg=0) { circle(r=rad+marg); translate([0,-(extw+(marg*2))/2]) square([rad+extl+marg, extw+(marg*2)]); if(marg >= 0) translate([0,12-marg,0]) square([rad+(extl*2)+marg, (extw/2)+(marg*2)-12]); } module b...
glb/cad_35e68567ec65.glb
Create a customizable HDD spindle filament mount by constructing two concentric cylinders. First, create a wide, flat base cylinder with a diameter of 60mm and a height of 6mm. Centered on top of this base, add a second, narrower cylinder with a diameter of 31.5mm and a total height of 15mm. Finally, remove a central c...
$fn=60; spool_inside_diameter = 31.5; total_height=15; brim_width=60; brim_height=6; spindle_size=25; module main_spool() { union() { cylinder(r=brim_width/2, h=brim_height); cylinder(r=spool_inside_diameter/2, h=total_height); } } module hollow_center() { translate([0,0,-.5]) { ...
glb/cad_44ce2ead6658.glb
Create an IKEA Faktum Drawer Drill gauge. Start with a flat base plate 1.5mm thick. The base is a hull formed by several points: two cylinders with a 4mm diameter positioned at [0, 93] and [0, 2] in the XY plane, and two more cylinders with a 4mm diameter at [-44.5, 2] and [44.5, 2]. In this base plate, create four dr...
wall=4; wall_h=4; d=32.5; h1=57+3; h2=89+3; holes=[ [d+wall/2,h1+wall], [-d-wall/2,h1+wall], [d+wall/2,h2+wall], [-d-wall/2,h2+wall], ]; drill_hole=5; mark_hole=2.0; h=h2+drill_hole; w=d+15; base_thick=1.5; savers=[ [wall+w/2+6,15], [-wall-w/2-6,15], ...
glb/cad_bcc4570cf756.glb
Create a Birdie sculpture by generating a series of 50 stacked, thin rectangular slices that gradually evolve in size and orientation. Each slice should start with dimensions of 2mm by 6.67mm by 0.03mm, centered on the Z-axis. As you stack these slices every 2mm along the Z-axis, incrementally increase their scale and ...
lsz=[3,10]; ht=2; spread=1.4; rot=3; module slice() { cube ([lsz[1]/1.5,lsz[1]*10,lsz[1]/100], center=true); } module item() { for (i=[0:49]) { hull() { translate([0,0,ht*i]) rotate([rot*i,rot*i,rot*i/2]) scale ([1+i/100,1+i/10,1]) slice(); translate([0,0,ht*(i+1)]) rotate([rot*(i+1),rot*(i+1),r...
glb/cad_f56abb7b78b6.glb
Create a Stow Away Box by starting with a solid rectangular block measuring 115mm wide, 230mm long, and 100mm high. Hollow out the center of this block to create an open container with a wall thickness of 2mm and a bottom base thickness of 1.6mm. On the two shorter side walls, centered horizontally and positioned nea...
x=115; y=230; h=100; thx=2; bt=1.60; l2=16; inset=0; box(); if ( inset==0 ){ translate([x+l2*2,y/2-l2*2,0]) griffeinsatz(); translate([x+l2*2,y/2+l2*2,0]) griffeinsatz(); } module box(){ difference(){ cube([x,y,h]); translate([thx,thx,bt]) cube([x-(2*thx),y-(2*thx),h]); translate([x/2,-0.5,h-l2-(3*thx)]) ro...
glb/cad_a39faf53aa43.glb
Create a bowl based on the geometry of a Pentagonal Rotunda (Johnson Solid J6). The outer shell should have an edge length of 31mm, and the inner cavity should have an edge length of 29mm. The shape is defined by a decagonal base and a pentagonal top rim. Construct the outer surface by positioning a decagon on the bot...
mark = 1; if (mark==1) rotate([0,180,0]) jk06_bowl(31,29); else if (mark==2) jk06(30); else {} module jk06_bowl(l,m) { l2 = cos(36)*l*2; r5b = sqrt((l*l)/(2-2*cos(360/5))); r5a = sqrt((l2*l2)/(2-2*cos(360/5))); r10 = sqrt((l*l)/(2-2*cos(36))); z1 = 0; z3 = sqrt(l*l-((r10)-(cos(18)*r10))*((r10)-(cos(18)*r10)) ...
glb/cad_f04d45eaa86e.glb
Create a bowl based on the gyroelongated pentagonal rotunda (Johnson solid J25). The outer shell should be constructed with an edge length of 25mm, and the inner cavity should be a concentric version of the same geometry with an edge length of 23mm. The overall shape is defined by a decagonal base and a pentagonal top...
mark = 1; if (mark==1) rotate([0,180,0]) jk25_bowl(25,23); else if (mark==2) jk25(25); else {} module jk25_bowl(l,m) { l2 = cos(36)*l*2; r5b = sqrt((l*l)/(2-2*cos(360/5))); r5a = sqrt((l2*l2)/(2-2*cos(360/5))); r10 = sqrt((l*l)/(2-2*cos(36))); z1 = 0; z2 = sqrt(l*l-((r10)-(cos(18)*r10))*((r10)-(cos(18)*r10)) ...
glb/cad_d14cdb986cbf.glb
Create a bowl based on the geometry of a pentagonal cupola (Johnson solid J5). The outer shell should be defined by an outer edge length of 30mm and an inner wall thickness defined by an inner edge length of 27mm. The outer shape consists of a decagonal base and a pentagonal top rim. The base is a regular decagon with...
mark = 1; if (mark==1) rotate([0,180,0]) jk05_bowl(30,27); else if (mark==2) jk05(30); else {} module jk05_bowl(l,m) { r5b = sqrt((l*l)/(2-2*cos(360/5))); r10 = sqrt((l*l)/(2-2*cos(36))); z1 = 0; z4 = sqrt(l*l-((r5b)-(cos(18)*r10))*((r5b)-(cos(18)*r10)) - ((sin(18)*r10))*((sin(18)*r10)) ); r5bb = sqrt((...
glb/cad_982a4bf8f122.glb
Create a glass plate holder for leveling. Start by creating a base block using a hull of four cylinders, each with a radius of 1mm and a height of 6.2mm, positioned at the corners of a 30mm by 30mm square. Carve a rectangular slot for the glass plate into the top of the block. This slot should be 30mm wide, 2.2mm thi...
holdertype = "corner"; glass_thickness = 2.2; width = 30; mountingholde = 5; nutsize = 6.6; bolt_size = 3.6; wallthickness = 2; dept = 15; totalthickness = glass_thickness + (2*wallthickness) < nutsize + (2*wallthickness) ? nutsize + (2*wallthickness) : glass_thickness + wallthickness; actual_wallthickness = (t...
glb/cad_29ce13161918.glb
Create a small test whistle consisting of a hollowed rectangular body and a fipple. Start by creating a main body with dimensions 65mm in length, 45mm in width, and 25mm in height, applying a 2mm rounding radius to all corners. Hollow out the interior of this body to create a chamber. At one end, integrate a mouthpie...
use <fillets.scad> $fn = 24; length = 65; width = 45; height = 25; rounding_radius = 2; mouthpiece_size = [10, 12, 2.5]; ww_length = mouthpiece_size[0] + 9; ww_width = mouthpiece_size[1] - 2; ww_height = mouthpiece_size[2]; fi_length = mouthpiece_size[0] + 7; fi_width = mouthpiece_size[1] - 2; fi_height = mouthp...
glb/cad_8c563b0dae21.glb
Create a servo holder for an InMoov robot. Start by constructing a base plate that is 24.7mm wide, 23.01mm deep, and 8.2mm thick. On one side of this plate, add a vertical wall that is 28.6mm high, with a profile defined by a polygon starting at coordinates (-37.64, 0), (0, 0), (0, 7.07), and (-34.32, 7.07). For the p...
ServoLength = 40; ServoWidth = 20; PotiType = square; PotiOrientation = 0; ScrewXOffset = 4.5; ScrewDistance = 14; ScrewHoleDiameter = 4.5; $fn=50; x=0; y=1; z=2; module part() { PotiPlateSize = [24.7, 23.01, 8.2]; PotiCenter = [PotiPlateSize[x]/2, 17.6]; echo(PotiCenter); difference() { union() { minkows...
glb/cad_84f54c03af5f.glb
Create a Laser Putter attachment by starting with a central block 30mm wide, 30mm deep, and 20mm high, centered at the origin. From this main body, remove a rectangular section from the bottom that is 30mm wide, 10mm deep, and 14mm high, centered at Z=0, leaving a 3mm thick base on the bottom. In the upper section, c...
difference () { translate([0,0,2.5]) rotate([0,0,0]) cube([30,30,20], center = true); translate([0,0,-2.5]) rotate([0,0,0]) cube([30,10,14], center = true); translate([0,-8,0]) rotate([0,0,0]) cube([30,10,8], center = true); translate([0,8,0]) rotate([0,0,0]) cube([30,10,8], center = true); } difference () { translate...
glb/cad_3444e0484103.glb
Create a protective case for a BeagleBone Black board consisting of a main box and a friction-fit lid. The main box is a rectangular enclosure with external dimensions of 102.8mm in length, 66.8mm in width, and 17.5mm in height. The walls are 1.5mm thick with a 1.0mm thick floor. The four vertical interior corners of...
include <beagleboneblack.scad> wallThickness = 1.5; wallSpace = 1.0; floorThickness = 1.0; floorSpace = 5.0; bbbPosition = [wallThickness+wallSpace,wallThickness+wallSpace,floorThickness+floorSpace]; boxHeight = floorThickness+floorSpace+ethSize[2]+ethOffset[2]-small; boxSize = [boardLength+2*wallThickness+2*wallSpac...
glb/cad_43a6810cd370.glb
Create a traffic cone model starting with a square base that is 10mm wide, 10mm deep, and 1.5mm high. Remove a concentric ring from this base by creating a hole with a radius of 6mm and a larger outer cutout with a radius of 12mm, both centered and passing through the height of the base. Centered on top of this base, p...
Base = 10; Base_Height = 1.5; Curve = 6; Cone_Height = 12; Cone_Bottom_Width = 4; Cone_Top_Width = 1; $fn = 30; difference(){ cube([Base,Base,Base_Height], center=true); difference(){ cylinder(Base_Height+.1,r=Curve*2, center=true); cylinder(Base_Height+.1,r=Curve, center=true); } } cylinder(Cone_Height,Cone_B...
glb/cad_22670c6006e7.glb
Create a 3D model of an M-94 Cipher Device wheel. Start by creating a main disk with an outer diameter of 36.5mm, a height of 3.53mm, and a central axle hole with a diameter of 6.25mm. From the top face of the disk, remove a concentric inner cylinder with a diameter of 33.5mm (leaving a wall width of 1.5mm) and a sma...
use <write.scad> REPLICA = true; WHEEL = 17; wheels = ["ABCEIGDJFVUYMHTQKZOLRXSPWN", "ACDEHFIJKTLMOUVYGZNPQXRWSB", "ADKOMJUBGEPHSCZINXFYQRTVWL", "AEDCBIFGJHLKMRUOQVPTNWYXZS", "AFNQUKDOPITJBRHCYSLWEMZVXG", "AGPOCIXLURNDYZHWBJSQFKVMET", "AHXJEZBNIKPVROGSYDULCF...
glb/cad_6a2753e38c93.glb
Create a round saw insert with a total thickness of 5.21mm. The main body is a truncated cone with a top diameter of 69.68mm and a bottom diameter of 68.5mm. Apply a 0.5mm chamfer to both the top and bottom edges. At the base, add a cylindrical sub-support with a diameter of 59.76mm and a height of 4.75mm. To prevent ...
units=0; top_d=69.68; bottom_d=68.5; top_chamfer=0.5; bottom_chamfer=0.5; kerf_width=1.5; kerf_len=52.7; kerf_crud_drainage=1; thickness=5.21; key_width=2.75; key_orientation=0; sub_dia=59.76; sub_thickness=4.75; print_orientation=1; units_table=[1,25.4]; function tomm(x)=x*units_table[units]; module do...
glb/cad_d676ce702cb6.glb
Create a coin dispenser consisting of a base plate and a cylindrical housing. Start with a square base plate 27mm wide and 2mm thick, with rounded corners and a 3.4mm diameter mounting hole centered in the middle. On top of this base, construct a cylindrical tower with an outer diameter of 26.5mm and a wall thickness...
coinSz = 21.0; coinTh = 1.6; coins = 20; finger = 12; holeSz = 3.4; iFactor = 0.95; wallTh = 3; ioRing = coinSz * iFactor; iiRing = ioRing - wallTh; height = coins * coinTh + finger; module chaflan(size, tr = [0, 0], rt = 0){ translate([tr[0], tr[1]]) rotate(rt - 180) difference(){ ...
glb/cad_28f689cb88c2.glb
Create a closed swirly sculpture by generating two mirrored helical structures. For the first structure, create a sequence of 30 thin rectangular slices, each starting with dimensions of 2mm by 20mm by 1.2mm. Position these slices vertically every 4mm along the Z-axis. As the slices ascend, rotate each subsequent slice...
lsz=[3,6]; ht=4; spread=1; rot=6; module slice() { cube ([lsz[1]/1.5,lsz[1]*10,lsz[1]/5], center=true); } module item() { for (i=[0:29]) { hull() { translate([0,0,ht*i]) rotate([rot*i,rot*i,rot*i/2]) scale ([1+i/100,1+i/10,1]) slice(); translate([0,0,ht*(i+1)]) rotate([rot*(i+1),rot*(i+1),rot*(i...
glb/cad_104691ed1dd3.glb
Create a complex swirly sculpture by generating a series of stacked, transforming slices. Start by defining a base rectangular slice that is 2mm wide, 20mm long, and 0.6mm thick, centered on the origin. Create a vertical sequence of 30 such slices, each spaced 3mm apart along the Z-axis. For each successive slice in th...
lsz=[3,6]; ht=3; spread=1.4; rot=6; lays=30; module slice() { cube ([lsz[1]/1.5,lsz[1]*10,lsz[1]/5], center=true); } module item() { for (i=[0:lays-1]) { hull() { translate([0,0,ht*i]) rotate([rot*i,rot*i,rot*i/2]) scale ([1+i/100,1+i/10,1]) slice(); translate([0,0,ht*(i+1)]) rotate([rot*(i+1),r...
glb/cad_9c7ad8376ed9.glb
Create a screwdriver handle by starting with a dodecagonal prism 60mm tall with a diameter of 30mm. Bore a hexagonal hole 50mm deep into the center of the prism with a flat-to-flat width of 7.885mm. Within this hexagonal void, remove a cylindrical section from the top face with a diameter of 8.8502mm and a depth of 25m...
handle=30; tolerance = .90; hex=6.985 + tolerance; shaft=7.9502 + tolerance; difference() { cylinder(h = 60, r = handle / 2, $fn = 12); cylinder(h = 50, r = hex / 2, $fn = 6); cylinder(h = 25, r = shaft / 2, $fn = 100); }
glb/cad_fed30b41c015.glb
Create an opticoupler break carriage bracket. Start with a base rectangular plate measuring 25mm wide, 12mm deep, and 1mm thick, centered on the origin. Remove a central rectangular slot from this plate that is 15mm wide and 5.5mm deep, leaving a border of 3.25mm on the front and back edges. In the center of this base ...
nozzleWidth=0.4; halfNozzleWidth=nozzleWidth/2; carraigeWidth=25; carraigeDepth=12; carraigeBeltPathDepth=5.5; carraigeBeltPathWidth=15; carraigeMountBolt=12.5; opticalBreakOffset=3; opticalBreakThickess=.6; opticalBreakHeight=7; opticalBreakMountThickness=1; circleRadiusPoints=6; screwHoleRadius=1.475; mod...
glb/cad_e3b9f27839bf.glb
Create a forest of twenty-five identical stylized trees arranged in a five-by-five grid. Each individual tree is composed of two parts: a base and a top. The base is a rectangular prism measuring 5mm in width, 10mm in depth, and 15mm in height. Centered on top of this base is a cylinder with a diameter of 20mm and a he...
module leaves() { cylinder ([20,5,0]); } module box() { cube ([5,10,15]); } module tree() { leaves(); scale ([0.5,0.5,0.5]) translate ([-2.5,-5,-15]) box(); } module treeline() { translate ([20,0,0]) tree(); translate ([10,0,0]) tree(); tree(); translate ([-10,0,0]) tree(); translate ([-20,0,0]) tree(); } module fo...
glb/cad_bc9d6f470641.glb
Create a Nerf Claymore Mine body by starting with a solid rectangular block measuring 76mm in width, 32mm in depth, and 60mm in height. From the top face of this block, remove a grid of 12 cylindrical holes to create dart chambers. These holes should each have a radius of 8mm and a depth of 60mm. Arrange the holes in a...
dartR=8; dartL=60; xDarts=4; yDarts=3; chamberPadding=4; module Body(){ cube(size=[(((dartR*2+chamberPadding)*xDarts)+8), ((dartR*2+chamberPadding)*yDarts)+chamberPadding, dartL], center=false); translate(v=[-4,-15,0])Mount(); } module Chambers(){ for(i=[1:xDarts]){ for(a=[1:yDarts]){ translate(v=[((((dartR*...
glb/cad_bbe79b7eb948.glb
Create a shot glass called a R'jumka. Start by constructing a circular base 3mm thick with a bottom diameter of 32mm that tapers upward to a diameter of 10mm. From the top of the base, build a stem consisting of three stacked 5mm tall sections: the first tapers from 10mm down to 8mm, the second from 8mm down to 6mm, an...
module Rjumka_Vodki_Na_Stole() { translate([0, 0, -3]) cylinder(3, d1=32, d2=10, $fn=64); $fn=9; cylinder(5, d1=10, d2=8); translate([0, 0, 5]) cylinder(5, d1=8, d2=6); translate([0, 0, 10]) cylinder(5, d1=6, d2=8); translate([0, 0, 15]) cylinder(6, d1=8, d2=25); difference() { ...
glb/cad_b9d3f485189c.glb
Create a belt attachment plate for a holster. Start with a rectangular base that is 100mm long, 65mm wide, and 3mm thick. From this base, remove two large rectangular slots and three circular holes. The two slots are 7mm wide, 58mm long, and 15mm deep, positioned symmetrically on the left and right sides of the plate. ...
$fn=100; difference() { difference() { translate([-70, -15, 0]) { cube([100, 65, 3]); hull() { cylinder(d=5, h=3); translate([100, 0, 0]) cylinder(d=5, h=3); translate([0, 65, 0]) cylinder(d=5, h=3); translate([100, 65, 0]) cylinder(d=5, h=3); } } union() { translate([-60, -11.5, -1]) cube([7, 58, 15]);...
glb/cad_0975b9a88bb2.glb
Create a cube with side lengths of 10mm, 10mm, and 10mm, centered on the origin. Rotate the cube 10 degrees around the Z-axis. Then, translate the rotated cube 5mm along the X-axis.
include <maths.scad> function LineRotations(v) = [atan2(sqrt(v[0]*v[0]+v[1]*v[1]), v[2]), 0, atan2(v[1], v[0])+90]; function parseSeg(seg) = [ seg[0], LineRotations(seg[1]-seg[0]), VMAG(seg[1]-seg[0]) ]; test_quaternion(); module test_quaternion() { q = quat([0,0,1], 30); qmat = quat_to_mat4(q); echo(qmat);...
glb/cad_73be19e57def.glb
Create a window ventilation hook consisting of a curved main body and a mounting sleeve. Start with a central cylinder of 8mm diameter and 35mm height. At the top of this cylinder, add a sphere with a 4mm radius. From the sphere, extend a 10mm long cylinder of 8mm diameter. From the bottom of the central cylinder, cr...
$fn=32; cylinder_diam=8; pin_diam=6; bus_outside_diam=12; bus_inside_diam=5; translate([0,22,cylinder_diam/2]) rotate([90,90,0]) { union() { translate([-(cylinder_diam+10),0,41]) bus(); curved_cylinder(); translate([0,-cylinder_diam/2+0.1,cylinder_diam/2-0.1]) bracket(); pin(); } } mo...
glb/cad_1738f0996ba4.glb
Create a 3D model of a 42BYGH302 stepper motor. Start by constructing the main body as a cube measuring 42.3mm x 42.3mm with a height of 48mm. Center a cylinder with a diameter of 26.22mm and a height of 47mm on the top face of this cube. On the top surface, add a central protruding cylinder with a diameter of 11mm and...
$fn = 200; difference(){ union(){ intersection(){ union(){ translate([0,0,0.5])cylinder(47,26.22,26.22); cylinder(0.5,26.22-0.5,26.22); translate([0,0,47.4])cylinder(0.5,26.22,26.22-0.5); }; translate([-21.15,-21.15,0])cube([42.3,42.3,48]); }; cylinder(49.5,11,11); translate([0,0,49.5])cylinder(0.5,11,10.5); t...
glb/cad_29a19f9b3e27.glb
Create a Teksumo cable tray by constructing a hollowed-out irregular polygonal prism with a total height of 14mm. The outer boundary is defined by a 2D polygon with vertices at [0,0], [25,-15], [36,-5], [55,-5], [70,-15], [100,2], [84,29], and [18,29]. Extrude this shape to 14mm. To create the hollow interior, remove ...
module strangeform(zoffset) { polyhedron( points=[ [0,0,0],[25,-15,0],[36,-5,0],[55,-5,0], [70,-15,0],[100,2,0],[84,29,0],[18,29,0], [0,0,zoffset],[25,-15,zoffset],[36,-5,zoffset],[55,-5,zoffset], [70,-15,zoffset],[100,2,zoffset],[84,29,zoffset],[18,29,zoffset]], faces=[ [1,7,0],[1,2,7],[2,6,7],[3,6,2],[...
glb/cad_0e62727902b5.glb
Create a Y-Carriage for a Mendelmax 3D printer designed for LM12UU bearings. Start by creating a central carriage frame with a width of 160mm (the distance between the parallel Y-axis bars) and a depth of 110mm. The frame should have a thickness of 5mm. At each of the four corners of the frame, incorporate bearing ...
include <lm12uu-holder-slim.scad> include <configuration.scad> layer_height=0.30; beam_support_thickness=5; beam_width=20; beam_thickness=9; bar_seperation= 160; carriage_mount_hole_y_sep=110; carriage_mount_hole_x_sep=bar_seperation; carriage_width=carriage_mount_hole_x_sep; carriage_depth=carriage_mount_hole_y_...
glb/cad_13bfb21bfa13.glb
Create a printer calibration model consisting of a rectangular base with a series of concentric cylindrical shells. Start by creating a flat rectangular base measuring 100mm in length, 30mm in width, and 1mm in height. On top of this base, place eight hollow cylinders in a row, each with an outer diameter of 10mm and...
test = 3; if(test==1){ union(){ translate([0,0,0]) cube(size=[30,30,5]); translate([5,5,0]) cube(size=[20,20,10]); translate([10,10,0]) cube(size=[10,10,15]); } translate([20,-40,0]) cylinder(h=1,d=50); translate([-40,0,0]) ...
glb/cad_ca1d201254f3.glb
Create a printer calibration model set consisting of several geometric primitives. First, construct a tiered square base by stacking three cubes: a 30x30x5mm base, a 20x20x10mm middle section centered on top, and a 10x10x15mm top section centered on top. Create three rectangular prisms of varying dimensions: one 10x...
test = 1; if(test==1){ union(){ translate([0,0,0]) cube(size=[30,30,5]); translate([5,5,0]) cube(size=[20,20,10]); translate([10,10,0]) cube(size=[10,10,15]); } translate([0,40,0]) cube(size=[10,10,40]); translate([20,40,0]) ...
glb/cad_57dab678e7a7.glb
Create an Ortho-planar linear spring model with a total thickness of 3mm. The overall footprint is a hexagonal prism with a diameter of 100mm and a wall thickness of 3mm (created by subtracting a 95mm hexagonal prism from the 100mm one). At the center, place a solid disk with a radius of approximately 5.66mm, featurin...
a=1.0; b=8; c=1; t=3; n=2.5; s=6; wa=4; wb=4; module trispring(){ for(r=[0:2]){ rotate([0,0,120*r]) translate([wa+1,s+0.5*b+0.5*wb+1,0]) bispring(); } difference(){ cylinder(r=sqrt(wa*wa+wb*wb),h=t,center=true); cylinder(d=4.0,h=2*t,center=true,$fn=60); } } module tri1_1s(){ intersection(){ difference (){ u...
glb/cad_908cb5bbfee5.glb
Create an Ortho-planar linear spring model with a total thickness of 3mm. Start with a central disk of radius 5.66mm (calculated as $\sqrt{4^2+4^2}$) and a height of 3mm, featuring a central cylindrical hole with a 4mm diameter. Surround this center with a hexagonal outer frame that has an outer diameter of 100mm and ...
a=1.0; b=8; c=1; t=3; n=2.5; s=6; wa=4; wb=4; module trispring(){ for(r=[0:2]){ rotate([0,0,120*r]) translate([wa+1,s+0.5*b+0.5*wb+1,0]) bispring(); } difference(){ cylinder(r=sqrt(wa*wa+wb*wb),h=t,center=true); cylinder(d=4.0,h=2*t,center=true,$fn=60); } } module tri1_1s(){ intersection(){ difference (){ u...
glb/cad_fb6c638e6b1a.glb
Create a TurtleBot speaker mount bracket by starting with a central rectangular block measuring 20mm wide, 28mm high, and 70mm long, centered on the origin. Remove a large central rectangular section measuring 22mm wide, 30mm high, and 60mm long, offset 10mm along the Y-axis, to create a hollowed-out channel. Pierce t...
standoff_r = 5.55625; bracket_w = 20; bracket_h = 28; bracket_l = 70; tear_angle = 45; difference(){ cube(size = [bracket_w,bracket_h,bracket_l], center = true); translate(v = [0, -10, 0]) { cube(size = [bracket_w+2,bracket_h+2,60], center = true); } translate(v = [6.35, 10, bracket_l/2-4]) { cylinder(h = 10, r1 = ...
glb/cad_f8de679ea442.glb
Create a Linear BB Bearing consisting of a stacked cylindrical body with a central shaft hole. The main body is composed of five stacked cylindrical rings, each 5mm high. The first, third, and fifth rings have an outer diameter of 25mm, while the second and fourth rings are slightly thinner with an outer diameter of 23...
DaClearance=.125; RailClearance=.325; BearingClearance=.0625; HubSize=35; OuterSize=25; BBFillHoleOffset=12; BearingDiam=4.73; ShaftSize=9.55; ScrewHoleSize=2.5; FullBuildMain(); module FullBuildMain(){ difference(){ FullBuild(); OpposScrewHole(15); }} module BuildMyCap(){ difference(){ MyCap(); BearingSurfaceHoles...
glb/cad_664ac53dad76.glb
Create a parametric nut G-clamp by starting with a solid rectangular block measuring 25mm in length, 15mm in width, and 11mm in thickness. Round the four vertical corners of this block with a 1mm radius. From the top face, remove a rectangular section measuring 12mm in length and 10mm in width, positioned 5mm from the ...
include <MCAD/units/metric.scad> use <MCAD/shapes/2Dshapes.scad> use <MCAD/fasteners/nuts_and_bolts.scad> use <MCAD/shapes/polyhole.scad> width = 15; jaw_depth = width - 5; jaw_length = 12; thickness = 11; jaw_thickness = 5; length = 25; screw_size = 4; clearance = 0.3; round_r = 1; nut_depth = 1.5; jaw_offset = leng...
glb/cad_286938dbfa88.glb
Create a laser mounting bracket consisting of a gimbal assembly and a support arm. Start with the gimbal by creating a semi-circular arch with an outer radius of 27mm and an inner radius of 25mm, and a thickness of 8mm. Cut a 5mm wide slot through the center of the arch along the Y-axis. At both ends of the arch, add h...
x=[1,0,0]; y=[0,1,0]; z=[0,0,1]; $fa=5; $fn=30; module bracket(){ difference(){ union(){ rotate(x*45) difference(){ cube([8,22,22],center=true); cube([15,17,17],center=true); } cube([8,24,5],center=true); } translate(z*-50)cube([100,100,100],center=true); translate([0,13,0]) cube([5,5,5],center=...
glb/cad_fd8e65fae0c3.glb
Create a Printable Filament Spool Spindle by constructing a main supporting arm and adding two cylindrical notches for threaded rods. Start with a rectangular base block measuring 70mm in length, 10mm in width, and 10mm in height. Attached to this base, create a spindle section that is 11mm wide, 8mm high, and 10.5mm t...
include <Libs.scad> include <FilamentSpool.scad> module MendelSpindle() { difference() { union() { translate([0,-2,0]) Spindle(10.5,11,8,0,0,0,5,0,[1.5,18,5]); translate([-65,0,0]) cube([70,10,10]); translate([-60,9,0]) rotate([0,0,150]) ClipBar(); } } } module ClipBar() { difference() { cube([...
glb/cad_0a92485d4c0d.glb
Create a shelf holder consisting of a main vertical plate and a supporting peg. Start by creating a rectangular base plate 2mm thick, 25mm long, and 12.5mm high. Attach a second rectangular arm 15mm wide and 2mm thick to the side of the base plate, positioned 15mm from the bottom edge and extending horizontally to crea...
$fn = 50; d_thick = 2; d_length = 25; d_width = 15; d_height = 12.5; d_offset = 15; d_support = 10; d_pegL = 5; d_pegD = 5.9; cube([d_thick,d_length,d_height]); translate([d_thick,d_offset,0]) cube([d_width,d_thick,d_height]); x1 = d_thick; x2 = x1 + d_support; y1 = d_offset - d_support; y2 = d_offset; translate([0...
glb/cad_bffa58209c0c.glb
Create a Tripod Quick Release Plate by layering three centered rectangular blocks and adding tapered side wings. Start with a base top surface measuring 80mm by 52mm with a height of 5mm. Centered on top of this, add a middle section measuring 63mm by 47mm with a height of 10mm, and a top section measuring 68mm by 48mm...
resolution = 20; module prism(l, w, h) { translate([0, l, 0]) rotate( a= [90, 0, 0]) linear_extrude(height = l) polygon(points = [ [0, 0], [w, 0], [0, h] ], paths=[[0,1,2,0]]); } module top() { cube([80,52,5],center = true); } module middle() { translate([0,0,5]) cube([63,47,10],center = true); } modul...
glb/cad_46180c72ddef.glb
Create a Mustang Cobra keyfob cover. Start by constructing a rounded rectangular shell with an outer length of 46mm, width of 38mm, and height of 17.5mm. The shell should have a wall thickness of 2mm. The four vertical corners of the shell should have a fillet radius of 5mm. Hollow out the interior to create a cavity ...
use <MCAD/fonts.scad> thisFont=8bit_polyfont(); x_shift=thisFont[0][0]; y_shift=thisFont[0][1]; Margin = 1.01; FN = 72; FNS = 72; rnd = .25; clearance = .75; L = 44+clearance; W = 36+2*clearance; H = 13.5+2*clearance; RL = 5; RS = 5; B_L = 24; B_W = 12; Fr = 2; THK = 2; THK_b = 2*THK; sL = L + THK; sW = W + 2*THK;...
glb/cad_b420c501f275.glb
Create a steering conversion mount for a micro servo. First, construct a main rectangular block measuring 4.5mm by 33mm by 18mm. From this block, remove a central rectangular section measuring 5mm by 23mm by 12mm, positioned 4.5mm from the front edge and 3mm from the base. Additionally, drill two holes through the bloc...
module ServoMount() { difference() { cube([4.5,33,18]); translate([-.2,4.5,3]) cube([5,23,12]); translate([-.2,2.5,9]) rotate([0,90,0]) cylinder(r=.75,h=5,$fn=64); translate([-.2,29.5,9]) rotate([0,90,0]) cylinder(r=.75,h=5,$fn=64); } } rotate([0,-90,0]) ServoMount(); translate([-58.5/2 - 9 , 4.5, ...
glb/cad_7ffe4aa5428d.glb
Create a steering conversion part for a Jada Toys R/C car by constructing a solid cylinder with a radius of 2.5mm and a height of 5mm. Centered along the vertical axis of this cylinder, remove a smaller cylindrical hole with a radius of 0.75mm and a height of 4mm. Position this hole so that it begins 1.1mm from the bot...
difference() { cylinder(r=2.5, h=5, $fn=120); translate([0,0,1.1]) cylinder(r=.75, h=4, $fn=120); }
glb/cad_f191bebb1776.glb
Create a speaker mount consisting of two primary components: a main curved housing and a flat rectangular mounting plate. For the main housing, create a solid with a height of 10mm. The base shape is formed by the intersection of a large cylinder with a radius of 125mm and a hull encompassing three cylinders of diame...
$fa = 1; $fs = 1; diameter=47.6; innerd=42.0; offset=4; translate([0,0,0]) { } l1 = .77; l2=1.2; l3=1.8; height = 10; offset = 0; module split_mount() { difference() { intersection() { offset = 0; translate([-3,11.0,-offset]) hull() { translate([-32,33,-0]*.35*l1*l...
glb/cad_5dc8a56138cb.glb
Create a custom L-shaped shelf. Start with a back plate that is 26mm wide (20mm side length plus two 3mm walls) and 26mm high, with a thickness of 3mm. The back plate should feature a central square section of 20mm by 20mm with rounded corners (8mm radius) and a circular hole with a 4mm diameter in the center for wall ...
ornament = "5Hertz"; model = "L"; hasBase = "false"; vsTh = 6; hsTh = 6; wTh = 3; bTh = 3; sideL = 20; sideH = 20; chaf = 8; wallMounted = "true"; fixHoles = "false"; screwSz = 4; $fn = 60*1; hSideW = hsTh + wTh*2; vSideW = vsTh + wTh*2; logoSz = (hsTh < vsTh ? hsTh : vsTh) / 2; logoTh = 3 * 1.0; module ...
glb/cad_11bcd30fe2f1.glb
Create a PlugPack Power Supply AC pins cover. Start by constructing the main body as a hull encompassing eight 18-facet cylinders, each 4mm in diameter and 12mm high, positioned at the corners of a 25mm by 25mm square on the XY plane, with four additional cylinders of the same size placed at the corners of a 19mm by 19...
$fn=18; difference () { union () { hull () { translate([0,0,0]) cylinder(d=4,h=12); translate([25,0,0]) cylinder(d=4,h=12); translate([25,25,0]) cylinder(d=4,h=12); translate([0,25,0]) cylinder(d=4,h=12); translate([3,3,36]) cylinder(d=4,h=1); translate([22,3,36]) cylinder(d=...
glb/cad_2871b26a5f0d.glb
Create a Superwacky Spaceship by combining two primary geometric forms. First, create a cylinder with a radius of 5mm and a height of 9mm. Position this cylinder at coordinates (15, 2, 5), rotate it by 5 degrees on all three axes, and scale it by a factor of 1 along the X-axis, 5 along the Y-axis, and 1 along the Z-axi...
module superwacky(funky=10) { translate([15,2,funky])scale([1,funky,1])rotate([funky,funky,funky])cylinder(funky,funky+2,funky+4); scale([funky,2,1])translate([3,funky-4,2])rotate([-funky,funky+funky,-funky])sphere(funky+5); } superwacky(5);
glb/cad_471fad5d7159.glb
Create a 3D heart shape by extruding a 2D profile to a height of 13mm. To construct the base profile, start with a square that is 20mm by 20mm. Add two circles, each with a radius of 10mm, positioned such that their centers are at [10mm, 20mm] and [20mm, 10mm] relative to the origin. Combine these three shapes into a s...
module flatstuff() { square(20); translate([10,20,0]) circle(10); translate([20,10,0]) circle(10); } linear_extrude(height=13) flatstuff();
glb/cad_d58a122ba890.glb
Create a name tag consisting of a thin rectangular base with rounded corners and embossed text. Start by creating a solid plate 44mm wide, 23mm deep, and 1mm thick, with corners rounded to a 3mm radius. Hollow out the center of this plate by removing a rectangular section 42mm wide and 21mm deep, with the same 3mm corn...
text1 = "siripong.rungsang"; text2 = "@gmail.com"; fontsize = 4; module floor(){ translate([22, 0,0]) difference(){ linear_extrude(height=1) { minkowski(){ square([44,23],center=true); circle(r=3,$fn=32); } } translate([0, 0,0.6]) linear_extrude(he...
glb/cad_0af0191731f1.glb
Create a Square Pen body by starting with a rectangular prism that is 10mm wide, 10mm deep, and 120mm tall. Center this prism on the Z-axis. Carve a hollow vertical channel through the center of the prism to accommodate a pen refill. This internal void consists of a 3.1mm diameter cylinder for the first 3.6mm of heig...
use <threads.scad> pen_width=10; font = "Liberation Sans"; pen_text="www.thingiverse.com"; letter_size = 6; letter_height = 1; module PenRefill() { fn=20; h1=3.6; h2=6.5; h3=23.5; h4=98.4; ht=7; color("silver") cylinder(d=3.1, h=h1, $fn=fn); translate([0,0,h1])cylinder(d=4, h=h2-...
glb/cad_d61cde12bc58.glb
Create an iPhone 4 wall mount dock with a wall thickness of 4mm and a rounding radius of 2mm. The main body is a pocket designed to hold a phone with dimensions of 61.5mm width and 12.25mm depth, with a pocket height of 40mm. The overall outer case dimensions are derived from the phone size plus the wall thickness. Th...
include <dovetail.scad>; wall_thickness=4; rounding_radius=wall_thickness/2; button_cutout_radius=8; button_height=10; circle_precision=0.1; usb_connector_height=20; phone_width=61.5; phone_depth=12.25; pocket_height=40; screw_height=20; screw_diameter=4; screw_countersink_size=3; screw_countersink_depth=3; dock_co...
glb/cad_ee079e209d25.glb
Create a floor pattern ornament by starting with a solid cylinder 80mm in diameter and 10mm high. Remove a concentric cylindrical core 60mm in diameter and 10mm high from the center to create a ring. To create the decorative cutouts, remove four overlapping cylinders, each 60mm in diameter and 10mm high. Position two o...
union(){ difference(){ cylinder(r = 40, h = 10); cylinder(r = 30, h = 10); } difference(){ cylinder(r = 30, h = 10); for(a = [50,-50]){ translate([a,0,0]){ cylinder(r = 30, h = 10); } translate([0,a,0]){ cylinder(r = 30, h = 10); } } } }
glb/cad_756c0e220955.glb
Create a USB flash disk holder by starting with a main rectangular base plate measuring 25mm wide, 24mm deep, and 2mm thick. At the top center of this plate, create a circular hole with a diameter of 2mm to allow for wall mounting. On the front face of the base, construct a vertical support structure that is 1.2mm th...
$fn=100; difference(){ cube([25,24,2]); translate([23.8-2.5,(24-2.5)/2,0])cube([2.4,2.4,2]); } difference(){ cube([1.2,24,60]); translate([0,12,56])rotate([0,90,0]) cylinder(h=1.2, d=2); } rotate([-90,-90,0])linear_extrude(height=1.2)polygon( points=[[2,1.2],[60,1.2],[2,20]]); translate([0,22.8,0])rotate([-90,-90,0]...
glb/cad_e221e92c892c.glb
Create a school board wedge consisting of a rectangular base with rounded corners. The main body is a rectangular prism measuring 80mm in length, 30mm in width, and 5mm in thickness. Round all four vertical corners of the base with a radius of 5mm. Centered along the length and width of the base, create a vertical ho...
board_thickness=14; wedge_thickness=5; width=30; length=80; $fn=50; rayon=5; vis=5; appart=1; include <MCAD/nuts_and_bolts.scad>; difference() { cube([width,width,board_thickness]); difference() { cube([width,width,board_thickness]); translate([0,rayon,0])cube([width,width-2*rayon,board_thickness]); ...
glb/cad_7de9c85a2772.glb
Create a safety harness for a drone bracket by generating a 3D spiral shape. Start with a circle of radius 1mm, positioned with its center offset 2mm from the central axis. Extrude this circle vertically to a total height of 50mm, centering the result on the origin. As the shape extrudes upward, apply a continuous twis...
linear_extrude(height = 50, center = true, convexity = 10, twist = -5100, $fn = 50) translate([2, 0, 0]) circle(r = 1);
glb/cad_5361d8234024.glb
Create a Simple Shuttle assembly with a main body and bearing mounts. Start with a central frame that is 52mm wide, 31mm high, and 70mm long. The frame should be hollowed out to create a channel, with rounded corners of 2mm radius. At the top center of the frame, create a mounting point for a bar by adding a cylindric...
include <parameters.scad> module shuttle() { w=52; h=31; l=70; stud_h=2; stud_offset = (l / 2) -10; bar_d = 8; bar_stud_h=4; difference() { union() { frame(w=w,h=h,l=l,r=stud_h); translate([0,0,(h+wall_thickness)/2]) rotate([180,0,0]) bearing_mount(h1=wall_thickness,h2=bar_stud_h,id=bar...
glb/cad_c9542ca2fbe6.glb
Create a parametric bed bolt cam lock by starting with a cylinder that has a radius of 17.3mm and a height of 17mm. Cut this cylinder in half along its diameter to create a semi-cylindrical block. From this semi-cylinder, remove a smaller cylinder with a radius of 4mm and a length of 50mm, oriented perpendicularly thro...
difference(bed_Bolt) { translate([0,0,0]) cylinder(17.3,17,17,$fn=256, center=true); rotate([90,0,0]) cylinder(50,4,4,$fn=64, center=true); translate([-20,0,-20]) cube(40); rotate([90,0,0]) cylinder(r=6.27, h=7, $fn=6); }
glb/cad_2377d4f793d6.glb
Create a Jaw Plate Replacement for a bench vise by starting with a rectangular base measuring 114mm in width, 14.1mm in height, and 6.5mm in depth. Round off the top edge of the bar along its length. At two positions—one at 24.58mm from the left edge and one at 24.58mm from the right edge, both centered vertically—cr...
bar_width = 114; bar_depth = 6.5; bar_heigh = 14.1; screw_r1 = 5.45/2; screw_h1 = 2.66; screw_r2 = 10.45/2; screw_h2 = 5-2.66; screw_offx = 19.33+5.45/2; screw_offy = 3.89+5.45/2; chopsize = 1; rotate([0,0,45]) difference() { linear_extrude(height=bar_depth) square([bar_width,bar_heigh]); for(i=[s...
glb/cad_0b4c984aa48d.glb
Create a Belt Tensioner consisting of two mirrored semi-tensioner components. Each semi-tensioner is a block measuring 25mm in length, 12mm in width, and 20mm in height. In each block, carve a longitudinal channel for a GT2 belt. On the inner face of each block, create a recessed circular pocket with a radius of 4mm ...
tGT2_2=0; tT2_5 =1; tT5 =2; tT10 =3; tMXL =4; use <screws.scad> tensioner(); module tensioner(h=20,l=25,ang=0,wtens=10) { difference() { union() { xoffset=(l+wtens)/2; translate([xoffset,0,0]) semi_tensioner(h=h,l=l,ang=ang,wtens=wtens); translate([-xoffset,0,0]) mirror([1,0,0]) semi_t...
glb/cad_82f3e1a4a4f7.glb
Create a carriage for an SC12UU linear bearing. Start with a central rounded rectangular plate measuring 50mm in length, 124mm in width, and 6mm in thickness, with corner radii of 6mm. On this plate, create eight M4 screw holes: position four holes at x = ±13mm and y = ±(40mm + 15.25mm), and two M3 screw holes at x =...
use <sc12uu.scad> use <belt_tensioner.scad> use <Screws.scad> use <platform.scad> use <motor_end.scad> use <cube_rounded.scad> bracket_carriage_sc12uu(rd=80,h=50,p=6); module carriage_sc12uu(rd=80) { color("LightGrey") { translate([0,-(rd/2),0]) sc12uu(); translate([0,(rd/2),0]) sc12uu(); ...
glb/cad_7a24d7024b90.glb
Create a carriage for an SC12UU bearing by constructing a rounded rectangular prism. Start with a base block that is 30mm long, 20mm wide, and 10mm thick, centered on all axes. To round the corners, ensure the vertical edges have a radius of 3mm. This is achieved by combining a central rectangular block of 30mm by 14mm...
cube_rounded(); module cube_rounded( v=[30,20,10],r=3,center=true) { union() { if ( center == false ) { translate([0,r,0]) cube([v[0],v[1]-r-r,v[2]],center=center); translate([r,0,0]) cube([v[0]-r-r,v[1],v[2]],center=center); xoff= v[0]-r; yoff= v[1]-r; translate([xoff,yoff,v...
glb/cad_66627fa40163.glb
Create a carriage for an SC12UU bearing. Start with a central bracket that is 80mm wide and 60mm high. At the top center, add a rectangular block measuring 86mm wide, 20mm deep, and 8mm high. On the left and right sides of the main body, add two triangular support fins that are 40mm long and 40mm high, each with a thic...
use <bracket_strong.scad> use <screws.scad> module motor_end( h=50,w=80 ) { prof=50; halfw=w/2; zmotor = (h/2) - 22; translate([0, 0, h/2]) difference() { union() { bracket(h=h,w=w,p=50,s=15); for (x = [-halfw, halfw]) { translate([x, 30, -(h/2)]) triangolo(l=h,h=h,s=8); ...
glb/cad_2e9969b4219c.glb
Create a carriage for an SC12UU linear bearing. Start with a 36mm tall prism extruded from a specific 2D polygon profile. The profile vertices are: [-15, 21], [-7, 21], [-5, 19], [9, 19], [9, 12], [13, 8], [13, -8], [9, -12], [9, -19], [-5, -19], [-7, -21], and [-15, -21]. From this solid, remove a central vertical c...
sc12uu(); module sc12uu() { h = 36; difference() { linear_extrude(height=h, center=true) polygon(pf_SC12); cylinder( h=h+2, r=6, $fn=32, center=true ); translate([-3,-15.25,13]) rotate([0,90,0]) cylinder( h=24+2, r=2.1, $fn=32, center=true ); translate([-3,-15.25,-13]) rotate([0,90,0]) cylinde...
glb/cad_68b09acfaf7d.glb
Create a belt tensioner consisting of two mirrored semi-tensioner halves. Each half is a block measuring 25mm in length, 12mm in width, and 20mm in height. For each half, carve a longitudinal channel for a GT2 belt that runs through the center. On the inner face of each block, create a circular recessed area with a ra...
tGT2_2=0; tT2_5 =1; tT5 =2; tT10 =3; tMXL =4; use <screws.scad> tensioner(); module tensioner(h=20,l=25,ang=0,wtens=10) { difference() { union() { xoffset=(l+wtens)/2; translate([xoffset,0,0]) semi_tensioner(h=h,l=l,ang=ang,wtens=wtens); translate([-xoffset,0,0]) mirror([1,0,0]) semi_t...
glb/cad_2ab491a29853.glb
Create a robot mower wire peg. Start with a main stake that is 70mm long, 6mm wide, and 2.5mm thick. Along the length of this stake, create five evenly spaced, saw-tooth style ridges on the top and bottom surfaces. Each ridge should gradually taper in width from 6mm at the base to 4mm at the tip of the stake. At the he...
$fs=0.1; count = 5; length = 70; width1 = 6; width2 = 4; Z=2.5; HL = 20; HS = 0.4; HG = 5; HG2 = 11; HH = width1+Z; module saw(){ for (i= [0:count-1]){ offset = length/count*i; w1 = width1 + (width2-width1)/count*i; w2 = i==count-1 ? 0: (width1 + (width2-width1)/count*(i+1))*0.7; h = length/count; polygon([[off...
glb/cad_ec0b0f64752b.glb
Create a 7-segment display digit holder. The overall digit height is 100mm, with a mounting depth of 20mm and a wall thickness of 1.5mm. The digit is slanted at an angle of 7.5 degrees. Each of the seven segments is a hollowed-out channel with a width of 12mm. The segments are arranged in the standard numerical 7-segm...
Part = "Digit"; LED_Diameter = 5.1; LED_per_Seg = 3; DigitHeight = 100; DigitSlantAngle = 7.5; SegWidth = 12; MountingDepth = 20; MountingWidth = 70; MountingHeight = 140; WallWidth = 1.5; ColonMountingWidth = 26; SpacerMountingWidth = 14; FilletSwell = 2; $fs = 0.2; SegLength = (DigitHeight-SegWidth) / 2...
glb/cad_07d769a8c636.glb
Create a Key Chain gauge tool. Start by creating a base shape that is the convex hull of two cylinders, both with a height of 4mm. The first cylinder is centered at the origin with a radius of 19.125mm. The second cylinder is positioned at x=53.34mm, y=0, with a radius of 10mm. From this base, remove two cylindrical h...
use <write/Write.scad> measurementSystem=0; legalSizeDiameter=1.5; nozzleDiameter=0.5; sizeText=str(legalSizeDiameter); module metricGauge() { difference() { hull() { translate([0,0,0]) cylinder(r=((legalSizeDiameter/2)+10), h=4); translate([(legalSizeDiameter*1.4),0,0]) cylinder(r=10, h=4); } uni...
glb/cad_1266b690ac5b.glb
Create a wireless charging holder by starting with a rounded rectangular base measuring 67mm wide by 133mm long with a height of 23mm and a corner radius of 2mm. From this base, remove a central rounded rectangular cavity measuring 53mm wide by 131mm long with a depth of 14mm and a corner radius of 2mm, leaving a wall ...
use <cubeX.scad> chargerRadiusTolerance = 0.7; widthTolerance=2; heightTolerance=2; $fn=300; print(); module print(){ color("green",0.8)translate([0,0,0])ChargerHolder(); } module PhoneInCover(){ translate([-(62+widthTolerance)/2,-(127+heightTolerance)/2,10])cubeX(size=[(62+widthTolerance),(127+heightTol...
glb/cad_7f60cd5889e4.glb
Create a wireless charging holder by starting with a rounded rectangular base measuring 65mm by 131mm with a height of 19mm and corner radii of 2mm. Integrate a cylinder with a radius of 39mm and a height of 12mm into this base. From this combined volume, remove a rounded rectangular cavity measuring 53mm by 131mm wi...
use <cubeX.scad> $fn=300; print(); module print(){ color("green",0.8)translate([0,0,0])ChargerHolder(); } module PhoneInCover(){ translate([-62/2,-127/2,10])cubeX(size=[62,127,14],radius=2,rounded=true,$fn=30); } module RoundCharger(){ translate([0,0,1])cylinder(r=36,h=9); translate([-15/2,-32-40...
glb/cad_c2a29d567cd4.glb
Create an angled holder for a wireless charging pad and phone. Start by creating a base stand that is a rounded rectangular prism measuring 65mm wide, 80mm deep, and 4mm thick with a corner radius of 2mm. Construct the main body as a rounded rectangular block measuring 67mm wide, 133mm deep, and 23mm thick with 2mm r...
chargerRadiusTolerance = 0.7; widthTolerance=2; heightTolerance=2; $fn=300; print(); module cubeX( size, radius=1, rounded=true, center=false ) { l = len( size ); if( l == undef ) _cubeX( size, size, size, radius, rounded, center ); else _cubeX( size[0], size[1], size[2], radius, rounded, center ); } module ...
glb/cad_8ddd83714374.glb
Create an iPhone 4s Qi Wireless Charging Angled Holder. Start by creating a main base body that is a rounded rectangular block measuring 65mm wide, 131mm long, and 23mm high, with a corner radius of 2mm. Hollow out the center of this block with a rounded rectangular cavity measuring 53mm wide, 131mm long, and 14mm deep...
use <cubeX.scad> $fn=300; print(); module print(){ color("green",0.8)translate([0,0,0]){ Holder(); Stand(); } } module Stand(){ translate([-65/2,0,0])cubeX(size=[65,80,4],radius=2,rounded=true,$fn=30); rotate(a=-90+20, v=[1,0,0]){ translate([-65/2,-40,56])cubeX(size=[4,60...
glb/cad_bf1a79518217.glb
Create a tent spike with a total length of 250mm. Start with a rectangular base that is 25mm wide and 10mm high. Centered on top of this base, add a spine that is 10mm wide and 25mm high, extending the full length of the spike. At the top end of the spike, create a hammer pad that is a cube measuring 25mm by 25mm by 10...
d=250; w=25; h= 10; p=10; s=25; r=5; module spike() { difference(){ difference(){ difference(){ difference(){ difference(){ difference(){ union(){ cube([w,h,d]); translate([w/2-p/2,0,0]) cube([p,s, d]); } rotate([-20,0,0]) cube([w,50,150]); } translate ([0,0,-20])rotate([0,-20,0]) cube ([w,w,100]); } translate ([...
glb/cad_a818955cf724.glb
Create a Case for DDS Signal Generator consisting of a bottom base and a top cover. Construct the bottom base as a rectangular enclosure with a wall thickness of 1.2mm. The main internal cavity should accommodate a PCB of 80.3mm x 80.3mm x 1.4mm, positioned 2.5mm above the floor. Add four cylindrical pedestals at the ...
part = "all"; with_battery = 1; extra_room = 20.0; have_power_plug = 0; have_power_switch = 0; have_button_collar = 1; have_button_arrow = 1; mil2mm = 0.0254; batt = [17.0, 53.0, 26.0]; pcb = [80.3, 80.3, 1.4]; pcb2floor = 2.5; pcb2roof = 19.6; lcdpcb2roof = 7.2; lcdpcbdx = 0.0; lcdpcbdy =80.3/2 - (43.3-36.0/2); lcd...
glb/cad_7492e59f3727.glb
Create a tennis string vibration dampener consisting of a central square block with a thickness of 3mm and side lengths of 20mm. Centered on the top face of this block, add a smaller square protrusion measuring 10mm by 10mm with a height of 1mm. On the top surface, emboss a custom logo based on a 100x100 pixel black ...
use <utils/build_plate.scad> logo_file = "tennisball.png"; logo_on_both_sides = 0; show_build_plate = 0; build_plate_selector = 3; build_plate_manual_x = 140; build_plate_manual_y = 100; translate([0,0,3.75 + logo_on_both_sides]) { for(b = [0:1]) { rotate([180 * b,0,0]) { translate([0,0,2...
glb/cad_424e46050187.glb
Create a linear bearing holder for an LM8UU bushing. Start with a main block that is 22mm wide, 22mm deep, and 24mm high. Centered within this block, create a vertical cylindrical cutout with a diameter of 15.1mm (7.55mm radius) and a depth of 24mm to house the bearing. To allow for the insertion of the bearing, create...
m3_nut_diameter= 7; m3_diameter=4.4; module block(){ difference(){ union(){ difference(){ } translate([-9,16,0]) cube ([40,8,24]); translate([11,11,-0.1]) cylinder(24,12,12,$fn=100); } translate([10,-2,-0.1]) cube([2,14,26]); translate([11,11,3]) cylinder(72,7.55,7.55,$fn=100); translate([11,11,-0.1]) cylinder(...
glb/cad_cd07fedea40b.glb
Create a linear bearing snap-in holder by starting with a rectangular base plate measuring 22mm wide, 28mm deep, and 10mm thick. In the center of this plate, create a large vertical cylindrical cutout with a diameter of 16mm and a height of 10mm to house the bearing. To ensure a secure fit, add two smaller cylindrical ...
m3_nut_diameter= 6.6; m3_diameter=4.4; module block(){ difference(){ union(){ difference(){ } translate([-9,16,0]) cube ([40,8,9.965]); translate([11,11,-0.1]) cylinder(9.65,12,12,$fn=100); } translate([11,11,-0.1]) cylinder(9.65,8.25,8,$fn=100); translate([11,11,-0.1]) cylinder(11,8,8,$fn=100); translate(v = [...
glb/cad_f155dcee7bff.glb
Create a hard drive mount by starting with a solid rectangular base measuring 88mm wide, 75mm deep, and 25mm high. Hollow out the center to create a pocket for the drive that is 83mm wide, 75mm deep, and 22mm high, leaving a wall thickness of 2.5mm on the sides and bottom. Extend a flat flange from the bottom of the ba...
hard_disk_x = 83; hard_disk_y = 75; hard_disk_z = 22; wall = 2.5; mounting_holes = 3; with_pattern = 1; $fn=100; difference(){ union(){ cube([hard_disk_x + 2 * wall, hard_disk_y, hard_disk_z + wall]); translate([-15, 10, hard_disk_z ]) cube([hard_disk_x + 2 * wall + 30,hard_disk_y - 20, wal...
glb/cad_897950638af5.glb