Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an iButton keyfob by starting with a main body shaped as a cylinder 20mm in diameter and 4.5mm thick. Hollow out the center of this cylinder with a smaller concentric cylinder 17.9mm in diameter and 0.6mm thick, starting from a depth of 2.4mm. Create a circular opening 17.5mm in diameter and 3.1mm deep at the en...
$fn = 128; difference() { rotate([0, 105]) { difference() { cylinder(4.5, 20/2, 20/2); translate([0, 0, 2.4]) { cylinder(0.6, 17.9/2, 17.9/2); cylinder(3.1, 17/2, 17/2); } translate([4, 0, 2.4]) { cylinder(3.1, 17.5/2, 17.5/2); } } translate([-10, 0, -59]) { intersection() { d...
glb/cad_eed53117988f.glb
Create a No-Tools Micro Gear Motor Mount consisting of a rectangular base plate and a semi-cylindrical housing. Start with a base plate 25mm long, 35mm wide, and 3mm thick. In the center of this plate, create a motor housing with an inner diameter of 12mm and an outer diameter of 18mm (wall thickness of 3mm). The hou...
motor_length = 15; motor_width = 12; motor_height = 10; gearbox_length = 10; housing_thickness = 3; tolerance = 0.25; plate_thickness = 3; plate_width = 35; plate_length = motor_length+gearbox_length; tab_height = plate_thickness+2; tab_width = 5; tab_thickness = 1.5; module MicroGearMotorMount() { difference(...
glb/cad_2ae20ba526ba.glb
Create a No-Tools Micro Gear Motor Mount consisting of a rectangular base plate and a semi-cylindrical housing. Start with a base plate 25mm long, 35mm wide, and 3mm thick. In the center of this plate, create a mounting cradle for a motor. The cradle is formed by a cylinder with a radius of 9mm and a length of 15mm, ...
motor_length = 15; motor_width = 12; motor_height = 10; gearbox_length = 10; housing_thickness = 3; tolerance = 0.5; plate_thickness = 3; plate_width = 35; plate_length = motor_length+gearbox_length; tab_height = plate_thickness+2; tab_width = 5; tab_thickness = 1.5; module MicroGearMotorMount() { difference()...
glb/cad_812416622617.glb
Create a mechanical toy called the DevilFish. The model consists of a shark-shaped head and body with a functional articulated jaw. Construct the shark skull as a hollowed shell. Inside the skull, create a cylindrical channel with a diameter of 37.5mm to house a jaw screw. The jaw screw is a cylinder with a metric thr...
include <C:\Program Files\OpenSCAD\libraries\MCAD\involute_gears.scad> include <threads.scad>; include <sharkshape.scad>; include <dovetail.scad>; vscrewsupports = 0 ; gear1_teeth = 35; gear2_teeth = 10; axis_angle = 90; outside_circular_pitch=420; outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 360; o...
glb/cad_50a6233bd002.glb
Create a Tool Makers Vise consisting of a base, a fixed jaw, a movable jaw, and a lead screw assembly. Start with a rectangular vise base 63.5mm wide, 101mm long, and 20mm high. Carve two longitudinal grooves 10mm wide and 10mm deep into the sides, and a central slot 20mm wide and 101mm long through the middle. At on...
part = 0; viseWidth = 63.5; viseLength = 101; viseBaseHeight = 20; viseGrooveWidth = 10; viseGrooveDepth = 10; viseGrooveTolerance = 0.1; movableJawGuide = 20; toolGroove = 5; grooveSelectFixedJaw = 0; grooveSelectMovableJaw = 1; jawHeight = 40; movableJawWidth = viseWidth; movableJawHeight = jawHeight; m...
glb/cad_aabbc408f530.glb
Create a mobile phone car holder wing replacement starting with a rectangular base measuring 25.5mm wide, 23.2mm long, and 2.5mm thick. Carve a rectangular recess into the top surface of this base, centered along the width, measuring 22.5mm wide and 14mm long, with a remaining wall thickness of 0.5mm. Construct two i...
$fn =50; width = 25.5; length = 23.2; thick = 2.5; embWidth = 22.5; embLength = 14; embThick = 0.5; embOffsetX = ( width -embWidth ) / 2; embOffsetY = ( length -embLength )- embOffsetX; wingHeight = 10; wingWidth = 5.5; wingThick = 1.5; wingHole = 2.1; difference (){ cube ( [ width,...
glb/cad_751f7850a379.glb
Create a washing machine handle replacement consisting of a wide curved grip and two supporting legs. Start by creating a main grip plate that is 42mm wide, 10mm thick, and 3mm high, with a slight convex curve along its top surface. Construct two identical legs to support the grip. Each leg is 9mm high and 5mm wide. ...
$fn =100; legHeigth = 9; translate ([-11,0,legHeigth/2]){ Leg(); } translate ([11,0,legHeigth/2]){ mirror([1,0,0]) Leg(); } translate ([-11,10-legHeigth/2,1]) minkowski(){ cube ([22,4,2]); rotate([0,-90,0]) cylinder(r=0.5,h=1); } translate ([-21,32-legHeigth,10]) cube ([42,10,3]); difference(){ translate ...
glb/cad_bf46f9b58646.glb
Create a small precise valve regulator body. Start with a main block that is 20mm wide, 10mm deep, and 25mm tall. From this main volume, remove a rectangular section from the center and bottom to create a channel that is 10mm wide and 20mm tall, leaving walls on the sides. Within the remaining structure, carve out a ...
$fn=100; sqrt32=1.732050808/2; sqrt2=1.41; d=0.01; d2=d+d; d3=d2+d; module gaika(m, h) { cylinder (r=(m*1.02)/sqrt32/2, $fn=6, h=h ); } module up(h) { translate([0,0,h]) children(); } module dh() { up(-d) children(); } module body() { difference() { cube([20,10,5]); translate([3,5,4]) rotate...
glb/cad_bc4c2fee4cd0.glb
Create a HWK Bin for a Harbor Freight organizer. The bin is a solid with a total height of 23.25mm. Start by creating the main body as a linear extrusion 19mm high based on a specific symmetrical polygon. The polygon points for one half are [0,-33.0], [-9,-33.0], [-23.1,-31.5], [-24.1,-30.5], [-25.4,-14.6], [-24.5,-1...
include <./bintools.scad> $fn=160; binHeight = 46.5/2; angle=0; locations = [[[0,-6.5,0], [0,0,0]]]; hwkBlank(); module hwkOutline() { translate([0,0,46.5/2]) rotate([180,0,0]) { blankCutout(height=46.5/2 - 0.1, outlineScale=1.2) hwkBlank(); } } module hwkBlank(centerCutout=1) { blankHeight = 19; ...
glb/cad_140533891294.glb
Create a TIE Punisher storage bin with a total height of 46.5mm. The main body is a hollow shell with a wall height of 30mm. The outer perimeter of this shell is defined by a mirrored polygon with vertices at [10, 0], [10, -15.9], [18.6, -16.5], [24.3, -24.4], [24.3, -27], [-3, -27], [-3, -29], [-11.2, -29], [-11.2, -2...
include <./bintools.scad> $fn=160; binHeight = 46.5; angle=0; locations = [[[0,9,0], [0,0,0]]]; punisherBlank(); module punisherOutline() { testHeight = 40; translate([0,0,testHeight]) rotate([180,0,0]) { blankCutout(height=testHeight - 0.1, outlineScale=1.2) punisherBlank(); } } module punisherBla...
glb/cad_78c7ea6650e9.glb
Create a Nema17 motor mount by starting with a main cube measuring 42.2mm in width and depth, and 33.8mm in height. Centered on the top face, add a composite cylindrical protrusion consisting of a wide base cylinder with a radius of 11mm and a height of 2mm, and a narrower central shaft with a radius of 2.5mm and a hei...
module Nema17() { nema_side = 42.2; nema_bolts = 31.04/2.0; nema_depth = 3.8; M3 = 3.0/2.0; r1 = nema_side/2- nema_bolts; r2 = sqrt(2)* r1 ; r=(r2-r1)*2; difference() { union() { cube([nema_side,33.8,nema_side]); translate( [nema_side/2,0,nema_side/2]) rotate(90,[1,0,0]) { cylinder...
glb/cad_0b46e9104ff6.glb
Create a Beverage Coaster consisting of a main body and a series of concentric ridges. The main body is a truncated cone with a height of 5mm, starting with a bottom radius of 43mm and expanding to a top radius of 49mm. Remove a central conical section from this body, starting from a height of 0.6mm, with a bottom radi...
rib_height=3; rib_width=.6; floor_width=.6; holder_height=40; $fa=1; render() { coaster(); } module ribs() { difference() { cylinder(h=rib_height, r=41); cylinder(h=3, r=40.4); } difference() { cylinder(h=rib_height, r=36); cylinder(h=3, r=35.4); } difference() { cylinder(h=rib_height, r=31); cylinder(h=...
glb/cad_13c4efae20bd.glb
Create a 3D printer test model consisting of several geometric features arranged on a base. Start with a hexagonal base plate with a radius of 20mm and a height of 0.4mm. Position a "break test" section consisting of two intersecting rectangular prisms: one 10x20x2mm and one 10x2x20mm. For the "bridge test," place fo...
module breakTest() { cube([10, 20, 2]); cube([10, 2, 20]); } module bridgeTest() { gapEnds = [0, 5, 24, 33.8]; for(i=gapEnds) { translate([i, 0, 0]) cube([1, 2, 5]); } translate([0, 0, 5]) cube([gapEnds[len(gapEnds) -1] + 1, 2, 1]); } module shapesTest() { intersection() { translate([5, 5, 0]) sphere(r =...
glb/cad_27b05331b1ab.glb
Create a NEMA17 stepper motor bracket. Start with a central rectangular block measuring 48.2mm wide, 25.4mm deep, and 48.2mm high. Add a base plate that extends from the bottom of this block, measuring 93mm in total width (extending 22.4mm beyond each side of the block) and 3mm in thickness. Inside the central block, ...
bracket_wall_width = 3; bracket_depth = 25.4; bracket_flaps = 25.4; bracket_bolts_diameter = 4; bevel_inner_corners = "yes"; module NemaForCSG(nema_side, nema_depth, nema_bolts, nema_crown, nema_bolt_radious) { r1 = nema_side/2- nema_bolts/2; r2 = sqrt(2)* r1 ; r=(r2-r1)*2; difference() { union() { cu...
glb/cad_9daefcf4c85d.glb
Create a Dime In Ring holder by constructing a decagonal ring with an outer diameter of 22.5mm and a total height of 4.75mm. Center a cylindrical hole through the middle with a diameter of 16mm that extends slightly beyond the top and bottom faces. To create the locking mechanism, carve a groove into the inner wall o...
dimeD = 22.5; thk = 1.5; dimeW = 16; holdh = 4.75; $fn = 10; dimeS = 18.5; lockgrove = dimeS+1.4; lockgroveh= 1.7; lockcut = lockgrove; lockwdth = 5; DimeHolder(); module DimeHolder(){ difference(){ translate([0,0,1.5]) cylinder(d=dimeD, h=holdh, center=true, $fn=10); cylinder(d=dimeW, h=holdh...
glb/cad_b269f1ee723b.glb
Create a Dime In Ring consisting of two separate parts: a ring band and a coin holder. First, construct the ring band. Create a circular ring with an internal diameter of approximately 17.2mm. The cross-section of the band should be a reverse rounded hemi-ellipse with a wall thickness of 2mm and a depth of 4.34mm. To ...
colour_RGBA_stone=[0,0,1,0.15]; colour_RGBA_metal=[0.75,0.75,0.75,1]; ring_size_us_can=5.25; main_internal_diameter=(ring_size_us_can+14.312)/1.2308; main_wall=2; main_depth=4.34; main_feature=0.5; cs_pill=0; cs_ellipse=0; cs_hemi_ellipse=0; cs_rounded_hemi_ellipse=0; cs_rectangle=0; cs_scallopped_recta...
glb/cad_81b312a62507.glb
Create a smartphone stand by constructing a solid base and removing specific volumes to create a cradle. Start with a main body composed of several joined blocks with rounded edges (1mm radius). The overall structure is roughly 60mm wide and 30mm deep. Form the primary support by combining a central block of 44mm by ...
$fn=90; rotate([90,0,0]) difference() { union() { translate([43.5,1,0]) minkowski() { cube([18,28,3]); translate([1,0,1]) rotate([90,0,0]) cylinder(r=1,h=1); } rotate([0,-36,0]) translate([0,1,-0.52]) minkowski() ...
glb/cad_aa204cf73ab8.glb
Create a remote display holder for an Icom IC-207H. Start by constructing a rectangular base measuring 111mm in length, 46mm in width, and 3mm in height. Add two vertical walls, each 111mm long, 3mm thick, and 13mm high; position one wall along the front edge and the other along the back edge, leaving a 40mm gap betwee...
cube([111,46,3],false); cube([111,3,13],false); translate([0,43,0]) cube([111,3,13],false); translate([83,43,9]) rotate(a=[90,0,0]) cylinder(3,2.5,2.5); translate([27,43,9]) rotate(a=[90,0,0]) cylinder(3,2.5,2.5); translate([83,3,9]) rotate(a=[270,0,0]) cylinder(3,2.5,2.5); translate([27,3,9]) rotate(...
glb/cad_bfd6e15b6dbd.glb
Create a Basic modular hose fitting consisting of a ball and a socket. Use an internal diameter of 10mm and a wall thickness of 2mm. First, create the ball component: form a sphere with a diameter of 19.9mm (internal diameter minus a 0.1mm tolerance). Attach a cylinder to the bottom of this sphere with a height of 9....
select_part = "Basic"; cut_away = "No"; angle = 90; fitting_1 = 0; fitting_2 = 1; fitting_3 = 2; internal_diameter_1 = 10; internal_diameter_2 = ...
glb/cad_46f9953e66f8.glb
Create a Bike Light Holder by starting with a central rectangular block that is 20mm high, 20mm wide, and 10mm long. From this base, remove a cylindrical hole with a radius of 8.5mm and a length of 20mm, centered along the length of the block to accommodate the bike handlebars. On the opposite side of the block, remove...
include <measurements.scad>; rotate([0, 0, 90]){ difference(){ cube([base_height, base_width, base_len], center=true); translate([-(bike_diameter + height_margin)/2, 0, 0]){ cylinder(h=base_len * 2, r=bike_diameter/2, center=true); } translate([(light_min_diameter + height_margin)/2, 0, 0]){...
glb/cad_e8ab889d9286.glb
Create a Bike Light Holder by constructing a hollowed-out cylindrical sleeve. Start with an outer cylinder that has a radius of 13.825mm and a height of 40mm, centered on the Z-axis. Remove a smaller inner cylinder from the center with a radius of 10.825mm and a height of 41mm to create a wall thickness of 3mm. To open...
include <measurements.scad>; light_min_diameter = 19.5; light_inner_len = 40; light_clip_len = 48; light_clip_width = 7; light_inner_clip_len = 28.5; light_clip_height = 3; bike_diameter = 21.65; bike_len = 40; base_len = bike_len; base_width = bike_diameter + 4; height_margin = 6; base_height = (bike_diameter + ligh...
glb/cad_8284b58e10d7.glb
Create a Micro Gear Motor Eccentric Shaft Adapter. Start by creating a main cylindrical body with a diameter of 12mm and a height of 15mm. Inside this body, create a keyed shaft hole that is offset from the center to create an eccentric motion. The center of this hole should be positioned 2.5mm away from the center o...
inch = 25.4; $fn=100; Eccentricity = 2.5; Body_Dia = 12; Body_Height = 15; Shaft_Dia = 3; Shaft_Tolerance = 0.25; Key_Depth = .17; Dimension_Error = false; if (Shaft_Tolerance >1)or (Body_Dia-(Shaft_Dia+Shaft_Tolerance+Eccentricity)<1) { Dimension_Error = true; } module 3mmShaftAdapter() { difference() { ...
glb/cad_c7720bc3ed9f.glb
Create a canopy holder latch consisting of a main rectangular bar and a rounded head. The main bar has a width of 12mm, a height of 2.3mm, and a length of 25mm. At the end of the bar, create a rounded head formed by the hull of two cylinders: a bottom cylinder with a radius of 5.3mm and a top cylinder with a radius of ...
r_cyl = 6.0 ; r_hole = 3.6 ; blen = 25 ; bheight = 2.3 ; bwid = 12 ; sawlen = 10 ; sawdep = 1.3 ; sawwid = 10 ; r_redhole = 1.5 ; module canopy() { difference () { hull () { translate ([0,0,0]) cube ([bwid,0.1,bheight]) ; translate ([0,blen-2*r_cyl,0]) cube ([bwid,0.1,bheight]) ; ...
glb/cad_5fedb310f540.glb
Create a Pi Zero screw case consisting of a base and a lid. For the base, create a rounded rectangular shell with a wall thickness of 2mm and a corner radius of 3mm. The outer dimensions should be 67mm in length and 30mm in width. The total height of the base is 5.75mm. At each of the four corners, integrate a cylind...
build = 3; camera = 0; gpio = 2; wall = 2.0; hdmi_recess = 1; corner = 3.0; tol = 0.3; $fn=20; base_width = 30; base_length = camera==1 ? 70.0 : 67.0; hole2hole_l = 58; hole2hole_w = 23; hdmi_recess_w = 17.5; hdmi_recess_h = 3.75; support_offset = 3.5; support_height = 1.0; support_radius = 1.4; support_size = 7....
glb/cad_f0df18e1f920.glb
Create a bike light holder strap consisting of a flat rectangular base with two male snap connectors. Start by creating a flat, rounded strap that is 195mm long, 25mm wide, and 2mm thick. The ends of the strap should be semicircular, forming a stadium shape. At the center of each semicircular end, on the top surface ...
d1=9.8; d2=10.3; h=4; $fn=40; distance = 195; strapwidth = 25; strapthick = 2; rotate([0,0,45]) { hull() for (x=[-1,1]) translate([strapwidth/2, x*distance/2,0]) cylinder(r=strapwidth/2, h=strapthick); for (x = [-1,1]) translate([strapwidth/2,x*(distance/2),strapthick]) malesnap(); } module malesna...
glb/cad_61eaf5b00a9a.glb
Create a 20mm calibration cube by starting with a solid cube measuring 20mm on all sides. Remove a smaller 10mm cube from the top center, leaving a 10mm deep square hole that is centered on the top face with 5mm walls remaining on each side. On the top surface, add the text "<-X->" centered along the X-axis, positioned...
difference(){ cube([20,20,20]); translate([5,5,10]) cube([10,10,10.1]); } translate([4,0.5,20]) linear_extrude(height=1) scale (0.4) text("<-X->"); translate([1,17.5,0]) rotate([0,0,-90]) translate([0,0,20]) linear_extrude(height=1) scale (0.4) text("<-Y->");
glb/cad_2c2595654ac5.glb
Create a Print-in-place Hinge Library consisting of three distinct hinge types. First, construct a horizontal hinge centered at the origin with the axis along the Y-axis. The hinge has a total width of 14mm and height of 10mm. It consists of alternating arms 1mm wide with 1mm clearances. Each arm is attached to a flan...
use <MCAD/regular_shapes.scad> horiz_hinge_height=10; horiz_hinge_arm_width=1; horiz_hinge_flange_length=15; horiz_hinge_width = 14; horiz_hinge_joint(horiz_hinge_width, horiz_hinge_height, horiz_hinge_arm_width, horiz_hinge_flange_length); vn_hinge_depth=5; vn_hinge_height=10; vn_hinge_length=10; vn_pin_diameter=2;...
glb/cad_032d0c35a384.glb
Create a Trinity Figure consisting of three identical interlocking chain links arranged in a symmetrical knot. Each link is formed by a torus with a major radius of 15mm and a minor radius of 7.5mm. Position the three links so they are rotated and interwoven, with each link passing through the center of the other two. ...
thickness=15; wiggle=0.01; module link() { translate([thickness,0,0]) cylinder(r=thickness/2-wiggle, h=thickness*2, center=true, $fn=50); translate([-thickness,0,0]) cylinder(r=thickness/2-wiggle, h=thickness*2, center=true, $fn=50); difference() { union() { translate([thickness * 1, 0 , 0]) { ...
glb/cad_0cb591d53170.glb
Create a 3D Trinity Knot model consisting of a high-resolution intertwined knot resting on a thin square base. Start by creating a square base plate measuring 70mm by 70mm with a thickness of 0.51mm, centered at coordinates (-35, -35, 0). Position a high-resolution 3D knot centered above the base, shifted slightly by...
module support(angle1,angle2) { supportlen = 20; rotate(angle2,[0,0,1]) translate([0,18,0]) rotate(angle1,[0,0,1]) union() { translate([0,-supportlen/2+2,0]) cube([1,supportlen,10],center=false); translate([0,-supportlen*1.5/2+2,0]) cube([1,supportlen*1.5,6],center=false); translate([-10,0,0]) cube([10,1,6...
glb/cad_9298526a732c.glb
Create an Aleph Objects X-end motor mount. Start with a main central block measuring 68.2mm x 39.5mm x 9mm, centered on the origin. Add a cylinder with a radius of 12.5mm and a height of 9mm, centered at [0, 13.5, 0]. Carve two smooth rod grooves into the block at x = 22.55mm and x = -27.325mm. Each groove is formed b...
include <nuts_and_bolts.scad>; module xendmotor(){ module roundCorner(){ translate([0,0,20]) difference(){ translate([4,4,0]) cube([8,8,50], center=true); cylinder(r=8, h=50.1, center=true, $fn=20); } } difference(){ union(){ translate([0,-3,0]) cube([68.2,39.5,9], center=true); translate([0,13.5,0]) cylinder(...
glb/cad_045d68241e27.glb
Create a 3D model of an Aleph Objects X-end idler. Start with a main central block measuring 68.2mm x 39.5mm x 9mm, centered on the origin. Add a cylinder with a 12.5mm radius and 9mm height, also centered. Carve out two symmetrical smooth rod grooves. Each groove is formed by a combination of three rectangular prisms...
include <nuts_and_bolts.scad>; module xendidle(){ module roundCorner(){ translate([0,0,20]) difference(){ translate([4,4,0]) cube([8,8,50], center=true); cylinder(r=8, h=50.1, center=true, $fn=20); } } difference(){ union(){ translate([0,-3,0]) cube([68.2,39.5,9], center=true); translate([0,13.5,0]) cylinder(r...
glb/cad_5db27a494cf0.glb
Create an Aleph Objects X-end clamp. Start with a main rectangular block measuring 68.2mm in length, 39.5mm in width, and 9mm in height. Centered on the top face, add a cylinder with a radius of 12.5mm and a height of 9mm. Carve out two symmetrical V-shaped grooves for smooth rods, positioned at x = 24.935mm and x = -...
include <nuts_and_bolts.scad>; xendclamp(); module xendclamp(){ module roundCorner(){ difference(){ translate([4,4,0]) cube([8,8,16.5], center=true); cylinder(r=8, h=16.8, center=true, $fn=20); } } rotate([180,0,0]) difference(){ union(){ translate([0,-3,0]) cube([68.2,39.5,9], center=true); translate([0,13.5...
glb/cad_a8bfd5af5f0f.glb
Create a Z-axis bar clamp for securing 8mm rods. Start with a main cylindrical body that has a radius of 7.3mm and a height of 3mm. Centered within this cylinder, create a vertical hole with a radius of 4mm to accommodate a rod. Add a circular flange extending from the base with a radius of 13mm and a thickness of 3mm...
include <configuration.scad> module barclamp(){ outer_diameter = m8_diameter/2+3.3; difference(){ union(){ difference() { union(){ translate([outer_diameter, outer_diameter, 0]) cylinder(r=13, h=3, $fn=50); difference(){ translate([8, outer_diameter, 3]) cylinder(r=10.5, h=3, $fn=100); transl...
glb/cad_e020aaed0fee.glb
Create a Micro Cannon consisting of a barrel, a breach cap, and two frame halves. For the barrel, create a central cylinder with a 7.2mm bore running through its length. The exterior should transition through several stages: a base cylinder with a 13.2mm diameter and 65mm height, followed by a 13mm to 16mm tapered se...
use <Thread_Library.scad> $fn=80; frame_left(); translate([0,42,0]) frame_right(); translate([19,-7.5,0]) barrel2(); translate([19,48,0]) breach_cap2(); module frame_left() { difference() { translate([0,0,2.5]) cube(size=[60,40,5], center=true); translate([28,-25,-1]) cylinder(d=60, h=6.2...
glb/cad_ae4068ad878e.glb
Create a Menger Sponge fractal of level 1. Start with a solid cube measuring 10mm on all sides, centered at the origin. To create the first level of the fractal, remove three square prisms that pass entirely through the cube along the X, Y, and Z axes. Each prism must have a cross-section of 3.33mm by 3.33mm. Position ...
l = 10; T = 1; difference(){ cube(l, center = true); cutz(); } module cutz() { for (k = [0:T]) { w = l/pow(3,k); for (x = [(-l/2)+1.5*w:3*w:(l/2)-w], y = [(-l/2)+1.5*w:3*w:(l/2)-w], i = [ [90,0,0], [0,90,0], [0,0,0] ]) { rotate(i)translate([x,y,0])cube([w,w,l+1],center=true); } } }
glb/cad_885871e16d00.glb
Create a sprue helper consisting of a thin, flat grid of intersecting rectangular bars. The overall footprint of the grid is 260mm by 150mm, with a uniform thickness of 0.1mm. First, create a series of parallel vertical bars along the X-axis. Each bar should be 1mm wide, 151mm long, and 0.1mm thick. Space these bars ...
y = 150; x = 260; gapx = 10; gapy = 75; hscale = 1; vscale = 0.1; translate([-(x*hscale)/2,-(y*hscale)/2,0]) { for (i = [0:gapx*hscale:x*hscale]) { translate([i,0,0]) cube([1*hscale,(y+1)*hscale,1*vscale]); } for (i = [0:gapy*hscale:y*hscale]) { translate([0,i,0]) cube([(x +1)*hscale,1*hscale,1*vscale]); } }
glb/cad_f2670d9fc3cb.glb
Create a solar finder scope mount consisting of a rectangular base and a vertical pillar. Start by creating a rectangular bar centered on the X and Z axes with dimensions 15mm wide, 5mm deep, and 100mm tall. At the bottom of this bar, attach a circular disc with a radius of 30mm and a thickness of 5mm. On the top sur...
include <synta-vixen-celestron-orion-mount_uncentered.scad>; mount_bracket(); base_y=mount_y+tab_y; bar_x=15; bar_y=5; bar_z=100; end_radius=30; end_thickness=5; hole_radius=2; screen_radius=4; translate([(mount_x-bar_x)/2,base_y,(mount_z-bar_z)/2]) cube([bar_x,bar_y,bar_z]); difference() { translate([(m...
glb/cad_dc205e4a16c8.glb
Create a Mast Top Bracket designed to fit a cylindrical mast. Start by creating a main cylindrical body with an outer diameter of 36mm and an inner diameter of 30mm, extending to a length of 1300mm. At the top of this mast, integrate a bracket assembly. The bracket is formed by the convex hull of a cylinder with a rad...
length=35; width=20; height=100; mast_diameter=36; mast_tapered_diameter=30; mast_length=1300; mast_tapered_length=100; mast_wall_thickness=3; ring_thickness=10; ring_height=30; margin=1.3; ring_inner_diameter=mast_tapered_diameter+margin; ring_outer_diameter=ring_inner_diameter+2*ring_thickness; $fn=128; mast();...
glb/cad_e466457128c5.glb
Create a pencil cap by constructing a hollowed-out cylinder with a rounded top. Start with an outer cylinder 30mm tall, with a base diameter of 10.8mm that tapers slightly to a top diameter of 9.8mm. Remove a hexagonal core from the center of this cylinder to create the socket; this hexagonal hole should have a diamete...
length=30; pencil_width=7.8; od=pencil_width+3; module cap() { difference() { cylinder(h=length, d1=od, d2=od-1, $fn=100); cylinder(h=length, d1=pencil_width+1, d2=pencil_width, $fn=6); } translate([0,0,length]) { difference() { sphere(d=od-1, $fn=100); union() { sphere(d=pencil_width, $fn=100);...
glb/cad_8251aea6ce8f.glb
Create a parametric project enclosure consisting of a main box and a matching cover. For the main box, create a rectangular shell with inner dimensions of 60mm length, 40mm width, and 30mm depth. The walls and floor should have a thickness of 2mm. The four vertical corners of the box should be rounded with a radius o...
enclosure_inner_length = 60; enclosure_inner_width = 40; enclosure_inner_depth = 30; enclosure_thickness = 2; cover_thickness = 3; part = "enclosure"; print_part(); module print_part() { if (part == "enclosure") { box2(enclosure_inner_length,enclosure_inner_width,enclosure_inner_depth,enclosure_thickness,enclos...
glb/cad_d5d51d692559.glb
Create a servo mount bracket. Start with a rectangular base of dimensions `base_width` by `base_length` and height `base_height`. On top of this base, add a smaller rectangular section centered along the width with dimensions `base_width - 2 * servo_shoulder_d` by `servo_holder_width` and height `servo_width`. Integra...
include <dimensions.scad>; use <front wheel.scad>; difference(){ union(){ translate ([base_width/2, 3.18 ,0 ]) mount(); difference(){ union(){ base(); } servo_cout(); middle_cout(); } } translate ([base_width/2, 3.18 ,0 ]) mount_cout(); } translate([0,base_length + servo_holder_thickness - ...
glb/cad_59e62c639328.glb
Create a 608 idler pulley and stand. Construct the pulley by rotating a specific profile around a central axis to create a circular ring with an outer diameter of 30mm and a center groove diameter of 25mm. The cross-section of the pulley wall should be a rectangle 7mm wide and 4mm thick, with a circular hole of 5mm dia...
translate([0,0,3.5]) { rotate_extrude($fn=200) { translate([13,0,0]) { rotate([0,0,-90]) { difference() { square([7,4], center=true); translate([0,2,0]) { circle(r=2.5, center=true); } } } } } }
glb/cad_a11900cc4861.glb
Create a 608 Idler Pulley with Stand. Start by constructing a vertical support arm that holds a cylindrical housing. The housing consists of a main cylinder with an outer radius of 5mm and a height of 3mm, topped with a smaller cylinder of 4mm radius and 6mm height. Inside this housing, create a central coaxial hole ...
translate([0,0,19.5]) { rotate([0,90,0]) { difference() { union() { cylinder(r=4, h=6, $fn = 100); cylinder(r=5,h=3, $fn = 100); translate([-1,-11,0]) { cube([20.5,22,2]); } translate([17.5,-11,-8]) { cube([2,22,10]); } translate([7.5,-1,-8]) { cube([10...
glb/cad_48c846cf61ef.glb
Create a tool clamp designed to hold a cylindrical object with an outer diameter of 25.7mm. Start by forming a hollow cylinder with an internal diameter of 25.7mm, a wall thickness of 3mm, and a height of 25.7mm. From this base, extend a rectangular mounting block upwards from the side. This block should be 4mm thick...
Tool_diameter=25.7; Wall_thickness=3; Horizontall_wall_thickness=3; Mount_thickness=4; Clamp_gap_wide=22.7; Stand_hight=51.4; Mount_hole_metric=3; $fn=120; DO=Tool_diameter; WT=Wall_thickness; MT=Mount_thickness; HW=Horizontall_wall_thickness; CHW=Clamp_gap_wide; SH=Stand_hight; MHM=Mount_hole_metric; module M...
glb/cad_fa1573441a9d.glb
Create a customized project box consisting of a lower case and an upper lid. The lower case is a rounded rectangular shell with outer dimensions of 107.2mm length, 56.2mm width, and 8.5mm height. It has a wall thickness of 2.6mm and a base thickness of 1.5mm. The interior is hollowed out, leaving a floor and four wal...
$fn=20; length=102; width=51; height=34; ratio_upper=0.75; ratio_lower=1-ratio_upper; thickness_wall=2.6; thickness_ground=1.5; radius=2; inner_edge_thickness_upper=2; inner_edge_thickness_lower=1; inner_edge_height=3; screw_Mx=3; screw_through_bore=0.25; screw_distance=2.5/thickness_wall; cable_hole_length=thickness_...
glb/cad_74617fe64294.glb
Create a toothbrush holder consisting of two interlocking cylindrical parts: a main case head and a bottom cap. For the case head, create a hollow cylinder with an outer radius of 12mm and a height of 85mm. The wall thickness should be 1.5mm. On the exterior of this cylinder, centered at a height of 42.5mm, add a han...
tp = 1.5; fn = 64; cl = 0.25; tr = 10+.5; th = 85; to = 15; hr = 4; module toothbrushcasehead() { difference() { union() { cylinder(r=tr+tp, h=th, $fn=fn); difference() { linear_extrude(height=th/2) hull() { circle(r=tr+tp,$fn=fn); translate([tr,0,0]) circle(r=tr+tp,$fn=fn); } translate([(tr...
glb/cad_db5889dd0d13.glb
Create a GoPro universal zip tie mount consisting of a base plate and a mounting holder. Start with a square base plate 30mm wide, 30mm deep, and 7mm high. Cut two rectangular slots through the plate to allow for zip ties up to 5mm wide; one slot is centered along the X-axis and the other along the Y-axis, both 5.5mm w...
hold_len = 20; hold_angle = 30; nut_out_dia = 8.8 + 0.6; nut_depth = 3.6; nut_hold_dia = 12; plate_height = 7; plate_width = 30; plate_hole_ht = 3; plate_hole_wd = 5.5; plate_hole_dist = 10; hold_hole_dia = 5.2; hold_dia = 15.5; hold_t1 = 3.2; hold_t2 = 2.7; hold_spce = 3; $fn = 50; union(){ difference(){ ...
glb/cad_442eaef89fe5.glb
Create a pencil topper by constructing a central body that is a hull between two cylinders aligned on the Z-axis. The first cylinder has a diameter of 18mm and a height of 9mm. The second cylinder, positioned on the same axis, has a diameter of approximately 16.36mm and a height of 11.97mm. Remove a cylindrical hole w...
dpencil = 7; d1 = 18; h1 = dpencil+2; d2 = d1/22*19; h2 = h1*1.33; $fa = 5*1; $fs = 0.2*1; through = false; difference() { hull() { cylinder(r=d1/2,h=h1,center=true); cylinder(r=d2/2,h=h2,center=true); } rotate(90,[0,1,0]) cylinder(r=dpencil/2,h=d1*2,center=through); translate([0,0,h2/2-1])...
glb/cad_85de02a7991e.glb
Create an Optimized Tesla Valve by constructing a large outer cylinder with a radius of 50mm and a total height of 157mm, centered vertically. From this solid cylinder, remove a complex internal void created by rotating a specific 2D profile around the central Z-axis. This profile is a non-uniform polygon with vertices...
$fn=32; bridge_angle = 60; module tube() { translate([0,0,-73]) cylinder(r=50, h=157); } module inner() { rotate_extrude() translate([1.01,0,0]) rotate([0,0,-90]) polygon([[-85,9],[-65,9],[-64,12],[-62,13],[-60,14],[-58,14],[-55,12],[-53,12],[-42,12],[-42,12],[-39,11],[-38,11],[-40,13],[-43,16],[-44,20],[-42,25],...
glb/cad_4faf23d02c8c.glb
Create a pair of rectangular glasses. Start with the front frame: create a central bridge by placing a cube of 18mm x 36mm x 10mm, then remove a cylinder with a radius of 18mm from its center. For the lenses, create two rectangular frames. Each frame is a cube of 56.25mm x 77.5mm x 10mm with a smaller 45mm x 62mm x 10m...
bridge = 18; lensheight = 45; lenswidth = 62; thickness = 10; framewidth = 2*bridge + (lenswidth*1.25); module glassesframe() { difference() { translate([.25*(bridge),0,0]) cube([(bridge),2*bridge,thickness],center = true); translate([bridge,0,0]) cylinder(h = thickness+1, r = bridg...
glb/cad_3fbb46fa87b8.glb
Create a Centi PET Re-Extruder Heating Chamber. Start with a main cylindrical body with an inner radius of 7mm, an outer radius of 8.6mm, and a total height of 14mm. The cylinder is open at both ends. Along the length of the cylinder, create a series of internal lamellas (plates) with a thickness of 1.4mm, separated b...
vert=128; tmin = 1.4; twall = 1.6; tgap = 1.1; t_pcb =1.6; end_t = 1.75; sidelamellacount =2; rin = 7; h1 = rin*2; r1 = rin+twall; screw_d = 3; screw_tisol = 1.2; screw_dtot = screw_d + screw_tisol*2; end_dr = screw_dtot/2; hpeg =25; wpeg = r1*0.95; lpeg = 4.5; pegstart = (r1 + end_dr)/sqrt(2)+screw_d/2; lamell...
glb/cad_86daf332539f.glb
Create a boltless shelving hook consisting of two vertical mounting posts connected by a horizontal base. Each post is a composite cylinder: the bottom 4mm is a cylinder with a diameter of 11mm, and the section extending upwards from that is a cylinder with a diameter of 6mm. The total height of each post is 24mm. Posi...
key_big = 11; key_small = 6; key_spacing = 39; key_thickness = 1.25; poke = 30; hook = 20; support_thickness = 4; hookStart = support_thickness*2+key_thickness; angle = atan ( hook / poke); hype = poke + hook; KBR = key_big/2; KSR = key_small/2; module wedge() { translate([0,-key_small,0]) difference() { cu...
glb/cad_fab88d66922e.glb
Create a Customizable Hex Bolt Knob by starting with a main cylinder that has a diameter of 20mm and a height of 20mm, centered on the origin. Inside this cylinder, create a hexagonal hole to accommodate a nut, with a corner-to-corner width of 14.75mm and a depth of 7mm. Position this hexagonal cutout so that it is cen...
nutWidth = 14.75; nutThickness = 7.0; boltKnobDiameter = 20; boltKnobLength = 20; boltKnobKnurlNum = 15; boltKnobKnurlDepth = 1; boltKnobKnurlWidth = 1; boltKnobKnurlAngle = 100; module boltKnob() { if(boltKnobDiameter> nutWidth) { difference(){ cylinder(r=boltKnobDiameter*0.5, h=boltKnobLengt...
glb/cad_84c3a20a6d34.glb
Create a Zen Pin connector with a total height of 6.7mm and a main body radius of 4mm. The pin is designed to house a 5mm diameter spherical magnet within an internal cavity. This cavity consists of a central sphere with a radius of 3mm (magnet radius plus 0.5mm tolerance) and a cylindrical section with a radius of 3mm...
h=6.7; r=4; lh=2; lt=1.1; slotThickness = 1.8; magRadius = 2.5; cavityTolerance= 0.5; cavityRadius = magRadius+cavityTolerance; cavityHeight = 6.5; barrierThickness= .18; holeTolerance=0.3; main(); module main(){ pinAndTestBlock(); } module pinAndTestBlock(){ translate([15,0,0])rotate([0,0,-45]) zenPin(); testB...
glb/cad_2348c7a1e98d.glb
Create a Wingnut Knob designed to fit an M3 wing nut. The main body is a cylinder with a maximum diameter of 32mm, a minimum diameter of 25mm, and a total height of 10mm. The top and bottom edges feature a 1mm chamfer. At the center, create a vertical hole with a diameter of 3.6mm (M3 size plus tolerance) extending th...
use<text_on.scad> headIso=3; headHeight=4; maxDiameter=32; minDiameter=25; maxRadiusChamfer=1; maxHeight=10; holderHeight=5 ; numberOfCuts=10 ; cutRadius=2.9; cutOffset=0; holderChamfer=5; screwHeadSafetyHeight=0; $fn=10; tolerance=.3; module knob(numberOfCuts,maxRadius,minRadius,maxRadiusChamfer, m...
glb/cad_d9cc1271a1b4.glb
Create a proximity sensor mount consisting of a square mounting plate and a sensor holder connected by a bridge. Start with a square mounting plate 40mm wide, 40mm deep, and 10mm thick. Center a cylindrical hole with a 38mm diameter through the plate. At each of the four corners, create a screw hole 3.5mm in diameter...
_o = 0.001; _k = 1 + _o; _fudge32 = 1/cos(180/32); Fl = 40; Ft = 10; Fd = 38; Fm = 6; Sl = 32; Sd = 3 + 0.5 ; SH = 5 + 0.5; Sh = 3 + 0.5; Mh = 0; Bp = 0; Plat = 14; Plon = 17; Bh = 7; Bw2 = 10; Pd1 = 18 + 1 ; Pd2 = 25; module FanOpening() { difference() { rotate([90,0,0]) { cylinder(h=Ft*_k...
glb/cad_2fc4de63adbd.glb
Create a mini stackable window greenhouse accessory consisting of two distinct rings: a stack ring and a bind ring. To create the stack ring, design a mirrored pair of conical shells. Each shell has a height of 4mm. The outer surface of each shell follows the taper of a cup with a bottom diameter of 84mm and a top dia...
part = "both"; cupbd = 84; cuptd = 110; cuph = 58; extra = 1; skin = 1.5; stackh = 4; q = cupbd; cupbr = (cupbd)/2; cuptr = (cuptd)/2; alpha = atan(cuph/(cuptr-cupbr)); cuptr2 = cupbr + (stackh/tan(alpha)); disc = 2; print_part(); module print_part() { if (part == "first") {stack_ring(); } else i...
glb/cad_afbb269cc8fa.glb
Create a mini stackable window greenhouse accessory consisting of two distinct rings: a stack ring and a binding ring. First, create the stack ring. This part is a conical ring with a height of 4mm. The outer wall follows the slope of a cup that transitions from a bottom diameter of 84mm to a top diameter of 110mm ove...
part = "both"; cupbd = 84; cuptd = 110; cuph = 58; extra = 1; skin = 2; stackh = 4; q = cupbd; cupbr = (cupbd)/2; cuptr = (cuptd)/2; alpha = atan(cuph/(cuptr-cupbr)); cuptr2 = cupbr + (stackh/tan(alpha)); disc = 2; cupw = 0.75; print_part(); module print_part() { if (part == "first") {stack_ring(); } ...
glb/cad_a60a03109676.glb
Create a magnetic ball joint rod piece. Start by constructing the main body as a hull that blends a cylinder with a radius of 6.2mm and a height of 1mm, with a larger cylinder positioned 10mm above it that has a radius of 6.2mm and a height of 12mm. From this body, remove a central cylindrical hole with a radius of 3...
magnet_diameter=10; magnet_height=10; teflon_socket=2; rod_diameter=6; rod_length=180; wall_thickness=1.2; magnet_offset=10; ball_diameter=10; clearance_magnet_diameter=0.1; clearance_rod_diameter=0.1; $fn=64; module full_body(){ hull(){ translate([0,0,magnet_offset])cylinder(r=(magnet_diameter/2)+wall_th...
glb/cad_2d4b88537771.glb
Create a pencil clip for a 3-ring binder. Start by constructing the main binder clip body as a rectangular block 50mm wide, 50mm high, and 8.8mm deep (calculated from two 3mm walls and a 2.8mm center gap). The top of this block should be rounded into a semi-circle with a diameter of 8.8mm. Hollow out the center of this...
$fn = 20; height = 50; width = 50; thickness = 3; binder_thickness = 2.8; pencil_diameter = 7.3; clip_number = 3; top_arc_diameter = (2*thickness)+binder_thickness; inset = 5; clip_gap = pencil_diameter-1; union(){ difference(){ union(){ cube([width, (thickness*2)+binder_thickness, height-(top_arc_diameter/2...
glb/cad_21ff4f216704.glb
Create a raised electronics cover for a Sanguinololu board. Start with a rectangular base plate measuring 51mm by 102mm with a thickness of 1.5mm. At the rear edge, create a cutout for power terminal screw access measuring 5.2mm by 9mm and 15mm deep, with the corners rounded using a 2.65mm radius. Add four mounting ho...
difference(){ cube([51,102,1.5]); translate([34.5,89,-4]) cube([5.2,9,15]); translate([37.1,89,-4]) cylinder(15,2.65,2.65,$fn=20); translate([37.1,98,-4]) cylinder(15,2.65,2.65,$fn=20); translate([24.9,48.9,-1]) cylinder(12,24.2,24.2); translate([3.9,3.8,-.1]) cylinder(8.1,8,6,$fn=20); translate([46.9,3.8,-0.1]) cylin...
glb/cad_f1cf1b850c30.glb
Create a Customizable Parts Drawer system consisting of a frame and multiple drawer inserts. Use a base unit of 25mm for width, 20mm for height, and 50mm for depth. All walls and gaps between components must be 2mm thick, and all external corners should have a 5mm bevel. Construct the drawers as open-topped boxes with...
unit_width = 25; unit_height = 20; unit_depth = 50; handle_thickness=5; handle_depth=10; wall = 2; bevel = 5; print_space = 2; widths = [[1, 1, 1, 1], [2, 2], [4]]; heights = [[2, 2, 2, 2], [3, 3], [4]]; dividers = [[1, 0, 0, 1], [2, 3], [1]]; handles = [[1, 1, 1, 1], [2, 2], [2]]; module simple_example() {...
glb/cad_ae7bc1bb6c18.glb
Create a ProtoTank cog by starting with a main outer cylinder that has a radius of 24.915mm and a height of 10.16mm. Remove a concentric inner cylinder from the center with a radius of 9.85mm and a height of 4.7mm. Around the perimeter of the outer cylinder, create 12 evenly spaced circular cutouts to form teeth; each ...
innercircleRadius=19.7/2; innercircleHeight=4.7; outercircleRadius=49.83/2; outercircleHeight=10.16; toothRadius=5.47/2; toothHeight=outercircleHeight; topcircleRadius=20.5/2; topcircleHeight=4.2; pinwidth=4.3; pinlength=2.1; pinRadius=pinlength/2; pinHeight=10.2; module pinhole() { translate([0,0,topcircleHeig...
glb/cad_8e5f7913726f.glb
Create a limit switch holder consisting of two symmetrical clamping parts designed to secure an 8.2mm diameter rod. For each part, start with a cylinder 10mm high and 14.2mm in diameter. Remove a central hole 8.2mm in diameter and cut away one half of the cylinder longitudinally to create a C-clamp shape. Extend one ...
ver_parte = 0; d_eje = 8.2; g_eje = 3; d_ext = d_eje+g_eje*2; g_sop = 3; z_sop = 10; d_apr = 1.5; d_tue = 6.6; a_tue = sqrt(pow(d_tue/2,2)-pow(d_tue/4,2)); y_piz = 5.5; pxpiz = sqrt(pow(d_ext/2,2)-pow(y_piz,2)); x_piz = pxpiz+a_tue*2+2; x_dta = pxpiz+(x_piz-pxpiz)/2; x_pde = 24; d_tin = 2.4; x_tin = d_ext/2+...
glb/cad_0b7301b70176.glb
Create a parametric endstop holder consisting of a central cylindrical body and two perpendicular mounting tabs. Start with a central cylinder that has a radius of 6mm and a height of 10mm. Subtract a smaller concentric cylinder with a radius of 4mm and a height of 20mm to create a hollow sleeve. Within this central se...
$fn = 100; rod_diameter = 8; distance = 15.3; bw = 5; oy = 10; base_distance = distance - 5.0; r = rod_diameter/2; difference() { union() { translate([base_distance-bw/2+r, 0+oy, 5]) cube(size = [bw, 30, 10], center = true); translate([3,-5,0]) cube([10,10,10]); translate([0, 0, 5]) { ...
glb/cad_1bf33e60c621.glb
Create a Moineau stepper extruder consisting of a pump chassis, a rotor, and an inlet block. First, construct the pump chassis. Create two circular flanges with a radius of 20mm and a thickness of 3mm, positioned at the bottom and top of a central body. The central body is a hollow tube with a height of 40mm and a wa...
R1=3; R2=5; H=40; wall=2; top=3; c1=0.6; c2=0.0; c3=0.4; phi=480; $fn=40; flange_thickness = 3; flange_radius = 20; bolt_diameter = 3; stepper_shaft_length = 18; coupling_longitudinal_clearance = 1; coupling_rotor_base_height = 5; shaft_radius = 6; coupling_angular_clearance = 5; coupling_tooth_height = 5; coupling_n...
glb/cad_28115c41aebe.glb
Create a hollowed sphere with an outer diameter of 40mm and a wall thickness of 5mm. Use a resolution of 100 facets for all curved surfaces. Slice the sphere horizontally to remove 4mm from the top and 6mm from the bottom. To create the central opening, remove a vertical cylinder with a diameter of 20mm from the top ...
outer_sphere_diameter=40; wall=5; smoothness=100; top_squish=4; bottom_squish=6; bottom_diameter=28; bottom=2; top_axle_diameter=20; bottom_axle_diameter=0; r=outer_sphere_diameter/2; down=-(r-bottom_squish); top=r-top_squish; base_radius=bottom_diameter/2; cylinder_top=top_axle_diameter/2; cylinder_bottom=bot...
glb/cad_cc941e6954d4.glb
Create a bak model consisting of a symmetrical arrangement of cylinders. Generate a series of cylinders, each with a radius of 5mm and a height of 500mm. Position these cylinders such that their centers are located 300mm from the central Z-axis. Arrange the cylinders in a circular pattern, rotating each subsequent cyli...
freq=5; angle1=20; sw1=1; sw2=1; bak(); mirror(){ bak(); }; module bak() { for (i=[0:freq:360]){ rotate(a=i,v=[0,0,1]) translate(v=[300,0,0]) rotate(a=angle1,v=[sw1,sw2,0]) cylinder(r=5,h=500);} }
glb/cad_ce7fc88a7263.glb
Create a rod block by starting with a cube that is 20mm wide, 20mm deep, and 20mm high. Remove a central vertical cylindrical hole with a diameter of 10mm that passes completely through the top and bottom faces. Add four smaller vertical cylindrical holes, each with a diameter of 3mm, passing through the top and bottom...
rod_dia = 10; screw_dia = 3; screw_dist = 14; cube_width = 20; cube_height = 20; difference() { translate([-cube_width/2,-cube_width/2,0]) cube(size=[cube_width,cube_width,cube_height]); union() { translate([0,0,cube_height/2]) cylinder(h=cube_height+2,r1=rod_dia/2,r2=rod_dia/2,center=true, $fn=6...
glb/cad_926031818632.glb
Create a Rod double block designed to connect two rods at a 90-degree angle. Start with a rectangular solid block measuring 29mm in length, 16mm in width, and 16mm in height. Subtract a vertical cylindrical hole with a 10mm diameter from the center of the top and bottom faces, positioned at x = -6.5mm. Subtract a hor...
rod_dia = 10; screw_dia = 3; rod_dist = 3; cube_wall = 3; difference() { translate([-(2*rod_dia+2*cube_wall+rod_dist)/2,-(rod_dia+2*cube_wall)/2,0]) cube(size=[2*rod_dia+2*cube_wall+rod_dist,rod_dia+2*cube_wall,rod_dia+2*cube_wall]); union() { translate([-(rod_dia+rod_dist)/2,0,(rod_dia+2*cube...
glb/cad_06af48dfd816.glb
Create a Makerbot X Cap Spacer by starting with a rectangular base measuring 53mm in length, 17mm in height, and 2mm in thickness. Add semi-cylindrical caps with a radius of 6.5mm to both the left and right ends of the rectangle to round the edges. From this combined volume, remove two large cylindrical holes with a ra...
module MAKERBOT_X_CAP_SPACER() { THICKNESS = 2; RECESS_DEPTH = THICKNESS; LENGTH = 53; HEIGHT = 17; CAP_RADIUS = 13/2; RECESS_RADIUS = 8/2; SCREW_RADIUS = 4/2; SCREW_OFFSET_L = (LENGTH/2)-(20-SCREW_RADIUS); SCREW_OFFSET_H = 4 + SCREW_RADIUS; difference(){ union() { cube(size = [LENGTH, HEIGHT, THICKNE...
glb/cad_918bf3d9fade.glb
Create a rod cross block by starting with a rectangular solid measuring 29mm in width, 16mm in depth, and 16mm in height. From this block, remove several cylindrical volumes to create mounting holes. First, create two vertical holes with a 10mm diameter, centered 3mm apart from each other along the width, passing compl...
rod_dia = 10; screw_dia = 3; rod_dist = 3; cube_wall = 3; difference() { translate([-(2*rod_dia+2*cube_wall+rod_dist)/2,-(rod_dia+2*cube_wall)/2,0]) cube(size=[2*rod_dia+2*cube_wall+rod_dist,rod_dia+2*cube_wall,rod_dia+2*cube_wall]); union() { translate([-(rod_dia+rod_dist)/2,0,(rod_dia+2*cube...
glb/cad_c48e483273ee.glb
Create a 3D monogram of the Chi-Rho symbol consisting of a combined Greek letter Chi (X) and Rho (P) standing on a rectangular base. First, construct the symbol with a uniform thickness of 1.6mm (scaled from 20mm). The symbol is composed of two intersecting forms: a large "X" shape and a "P" shape. The "X" consists of...
fudge = 0.1; module poly_path11(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[117.000000,708.000000],[115.625000,708.125000],[115.171875,708.421875],[115.000000,709.000000],[114.671875,709.265625],[113.875000,708.875000],[112.890625,708.29687...
glb/cad_0d9074163710.glb
Create a Sparky Swiss Army Keychain consisting of three main components: an upper plate, a lower plate, and a USB drawer. The upper and lower plates are identical elongated hexagonal prisms with a width of 30mm, a length of 85mm, and a thickness of 3.5mm. Each plate features a bevel of 1.2mm height and offset. Both pl...
$fn = 20; include<honeycomb.scad> include<nutsnbolts/cyl_head_bolt.scad> parts = "all"; keyring = "Yes"; length = 85; width = 30; thickness = 3.5; bevel_height = 1.2; bevel_offset = 1.2; finger_bevel_height = 1.2; finger_bevel_offset = 1.2; middle_hole_bevel = true; honeycomb_pattern_offset = 8; hex_segment...
glb/cad_8a89774193ed.glb
Create a Sparky Swiss Army Keychain by constructing a thick, hollow ring. Start with a cylinder that has an outer diameter of 5.8mm, a height of 2.7mm, and a 20-facet resolution to give it a faceted, polygonal appearance. Centered within this shape, remove a cylindrical core with a diameter of 3mm that passes completel...
$fn=20; height = 2.7; inner_diameter = 3; outer_diameter = 5.8; difference(){ cylinder(height, d=5.8); translate([0,0,-1])cylinder(height+2, d=3); }
glb/cad_1b4d31614348.glb
Create a twisty container with a height of 80mm. The base and the cross-section of the walls are defined by an 8-sided polygon with rounded corners. The inner diameter of the container is 60mm, and the walls have a thickness of 1mm. The corners of the polygon should have a roundness radius of 10mm. To form the body, ex...
container_height = 80; inside_diameter = 60; num_sides = 8; resolution = 512; roundness = 10; thickness = 1; twistiness = 90; module twisty_container() { inside_r = inside_diameter / 2 - roundness + thickness; outside_r = inside_r + thickness; linear_extrude(height = thickness) { offset(r = roundness)...
glb/cad_f0b6a5b8fe6f.glb
Create a Customizable Cable Tag consisting of a flat rectangular base with a raised central ridge and two mounting holes. The base should be 37mm long, 14mm wide, and 1mm thick. Centered on the top face, create a raised longitudinal ridge that is 30mm long and 4mm wide, with a height of 1.5mm. Carve a cylindrical tun...
labelWidth = 12; labelLength = 30; cableDiameter = 5; cableTieW = 2.5; cableTieT = 1.3; innerMargin = 1; outerMargin = 2; cableTieHoleW = cableTieW + 1; cableTieHoleT = cableTieT + 0.5; totalLength = labelLength + (innerMargin*2) + (outerMargin*2) + (cableTieHoleW*2); cableTieHoleX = (labelLength/2)+(cableTieHo...
glb/cad_81e7348c035b.glb
Create a 3D model of a Raspberry Pi 2 / 3 electronic board and its associated connectors. Start with a base rectangular plate of dimensions 85mm x 56mm x 1.6mm. At the four corners of this plate, create four cylindrical mounting holes with a diameter of 3.2mm that pass through the thickness of the plate. On the top su...
include <01-medidas.scad> medidas = 0; if (medidas != 1) placa_electronica(); ffc_y = 22.4; ffc_x = 3; module conector_ffc() { color("DarkSlateGray") { translate([-1, -13/2, 5.5-1.1]) cube([1, 13, 1.1]); difference() { translate([ 0, -ffc_y/2, 0]) cube([ ffc_x, ffc_y, 5.5]); ...
glb/cad_6f839d3bf0a1.glb
Create a Customizable Power Bus consisting of a rectangular base block with a width of 104mm, a depth of 22mm, and a height of 10mm, featuring rounded corners with a radius of 3.5mm. Along the center of the block, create a longitudinal cylindrical void with a diameter of 3.7mm to accommodate a threaded rod. This void...
slots=10; double=1; quad=0; bus_rod_dia=3.7; cable_dia=2; invert=0; mm_per_slot=9; module cyl(d, h, clearance,hole,center=false) { n = max(round(2 * d),3); if (hole) { cylinder(h = h, r = ((d + clearance) / 2) / cos (180 / n), $fn = n, center=center); } else { cylinder(h=h, r=d/2, $fn=round(5*d), c...
glb/cad_fcad1e477cb1.glb
Create a phone tripod holder by starting with a solid rectangular block measuring 161mm in length, 15.3mm in width, and 24mm in height, centered on the origin. Carve out a central rectangular cavity to create the phone slot; this interior void should measure 155mm in length, 9.3mm in width, and 20mm in height, position...
phoneHolder(); module tripodPiece() { linear_extrude(height = 6.5, scale = [.74,1]) translate([-30/2,-27/2,0]) square([30,27]); translate([-10,-10,0]) cube([20,20,10]); } module phoneHolder() { difference(){ cube([155+6,9.3+6,20+4], center=true); translate([0,0,4]) cube([155,9.3,20], center=true); ...
glb/cad_a96c162e9e29.glb
Create a linear rail carriage by starting with a central rectangular block measuring 40mm wide, 80mm long, and 5mm thick. Remove a central rectangular void from this block that is 20mm wide, 20mm long, and 10mm deep. To create the mounting holes, remove four cylinders, each with a radius of 4.2mm and a height of 28mm...
module carriege(){ difference(){ cube([40,80,5],true); union(){ cube([20,40,10],true); translate([-10,-30,-10])cylinder(h=28,r1=4.2,r2=4.2,center=true); translate([10,-30,-10])cylinder(h=28,r1=4.2,r2=4.2,center=true); translate([-10,30,-10])cylinder(h=28,r1=4.2,r2=4.2,center=true); translate([10,30,-10])cylinder(h=28,r...
glb/cad_65db48cf44e9.glb
Create a mast base pin consisting of a hollow main tube and a solid tapered base. Start by creating a hollow cylinder for the main mast section with an outer diameter of 36mm, a wall thickness of 3mm, and a total height of 1300mm. At the bottom of this tube, attach a base assembly. The base begins with a cylinder 36m...
length=35; width=20; height=100; mast_diameter=36; mast_wall_thickness=3; mast_length=1300; mast_tapered_diameter=30; mast_tapered_length=100; base_length=60; base_tapered_diameter=29.5; base_tapered_length=60; margin=1.3; mast_inner_diameter=mast_diameter-2*mast_wall_thickness; base_diameter=mast_diameter; $fn=12...
glb/cad_5619e9b41d89.glb
Create a parametric handle by constructing a composite solid and removing a central core. Start with a base cylinder 22mm in radius and 3mm in height. Atop this, add a tapered cylinder (frustum) that rises 5mm, transitioning from a 22mm radius at the bottom to a 12mm radius at the top. Above this neck, add a cylinder 8...
h_handle = 88; r_handle = 16; r_hole = 13.6/2; h_hole = h_handle; grip_thickness = 3.5; grip_elements = 12; grip_angle = 1.5; grip_offset = 2 ; grip_smoothness = 8; $fn = 50; r_neck =12; h_neck = 5; r_bot=22; h_bot= 3; module handle() { union() { translate([0,0,h_handle]) sphere(r=r_handle,center=true); cyli...
glb/cad_44323fec9845.glb
Create a Sansa e200 series dock by starting with a central block measuring 52mm wide, 45mm deep, and 48mm high, centered at the origin. From this main body, remove several geometric volumes to create the docking cavity and cable access. First, carve out a central void for the player using three combined rectangular pri...
module box() { difference() { difference() { translate(v = [0,0, -3]) cube(size=[52,45,48],center = true); translate(v = [0,-7, -25]) { rotate(a=[90,0,0]) cylinder(h = 40,r=4,center=true); } translate(v = [0, 23, 4]) { rotate(a=[20,0,0]) cube(size=[53,15,45],center=true); } ...
glb/cad_56c62b0db077.glb
Create a MicroSD card holder by starting with a solid rectangular block measuring 40mm in width, 24.72mm in height, and 8.5mm in thickness. Within this block, carve out six identical rectangular slots to hold memory cards, arranged in a grid of two columns and three rows. Each slot must be 12.3mm wide, 1.5mm thick, and...
goldenratio = 1.61803398874989; holder_width=40; holder_height=holder_width / goldenratio; num_columns = 2; num_rows = 3; microsd_width=11; microsd_thickness = 0.75; microsd_height=15; microsd_slot_depth=microsd_height / 2; microsd_slot_width=microsd_width+1.3; microsd_slot_thickness=microsd_thickness+0.75; bottom_...
glb/cad_a14f6bad7789.glb
Create a flat template for an unfolded box with a thickness of 1mm. The layout consists of six rectangular panels arranged in a cross-like pattern. Position four main panels in a row: the first, third, and fourth panels are 30mm by 30mm, while the second panel is 30mm wide by 30mm deep. Additionally, attach two 30mm by...
width = 30; height = 30; depth = 30; thickness = 1; pad_size = 5; empty = 1; beam_width = 2.5; notch_radius = 1; support = 1; module UnfoldedBox(width, height, depth, thickness) { cube([width, depth, thickness]); translate([width, 0]) cube([height, depth, thickness...
glb/cad_2ff362082e3a.glb
Create an X Axis End Stop Holder designed to clamp onto two parallel rods. Start by creating two identical clamp halves. Each half consists of a rectangular block 50mm wide, 7.2mm high, and 8mm thick. Within each block, create a semi-cylindrical cutout with a radius of 4mm to accommodate a rod, leaving a central solid ...
m8_diameter=8; m3_diameter=3; m4_diameter=4; m3_nut_diameter=5.5; m4_nut_diameter=7; rod_spacing = 50; clamp_diameter= m8_diameter*1.8; endstop_holes_spacing = 20; module rod_clamp_half (clamp_width) { intersection () { union() { translate ([0,-2,0]) difference () { union () ...
glb/cad_365a03a46a7e.glb
Create a Heat Friendly Pulley consisting of a central shaft and a tiered outer body. Start with a base cylinder 14mm in diameter and 20mm high. Centered through the entire length of the model, remove a vertical hexagonal hole with a flat-to-flat width of 5.77mm (radius of 2.88mm) that extends 7mm deep from the bottom, ...
$fn = 51; module pulley() { module spur() { linear_extrude(height=19) polygon([[-1.5,-0.8],[-1.5,0.8],[0.35,0.55],[0.35,-0.55]],[[0,1,2,3,0]]); } difference() { union() { rotate_extrude() { square([9,8]); square([10,7]); translate([9,7]) circle(1); } cylinder(r=5...
glb/cad_45699b4d9b31.glb
Create an endstop holder for an 8mm rod. Start with a base composed of a cylinder with a radius of 7.3mm and a height of 10mm, using 20 facets. Attach a rectangular block measuring 15.5mm by 14.6mm by 10mm to this cylinder, centered on the cylinder's diameter. Add another rectangular block measuring 35mm by 2mm by 10mm...
include <configuration.scad> module endstop(){ outer_diameter = m8_diameter/2+3.3; screw_hole_spacing = 20; opening_size = m8_diameter-1.5; difference(){ union(){ translate([outer_diameter, outer_diameter, 0]) cylinder(h =10, r = outer_diameter, $fn = 20); translate([outer_diameter, 0, 0]) cube([15.5,outer_diam...
glb/cad_18634ac3c5c1.glb
Create a bidirectional open cable chain link by constructing a rectangular block with a width of 22.44mm, a length of 26.3mm, and a height of 13.29mm. From this main volume, remove a central rectangular slot that runs the full width of the block, measuring 4.5mm in length and 6.645mm in height, centered vertically. Thi...
include <new-chain.scad> $width = 22.44; $length = 26.3; $lkeep = 4.5; $height = 13.29; union() { difference() { nobar_chain(); translate([-$width/2,0,0]) #cube([$width*2, $lkeep, $height/2+.5]); } translate([0,0,$height/2+.5]) rotate([180,180,180]) import_stl("bendable_nobar...
glb/cad_537169c4398f.glb
Create a modular bracelet by constructing a ring with a circular inner diameter of 60mm. The main body should be a rotated profile with a total width of 15mm and a height of 10mm. Within this profile, carve out two diamond-shaped channels, each with a side length of approximately 7.07mm, positioned symmetrically to cre...
difference() { difference() { rotate_extrude(convexity=2, $fn=600)translate([30,0,0])rotate([0,0,-90])difference() { translate([-7.5,0,0])square([15,10]); union() { translate([10,6.5,0])rotate([0,0,45])square([10/sqrt(2),10/sqrt(2)], center=true); translate([-10,6.5,0])rotate([0,0,45])square([10/...
glb/cad_118c0e9c6619.glb
Create a wall mount bracket for a wire stripper. Start by constructing a base plate that is 3.5mm thick. On this base, center a vertical trapezoidal prism with a depth of 15mm; the trapezoid should have a bottom width of 7.75mm, a top width of 4.5mm, and a length of 13.5mm. To the left of this trapezoid, add two cyli...
include </mnt/compendium/DevLab/common/openscad/shapes.scad>; include </mnt/compendium/DevLab/common/openscad/nailsAndScrews.scad>; $fn = 128; wedgeWidthTop = 4.50; wedgeWidthBottom = 7.75; wedgeTopY = (wedgeWidthBottom-wedgeWidthTop)/2; wedgeLength = 13.50; wedgeDepth = 15.00; poleOffsetY = 31.00; poleOffsetX = 25....
glb/cad_4d33888313bc.glb
Create a Bowden Push-Fit Connector with a total height of 19.1mm. Start from the bottom with a cylinder 3.4mm in diameter and 2.7mm high, topped by a 0.8mm thick cylinder 5.7mm in diameter. Above this, place a hexagonal prism with a diameter of 11.3mm and a height of 6.6mm, starting at a height of 0.45mm. Transition ...
difference() { translate([0,0,6.5]) outergeometry(); translate([0,0,7.1]) cylinder(d=4,h=12.01,$fn=72); translate([0,0,-0.01]) cylinder(d=2.46,h=7.12,$fn=72); } module outergeometry() { translate([0,0,10.90]) cylinder(d=9.94,h=1.7,$fn=144); translate([0,0,9.90]) cylinder(d=5.30,h=1.0,$fn=144); transla...
glb/cad_33050e5f8975.glb
Create a Pinard Horn foetoscope by revolving a specific 2D profile around a central vertical axis with a rotational resolution of 60 facets. The profile consists of a hollow wall with a constant thickness of 2mm. Start the profile at the base with a flat circular disk. The base geometry begins at a radius of 20mm, ext...
module BezConicOffset(p0,p1,p2,steps=5,offset=[-1,-1]) { stepsize1 = (p1-p0)/steps; stepsize2 = (p2-p1)/steps; for (i=[0:steps-1]) { assign(point1 = p0+stepsize1*i) assign(point2 = p1+stepsize2*i) assign(point3 = p0+stepsize1*(i+1)) assign(point4 = p1+stepsize2*(i+1)) { assign( bpoint1 = point1+(point2...
glb/cad_0924f6975560.glb
Create a collection of battery models. For the AA battery, create a cylinder 14.5mm in diameter and 50.5mm high, topped with a smaller cylinder 5.5mm in diameter and 1mm high. For the AAA battery, create a cylinder 10.5mm in diameter and 44.5mm high, topped with a smaller cylinder 3.8mm in diameter and 0.8mm high. For ...
$fn=70; AA(); translate( v=[15,0,0]) AAA(); translate( v=[35,0,0]) C(); translate( v=[68,0,0]) D(); translate( v=[90,-0.5*(17.5-2*2),0]) 9V(); translate( v=[130,0,0]) 45V(); module AA() { battery_round(50.5, 14.5, 1.0, 5.5); } module AAA() { battery_round(44.5, 10.5, 0.8, 3.8); } module C() { battery_round(50, 26.2...
glb/cad_38f973bb59ac.glb
Create a Newtonian Reflecting Telescope chassis. Start by constructing the main body as a cylinder with a radius of 54mm and a height of 100mm, centered on the Z-axis. Inside this, create a hollow central chamber by removing a cylinder with a radius of 50mm and a height of 95mm, positioned 5mm above the bottom base. A...
mirror_diameter = 100; focal_length = 100; chassis_thickness = 8; telescope_thickness = mirror_diameter + chassis_thickness; telescope_height = 100; telescope_bottom_thickness = 5; chamber_height = telescope_height - telescope_bottom_thickness; groove_x = 4; groove_y = 2; groove_z = 30; eyepiece_diameter = 8; eyepi...
glb/cad_f78c0be5c4ce.glb
Create a protective case for a CP2102 USB to Serial Module consisting of two matching halves. The main body of each half is a rectangular shell with outer dimensions of 18.4mm width, 35.4mm length, and 9.4mm height, with a wall thickness of 0.9mm. For the lower shell, hollow out the center to create a cavity of 17.5mm...
bw=17.5; bl=34.5; bt=8.5; th= 0.45*2; st= th*2; label_font = "Stencil Gothic"; label = 1; print_upper=0; print_lower=1; module upper_screw(){ difference() { union() { cylinder(d=4,h=bt+st, $fn=32); translate([0,-2,0]) cube([2,4,bt+st]); } cylinder(d=2.4, h=bt, $fn=32); } } module lower_screw(){ ...
glb/cad_ecc55b1b4147.glb
Create a bearing bracket for a NEMA 17 motor. Start with a central rectangular block measuring 48.2mm wide, 25.4mm deep, and 48.2mm high. At the center of this block, create a cylindrical cutout that passes through the 25.4mm depth; this cutout consists of an outer diameter of 28mm and an inner diameter of 20mm to acco...
bearings_outer_radio = 14; bearings_inner_radio = 10; bracket_wall_width = 3; bracket_depth = 25.4; bracket_flaps = 25.4; bracket_bolts_diameter = 4; bracket_round_end = "yes"; module BearingForNemaCSG(nema_side, bearings_outer_radio, bearings_inner_radio) { side = nema_side+bracket_wall_width*2; if (bracket_round...
glb/cad_91dcc7c6b085.glb
Create a Test plate consisting of two flat rectangular layers. The primary base is a rounded rectangle measuring 40mm wide, 120mm long, and 4mm thick, with corner radii of 3mm. This base features four vertical holes, each 3mm in diameter and 4mm deep, positioned in a rectangular pattern centered at 60mm along the lengt...
module fcHoles() { translate([-15, -15, 0])cylinder(h = 4, d = 3, $fn = 36); translate([15, -15, 0])cylinder(h = 4, d = 3, $fn = 36); translate([15, 15, 0])cylinder(h = 4, d = 3, $fn = 36); translate([-15, 15, 0])cylinder(h = 4, d = 3, $fn = 36); } module plate(width, length, height, roundness) { u...
glb/cad_c64ea4ac251b.glb
Create an S-shaped hook consisting of two identical mirrored hook elements joined in the center. Each element is composed of a semi-circular ring and two straight legs of different lengths. For one element, create a half-ring with an internal diameter of 20mm, a thickness of 3mm, and a height of 5mm. Attach a long st...
module half_ring(diam, width, height) { difference() { cylinder (r=(diam + 2*width)/2, h=heigth, center=true); cylinder (r=diam/2, h=heigth+10, center=true); translate([0,-(diam+2)/2,0]) cube([diam+2*width+10, diam+2, heigth+10],center=true); } } module hook(diam, length, width, heigth) { d...
glb/cad_92e671582aaf.glb