Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Bed Calibrator Pattern centered on the origin. The overall footprint is a square with a side length of 180mm and a constant thickness of 1.2mm. First, construct a square frame by creating a solid 180mm square and removing a smaller 178.2mm square from its center. Next, add a grid of straight lines. Create ...
count = 4; drawCircles = true; drawHorizontalLines = true; drawVerticalLines = true; drawObliqueLines = true; side = 180; thickness = 1.2; module line(x, y, xmax, ymax, thickness, angle = 45) { translate([ x, y, - thickness / 2 ]) { rotate(angle) ...
glb/cad_cd86fd1ca860.glb
Create a transmitter case clip with a main body measuring 47mm in length, 6mm in width, and 19mm in height. At one end of the block, add a rounded cap formed by two spheres with 6mm radii centered at the top and bottom edges, connected by a cylinder with a 6mm radius and 7mm height. Carve a central guide channel throu...
module futabaclip() { difference(){ union(){ cube (size=[47,6,19]); translate ([47,0, 6]) sphere (r=6, $fn=30); translate ([47,0,19-6]) sphere (r=6, $fn=30); translate ([47,0, 6]) cylinder(r=6, h=7, $fn=30); } translate ([0,-9,0]) cube (size=[53,9,19]); translate([-...
glb/cad_754e32bcf25c.glb
Create a Barrel and Ball Puzzle consisting of a hollow barrel body, a threaded plug, and a marble. First, construct the barrel body. Create a revolved shape with a total height of 60mm. The barrel should have a bilge radius (maximum width) of 26mm and a head radius (top and bottom) of 20mm. The walls are formed by 14 ...
use <screwthread.scad> BodyOfBarrel("both"); translate ([bilgeRadius+headRadius+2,0,0]) EndOfBarrel(); translate ([0,bilgeRadius+17,0]) Plug(); tolerance=0.4; stepsize=15; marbleDiameter=15; holeRadius=(marbleDiameter-3)/2; height=60; headRadius=20; bilgeRadius=26; staves=14; hoopDepth=0.2; hmr=bilgeRadius+hoopDept...
glb/cad_76b929b501d0.glb
Create a Single Wall Spring Gear by starting with an involute gear that has 10 teeth, a circular pitch of 700, and a bore diameter of 4mm. The gear should have a flat profile with a height of 10mm. From the center of the gear, remove a circular hole with a radius of 2mm. Within the remaining body of the gear, between...
$fs = 0.4; $fa = 5; use <MCAD/involute_gears.scad> lw=0.4; function gearBaseRadius(bore_diameter=5, number_of_teeth=17, circular_pitch=700, clearance=0.2) = (number_of_teeth * circular_pitch / 180)/2 - 1/(number_of_teeth / (number_of_teeth * circular_pitch / 180)) - clearance; module mygear(bore_diameter=5, number_o...
glb/cad_57b71b7895c0.glb
Create a circular ring with an outer radius of 36mm, a height of 20mm, and a wall thickness of 2mm. The center of the ring should be hollow, leaving a cylindrical shell. Engrave the text "Circular Reasoning Works Because " around the outer vertical face of the cylinder. The letters should be positioned centrally alon...
circularText = "Circular Reasoning Works Because "; baseRadius = 36; height = 20; thickness = 2; engraving = true; useMonospace = false; $fn = 128; module cylinderWriter(t, radius, thickness, textHeight,monospace=false) { epsilon = 0.001; typeface = monospace? "Liberation Mono:style=Bold Italic": undef; ...
glb/cad_537864ee4e0e.glb
Create a square Batch Lithopane plate. Start by creating a solid square base that is 104mm by 104mm with a thickness of 0.4mm. On top of this base, center a square area measuring 100mm by 100mm. Within this central area, create a recessed square void that is 100mm by 100mm and 2.4mm deep. This results in a 2mm wide r...
use <utils/build_plate.scad> use <write/Write.scad> image_file = "001_01.dat"; build_plate_manual_x = 100; build_plate_manual_y = 100; picture_shape = "square"; picture_orientation = "horizontal"; pane_size = "large"; include_hole = "no"; hole_diameter = 10; layer_height = 0.2; number...
glb/cad_a2eec4388a57.glb
Create a machine foot by revolving a specific profile around a central axis. The resulting shape is a rotationally symmetric component with a total height of 10mm and a maximum base diameter of 25mm. The profile begins at the base with a flat bottom extending from a radius of 2.3mm to 12.5mm. From the base, the outer...
foot_diameter = 25; foot_hight = 10; screw_diameter = 4; washer_diameter = 12; bottom_thickness = 3; wall_thickness_ratio = 0.28; rounded_edges = true; foot_radius= foot_diameter/2; washer_radius= washer_diameter/2; screwhole_radius= screw_diameter/2; rotate_extrude($fn=200){ if (rounded_edges == true) { ...
glb/cad_c5fc4dd3c8f8.glb
Create a flower pot by starting with a main hollow cylinder that has an outer diameter of 19mm, a height of 18mm, and a wall thickness of 3mm. The bottom of this cylinder should be open. Around the upper rim of this cylinder, centered at a height of 8mm, attach a decorative belt. This belt is a thinner ring with an out...
module ball(h){ translate ([0,9,h]) sphere(r=0.7, $fn=30); } module bottom(h){ difference(){ color("red") translate ([0,0,-h]) sphere(r=9.61, $fn=30); translate ([0,0,-(h-0.75)]) color("red") cube([20,20,17.6], center=true); } } module belt(h){ difference(){ translate ([0,0,h]) cylinder(3,9,9,center=true, $f...
glb/cad_a5fd6b5722e2.glb
Create an Ortofon stylus mount consisting of a tapered head and a supporting leg. The head is a tapered block with a length of 14.6mm. Its back face is a rectangle 8.1mm wide and approximately 8.1mm high, with 1.6mm bevels on the corners. The head tapers forward to a front face that is 6.34mm wide and 6.25mm high. Att...
width_front = 6.34; width_back = 8.1; bevel = 1.6; height_front = 6.25; Pf_scale = width_front/width_back; height_back = height_front / Pf_scale; length = 14.6; leg_width = 5.2; leg_angle = 13; leg_height = 28; foo = 10; Pt = [ [ 0, -width_back/2], [ 0, width_back/2], [ length, width_front/2], [ length, -w...
glb/cad_0d33baec49a7.glb
Create an Ortofon stylus mount as a rectangular base with rounded corners. The base must be 79.2mm wide, 36.2mm long, and 11mm high, with a corner radius of 3.4mm. Cut five identical holes through the top of the base, spaced evenly along the width. Each hole is a trapezoidal prism with a height of 11mm. The shorter p...
width=79.2; length=36.2; height = 11; corner_radius=3.4; hole_w_1 = 6.9; hole_w_2 = 7.3; hole_l = 5.2; n_holes = 5; margin_x = width/(n_holes+1); offset_y = 10; spacing = (width-2*margin_x)/(n_holes-1); module hole() { translate([0,0,-1]) linear_extrude(height=height+2,convexity=2) polygon( points=[[-hole_w...
glb/cad_675dc05787a3.glb
Create a Customizable Tap Wrench designed to hold a square tap. Start by creating a central cylindrical sleeve with a height of 12mm. Inside this cylinder, carve out a centered square hole measuring 12mm by 12mm. To allow for flexibility, remove a small 1mm diameter hole from the center of the sleeve and at each of the...
tap_size = 12; tap_height = 12; flex_hole_diameter = 1; grip_length = 50; grip_width = 12; grip_height = 8; material_thickness = 3; roundness = 2; debug = false; resolution = 20; $fn = resolution; tapWrench( tap_size, tap_height, flex_hole_diameter, grip_length, grip_width, grip_height, material_thick...
glb/cad_1190cf9ac576.glb
Create a cable rail mount consisting of a vertical face and a horizontal top platform. The vertical face is a rectangular slab 47.3mm wide, 4mm thick, and 15mm high. Drill two 3.5mm diameter holes completely through this face: one positioned 5.65mm from the left edge and another 31mm further to the right. Attached to ...
$fn = 50; nema17_width = 42.3; nema17_screw_spacing = 31; nema17_screw_offset = (nema17_width-nema17_screw_spacing)/2; rail_width = 19.4; rail_thickness = 1.5; rail_inner_width = rail_width - rail_thickness; beam_thickness = 5; beam_length = nema17_width + .5 + rail_width; beam_overhang = 6; face_thickness = 4; fa...
glb/cad_a6d8bdc35576.glb
Create a Hypercube extruder mount starting with a main rectangular plate measuring 55mm in length, 10mm in width, and 65mm in height. At the top of this plate, center a vertical pillar that is 10mm wide and 40mm tall, featuring a central vertical hole with a diameter of 3mm. On the top surface of the main plate, cente...
height = 65; length = 55; width = 10; holesize = 3; Cheight = 35; Cwidth = 10; Cdepth = 5; mount_h_distance = 26; groove_large = 16; groove_small = 12; groove_large_h = 7; groove_small_h = 6; bottom_groove_h = 3.1; mount_width = 30; mount_height = 50; p_height = 40; p_width = 10; p_hole = 3; differenc...
glb/cad_9a71fbc6cf41.glb
Create a customizable organizer box with outer dimensions of 230mm width, 160mm length, and 30mm height. The box features a base plate and outer walls that are 0.8mm thick. The interior is divided into a grid of chambers. The grid consists of 6 columns and 4 rows. Each cell in the grid is defined by whether it has a r...
width = 230; length = 160; height = 30; walls = 0.8; base = true; N = 0; R = 1; B = 2; RB = 3; BR = 3; grid = [ [ RB, RB, RB, B, RB, R ], [ RB, RB, RB, B, RB, RB ], [ RB, RB, RB, B, B, RB ], [ RB, RB, RB, B, B, RB ], ]; gridR = reverse(grid); unitsX = len(grid[0]); unitsY = len(grid); unitX = ...
glb/cad_44e5ba4ff0b1.glb
Create a Kossel Mini Custom Z Probe Retractable. The main body consists of two intersecting vertical cylinders, each with a radius of 6mm and a height of 30mm, centered on the Z-axis. Integrate two rectangular blocks measuring 12mm by 6mm by 30mm and 6mm by 12mm by 30mm into the structure to flatten the sides. Add a c...
include <configuration.scad>; use <microswitch.scad>; height = 30; height2 = 30; tunnel = 3.4; face_offset = 6; foot_side = 2; foot_forward = 10; module foot() { difference() { union() { difference() { translate([12.5, 0, 0]) rotate([0, 0, -60]) translate([-12.5, 0, 1]) rotate([0, 0, ...
glb/cad_07fcfd0f1481.glb
Create a customizable plug strip holder designed to slide onto a shelf. Start by constructing a U-shaped base structure with a total height of 10mm. The structure consists of two parallel vertical walls, each 4mm thick, separated by a gap of 37mm to accommodate the shelf thickness. The first wall is a rectangular block...
$fn=36; Thickness_of_shelf=37; Length_of_fork=30; Plug_x=26; Plug_y=52; Thickness_of_structure=4; Extrusion_height=10; difference() { union() { cube([Thickness_of_structure,Length_of_fork,Extrusion_height]); translate([Thickness_of_shelf+Thickness_of_structure,0,0]) cube([Thickness_of_structure,Length_of_fork,Extrus...
glb/cad_e355fa6d7c4d.glb
Create a customizable electronic PCB case consisting of a hollow rectangular box and a matching lid. The main body is a rounded rectangular prism with a width of 40mm, length of 60mm, and height of 20mm. The exterior corners should have a radius of 2mm. The walls of the box must be 1.5mm thick. The interior of the box...
$fn=30; width=40; length=60; height=20; radius=2; thickness=1.5; rhole=1.5; boardw=25; boardl=40; boardh=5; module roundbox(w,l,h,r) { hull() { for(z=[r,h-r]) for(y=[r,l-r]) for(x=[r,w-r]) translate([x,y,z]) sphere(r=r); } } module case() { difference() { union() { difference() ...
glb/cad_76d3676ee44d.glb
Create a pivot test model consisting of three stacked square plates with a central rotating pillar. Start by creating a central vertical cylinder with a diameter of 5mm and a total height of 8.9mm. Construct three square plates, each with a thickness of 2.5mm and an outer edge length of 15mm. Position the first plate...
cubeEdgeSize = 5; sectionHeight=2.5; pivotPillarSize =5; gap=0.4; difference(){ translate([-cubeEdgeSize/2-gap-pivotPillarSize,-cubeEdgeSize/2-gap-pivotPillarSize,-sectionHeight*0.5])cube([cubeEdgeSize+2*pivotPillarSize,cubeEdgeSize+2*pivotPillarSize,sectionHeight]); cylinder(sectionHeight,pivotPillarSize+gap,pivotPil...
glb/cad_1e9182dbed9d.glb
Create a modular battery holder with a rectangular body measuring 100mm in length, 22mm in width, and 15mm in height. The body should feature a base thickness of 0.8mm. Within this body, carve out six cylindrical holes to hold AA batteries. Each hole must have a diameter of 14.8mm (14.5mm cell diameter plus a 0.3mm t...
e = 1 / 1024; ee = 2 * e; bevel_size = 0.8; notch_depth = 2; notch_width = 10; body_length = 100; body_height = 15; bottom_thickness = 0.8; module bevel(bevel_size) { intersection() { square(2 * bevel_size, center = true); rotate(45) square(2 * bevel_size, center = true); } } module notch(be...
glb/cad_9264d8bf0ddd.glb
Create a collar stay with a thickness of 0.8mm, a width of 10mm, and a total length of 55mm. The main body is a rectangular slab with one end perfectly semicircular, having a radius of 5mm. The opposite end tapers to a point. To form this point, create a centered cylinder with a radius of 1.5mm and a height of 0.8mm, t...
use <writescad/write.scad> width=10; length=55; thick=0.8; initials=""; pointangle=15; pointrad=1.5; pointoff=((width/2)/tan(pointangle))-pointrad/sin(pointangle); difference() { union() { translate([0,length-width/2,0]) cylinder(r=pointrad,h=thick,$fn=100); translate([-width/2,length-width/2-pointoff,0]) c...
glb/cad_bd65dead8d9c.glb
Create a pivoting angle grinder stand consisting of a base and a grinder bracket. First, construct the base: start with a rectangular plate 34mm wide, 80mm long, and 6mm thick. At each end of the plate's length, create a vertical support pillar. Each pillar is a block 34mm wide and 55mm high, with the top rounded by ...
base=true; baseheight=55; basethickness=6; baseclear=7; baselen=80; boltlen=34; clearance=0.5; holerad=8.4 / 2; cenpivot_w=16; pivspace=5; pivrad=18; bandheight=2*pivrad; holdflange=10; flangew=8; gap=3; grinderrad=35.5; thickness=3; flangehole=2.2; M4_tap_radius = 3.3 / 2; M4_clearance_radius = ...
glb/cad_5c410c42eb38.glb
Create a KnightBot torso by combining several geometric primitives. Start with a central body formed by a hull connecting a cylinder with a radius of 15mm and height of 9mm at the base to a cylinder with a radius of 4mm and height of 9mm at the top. Add a small cylinder with a radius of 3.2mm and height of 2mm centered...
use <ball_joint.scad>; module torso(supports=true){ offset= 7.25; translate([2,offset,0]) rotate([0,0,90]) ball(); translate([2,-offset,0]) rotate([0,0,-90]) ball(); for(surfacepindirection=[-1,1]){ translate([0,8*surfacepindirection,-17.4]) cube(size=[3,5,1], center=true); } if (sup...
glb/cad_bb515f62154d.glb
Create a plier holder consisting of a vertical hangar plate and a horizontal base plate, both 4mm thick. The hangar plate is a composite shape formed by a rectangle 37mm wide and 35mm high, with the top edge rounded into a semi-circle of radius 6.65mm. Center a circular hole with a 3.3mm diameter through the top of thi...
plate_thickness = 4; hole_diameter = 3.3; top_margin = 5; front_margin = 3; total_height = 35; handle_diameter = 12; handle_spacing = 25; handle_clearance = 2; reinforce = 1; hole_radius = hole_diameter / 2; handle_radius = handle_diameter / 2; base_width = handle_diameter + handle_spacing; base_depth = handle...
glb/cad_f6f02d0bee0a.glb
Create a Jaipur game box consisting of an outer shell and an internal insert. The outer shell is a rectangular box with walls 1.5mm thick. The internal dimensions are based on a card deck width of 57.5mm, height of 80mm, and a stack thickness of 18mm. Construct the insert by creating a main body and subtracting specif...
num_tokens = 60; card_and_token_extra_margin = 1; extra_margin = card_and_token_extra_margin; box_wall_thickness = 1.5; rail_thickness = box_wall_thickness/2; token_thickness = 1.1; token_diameter_ = 22.75; num_token_pouches = 3; token_diameter = token_diameter_+ extra_margin; token_height = (token_thickness *...
glb/cad_77f02d68543c.glb
Create a headphone support consisting of a rectangular base and two vertical walls. Start by creating a base plate that is 5mm wide, 8mm deep, and 1mm thick. From the center of this base, remove eight small rectangular slots, each 2mm wide, 0.7mm deep, and 2mm high, arranged in a radial pattern every 45 degrees around ...
cube([5,0.5,4]); translate([0,7.5,0]){ cube([5,0.5,4]); } translate([0,-2,0]){ cube([1,.5,1]); } translate([4,-2,1]){ cube([1,2,.5]); } translate([4,-2,0]){ cube([1,.5,1]); } translate([0,-2,1]){ cube([1,2,.5]); } difference() { cube([5,8,1]); translate([2.4,3.9,0.5]){ for (i=[0:8]) { rotate ([0,0,i*360...
glb/cad_4caf124b05f5.glb
Create a 1v dome hub by starting with a cylinder that has a radius of 10mm and a height of 10mm. This cylinder should have a facet resolution of 36 sides. Remove five identical holes from this cylinder to create slots for struts. Each hole must be a cylinder with a radius of 1.75mm and a length of 17.5mm, centered alon...
$fn=36; base=10; holes=5; difference() { cylinder(r=base, h=base); for(i=[1:holes]) { translate([0,0,base/16]) rotate([90 - 31.72,0,360/holes*i]) translate([0,0,base*1.25]) cylinder(r=1.75, h=base*1.75, center=true); } }
glb/cad_10d9b246917e.glb
Create a 1v dome hub by starting with a sphere that has a radius of 8mm and a facet resolution of 24. Remove a central vertical cylinder with a radius of 1.75mm and a height of 64mm to create a hollow core. To create the connection points for five struts, carve five identical holes into the sphere. Each hole should be ...
$fn=24; base=8; rods=5; rod=3.5; angle=31.72; gap=9.5; difference() { base(); holes(); } module base() { difference() { sphere(base); translate([0,0,-base*1.25]) { cylinder(r=base*2, h=base*2, center=true); cylinder(r=rod/2, h=base*base); } } } module holes() { for (i=[0:rods]) { rotate([0,0, i*...
glb/cad_108082fea2a8.glb
Create a peristaltic pump lid consisting of a square mounting plate and a central cylindrical rim. Start with a square base measuring 58mm by 58mm with a thickness of 3mm. In the center of this base, create a raised circular rim with an outer radius of 22.5mm (calculated as the house inner radius of 25mm minus a 0.5m...
use <library.scad>; use <oshw.scad>; $fn = 128; mode = 8; pipe_rad = 0.5*5.5; roller_middle_rad = 0.5*16.2; roller_top_rad = 0.5*15; roller_height = 8; roller_hole_rad = 0.5*3.6; roller_count = 4; house_inner_rad = 0.5*50; house_outer_rad = 0.5*58; clamp_width = 10; pipe_clearance = 1.5; fit_clearance = 0.5; ro...
glb/cad_549b358c1d60.glb
Create a Webcam Telescope Adapter consisting of a hollow cylindrical tube. The tube must have an outer diameter of 24mm and an inner diameter of 20mm, with a total height of 20mm. The walls should be uniform throughout the height of the cylinder.
dxf = "adapter.dxf"; module o1() { diameter = 24; diameter_inner = 20; diameter2 = 31; tube = 20; union() { difference() { cylinder(h = tube, r = diameter/2); translate([0, 0, -1]) cylinder(h = tube+2, r = diameter_inner/2); } difference() { translate([-16,-19,0]) dxf_linear_extrude( file = dx...
glb/cad_39a321c3444c.glb
Create a Stepper Motor Indicator consisting of a central hub, radiating spokes, and an outer ring. Start by creating a central cylinder with a diameter of 10mm and a height of 3mm. On top of this cylinder, add a second, smaller cylinder for the magnet mount with a diameter of 8mm and a height of 2mm, positioned coaxial...
ringDiameter = 30; ringThickness = 3; ringDepth = 3; innerDiameter = 10; mountDiameter = 8; mountDepth = 2; spokeThickness = 2; spokeDepth = 2; smoothness = 60; spokeCount = 3; stepperIndicator(); module stepperIndicator() { ring(); center(); spokes(); } module ring() { ringR...
glb/cad_ca5a24521feb.glb
Create a car door electric window wheel runner. Start with a main wheel cylinder that has a diameter of 27.7mm and a thickness of 7.4mm. Centered on top of this wheel, add a cylindrical hub with a diameter of 17.7mm and a height of 6.8mm. Create a central vertical hole through both the hub and the wheel with a diamete...
RES=64; tol=0.3; window_wheel_dia =28-tol; window_wheel_thickness = 7.7-tol; window_wheel_hub_dia = 9 + tol; window_wheelpeg_dia = 18 - tol; window_wheelpeg_height = 6.8; window_wheelpeg_hub_dia = 11.8; metal_peg_dia = 2.8; difference() { union () { cylinder(h=window_wheel_thickness,r=window_wheel_dia/2,$f...
glb/cad_a762a3eaa9ab.glb
Create a car door electric window wheel runner fix. Start with a main wheel cylinder that has a diameter of 27.7mm and a thickness of 7.3mm. Centered on this wheel, add a vertical cylindrical hub (peg) with a diameter of 17.7mm and a height of 6.8mm. Create a central hole passing through the entire assembly with a dia...
RES=64; tol=0.3; window_wheel_dia =28-tol; window_wheel_thickness = 7.6-tol; window_wheel_hub_dia = 9 + tol; window_wheelpeg_dia = 18 - tol; window_wheelpeg_height = 6.8; window_wheelpeg_hub_dia = 11.8; metal_peg_dia = 2.8; difference() { union () { cylinder(h=window_wheel_thickness,r=window_wheel_dia/2,$f...
glb/cad_f703ad92a66c.glb
Create a file handle with a total length of 70mm. The main body is composed of two stacked conical sections: a base cylinder that transitions from a diameter of 7.5mm to 15mm over a height of 49mm, followed by a shorter top section that tapers from 15mm down to 10mm over the remaining 21mm. Add a series of longitudina...
$fn=50; size = [200, 17.5, 3.5]; right_width = 3.5; left_width = 2.5; taper_len = 40; taper_tip_height = 2.25; handle_diameter = 15; handle_length = 70; handle_main_height = handle_length * 0.7; handle_top_taper_height = handle_length * 0.3; handle_ridge_size = 1.5; pts = [[0, size.y/2 - left_width/2], ...
glb/cad_e7af705c4f22.glb
Create a Biohazard Keyring by starting with a circular base 35mm in diameter and 6mm thick. On the top edge of this base, add a protruding ring with a cross-section radius of 3mm, centered 17.5mm from the middle of the base, to serve as the attachment point. Cut a vertical hole 4mm in diameter through the base at a pos...
keyring(); module keyring() { $fn = 50; difference() { difference() { union() { rotate_extrude(convexity=10) translate([17.5, 0, 0]) circle(r=3); linear_extrude(height=6, center=true) circle(r=17.5); } linear_extrude(height=6, center=true) translate([0,12,0]) circle(r=2); } translate([0,0,3...
glb/cad_fbd2a8ba6ecc.glb
Create a set of six hexomino tiling puzzle pieces. Each piece is composed of six connected cubes, where each cube has a dimension of 10mm x 10mm x 10mm. The pieces are designed to fit together to tile a 6x6 square array. To ensure the pieces can be easily separated, incorporate a small gap of 0.5mm between the individ...
include <six_all_different.scad>; make_six(23,25,27,30,33,34); cube_size = 10; overlap = .5; module make_one(num) { makey(num); } module make_five(na,nb,nc,nd,ne) { translate([-7*cube_size,cube_size,0]) makey(na); translate([-4.5*cube_size,-2*cube_size,0]) makey(nb); translate([-3*cube_s...
glb/cad_f02b0236eca2.glb
Create a customizable one-piece watch band. The main body is a curved strap with a width of 20mm and a thickness of 1.2mm, forming a partial ring with a radius based on a total band length of 145mm. The strap is extruded along a circular path for 270 degrees. At both ends of the strap, create cylindrical terminals wit...
bandWidth = 20; bandLength = 145; bandThickness = 1.2; endDiameter = 4.3; pinDiameter = 2; windowOffset = 2.4; windowHeight = 3; chamfer = 0.2; watchWearHand = 0; resolutionStrap = 192; $fn=24; bandRadius = bandLength*0.212; filletAngle = 90*(bandThickness/endDiameter); filletRadius = 1*bandRadius*(bandThi...
glb/cad_60b7900ddb00.glb
Create a tumbler wedge designed to hold a glass at a 45° angle. Start by creating a solid base that is a cylinder with a radius of 35mm and a height of approximately 31.5mm. From this base, remove a cylindrical cutout to accommodate the glass. This cutout must be a cylinder with a radius of 35mm and a height of 63mm,...
glass_diameter = 70; glass_height = 90; angle = 45; wedge_width = 70; wedge_length = 70; wedge_cutout_width = 10; preview = 1; w = 1.8; p = 1.2; c = 0.4; r_ge = glass_diameter/2 + c; r_w = glass_diameter/2 * wedge_width/100; tau = 2 * PI; gh = glass_height*wedge_length/100; xy_factor = 1/tan(angle); z_facto...
glb/cad_e4dfb3fea5b4.glb
Create a Doofer Bush, which is a hollow cylindrical mounting boss. Start by creating a main cylinder with an outer diameter of 5mm and a height of 10mm. Remove a smaller concentric cylinder from the center to create a hole with a diameter of 2.5mm that passes completely through the height of the object.
translate([-40,0,0]) { bolt(); translate([0,0,-5]) nut(); } translate([-10,0,0]) { difference() { cube([10,10,10],true); translate([0,0,5]) #bolt(); #nut(); rotate([0,0,180]) #nut_side_access(nut_width=6,y=20,nut_thickness=2); } } translate([10,0,0]) screw(); tran...
glb/cad_dda994f947d7.glb
Create a Doofer Bush by combining two centered rectangular blocks and removing specific cylindrical voids. First, create a central vertical block measuring 20mm by 20mm with a height of 24.7mm. Attach this to a wider, flatter base block measuring 53.5mm by 20mm with a height of 4mm, ensuring both are centered on the sa...
use <basic_fixings.scad>; doofer_bush(); module doofer_bush(x1=20, y1=20, z1=24.7, x2=53.5, y2=20, z2=4,offset=31.75) { difference() { doofer_bush_solid(x1,y1,z1,x2,y2,z2); # clearance(x1,x2,z1,z2,offset); } } module doofer_bush_solid(x1,y1,z1,x2,y2,z2) { translate([0,0,z1/2]) cube([...
glb/cad_4203f1dc77d1.glb
Create a car cup holder for an e-cigarette by constructing a truncated cone with a height of 50mm, a bottom radius of 34mm, and a top radius of 37mm. From the center of this cone, remove a rectangular vertical slot to create a cavity for the device. This cavity should have a width of 23mm and a length of 36mm, with all...
Cone_Height = 50; Upper_Radius = 37; Lower_Radius = 34; Ecig_body_Width= 23; Ecig_body_Length = 36; Bottom_Wall_Height = 10; Corner_radius = 2; difference (){ translate([0,0,0]) cylinder( h = Cone_Height, r2 = Upper_Radius , r1 = Lower_Radius , $fn=300); roundedRect([Ecig_body_Width, Ecig_body_Length,Cone_Height ...
glb/cad_e728d98d2bba.glb
Create a Raspberry Pi Camera Bed Mount consisting of four distinct parts: a camera body, a lid, a mounting post, and a bed mounting arm. First, create the camera body as a rectangular housing with 2mm walls. The interior should be a cutout designed to fit a PCB of 26mm by 25mm by 1mm, featuring four internal pins to s...
cnf_part = "all"; cnf_lidscrew = 1; cnf_flip = 0; cnf_armtype = "mk3"; cnf_armlength = 80; cnf_armrotation = 0; cnf_postheight = 26; $fn = 70; cnf_walls = 2; cnf_screw = 4; cnf_screwhead = 6; cnf_drill = 3; module ccube(v) { translate([0, 0, v.z/2]) cube(v, true); } module ccylinder_y(h, d) { trans...
glb/cad_0236ec6ca923.glb
Create an RC Club Frequency Key consisting of a main rectangular plate with a smaller rectangular tab extending from one side. Start by creating a base plate 85mm long, 45mm wide, and 2mm thick, with all four corners rounded to a 5mm radius. On this base plate, center a circular hole with a 10mm radius that passes comp...
difference(){ difference(){ roundedRect([85,45,2], 5, $fn=40); translate(v = [20,0, -3]){ cylinder(h = 6, r = 10); } } translate(v= [-40,-20,0]){ } } translate(v = [-40,0,1]){ roundedRect([5,45,3], 5, $fn=40); } translate(v = [-40,-25,1]){ cube(size = [5,50,3]); } translate(v = [-20,0,1]){ roundedRe...
glb/cad_183bbd479469.glb
Create a Moebius Spiral by extruding a square cross-section along a circular path with a radius of 25mm. As the square is extruded to form a complete 360-degree ring, rotate the cross-section around its own center by a total twist angle of 180 degrees. Scale the square cross-section by a factor of 0.66. Ensure the fina...
shape = "square"; m_radius = 25; twist_angle = 180; scale_factor = 0.66; quality = 300; $fn = quality; qsf = 1; square_pts = [ [-10/qsf*scale_factor,-10/qsf*scale_factor], [-10/qsf*scale_factor,10/qsf*scale_factor], [10/qsf*scale_factor,10/qsf*scale_factor], [10/qsf*scale_factor,-10/qsf*scale_fact...
glb/cad_37f27bf843b1.glb
Create a Magic Folding Cube consisting of eight identical hinged boxes. Each individual box is a cube with a side length of 100mm. To allow for movement and assembly, maintain a gap of 2mm between the boxes. For each box, create a central hinge mechanism. This involves removing a cylindrical core with a diameter of 12...
$fn = 100; w1 = 100; s1 = 2; c1 = 10; e1 = 2; c2 = w1/3.1; b1 = 5; module ClipBox() { difference(){ translate([s1/2, s1/2, 0]) cube(w1); translate([0, 0, -10]) cylinder(w1+20, c1+e1, c1+e1); } difference(){ union(){ translate([0, 0, w1/2-c2/2]) cylinder(c2, c1, c1...
glb/cad_067529fed077.glb
Create a Parametric Computer Case designed for Mini-ITX components. Start by constructing the main body as a hollow rectangular box with a wall thickness of 1mm. The exterior dimensions are determined by the maximum length and height of the internal components, including a GPU and PSU. On the interior base, place moth...
include <defaults.scad>; include <pci_bracket.scad>; include <fan.scad>; include <vent.scad>; include <psu.scad>; include <heatsink.scad>; include <gpu.scad>; include <motherboard.scad>; include <power_switch.scad>; include <front_panel.scad>; insert_r = 5.3/2+0.1; insert_h = 5.0; module motherboard_standoff() { ...
glb/cad_111f37a3df98.glb
Create an anti-vibration foot for a computer case. Start by creating a cylinder with a bottom radius of 15mm, a top radius of 13mm, and a height of 10mm. Remove a central cylindrical core from this shape, where the core starts 2mm above the base and has a radius of 11mm, extending through the top of the foot. To finish...
feet_r = 15; feet_h = 10; wall = 2; color("Black", 1.0) difference() { minkowski() { difference() { $fn = 40; cylinder(r1 = feet_r, r2 = feet_r-wall, h = feet_h); translate([0, 0, wall]) cylinder(r1 = feet_r-wall, r2 = feet_r-wall*2, h = feet_h); } sphe...
glb/cad_86ac0b3b8a69.glb
Create a Pololu Zumo 32U4 Game Face with a thickness of 0.5mm. The main body is a rectangular plate measuring 98mm wide by 38.7mm high. Center a mouth cutout on the bottom edge. The mouth is 35mm wide and 5mm high, featuring a "frown" design created by subtracting two overlapping rectangles rotated at 14 degrees from...
$fn=90; face_x=98; face_y=38.7; led=5.5; led_box=10; led_box_h=3.5; screw=2.5; eye_gap=50; eye_x=eye_gap/2; eye_y=face_y-5.2; screw_gap=30; screw_x=screw_gap/2; screw_y=face_y-7; ring_center=eye_x-screw_x+3; ring_thick=2; ring_outer=ring_center+ring_thick/2; ring_inner=ring_center-ring_thick/2; ring_angle=37; pa...
glb/cad_34b799a45758.glb
Create a Pololu Zumo 32U4 Shell Cover Back. Start with a main rectangular base measuring 69mm in width, 85mm in depth, and 12mm in height. Hollow out the center of this base by removing a smaller rectangular volume, leaving a wall thickness of 0.6mm on all sides. In the center of the top surface, create a rectangular ...
$fn=90; wall=0.6; back_x=69; back_y=85; back_z=12; bezel_x=40; bezel_y=23.5; bezel_z=2; screen_x=31; screen_y=14; screen_x=bezel_x; screen_y=bezel_y; bezel_y_offset=-2; pad=0.1; padd=pad*2; button=4; button_flex=button*1; button_d=9; button_gap=1; button_y=7.5; button_spacing=12.5; a=5; b=a+button_spacing; c=b+but...
glb/cad_08ebbc173641.glb
Create a parametric electronic box with a removable lid. The main enclosure is a hollow rectangular shell with a wall thickness of 2mm. The outer dimensions are 75.5mm in width (X), 54.5mm in depth (Y), and 14mm in height (Z). The box features a bottom floor with a thickness of 2mm. To support an internal PCB, create...
part = 0; wt = 2; lss = [ 2, 2, 2 ]; is = [ 71.5, 50.5, 10 ]; oc = 1; tim = .5; tg = 0; tgwt = 5; lh = []; rh = []; fh = [ [ 18, 12, 60.5, false, wt + lss[2] ] ]; bh = []; ts = [ wt + oc * ( is[0] + wt ), is[1] + 2 * wt, wt + lss[2] + is[2] + 2 * wt ]; someholes = (len(lh) + len(rh) + len(fh) +...
glb/cad_060d23616642.glb
Create a parametric LCD frame for a 16x2 display. Construct a rectangular hollow frame with outer dimensions of 75mm by 33mm and a thickness of 6mm. The frame walls should have a height of 15mm. Round all exterior corners with a radius of 3mm. At each of the four corners, integrate a cylindrical mounting post. Each p...
$lcd_rows =2; $lcd_s = 4; $lcd_section = 6; $hole_h = 15; $hole_s = 3; $fn=60; $radiuscorner = 3; $lcd_w = (($lcd_rows == 2)? 75: 93); $lcd_h = (($lcd_rows == 2)? 33: 55); $width_holes = $lcd_w; $height_holes = $lcd_h; $w_holes = $width_holes/2; $h_holes = $height_holes/2; $hole_d = $hole_s+5; module framehole...
glb/cad_c8e787b0ef60.glb
Create a 3D model of a two-story house with a basement and an attached garage. For the basement, create a rectangular foundation with exterior walls 6mm thick and 10mm high. Add a series of rectangular window openings and two door openings on the south and west faces. For the first floor, construct a layout with a m...
garageY=46.5+10/12; garageH=10; transom=false; Xexplode=0; Zexplode=0; print=0; position = (print>0) ? 2 : 1; ftperinch=10; floorT= 12/12; color1 = "tan"; color2 = [85,107,.75*47]*.75/255; carpetcolor = "beige"; interiorwallcolor = "bisque"; woodcolor = "saddlebrown"; vinylcolor = "burlywood"; hearthcolor = [60/255...
glb/cad_0c6ea5ecc75c.glb
Create a Crayon Sidewalk Chalk Mold consisting of two matching halves. First, design a negative cavity shaped like a crayon: a main cylinder with a diameter of 17mm and a height of 75mm, topped with a conical tip that transitions from the 17mm diameter down to a 6mm diameter over a height of 15mm. To create the mold ...
cr_od = 17; cr_body_ht = 75; cr_cyl_ht = 15; fudge = 0.01; top(); rotate([0,0,0]) translate([30,0,0]) bottom2(); module crayon() { union() { cylinder(r=cr_od/2, h=cr_body_ht, center=true); translate([0,0,cr_body_ht/2-fudge]) cylinder(r1=(cr_od-4)/2,r2=3,h=cr_cyl_ht, center=false); } } module bottom() { differ...
glb/cad_cf7ea160440b.glb
Create a lens holder by starting with a solid cube that is 60.4mm wide, 50.4mm deep, and 25mm tall. Center the cube on the origin. Carve a semicircular slot into the top of the block to hold the lens. This slot should be a cylinder with a diameter of 50.4mm and a depth of 3mm. Directly beneath this slot, create a larg...
diam = 50.4; lrdiam = 46.5; thick = 3.0; lh = 20; eps=0.05*1; $fa=5*1; $fs=0.2*1; rotate([90,0,0]) lensbracket(diam, thick, lh); wthick = 5; module lensbracket(d, t, lh) { translate([0,0,1]) scale([1,1,1]) difference() { union() { translate([-d/2-wthick,-(d/2)-wthick,2]) cube([d+(wthick*2),d...
glb/cad_7372ee768aa8.glb
Create a Carriage Attachment for a Zonstar P802QR2. Start with a main rectangular body 40.56mm wide, 26.9mm high, and 6.0mm thick. At the bottom, add a fixing inset that is 40.56mm wide and 3.5mm high, with a recessed center section 1.25mm thick and 2mm high. On the left side, integrate a cylindrical tool attachment h...
screw_dia = 3; screw_hole_dia = screw_dia + 0.2; body_width = 40.56; body_height = 26.9; body_thickness = 6.0; fixer_height = 3.5; fixer_thickness = 2.0; fixer_inset_thickness = 1.25; fixer_inset_height = 2; screw_a_x = 12.4; screw_a_z = 22.9; screw_b_x = 23.21; screw_b_z = screw_a_z; attach_hole_x = -7.0; attach_h...
glb/cad_09e6fb6064e9.glb
Create a dowel pad by constructing a thick-walled hollow cylinder. The outer boundary should be a cylinder with a radius of 11.95mm and a height of 17mm. Centered perfectly along the vertical axis, remove a smaller cylindrical core with a radius of 3.55mm and the same height of 17mm to create a uniform circular hole pa...
$fn = 50; noizzle_correction = 1.1 / 2; exterrnal_radius = 25/2 - noizzle_correction; internal_radius = 6/2 + noizzle_correction; depth = 17; difference(){ cylinder(depth, exterrnal_radius, exterrnal_radius, true); cylinder(depth, internal_radius, internal_radius, true); }
glb/cad_7e32b8bdfce6.glb
Create a handlebar clamp for a flashlight by designing a solid body that merges two cylindrical profiles. First, create a primary outer volume by forming a convex hull between two cylinders: one with a radius of 0.625mm and the other with a radius of 0.625mm, offset from each other. Within this volume, remove a central...
which_end = 1; flashlight_radius = .96/2; handlebar_radius = 1/2; gap_size = .7; module clamp() { difference() { hull() { translate([.5,0,0]) cylinder(r=flashlight_radius+.125, h=1, $fn=360); translate([-.9,.5,.5]) rotate([90,0,0]) cylinder(r=handlebar_radius+.125, h=1, $fn=360); } union() { ...
glb/cad_0725f6962472.glb
Create a Mendel Circuit Board Spacer by starting with a solid cube that measures 24mm in width, 24mm in depth, and 8mm in height. Remove four vertical cylindrical holes from this cube to create mounting points. Each hole must have a radius of 2mm and a height of 10mm to ensure they pass completely through the 8mm thick...
difference () { cube(size=[24,24,8]); translate(v=[6,6,-1]) cylinder(r=2,h=10); translate(v=[18,6,-1]) cylinder(r=2,h=10); translate(v=[6,18,-1]) cylinder(r=2,h=10); translate(v=[18,18,-1]) cylinder(r=2,h=10); }
glb/cad_ff8b0d6e09f0.glb
Create a spool holder with a filament loop. Construct two wheel plates, each consisting of a rectangular base with a height of 5mm and a width of 10mm. On each plate, create a cutout for a ball bearing with an outer diameter of 22mm and a width of 7mm. Position the plates 150mm apart to accommodate a spool width of 88m...
part="demo"; spoolw=88; bhd=150; bew=7; bwd=22; bwi=8; bwi2=11; bwc=10; sscm=0.05; wcm=0.20; wcbm=0.15; wcim=-0.05; wbm=0.05; flcm=0.15; spoolww=4; spoold=216; spoolhoff=7; spooldd=spoolw-spoolww; bwcm=1; bht=1.6; bhp=1; bhw=bwc+bwcm*2+bht*2; bbb=15; bsh=5; wh=20; whd=8; whdm=0.2; whh=16; wh...
glb/cad_d41b83de7b91.glb
Create an Extruder Idler Bracket by starting with a solid rectangular block measuring 23mm in width, 35mm in depth, and 10mm in height. Remove a horizontal cylindrical tunnel with a radius of 4mm that runs through the center of the block along the depth axis, positioned 17.5mm from the front and 8mm from the bottom. Wi...
difference () { cube(size=[23,35,10]); translate(v=[-1,17.5,8]) rotate([0,90,0]) cylinder(r=4, h=25); translate(v=[7.5,17.5,8]) rotate([0,90,0]) cylinder(r=11.5, h=8); translate(v=[5,4.5,-1]) cylinder(r=2,h=12); translate(v=[18,4.5,-1]) cylinder(r=2,h=12); translate(v=[5,30.5,-1]) cylinder(r=2,h=12); translate(v...
glb/cad_84d536af13c6.glb
Create a linear guide rails endstop holder with a total depth of 15mm. The main body is a rounded rectangular block with a width of 46mm and a height of 46mm, featuring fully rounded corners with a radius of 15mm. Cut a semi-circular channel into the bottom of the block to accommodate a rail, with a radius of 15mm an...
use <../MCAD/nuts_and_bolts.scad> use <../MCAD/2Dshapes.scad> beamR = 30/2; holderW1 = 10; holderW2 = 26; holderH = 15; sideW = 8; width = beamR*2+sideW*2; height = beamR*2+holderH+sideW; depth = 15; rounding = [width/2,width/2]; boltR = 3/2; nutSize = 3; nutD = 2; endstopHoleDis =...
glb/cad_c8ef97d4312e.glb
Create an EasyFlow HotEnd model by stacking a series of concentric cylinders along a central vertical axis. Start by placing a cylinder with a radius of 1mm and a height of 10mm at the base, centered on the origin. Directly above this, add a cylinder with a radius of 0.8mm and a height of 10mm. Above that, place a cyli...
translate([0,0,10]) %cylinder(r1=6,r2=6,h=50,center=true); translate([0,0,15]) cylinder(r1=3,r2=3,h=20,center=true); translate([0,0,5]) cylinder(r1=2,r2=2,h=30,center=true); translate([0,0,0]) cylinder(r1=1,r2=1,h=30,center=true); translate([0,0,30]) cylinder(r1=6,r2=6,h=10,center=true); translate([0,0,26]) cylinder(r...
glb/cad_46b5bdc9d49c.glb
Create a pair of miniature boots resting on a circular base. The base is a cylinder with a diameter of 25mm, a height of 3mm, and a tapered edge 1mm thick. For each boot, construct a sole by extruding a footprint that blends a circle of radius 2.5mm with an elongated oval. The main body of the boot is a hull formed fr...
$fn=32; e=0.02; xaxis=[1,0,0]; yaxis=[0,1,0]; zaxis=[0,0,1]; phi=(1+sqrt(5))/2; sh_l=15; sh_w=7; sh_rheal=5/2; sh_sole=1.5; sh_htoe=6; sh_rshaft=8/2; sh_h=15; ba_h=3; ba_r=25/2; ba_edge=1; y_stance=5; xline=.25; xsquare=3*xline; col1="red"; col2="lime"; dxprint=3; module shoe(){ linear_extrude(height=sh_sole...
glb/cad_0a2f6738f879.glb
Create a dust cover for a 40mm profile by starting with a rectangular base measuring 40mm wide, 132mm long, and 1mm thick. On this base, add two solid cylinders, each 6mm in diameter and 132mm long, running parallel to the length of the rectangle. Position the center of the first cylinder 9.625mm from one side and the ...
$fn=144; difference(){ union(){ cube([40,132,1]); translate([30.375,0,3]) rotate(-90,[1,0,0])cylinder(d=6,h=132); translate([9.625,0,3]) rotate(-90,[1,0,0])cylinder(d=6,h=132); } translate([30.375,-0.5,3]) rotate(-90,[1,0,0])cylinder(d=4.2,h=133); ...
glb/cad_0cffc820c717.glb
Create a Very Small E3D Mount for an 8mm rod and LU8MM bearings. The model consists of two symmetrical bearing holder assemblies (top and bottom) connected by a central baseplate. For each bearing holder, create a cylindrical clamp with an outer diameter of 18.8mm and a height of 16.4mm. Inside this clamp, create a ce...
$fs=1; $fa=1.5; tol= 0.02; use <umf.scad> layer_h=0.2; show_rods= false; show_heater= false; show_upper_holder= true; show_lower_holder= true; use_nut_to_clamp_the_E3D= false; fan_carve_bearing=false; print_what="preview"; %if(1==1) { translate([0,0,-64+rod_d]) cube([48,48,1],center=true); for(r=[0:90:359]) rot...
glb/cad_3969561cb7f3.glb
Create a nut-based Bowden coupling. Start with a rectangular base measuring 70mm in length, 20mm in width, and 12mm in height. Centered on the top surface, create a cylindrical protrusion with a height of 9mm and an outer diameter of 17mm. This protrusion should taper slightly at the top from a radius of 8.5mm to 7mm o...
bolt_distance = 50; bolt_dia = 5; nut_h = 6; nut_dia = 10; base_flesh = 2.5; tube_dia = 6.3; open = 0; base_h = 12; supports = 0; offset = 0; $fn =31; module coupling_base() { difference() { union() { translate([0,0,base_h/2])cube([bolt_distance+20,bolt_dia+base_flesh+15,base_h],center=true); t...
glb/cad_f70b75e8f412.glb
Create a parametric shelf peg for a storage cabinet. Start by constructing a main rectangular block that is 18mm long, 15mm wide, and 20mm high. To this block, attach a smaller rectangular protrusion extending from one end. This protrusion should be 20mm long, 2mm wide, and 15mm high, positioned to act as the insertion...
width=15; length=18; height=20; rotate ([90,0,0]) polyhedron( points = [ [0, 0, 0], [length, 0, 0], [0, width, 0], [length, width, 0], [0, 0, height], [0, width, height] ], triangles = [ [0, 2, 1], [2, 3, 1], [2, 4, 5], [0, 4, 2], [2, 5, 3], [1, 4, 0], [3, 4, 1], [5, 4, 3] ] ); cube ([...
glb/cad_09bd04adebcd.glb
Create an Arch Bridge Principle model consisting of a semi-circular arch and a supporting base. To construct the arch, create five identical curved segments. Each segment is formed by rotating a 15mm by 15mm square profile around a central axis with a radius of 30mm, spanning an arc of 36 degrees per piece. Arrange the...
$fn=200; use <partial_rotate_extrude.scad> n_pieces = 5; angle = 180/n_pieces; module piece() { partial_rotate_extrude(angle, 30, 200) square([15,15]); } for(i=[0:n_pieces-1]) { if(i%2==0) { color("red") translate([0,50,0]) rotate([0,0,angle*i]) piece(); } else { rotate([0,0,angle*i]) piece(); } } translate([0,-...
glb/cad_8b8ba48a322f.glb
Create a stacking shelf system consisting of two main vertical walls connected by a base. Each wall is a rectangular slab with a depth of 200mm, a width of 250mm, and a height of 178mm. The walls feature a series of repeating cutouts. Every 15mm along the height, starting 15mm from the bottom, create a horizontal slot...
use <common_pattern.scad> use <roundedcube.scad> module shelf(height, width, depth, unitHeight ){ difference() { cube ([depth, height, 4.8]); for(i =[15:unitHeight:height-15]){ translate([0,i,0]){ translate([-0.5,0,3.0]){ rotate([90,0,90])linear_extrude(depth+1) { difference() { t...
glb/cad_8a56bfc5c8bc.glb
Create a Gattling gun wheel for a robot toy. Start with a main cylinder that has a radius of 15mm and a height of 15mm. Remove a smaller concentric cylinder from the center with a radius of 6.5mm and the same height. Place a sphere with a radius of 2.5mm at the center of the top face of the cylinder. Create ten identi...
washer_r=5+.5; magnet_r=2.5; wrist_r=washer_r*1.2+.5+.5; bullet_r=washer_r/2; bullet_h=15; wheel_r=6*bullet_r; center_r=2.5; torus_r=100; groove_r=2.5; numfrags=50; module chambers(){ for(pos=[0,1,2,3,4,5,6,7,8,9]){ rotate([0,0,pos*36]) translate([bullet_r*4,0,bullet_h/2.5]) cylinder...
glb/cad_6583e78526df.glb
Create a screw storage box by starting with a solid rectangular block measuring 107mm in length, 68mm in width, and 60mm in height. Hollow out the center of this block by removing a smaller rectangular volume measuring 104mm by 65mm with a height of 60mm, leaving a wall thickness of 1.5mm on the bottom and sides. To cr...
laenge = 107; breite = 68; hoehe = 60; module beschriftung(l, w, h) { difference() { polyhedron(points=[[0,0,h], [l,0,h], [l,w,0], [0,w,0], [0,w,h], [l,w,h]],faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]]); translate ([0,2,h-1]) cube ([l,w-4,5]); } } translate ([0,0,0]) ...
glb/cad_e2b0e7e29822.glb
Create an Oldtimer Replacement Part by constructing a vertical geometric assembly with a total height of 43mm. Start with a main cylinder that has a radius of 10mm and a height of 43mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 9mm and a height of 41mm, starting f...
intersection() { difference() { union() { difference() { cylinder( r = 10, h= 43,$fn=100 ); translate( v = [0,0,1] ) { cylinder( r =9, h= 41, $fn=100 ); } } cylinder( r = 7, h = 43,$fn=50); } cylinder( r = 6, h = 43, $fn=50); } polyhedron( points = [[0,0,0], [10,16.45,0], [10,0,0], [0,0,50], [10,16.45,50],[10,0,50]]...
glb/cad_234127e0ddfb.glb
Create a basic S-hook with a uniform thickness of 3mm and a width of 15mm. Start with a central rectangular bar 80mm long, 3mm thick, and 15mm wide. At one end, attach a perpendicular arm that extends 20mm back and 40mm long, maintaining the 3mm thickness and 15mm width. At the opposite end of the central bar, add a pe...
$fn=100; THICKNESS=3; WIDTH=15; BACKDEPTH=20; FRONTDEPTH=15; MIDLENGTH=80; BACKLENGTH=40; FRONTLENGTH=25; cube([MIDLENGTH,THICKNESS,WIDTH]); translate([0,BACKDEPTH,0]) cube([BACKLENGTH,THICKNESS,WIDTH]); cube([THICKNESS,BACKDEPTH,WIDTH]); translate([MIDLENGTH-THICKNESS,-FRONTDEPTH,0]) cube([THICKNESS,FRONTDEPTH,WIDTH...
glb/cad_a090b72c9f05.glb
Create a plier holder clip with a total height of 5mm and a thickness of 6mm. The main body is a lozenge-shaped block with rounded ends of 12mm radius. The top surface of this block features a centered, tapered cutout designed to hold two tool handles. This cutout is 45mm wide at the top and narrows to 38.25mm at the b...
clip_height = 5; clip_thickness = 6; handle_diameter = 12; cutout_top_width = 45; cutout_bottom_width = 38.2549; notch_width = 32; screw_diameter = 3.5; screw_border = 4; handle_radius = handle_diameter/2; screw_radius = screw_diameter/2; $fn = 60; difference() { union() { difference() { Lozenge(clip_hei...
glb/cad_21b6cb8ca830.glb
Create a lamp cord clip consisting of three identical rectangular blocks spaced 2mm apart. Each block is 6mm tall and has a total width of 9mm and a total height of 6.5mm. Within each block, create three identical cable slots stacked vertically. Each slot is formed by a rectangular outer boundary of 9mm by 6.5mm. Fro...
ccw=6.5; cch=3.5; extrudeLen=6; wall=1.5; sow=2.5; slotCount=3; copies=3; gap=2; off = (ccw/2) - (cch/2); tw=ccw+(2*wall); th=cch+(2*wall); slotOrg=0; $fn=30; centerXOff=(((tw+gap)*(copies-1))/2); centerYOff=(((cch+wall)*slotCount)+wall)/2; for(offset = [0:copies-1]) { xoff = offset*(tw + gap) - centerXOff...
glb/cad_7fd06458fd49.glb
Create a guitar pedal switch knob. Start with a main cylindrical body that has an outer diameter of 29mm and a total height of 9mm. The top surface of this cylinder should be rounded with a radius of 4mm. Carve a central cavity into the bottom of the cylinder to house the switch. This cavity must have a diameter of 10...
SWITCH_CAVITY_DIAMETER = 10; SWITCH_CAVITY_DEPTH = 5; BUTTON_DIAMETER = 29; ROUND_SURFACE = true; ROUNDNESS = 4; $fn = 50; SCREWHOLE_DIAMETER = 2.5; NUMBER_OF_CREWS = 3; ADDITIONAL_HEIGHT = 0; module switch_knob(inner, outer, cavity, additional_height, screw_hole, number_screws, round_surface, roundness) { ...
glb/cad_ca2133a5ffb2.glb
Create a Replacement Plasticville Turnpike Sign. Start by constructing a rectangular base plate with a width of 169.22mm, a height of 2.22mm, and a thickness of 2.54mm. Build a supporting frame around this base. Place two vertical risers, each 2.22mm wide and 2.54mm thick, at the far left and right edges. Add two add...
$fn=128 * 1; INT = "BEAVER VALLEY INTERCHANGE"; INTFont = "Bungee"; INTSpacing = 1.0; Pike = "PENNSYLVANIA TURNPIKE"; PikeFont = "Arial"; TPSpacing = 1.1; Width = (6 + 11/16) * 25.4; Height = (0.0875) * 25.4; ThicknessINTLetters = (0.1) * 25.4; BraceOffset = (0.2665 - 0.08) * 25.4; BottomHeight = (1.035...
glb/cad_4e63aa821828.glb
Create a Rostock Mini Pro extruder mount. Start with a central body composed of several intersecting volumes: a main cylinder with a radius of 18mm and a height of 20mm, positioned at [16, 20, 21] and rotated 90 degrees on the X-axis; a bearing mount cylinder with a radius of 8mm and a height of 20mm, positioned at [31...
first_layer = 0.3; difference() { union() { translate([16,20,21]) rotate([90,0,0]) cylinder(h=20, r=18); translate([31,20,21]) rotate([90,0,0]) cylinder (h=20, r=8); translate([9,0,-7]) cube([24, 20, 22]); translate([21,first_layer/2,-11]) rotate([90,0,0]) cube([24, 22, first_layer], center=true); tran...
glb/cad_beeb45505f26.glb
Create a Rostock Mini Pro extruder mount. Start with a primary structure consisting of a central cylinder with a radius of 18mm and a height of 20mm, positioned at [16, 20, 21] and rotated 90 degrees on the X-axis. Add a smaller bearing mount cylinder with a radius of 8mm and a height of 20mm, positioned at [31, 20, 21...
first_layer = 0.3; difference() { union() { translate([16,20,21]) rotate([90,0,0]) cylinder(h=20, r=18); translate([31,20,21]) rotate([90,0,0]) cylinder (h=20, r=8); translate([9,0,-7]) cube([24, 20, 22]); translate([21,first_layer/2,-11]) rotate([90,0,0]) cube([24, 22, first_layer], center=true); trans...
glb/cad_cd401bf20f7a.glb
Create a Rostock Mini Pro platform by starting with a central cylindrical disc 60mm in diameter and 5mm thick. From this central disc, extend three identical arms spaced 120 degrees apart. Each arm consists of a circular protrusion with a radius of 5mm centered 31mm from the origin, and a larger circular holder with a ...
include <configuration.scad> use <carriage_for_traxxas.scad> h=platform_thickness; cutout = 12.5; inset = 6; module platform() { translate([0, 0, h/2]) difference() { union() { for (a = [0:120:359]) { rotate([0, 0, a]) { translate([0, -platform_hinge_offset, 0]) parallel_joints(); ...
glb/cad_3fec901b6e2b.glb
Create a Rostock Mini Pro extruder assembly. Start with a central motor housing consisting of a cube 42mm wide, 42mm deep, and 40mm high, with the corners clipped to form a faceted shape. On top of this housing, center a cylinder with a radius of 18mm and a height of 32.2mm. Build the extruder body as a cylinder with ...
bearing=[3,10,4]; filament_dia=1.75; pitch_radius=5; triangle_radius=2*pitch_radius*sin(4.5)/cos(30); tooth_radius=pitch_radius-triangle_radius+pitch_radius*sin(4.5)*tan(60); printing_plate=false; if(printing_plate) { translate([-20,0,0]) extruder(); translate([10,-7,0]) rotate(-40) idler(); translate([30,0,0]) ro...
glb/cad_549bffef853d.glb
Create a carriage for a Rostock Mini Pro 3D printer. Start with a central rectangular block 50mm wide, 5mm thick, and with a height matching the carriage height. At the bottom of the carriage, integrate a set of parallel joints. This section is formed by the intersection of a 76mm wide, 20mm deep, 8mm tall block and ...
include <configuration.scad> include <lm8uu-holder-slim_v1-1.scad> width = 76; height = carriage_height; offset = 25; cutout = 13; middle = 2*offset - width/2; extrude_width = 0.35; first_layer = 0.25; module parallel_joints(reinforced) { difference() { union() { intersection() { cube([width, 2...
glb/cad_2a6ab68c8e85.glb
Create a bed clip for a 3D printer by constructing a composite geometric shape. Start with a central body formed by the Minkowski sum of a 5mm cube and a cylinder with a 1.5mm radius and 5.25mm height, centered on the Z-axis at 2.625mm. Add to this a second element created from the Minkowski sum of a 5mm cube and a cyl...
for(x=[-10,10]) for(y=[-10,10]) translate([x,y,0]) bed_clip(); module bed_clip() difference() { union() { translate([0,0,10.5/4]) minkowski() { cube([5,5,10.5/2],center=true); cylinder(r=1.5,h=10.5/2,$fn=32); } translate([-2,0,1/2]) difference() { translate([1.15-0.25,0,0]) cylinder(r=5.5,h=1,$fn=64,ce...
glb/cad_dd86bad1c05a.glb
Create a ring-shaped component with a total height of 3.5mm. Start by constructing a truncated cone that has a bottom radius of 15mm and tapers to a top radius of 12mm over the 3.5mm height. Constrain this shape by intersecting it with a cylinder of radius 14mm and the same height. Finally, create a hollow center by re...
$fa = 0.5; $fs = 0.5; h = 3.5; difference() { intersection() { cylinder(r1=15, r2=12, h=h, center=true); cylinder(r=14, h=h, center=true); } cylinder(r=10.8, h=h+1, center=true); }
glb/cad_ddfa419e66b1.glb
Create a bowden clamp by starting with a base plate 11mm thick. The base shape is the intersection of a 56mm by 18mm rectangle and a circle with a 28mm radius, with all corners rounded by a 2mm radius. From this base, remove several holes and slots. First, create two vertical cylindrical holes with a 4mm radius and 1...
module bowden_clamp() difference() { linear_extrude(height=11,convexity=30) difference() { minkowski() { intersection() { square([60-2,22-4],center=true); circle(r=30-2,$fn=64); } circle(r=2,$fn=24); } } for(x=[-25,25]) translate([x,0,2]) cylinder(r=4,h=12,$fn=32); for(x=[-25,25]) transla...
glb/cad_0ae6eebb64c9.glb
Create a bowden clamp with a total height of 11mm. The main body is formed by the intersection of a 60mm by 22mm rectangle and a circle with a 30mm radius, with all corners rounded by a 2mm radius. Centrally, create a vertical hole with a radius of 3.2mm and a height of 14mm for a pneumatic fitting. Directly below th...
module bowden_clamp() difference() { linear_extrude(height=11,convexity=30) difference() { minkowski() { intersection() { square([60-2,22-4],center=true); circle(r=30-2,$fn=64); } circle(r=2,$fn=24); } } for(x=[-25,25]) translate([x,0,2]) cylinder(r=4,h=12,$fn=32); for(x=[-25,25]) transla...
glb/cad_0189ce3a5de2.glb
Create a Rostock Mini Pro idler end bracket. Start with a base bracket of height 40mm. Integrate two bearing mounts on the sides, each consisting of a mirrored pair of truncated cones: one tapering from a 12mm radius to a 9mm radius over a height of 1.1mm, and another tapering from 9mm to 12mm over 1.1mm, positioned 2....
include <configuration.scad> use <bracket.scad> h = idler_end_height; tilt = 2; module bearing_mount() { translate([0, 0, 2.3]) cylinder(r1=12, r2=9, h=1.1, center=true); translate([0, 0, -2.3]) cylinder(r1=9, r2=12, h=1.1, center=true); } x = 17.7; y = 16; module idler_end() { translate([0, 0, h/2]) differ...
glb/cad_4e5a453ad83d.glb
Create a Rostock Mini Pro extruder mount. Start with a base composed of a central cylinder with a radius of 18mm and a height of 20mm, positioned at [16, 20, 21] and rotated 90 degrees on the X-axis. Add a smaller bearing mount cylinder with a radius of 8mm and a height of 20mm, positioned at [31, 20, 21] and also rota...
first_layer = 0.3; difference() { union() { translate([16,20,21]) rotate([90,0,0]) cylinder(h=20, r=18); translate([31,20,21]) rotate([90,0,0]) cylinder (h=20, r=8); translate([9,0,-7]) cube([24, 20, 22]); translate([21,first_layer/2,-11]) rotate([90,0,0]) cube([24, 22, first_layer], center=true); tran...
glb/cad_08e7e3f25f0b.glb
Create six identical jaw components for a Rostock Mini Pro, arranged in two rows of three. Each jaw is based on a central block 10mm wide, 14mm deep, and 7mm high. For each jaw, start with a base shape formed by the intersection of a cylinder with a 5mm radius and 14mm height (centered on the X-axis) and a 10x14x7mm ...
h = 7; r = h/2 / cos(30); module jaws() { difference() { union() { intersection () { rotate([90, 0, 0]) cylinder(r=5, h=14, center=true, $fn=24); translate([-4, 0, 0]) cube([10, 14, h], center=true); } intersection() { translate([10, 0, 0]) cube([26, 14, h], center=true)...
glb/cad_489757e3250f.glb
Create a series of twelve identical geometric components arranged in a 3 by 4 grid, with 25mm spacing between columns and 20mm spacing between rows. Each individual component is centered on a base plane 3.5mm high. To construct a single component, start with a central core formed by the intersection of a sphere with ...
h = 7; r = h/2 / cos(30); module stumpy() { rotate([0, 90, 0]) rotate([0, 0, 30]) intersection() { cylinder(r=r, h=8, center=true, $fn=6); sphere(r=5.1, $fn=24); } } module middle() { difference() { union() { translate([-2, 0, 0]) stumpy(); translate([2, 0, 0]) stumpy(); rotate([0,...
glb/cad_e59a2e87d5f9.glb
Create a NEMA 17 stepper motor model with a total length of 47mm. The main body is a cube 42mm wide and 42mm deep, but with the corners clipped at 45-degree angles to create an octagonal profile. Centered on the front face, add a cylinder with a radius of 11mm and a thickness of 4mm. Running through the center of the...
use <pulley.scad>; $fa = 3; $fs = 0.5; aluminum = [0.9, 0.9, 0.9]; steel = [0.8, 0.8, 0.9]; motor_screw = 15.5; motor_diagonal = sqrt(2 * motor_screw * motor_screw); module nema17(length) { color([0.4, 0.4, 0.4]) render() { translate([0, -length/2-17, 0]) intersection() { cube([42, length, 42], ...
glb/cad_f21e110a3b85.glb
Create a Rostock Mini Pro idler end bracket. Start with a central bracket body of height 20mm. Integrate two bearing mounts on the sides, each consisting of a mirrored pair of truncated cones: one tapering from a radius of 12mm down to 9mm over a height of 1.1mm, and another tapering from 9mm up to 12mm over 1.1mm, pos...
include <configuration.scad> use <bracket.scad> h = idler_end_height; tilt = 1; module bearing_mount() { translate([0, 0, 2.3]) cylinder(r1=12, r2=9, h=1.1, center=true); translate([0, 0, -2.3]) cylinder(r1=9, r2=12, h=1.1, center=true); } x = 17.7; y = 16; module idler_end() { translate([0, 0, h/2]) differ...
glb/cad_6aeac28ad427.glb
Create a fan mount consisting of a main rectangular plate and an attached mounting bracket. The main body is a flat plate 2mm thick, 8mm wide and 32mm tall, with rounded corners (radius 3mm). Center two circular holes with a radius of 1.75mm at the top and bottom edges, positioned 16mm from the center along the vertica...
fan_mount(); module fan_mount() difference() { union() { linear_extrude(height=2,convexity=30) difference() { translate([0,0]) minkowski() { square([8-6,40-6],center=true); circle(r=3,$fn=24); } translate([-38/2+1,0,0]) circle(r=42/2,$fn=64); for(y=[-16,16]) translate([0,y]) circle(r=3.5/2,$fn=24); ...
glb/cad_28c780baa90d.glb
Create a nozzle wiper for a 3D printer. The object is a rectangular block with a total height of 7mm. The main body is a cube measuring 4mm wide by 20mm long by 7mm high, centered on the origin. From the center of this block, remove a smaller rectangular volume measuring 2mm wide by 18mm long by 8mm high to create a sl...
include <configuration.scad> use <jaws.scad> l = rod_length; h = 7; module collar() { difference() { cube([4, 20, h], center=true); cube([2, 18, h+1], center=true); rotate([0, 90, 0]) rotate([0, 0, 30]) cylinder(r=5, h=5, center=true, $fn=6); } } module cubicle() { difference() { cube([6,...
glb/cad_3414c2674457.glb
Create two separate pulley components. The first pulley is a wide wheel with an outside diameter of 38.8mm and a width of 7mm. Add two circular flanges to the top and bottom, each with a diameter of 42mm and a thickness of 1mm. Integrate a central hub with a diameter of 17mm and a height of 17mm, and drill a 6mm diamet...
$fa = 3; $fs = 0.1; aluminum = [0.9, 0.9, 0.9]; polycarbonate = [0.3, 0.3, 0.3]; brass = [0.8, 0.7, 0]; module pulley(bore_diameter, outside_diameter, width, flange_diameter, flange_width, hub_diameter, hub_width) { color(polycarbonate) difference() { union() { difference() { uni...
glb/cad_fdc4fc1c916a.glb
Create a Rostock Mini Pro platform by starting with a central cylinder that has a radius of 30mm and a height of 3mm, centered on the origin. Remove a smaller concentric cylinder from the center with a radius of 20mm and a height of 15mm to create a ring. Add three small circular protrusions to the outer edge of the ...
include <configuration.scad> use <carriage_for_traxxas.scad> h=platform_thickness; cutout = 12.5; inset = 6; module platform() { translate([0, 0, h/2]) difference() { union() { for (a = [0:120:359]) { rotate([0, 0, a]) { translate([0, -platform_hinge_offset, 0]) parallel_joints(); ...
glb/cad_1ec4657cda14.glb
Create a circular platform for a Rostock Mini Pro with a thickness of 5mm. Start with a central solid cylinder of 30mm radius and 5mm height, centered on the origin. Remove a concentric cylindrical hole from the center with a radius of 20mm and a height of 17mm to create a ring. Add three small circular protrusions, ...
include <configuration.scad> use <carriage.scad> h=platform_thickness; cutout = 12.5; inset = 6; module platform() { translate([0, 0, h/2]) difference() { union() { for (a = [0:120:359]) { rotate([0, 0, a]) { translate([0, -platform_hinge_offset, 0]) parallel_joints(); tran...
glb/cad_8cc1328a9ca2.glb
Create a motor end bracket for a Rostock Mini Pro. Start with a central bracket of height $h$ and add two diagonal fins, each 5mm wide and 30mm deep, extending from the sides at x = -30mm and x = 30mm. Carve a cylindrical hole with a radius of 12mm and a length of 40mm through the center, oriented along the X-axis. C...
include <configuration.scad> use <bracket.scad> h = motor_end_height; m = 29; module motor_end() { translate([0, 0, h/2]) difference() { union() { bracket(h); for (x = [-30, 30]) { translate([x, 29.5, 0]) intersection() { cube([5, 30, h], center=true); rotate([45, ...
glb/cad_d7c5edb923cd.glb
Create three separate cylindrical components. First, create a hollow cylinder with an outer diameter of 15mm, an inner diameter of 8mm, and a height of 25mm. Second, create a washer-like disc with an outer diameter of 22mm, an inner diameter of 8mm, and a thickness of 7mm. Third, create a hollow cylinder with an outer ...
steel = [0.8, 0.8, 0.9]; module bearing(id, od, w) { translate([0,w/2,0]) color(steel) render() rotate([90, 0, 0]) difference() { cylinder(h=w, r=od/2, center=true); cylinder(h=w*2, r=id/2, center=true); } } bearing(8, 22, 7); module lm8uu() { translate([0,0,25/2]) color(steel) render...
glb/cad_7d5fdf579b50.glb
Create a Rostock Mini Pro extruder mount. Start with a composite base consisting of a central cylinder with a radius of 18mm and a height of 20mm, positioned at [16, 20, 21], and a smaller bearing mount cylinder with a radius of 8mm and a height of 20mm at [31, 20, 21]. Add a rectangular V3 mount block measuring 24mm b...
first_layer = 0.3; difference() { union() { translate([16,20,21]) rotate([90,0,0]) cylinder(h=20, r=18); translate([31,20,21]) rotate([90,0,0]) cylinder (h=20, r=8); translate([9,0,-7]) cube([24, 20, 22]); translate([21,first_layer/2,-11]) rotate([90,0,0]) cube([24, 22, first_layer], center=true); tran...
glb/cad_60ebcae7ebd0.glb
Create a timing belt loop consisting of four rectangular segments. First, place a rectangular bar measuring 20mm in length, 6mm in width, and 1mm in height, centered at the coordinates (5, 0, 9). Second, place an identical 20mm by 6mm by 1mm bar centered at (15, 0, -9). Third, place another identical bar centered at (-...
belt_pitch = 2; belt_width = 6; module timing_belt(length) { color([0.1, 0.1, 0.1]) union() { cube([length, belt_width, 1], center=true); } } module timing_belt_loop() { translate([(end_idler_x - end_idler_x2) / 2, 0, end_idler_z + 9]) rotate([0, 180, 0]) timing_belt(end_idler_x + end_idler_x2); translat...
glb/cad_8e3c27d09a24.glb