Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a power supply cover with a main body measuring 102mm wide, 44mm deep, and 70mm high. The structure is primarily a hollow shell with walls 2mm thick. On the front face, create two rectangular cutouts for the switch and plug. The left cutout is a rectangle 28mm wide and 22mm high. The right cutout is 28mm wide ...
$fn = 16; module leftScrew() { rotate([-90,0,0]) { cylinder(d=3.4, h=100); cylinder(d=5, h=20); } } module M3_hole() { rotate([-90,0,0]) { cylinder(d=3.4, h=10); translate ([0,0,5]) cylinder(d=6.4, h=10, $fn=6); } } module plugHole() { xSize = 28; ySize = 19.5; screwDistance = 40; diff...
glb/cad_69ce0dd0ed44.glb
Create a Robo3d Block-switch for Power consisting of a rectangular base with two upright rectangular blocks. Start by creating a flat rectangular base measuring 33mm in length, 16mm in width, and 2mm in height. Position a first rectangular block measuring 2mm by 10mm with a height of 8mm vertically on the base, with it...
cube([33,16,2]); translate([4,3,0]) cube([2,10,8]); translate([27,3,0]) cube([2,10,8]); translate([2,3,6]) cube([2,10,2]); translate([29,3,6]) cube([2,10,2]);
glb/cad_6b595885b460.glb
Create a kill cord clip for a Honda outboard engine starting with a rectangular block measuring 20mm wide, 30mm long, and 4mm thick. Carve a central slot through the block to create a keyhole-shaped opening. This opening begins at the front edge with a rectangular cutout 7.5mm wide and 9.5mm deep. This transitions in...
killcord_x = 20; killcord_y = 30; killcord_z = 4; centre_hole_diameter = 9.5; open_slot_width = 7.5; closed_slot_diameter = 6.25; keyring_hole_diameter = 3.25; closed_slot_width = 6.25; difference() { cube([killcord_x,killcord_y, killcord_z]); translate([killcord_x/2, 9.5, -0.001]) cylinder(r=centre_hole_diameter/2...
glb/cad_6bbc4e0d3d78.glb
Create a Table Mount Spool Holder designed to clamp to a surface. Start with a main body consisting of a rectangular base 105.4mm long, 3.175mm thick, and 29mm high. Add a reinforcement slab on top of this base that is 105.4mm long, 12.7mm wide, and 9.525mm thick, positioned to overlap the back edge. At the front end,...
$fa = 1.5; $fs = 0.125; pi = 3.141592657; TableThickness = 29; TableLip = 50.8; SpoolWidth = 76.2; SpoolDiameter = 203.2; ShaftDiameter = 31.75; NormalThickness = 3.175; ReinfThickness = 9.525; BracketHeight = TableThickness; BracketWidth = 25.4; RunningClearance = 4; AssemblyClearance = 0.5; BodyClearance = 25.4; ...
glb/cad_f5e81c2e8eb0.glb
Create a tennis ball damper for a 3030 extrusion profile. Start with a square base plate measuring 80mm by 80mm with a thickness of 5mm. At the center of the base, construct a spherical housing designed to hold a tennis ball with a diameter of 65mm. This housing should be a hollowed-out shell with a wall thickness of...
tennis = 65; holder = 20; stena = 1.2 * 2; offset = 4; M5_head = 11; M5_hole = 6; M8_head = 14; M8_hole = 9; $fn=32; module ballHolder() { difference() { scale ([1,0.5,1]) sphere(d=tennis+12, $fn=64); translate([-tennis,+holder/2, -tennis/2-1]) cube([tennis*2,tennis,tennis]); translate([-tennis,-holder/2...
glb/cad_497c6ef4f42f.glb
Create an LED Ring Laser Position Indicator bracket with a total height of 15.24mm. The main body consists of two primary cylindrical sections connected by a solid bridge. The first section is a cylindrical holder for an LED matrix. Create a cylinder with an outer diameter of 28.22mm and a height of 15.24mm. Remove a ...
$fs=.1; in=25.4; N_LEDS = 10; assy_gap=.02*in; Dring=.8*in; Dled=.22*in+1.5*2*assy_gap; Dled2=.9*in; module LED_Matix_shape() { circle(d=Dled2); for (i=[1:N_LEDS]) rotate(i*360/N_LEDS) translate([Dring/2,0]) circle(d=Dled); } dist_center = 2.5*in; t_supports = ...
glb/cad_cd78810cdda9.glb
Create a printable plain bearing assembly consisting of an inner shell, an outer shell, a journal, and a retaining ring. First, create the inner shell as a cylinder with a height of 6.6mm and an outer radius of 12mm. Subtract a central vertical hole with a radius of 10mm. At the top of this inner shell, carve out a tr...
$fn=200; render_assembly = 1; center_bore_diameter = 20; wall_thickness = 2; inner_hole_r = center_bore_diameter/2; inner_shell_wall = wall_thickness; outer_shell_wall = inner_shell_wall/2; shell_t = wall_thickness; flange_w = shell_t*2; inner_outer_tolerance = .8; journal_t = wall_thickness; journal_tolerance = 1....
glb/cad_feee20ad2363.glb
Create a Fully Printable Padlock consisting of a lock body, a bolt mechanism, five tumblers, a key, and a shackle. Construct the lock body as a rectangular block with a thickness of 1.7mm. Hollow out the center to create a chamber for the mechanism, leaving outer walls of 2mm. Include a keyhole slot that is 5mm wide a...
tumbler_bitting = [0, 3, 6, 9, 12, 15, 18, 21]; key_bitting = [5.6, 4.9, 4.2, 3.4, 2.6, 1.8, 0.9, 0]; bitting = [3, 7, 4, 0, 2]; body_thickness = 1.7; shaft_radius = 3; bolt_thickness = 2; tumbler_thickness = 1.5; tumbler_width = 2.5; num_tumblers = len(bitting); extra_thickness = 0.5; bolt_width = 10; bolt_throw = 7;...
glb/cad_730ed223cb2e.glb
Create a tea portioner consisting of three parts: a measuring cup, a funnel, and a stand. First, create the measuring cup. The main body is a hollowed-out combination of a sphere and a cylinder. The internal cavity consists of a sphere with a radius of 16.5mm and a cylinder extending from it with a radius of 16.5mm an...
part = "portioner"; volume = 42; preview = 1; stand_diameter = 80; funnel_diameter = 90; h_in_r = 1; w = 1.8; p = 1.2; w_i = 1.2; w_f = 1.8; stand_height = 15; flange_height = 10; stand_peg_height = 2; chute_limit_diameter = 20; chute_limit_factor = 0.3; ms = 0.1; clearance = 0.5; funnel_angle = 60; tau = 2 ...
glb/cad_80bc4e2f635f.glb
Create a modular shower tray designed to hold bottles and attach to water pipes. Start by creating a base tray with a height of 25mm. The main body is a pill-shaped volume formed by the convex hull of two cylinders, each with a radius of 40mm, positioned 150mm apart center-to-center. Hollow out the center of this tray ...
bottlesize = 80; pipeswidth = 150; pipediameter = 12; translate ([bottlesize/2,bottlesize/2,0]) { difference () { hull () { cylinder (25,bottlesize/2,bottlesize/2,$fn=100); translate ([pipeswidth,0,0]) { cylinder (25,bottlesize/2,bottlesize/2,$fn=100); }; }; hull () { translate ([0,0,2]) { ...
glb/cad_b278f0cdf64f.glb
Create a Beermat Stand designed to hold a stack of 95mm square coasters. The main body is a hollowed-out container with a base width of 95mm and a stack depth of 40mm. The side walls should rise to a height of 50mm and flare outwards at a 7-degree angle. All walls have a uniform thickness of 3mm. The interior is carve...
$fs=0.1; $fn=90; $mat_width = 95; $mat_stack_height = 40; $mat_height_cover = 50; $thickness = 3; $deko_thickness=6; $deko_width = $mat_stack_height/2.5; $angle = 7; $curve_offset = $mat_width / 18 ; $outerwidth = $mat_width + 2 * $thickness; $outerheight = $mat_height_cover + $thickness; $outerlowerdepth = $ma...
glb/cad_d4f7faec2197.glb
Create a Cubic Christmas Tree candle cover. Start by constructing a base sleeve for a tealight LED candle with an outer diameter of 38.4mm and a height of 20mm. This sleeve should have a wavy exterior wall created by subtracting 72 small cylinders (arranged in 36 pairs) from the main cylinder body to create a scalloped...
$fn = 36*2; HIDECANDLE = true; COVERBASE = true; SIMPLEBASE = false; WN = 36*4; WF = 4; CandleBD = 38.0+0.4; CandleBZ = 20.0; CandleWD = 9.4; CandleWZ = 26.8; TreeIdx = 1; Trees = [ [ 20, 48.0, [45, 45, 45], 15, 15.0, 0.82 ], [ 20, 48.0, [40...
glb/cad_b5a9ba30db76.glb
Create a collet holder block with overall dimensions of 36mm in width, 43mm in depth, and 8.1mm in height. From this solid base, remove several cylindrical holes to create storage slots. First, create a grid of seven cylindrical holes, each 6mm in diameter and 4mm deep, centered vertically within the block. These hol...
$fn = 36; box_x = 36; box_y = 43; box_z = 8.2; full_collet_height = 27; full_collet_width = 12; collet_d = 6; collet_offset = 4; border_x = (box_x-3*collet_d-2*collet_offset)/2+collet_d/2; border_y = (box_y-full_collet_width-3*collet_d-2*collet_offset)/2+collet_d/2; between_offset = collet_offset + collet_d; differ...
glb/cad_9ef802e54a05.glb
Create a Prusa I3 filament holder by starting with a rectangular base measuring 182mm in length, 20mm in width, and 10mm in height. Carve a rectangular channel out of the top of this base, starting from the left edge and extending 35mm inward, with a width of 7mm and a depth of 10mm. To finish the part, drill two circu...
h=10; difference() { difference () { translate([0,10,0]) cube([182,20,h]); translate([0,17,0]) cube([35,7,h]); } translate([180,20,0]) cylinder(h=h,r=5); translate([45,20,0]) cylinder(h=h,r=5); }
glb/cad_9f90807b3b09.glb
Create four identical hexagonal risers to serve as mounting supports for a RAMPS 1.4 enclosure. Each riser should be constructed as a six-sided hexagonal prism with a total height of 5mm. The outer boundary of the hexagon should have a radius of 4.5mm. Centered vertically through each prism, create a cylindrical hole w...
include <configuration.scad> module inner_riser() { difference() { cylinder(r1=3mm_hole_r + 3, r2=3mm_hole_r + 1.5, h=rh, $fn=6); translate([0, 0, -0.5]) cylinder(r=3mm_hole_r, h=rh + 1, $fn=18); } } for (x=[-10,10]) { for (y=[-10,10]) { translate([x,y]) inner_riser(); } }
glb/cad_0c808ecb9e2b.glb
Create a RAMPS 1.4 Enclosure consisting of a rectangular box with a removable lid. The main body is a hollow rectangular shell with a base and four walls. The rear wall features a wide slot to allow printer control wires to pass through. On the interior floor of the box, place four cylindrical mounting risers to suppo...
include <common.scad> module ramps_board() { mega_w = 53.2; mega_h = 101.75; mega_d = 13.8; mega_hole_y = 13.6; mega_hole_x = 2; shield_w = 61.52; shield_h = mega_h; shield_d = 11.7; lcd_w = 73.52; lcd_h = 46.7; lcd_d = 18.5; lcd_v = 14.3; translate([-mega_hole_x, -mega_hole_y]) { color([0,0,1,0.5]) {...
glb/cad_e9aa4a390dda.glb
Create a RAMPS 1.4 Enclosure consisting of a rectangular box with a removable lid. The main body is a hollow rectangular prism with a base width of 100mm and a depth of 60mm. The walls have a thickness of 3mm. On the interior top surface, center a circular cutout with a diameter of 40mm to accommodate a cooling fan. ...
include <common.scad> module top_wall() { hole3_w = fw - wandr * 2 - 2; hole3_h = 3; hole4_w = 18; hole4_h = 10; difference() { union () { translate([-wt,bh,-wt]) cube([fw, wt, fd]); if (!beveled_walls && (!whole_box || show_glued)) assign(xx=(bw-fan_width)/2) { translate([0,bh...
glb/cad_a9f04ce98ffb.glb
Create a RAMPS 1.4 Enclosure consisting of a main box and a lid. The main box is a rectangular shell with a wall thickness of 2mm. The interior must accommodate a RAMPS 1.4 board and an LCD board, with four screw mounts positioned on the rear interior wall to secure the board. On the rear side of the box, incorporate...
include <common.scad> module left_wall() { chop = (!whole_box && !beveled_walls) ? rt : 0; difference() { translate([-wt,-wt+chop,-wt]) cube([wt, fh - chop*2, fd]); translate([0, fh / 2, rh + 30]) cube([wt2+1,bh/2,8], center=true); if (cover_clipon) { translate([-0.5, 0, bd - 7.5])...
glb/cad_e66d59329d16.glb
Create a Pan Tilt Mechanism consisting of three primary components: a yaw gear, a driver gear, and a pitch support structure. First, construct the yaw gear as a large involute gear with 65 teeth, a circular pitch of 200, and a thickness of 5mm. It should have a hub diameter of 20mm and a hub thickness of 5mm. To creat...
use <MCAD/involute_gears.scad>; epsilon = .01; b_height = 45; servo_real_h=9; servo_real_w=20; servo_real_l=18; servo_h = 20; servo_w = 28; servo_mp_wall = 1.5; servo_mp_y = 12.5; servo_mp = 13.5; servo_mp_hole_pos = 1.7; servo_mp_screw_length=10; servo_mp_depth = 4; servo_mp_hole_dia = 1.75/2; servo_mp_clearance_hole ...
glb/cad_443a707d539f.glb
Create a 3D model of an aluminum extrusion profile with a length of 50mm. The overall cross-section is a square measuring 20mm by 20mm with rounded corners of 1.5mm radius. At the center of the profile, create a circular hole with a diameter of 4.19mm. Around this center, remove four small circular sections of 1.5mm ...
extrusionSize = "2020"; extrusionLength = 50; slotWidth = 6; cornerRadius = 1.5; centerDia = 4.19; slotGap = slotWidth + 0.26; slotMax = 11.99; centerSquare = 7.31; wallThickness = 1.5; extrusionWidth = 20; extrusionHeight = 20; if (extrusionSize == "2020") { linear_extrude(extrusionLength) profile20...
glb/cad_01b3fdeb47eb.glb
Create a BH1750 light sensor holder by starting with a main rectangular block measuring 15.8mm wide, 20.8mm deep, and 24mm high. Hollow out the center of this block to create a cavity 14mm wide and 19mm deep, leaving a wall thickness of 1.8mm on the sides and bottom. At the base, extend a flat rectangular platform 30mm...
$fn=100; WallThickness = 1.8; difference(){ union(){ difference(){ union(){ cube([14 + WallThickness,19 + WallThickness,24]); translate([-7,0,0]){ cube([30,10,3]); } } translate([WallThickness/2,WallThickness/2,WallThickness/2]){ cube([14,19,24]); } trans...
glb/cad_e74f2d18ba04.glb
Create a flat plate for a spaceship fan duct with a total thickness of 1.5mm. The overall outer boundary is a square with a side length of 52mm, centered on the origin. Within this square, remove a central diamond-shaped cutout created by rotating a square of 42mm side length by 45 degrees. To create the walls of the...
thickness = 1.5; screw_distance_axis = 42; wall=5; screw_dia=3.6; $fn=64; module plate(distance,wall) { side = distance+2*wall; difference() { square(side,center=true); rotate(-45) { translate([0,(side/2+wall)*sqrt(2)]) square(side*sqrt(2),center=true); ...
glb/cad_5cef4b65cf81.glb
Create a Spaceship Fan Duct for an Anet A8 printer. The model consists of a fan intake housing and a dual-nozzle air duct. First, construct the fan intake. Create a rectangular housing with an outer dimension of approximately 20mm x 16mm x 5mm. The housing should feature a hollow interior to accommodate a fan, with a ...
include <dotSCAD/rotate_p.scad>; include <dotSCAD/shape_square.scad>; include <dotSCAD/bezier_curve.scad>; include <dotSCAD/bezier_smooth.scad>; include <dotSCAD/polysections.scad>; part="demo"; $fn=64; $g_wall=1.7; $g_thin_wall=0.8; $g_rounding_r=0; $g_with_vertical_supports=true; $g_print_min_width=0.6; $g_hote...
glb/cad_9bffda5a685e.glb
Create a GoPro handlebar mount. Start with a main cylindrical body that has an outer diameter of 25.6mm (calculated as the 15mm handlebar diameter plus 10mm and a 0.6mm extra offset) and a total thickness of 15mm. Through the center of this body, create a cylindrical hole with a diameter of 15.6mm to accommodate the ...
include <MCAD/boxes.scad> include <MCAD/nuts_and_bolts.scad> diameter = 15; angle = 0; length = 1.5; handle_bar(bar_dia=diameter, length=length, angle=angle); $fn=100; tolerance=0.4; module handle_bar(bar_dia=15, length=1.5, angle=0, bar_dia_extra=0.6) { outter_dia=bar_dia+10; thick=15; difference() { union...
glb/cad_d0069483da50.glb
Create a fan duct for a Prusa i3 printer. Start with a flat rectangular support base measuring 50mm by 45mm with a thickness of 1mm. Place two vertical cylindrical screw holes with a diameter of 3mm and a height of 10mm, positioned at coordinates (4, 4) and (46, 41). Build a main duct body extending from the base. The...
extender = 5; module soporte(){ difference(){ cube([50,45,1]); translate([-8,8,-1]) cube([50,45,4]); translate([4,4,-2]) cylinder(d=3,h=10,$fn=50); translate([46,41,-2]) cylinder(d=3,h=10,$fn=50); } } module ducto_ext(){ union(){ translate([30,-21-extender,0]) cube([20,21+extende...
glb/cad_c2e3ebfed464.glb
Create a set of interlocking chess pieces designed to lie flat with a uniform thickness of 5mm. Each piece is constructed from a combination of rectangular bases, stems, and beveled edges. Create a King by combining a central rectangular body with a cross shape (11mm total size) centered on top. Create a Queen by comb...
epsilon = 0.01; $gap = 0.28; $thickness = 5; base_height = 5; module base_and_stem(base_width, stem_width, stem_height) { total_height = base_height + (base_width - stem_width)/2 + stem_height; union() { translate([0, total_height/2, 0]) cube([stem_width -2*$gap, total_height -2*$gap, $thickness + eps...
glb/cad_64f3bbdfb4ba.glb
Create a Mexican Train Station hub for dominoes. Start with a base cylinder that has a radius of 50mm, a height of 1.6mm, and is rendered as a regular polygon with 9 sides. Centered on this base, create a rectangular void 20.9mm wide by 41.2mm long and 3.5mm deep to hold the center domino. Construct the outer walls of...
gap=0.4; length=40.2; width=20.1; base_height=1.6; wall_width=1.2; wall_height=3.5; num_tracks=9; cutout_depth=length/4; radius=50; difference() { union() { cylinder(r=radius, h=base_height, $fn=num_tracks); translate([0,0,wall_height/2]) cube([width+2*wall_width+2*gap, length+2*wall_width+2*ga...
glb/cad_8a773884e7c8.glb
Create a locomotive game piece by combining several geometric primitives. Start with a main body and cabin formed by the intersection of a cylinder with a radius of 8mm and height of 18mm (oriented horizontally along the Y-axis) and a rectangular block measuring 18mm wide, 6mm deep, and 12mm high, with a smaller rectan...
$fn=12; scale(2) union() { intersection() { translate([0,1.5,2]) rotate([0,90,0]) cylinder(r=4, h=9, $fn=50); difference() { cube([9,3,6]); translate([-0.1,-0.1,3]) cube([5.2,3.2,3.2]); } } intersection() { scale([1,1,1.33]) translate([0,1.5,0]) rotate([0,-9...
glb/cad_a72fe32740bc.glb
Create an Ugly Ball Christmas ornament by starting with a sphere of 35mm radius. Integrate a cylinder into the sphere that shares the same center, with a radius of 14mm and a height of 28.6mm. Create a central vertical void through the entire object using a cylinder with a radius of 10.5mm. Remove a smaller concentric ...
radius = 35; hollow = 0.9; detail = 64; holeSize = 0.7; num = 16; rotate(a = 180, v = [1, 0, 0]) union() { translate([0, 0, radius*(1+hollow)/2]) cube((radius/5)*[3.5, 0.5, 0.5], center = true); difference() { union() { sphere(r = radius, $fn = detail); translate([0, 0, radius*(1+hollow)/2]) cylinder(h...
glb/cad_a10b18fff6d7.glb
Create a 4-Way Outer Pipe Coupler designed for 26.67mm outer diameter pipes. The main body is a hollowed-out cross shape consisting of three intersecting cylinders: one vertical and two horizontal (along the X and Y axes). Each cylinder has an outer radius of 15mm and an inner radius of 13.67mm (providing a 1.33mm wall...
module pvc_coupler() { pipe_od = 26.67; gap = 1.0; ledge = 2.0; wall = 3.0; pad_w = 0.4; pad_r = 6.0; inner = pipe_od + gap; outer = inner + (wall*2); od_r = r_from_dia(outer); cy_h = r_from_dia(outer * 3.0); id_r = od_r - wall; function r_from_dia(d) = d / 2; module rotcy(rot, r, h) { rotate(90, r...
glb/cad_162e715f3ffc.glb
Create an adjustable Z endstop bracket by starting with a main rectangular block measuring 14mm by 18.5mm by 27mm. Attach a second rectangular block measuring 10mm by 8mm by 10mm to the side, positioned 4mm along the X-axis and offset -8mm along the Y-axis. Carve a rectangular void measuring 16mm by 16mm by 18mm into...
rotate([0,90,0]) difference(){ union(){ cube([14,18.5,27]); translate([4,-8,0]) cube([10,8,10]); } translate([-1,4,3.5]) #cube([16,16,18]); translate([9,-4,-1]) #cylinder(r=1.5,h=12, $fn=20); translate([9,-4,4]) rotate([0,0,30]) #cylinder(r=3.25,h=2.5,$fn=6); translate([6.2,-14,4]) #cube([5.6,10,2.5]); trans...
glb/cad_3db2ac51cb31.glb
Create a Customizable Headphone Stand with a total height of 205mm and a top length of 50mm. The structure consists of a vertical support pillar that leans at a 70-degree angle. Start by creating a base platform that supports the pillar. The base should be wide enough to ensure stability, with a width of 120mm. The pi...
height = 205 ; length = 50 ; angle = 70 ; split = 0 ; roundEdge = 0+0 ; module headPhoneStand(height=185, lengthTop=50, angle=70, split=0, roundEdge=0) { $fn = 90 ; length0 = height / tan(angle) ; lengthBottom = (lengthTop+length0) * 1.2 ; extrudeScale = (lengthBottom-length0) / lengthBottom ; widthB...
glb/cad_f1e76dc0eee9.glb
Create a Manitowoc Ice Machine Door Pin. Start with a main rectangular body that is 67.1mm long, 22.25mm wide, and 4.66mm thick. At one end of the body, attach a cylindrical pin that extends outward. This pin should have a radius of 4mm and a length of 26mm, centered along the width of the body. Along the length of ...
$fn=30; mid_length = 67.10; module topHalf() { hull() { mid_length = 67.10; top_length = 58.27; mid_width = 22.25; top_width = 15.25; top_thickness = 4.66; lheight = 0.01; cube(size=[mid_length, mid_width, lheight], center=true); translate([0, 0, to...
glb/cad_39268dde1b7a.glb
Create a rounded cube with overall dimensions of 10mm in width, 20mm in depth, and 30mm in height. The shape should be constructed such that every edge and corner is rounded with a consistent radius of 2mm. To achieve this geometry, ensure that the eight corners of the volume are defined by spheres with a 2mm radius, p...
module rCube(x,y,z,rd,fn){ $fn=fn; hull(){ translate([rd,rd,rd]) sphere(rd); translate([x-rd,rd,rd]) sphere(rd); translate([x-rd,y-rd,rd]) sphere(rd); translate([rd,y-rd,rd]) sphere(rd); translate([rd,rd,z-rd]) sphere(rd); translate([x-rd,rd,z-rd]) sphere(rd); ...
glb/cad_41c6deb88ebc.glb
Create a customizable gift tag. Start by constructing a base plate with a total length of 84mm and a height of 16mm. The base should have a thickness of 1mm. The left end of the tag is shaped as a point, extending from the main body to a vertex at the far left, creating a pentagonal profile. At the pointed end, integr...
tag_text = "to: Elizabeth"; font_name = "Nunito"; tag_length = 84; tag_height = 16; tag_depth = 1; text_depth = tag_depth*2; text_border=3; tag_border=2; bold_font_name = str(font_name,":style=Bold"); tag_points = [ [tag_length,-1*(tag_height/2)], [-1*(tag_height/2), -1*(tag_height/2)], [-1*(tag_he...
glb/cad_046a6febcae5.glb
Create a 6 hole extrusion joining plate by starting with a rectangular base measuring 36mm in length, 54mm in width, and 5mm in thickness. Apply a corner radius of 0.7mm to all four vertical edges of the plate. Remove six circular holes, each with a diameter of 5.7mm, passing completely through the thickness of the pla...
module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x/2)+(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(x/2)-(radius/2), (-y/2)+(radius/2), 0]) circle(r=radius); translate([(-x/2)+(radius/2), (y/2)-(radius/2), 0]) ...
glb/cad_9978b731d603.glb
Create an M3 double nut thumbwheel consisting of a wide base and a central raised tube. Start with a main wheel that is 22mm in diameter and 4mm high. On top of this wheel, center a cylindrical tube extension with a diameter of 11mm and a height of 5mm. Pierce the entire assembly with a central axial hole 3.5mm in di...
hole_dia = 3.5; wheel_dia = 22; wheel_h = 4; tube_dia = 11; tube_h = 5; total_h = wheel_h + tube_h; knurl_cnt = 5; knurl_dia = 7; hex_h = 7; hex_shaft = 6.25; difference() { union() { cylinder(h = wheel_h, r = wheel_dia / 2, $fn = 50); translate([0, 0, wheel_h]) cylinder(h = tube_h, r = tube_dia / 2, $fn = 50);...
glb/cad_af33599ab468.glb
Create a parametric cable guide block. Start with a solid rectangular base measuring 50mm in length, 10mm in depth, and 15mm in height. Carve four semi-cylindrical slots across the top surface to hold cables; each slot must have a radius of 5mm and a width of 10mm, spaced 10mm apart from each other and the edges. Remov...
slots=4; width=10; hole=4; thickness=5; depth=10; spacer=1; module cableguide(slots, width, hole, spacer, thickness, depth) { $fn=50; spacer_width=width*spacer; total_width=slots*width + (slots+1)*spacer_width; total_height=width+thickness; difference() { cube([total_width, depth, total_height]); for ( ...
glb/cad_7f6ad7b98487.glb
Create a base for a Buffalo WZR-600DHP router consisting of a flat ring and internal support struts, all with a uniform thickness of 3mm. Start by creating a circular ring with an outer diameter of 68.58mm and an inner diameter of 55.37mm. Within the center of this ring, add three rectangular support struts, each 3mm...
outerbasedia=((1629*25.4)/600); innerbasedia=((1305*25.4)/600); notchsep=((666*25.4)/600); notchnarrow=((121*25.4)/600); notchwide=((157*25.4)/600); notchdeep=((71*25.4)/600); basethick=3; module basering () { difference () { cylinder(h=basethick,r=(outerbasedia/2), $fn=32); translate([0,0,-1]) ...
glb/cad_3669b1d6b473.glb
Create a name tag keychain by starting with a rectangular base measuring 90mm in length, 20mm in width, and 5mm in height. At the left end of the base, center a circular hole with a diameter of 4mm that passes completely through the 5mm thickness, positioned 10mm from the left edge and 10mm from the front edge. On the ...
xSize = 90; myFont = "Liberation Sans"; myText = "3D Dream Box"; holeDia = 4; difference() { difference() { cube([xSize, 20, 5], center=false); translate([10, 10, 0]){ cylinder(r1=holeDia, r2=holeDia, h=20, center=false); } } translate([20, 7.5, 3]){ linear_extrude( height=5, twist=0, ce...
glb/cad_70f0b9c73805.glb
Create a Stanley Miter Box Cam Clamp Peg consisting of three stacked geometric sections aligned along a central vertical axis. Start at the base with a cylinder 12.5mm high, featuring a bottom radius of 5.1mm and a top radius of 6.1mm. Directly above this, attach a main body that is 108.5mm tall (96mm body height plus ...
pegHeight = 12.5; pegRadius = 11.2/2; bodyHeight = 96; bodyRadius = 16.35/2; bodyEccentricity = 1.1; tabHeight = 12.5; tabRadius = 18/2; hollow = 0; translate([0, 0, pegHeight+bodyHeight+tabHeight]) rotate([0, 180, 0]) difference() { union() { translate([0, 2.95, 0]) cylinder(h=pegHeight, r1=pegRadius-0.5, r2=...
glb/cad_079bde732727.glb
Create an action camera mount for a drone. Start with a main cylindrical base that has a radius of 17.5mm and a height of 18.5mm. Remove a smaller concentric cylinder from the center of the base with a radius of 10mm and a depth of 3mm. On the top surface of the base, center a rectangular block that is 14.5mm tall, 1...
$fn=250; difference() { cylinder(r=17.5,h=18.5); cylinder(r=10,h=3); rotate([0,0,45]) #translate([14,0,0]) cylinder(r=1.3,h=4); rotate([0,0,45]) #translate([-14,0,0]) cylinder(r=1.3,h=4); rotate([0,0,45]) #translate([0,14,0]) cylinder(r=1.3,h=4); rotate([0,0,45]) #tra...
glb/cad_27e12e245f50.glb
Create a 3D model for a printer X-axis carriage. Start with a main rectangular block measuring 70mm in width, 57mm in depth, and 15.5mm in height. Carve out two large rectangular channels through the center of the block, each 15mm wide and 60mm deep, leaving two outer pillars. Within these pillars, create four circul...
%translate([12.5,122.5,12]) rotate([0,90,0]) bars(); %translate([12.5,27,12]) rotate([90,0,0]) lm8uu(); %translate([12.5,54,12]) rotate([90,0,0]) lm8uu(); %translate([57.5,27,12]) rotate([90,0,0]) lm8uu(); %translate([57.5,54,12]) rotate([90,0,0]) lm8uu(); difference(){ cube([70,57,15.5]); translate([12.5,29,27]) c...
glb/cad_8d3f2a6c16bb.glb
Create a Prusa i3 X-axis idler. Start with a main body composed of a 18x45x60mm block, joined with a 10x11x10mm cube centered at [23, 6.5, 5] and a 5x23x60mm block at [18, 12, 0]. Carve out two large horizontal cylindrical channels for 8mm bars, each with a radius of 4.05mm and a 24-facet resolution, positioned 45mm ...
difference(){ x_idler_base(); x_idler_holes(); } %translate([23.5,23.5,4]) lm8uu(); %translate([23.5,23.5,32]) lm8uu(); %translate([23.5,6.5,3]) m5nut(); %translate([23.5,23.5,50.5]) ziptie(); %translate([23.5,23.5,34]) ziptie(); %translate([23.5,23.5,22.5]) ziptie(); %translate([23.5,23.5,6]) ziptie(); %translat...
glb/cad_825838d89f80.glb
Create a tensioner for an i3 X axis. Start with a central block that is 13mm wide, 12mm deep, and 15.5mm tall, but soften all edges by applying a 4mm radius fillet to the entire shape. Remove a cylindrical hole with a radius of 11mm and a length of 11mm, centered at a depth of 3mm from the center of the block, running ...
difference(){ minkowski(){ cube([13,12,15.5], center = true); cylinder(r = 4, h = 1, $fn = 32, center = true); } translate([0,3,0]) rotate([0,90,0]) cylinder(r = 11, h = 11, $fn = 64, center = true); translate([0,10,0]) cube([9.5,13,20], center = true); translate([0,3,0]) rotate([0,90,0]) cylinder(r = 2.2, h =...
glb/cad_db464b10034e.glb
Create a Kuro's i3 X axis assembly consisting of two primary components: an idler base and a motor mount. For the idler base, start with a main block measuring 18mm x 35mm x 60mm. Attach a 10mm x 12mm x 10mm centered cube at [23, 6, 5] and a 5mm x 23mm x 60mm block at [18, 12, 0]. Create two 200mm long holes for 8mm ...
rotate([0,0,180]) mirror() difference(){ x_idler_base(); x_idler_holes(); } rotate([0,0,180]) mirror() x_motor_mount(); %rotate([0,0,180]) mirror() translate([23.5,23.5,4]) lm8uu(); %rotate([0,0,180]) mirror() translate([23.5,23.5,32]) lm8uu(); %rotate([0,0,180]) mirror() translate([23.5,6.5,3]) m5nut(); %rotate([...
glb/cad_59e576693e7b.glb
Create a blowgun stun dart by stacking several concentric geometric primitives along a central vertical axis. Start with a base cone that is 7.25mm high, tapering from a bottom diameter of 9.45mm to a top diameter of 6.25mm. Hollow out the center of this base cone with a smaller concentric cone that is 3.25mm high and ...
$fn=100; cone_diameter = 9.45; cone_height = 7.25; cone_hull_height=3.25; wall = 0.6; cone_neck_diameter = 6.25; cone_neck_height = 4; use_baffle=true; baffle_height=1.75; baffle_diamerter=3; tip_neck_height = 1.25; tip_height=5; tip_diameter=8.65; use_point=true; difference() { cylinder(h = cone_height,...
glb/cad_eea2d36e6280.glb
Create a customizable lithophane ornament. Start by creating a hollow sphere with an outer diameter of 74mm (a 70mm inner diameter plus a 2mm shell thickness). The bottom half of the sphere is open, while the top half forms a dome. The front surface of the dome is a lithophane, created by varying the thickness of the ...
image_file = "image-surface.dat"; diameter = 70; layer_height = 0.05; number_of_layers = 30; shellthick = 2; text_to_write = "Christmas"; text_to_write2 = " 2017 "; font = "Cookie"; module stopCustomizer(){} min_layer_height = layer_height*2; height = layer_height*number_of_layers; maxheight = height+min_lay...
glb/cad_71f368754ed3.glb
Create a hard disk holder consisting of five parallel bays. Each bay is formed by a rectangular outer shell 106mm wide by 30mm deep with a wall thickness of 2mm, leaving an internal cavity of 102mm by 26mm. Extrude the entire structure to a height of 20mm. The bays are stacked along the Y-axis with a 10mm gap between...
hddx=102; hddy=26; wall_thickness=2; height=20; number_of_drives = 5; gap = 10; gap_brace_height = 10; endcap=1; hddBay(number_of_drives-1); module hddBay(number) { linear_extrude(height) difference() { square([hddx+wall_thickness*2,hddy+wall_thickness*2],center=true); square([hddx,hddy...
glb/cad_ca6737b6d9d4.glb
Create five interlocking rings, each with a radius of 70mm and a thickness equal to the width of the ring's wall. The wall width is determined by the difference between an outer radius of 74mm and an inner radius of 66mm, resulting in a wall thickness of 8mm. Position the rings in two rows: three in the top row and tw...
Ring_Radius = 70; Ring_Smoothness = 60; Half_Cut_Clearance = 0.1; Radial_Clearance = 0; Gap_Support_Thickness = 0.3; Skirt_Ring_Height = 0.5; Skirt_Ring_Thickness = 0.5; Bed_Spacing = Ring_Radius / 4; Ring_Opacity = 0.8; Linked_Rings(); use_gap_support = false; use_skirt_ring = false; use_mouse_ears = true; mouse_e...
glb/cad_084191142dbc.glb
Create a Simple Name Sign consisting of a rectangular base with a raised border and embossed text. Start with a base plate measuring 150mm wide, 60mm high, and 2mm thick. Add a raised border with a thickness of 1mm and a width of 2mm, positioned 5mm from the outer edges of the base. The corners of this border should ...
font = "write/orbitron.dxf"; name1="Simple Name Sign"; name2="Optimized for Customizer"; name3="based on Any Name Sign"; name4="by Fryns"; yname1=15; yname2 =5; yname3=-5; yname4 =-15; letter_size=7 ; letter_depth=1; basex=150; basey=60; base_depth=2; borderwidth=2; borderradius=8; borderdistance=5; border_d...
glb/cad_1585ca71b9a6.glb
Create a wire access grommet consisting of two separate parts: a lid and a base. For the base, create a cylinder with a diameter of 40mm and a height of 16mm. Remove a central cylindrical core with a diameter of approximately 35.1mm and a height of 50mm to create a hollow sleeve. Around the bottom of this sleeve, add ...
Grommet_Diameter = 40; Hole_Diameter = 20; Top_Text = ""; Font_Size = 8; Letter_Spacing = 1.3; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; $fn=120; use <utils/build_plate.scad> use <write/Write.scad> module solid_top(){ translate([0,0,1.5]) cylinder(r1=(Grommet_Diamete...
glb/cad_fe2aaac69a5f.glb
Create a Z endstop clip by starting with a solid rectangular block measuring 10.4mm wide, 19mm deep, and 14mm high. Carve out a central rectangular channel from the top, leaving walls that are 2mm thick on each side, 12mm high, and 19mm deep, resulting in a U-shaped bracket with a base thickness of 2mm. To finish the p...
panel_width = 6.0; screw_diam = 3.0; difference() { cube(size = [10.4,19,14]); translate([2,0,2]) color("Blue") cube(size= [6.4,19,12]); rotate(a=[0,90,0]) translate([-6.6,4.5,-1]) color("Red") cylinder(h=12.0, r=1.6, $fn=100); rotate(a=[0,90,0]) translate([-6.6,14.5,-1]) color("Red") cylinder(h=12.0, r=1.6, $fn=1...
glb/cad_42bea70b386f.glb
Create a Microscope Clip by starting with the base clip geometry. The main body is a curved, open-topped holder. To complete the design, add a vertical cylindrical hole that passes through the bottom of the clip. Position the center of this hole at coordinates (23.58, 0, 5) relative to the clip's origin. The hole must ...
holeDiameter = 1.0; 350ClipHoleWidth = 1; 350ClipHoleDepth = 1.05; 350ClipHoleX = 23.5845 + 350ClipHoleWidth/2; 350ClipHoleZ = 5; $fn = 24; module clip() { translate([0, -1.9, 0]) 350Clip(); } module hole() { translate([350ClipHoleX, 0, 350ClipHoleZ]) rotate([-90, 360/$fn/2, 0]) ...
glb/cad_4232846d9745.glb
Create a Tripod Mount Lug Washer and Bolt assembly consisting of three main components: a bolt, a washer, and a lug. First, construct the bolt by combining a hexagonal head with a diameter of 11mm and a height of 4.22mm to a cylindrical threaded shaft with a diameter of 6.29mm and a height of 9.15mm. Second, create a...
a_bit=0.1; bolt_head_d=11; bolt_head_t=4.22; bolt_thread_d=6.29; bolt_thread_h=9.15; washer_id=6.8; washer_od=12.7; washer_t=1.15; washer_is_hollow=false; tripod_lug_pillar_extra_h=7; tripod_lug_pillar_h=9.2+tripod_lug_pillar_extra_h; tripod_lug_pillar_id=5.12; tripod_lug_pillar_od=7.85; tripod_lug_base_od=19; trip...
glb/cad_47e23c12061f.glb
Create a Ukulele Friction Tuner Replacement Washer by starting with a solid truncated cone that has a height of 3.4mm, a base diameter of 11.4mm, and a top diameter of 10.3mm. From this solid, remove a central cylindrical hole with a diameter of 4.63mm (4.23mm pin diameter plus 0.4mm clearance) that passes completely...
height = 3.4; outerBaseDiameter = 11.4; outerTopDiameter = 10.3; innerHeight = 2.1; innerTopDiameter = 9.9; innerBaseDiameter = 4.35; pinDiameter = 4.23; pinClearance = 0.4; $fa = 5; $fs = 0.1; preview_tab = ""; GT = "\u003E"; LEQ = "\u2264"; GEQ = "\u2265"; if (outerBaseDiameter <= outerTopDiameter) war...
glb/cad_708e90c2669a.glb
Create a Customizable Delta Effector by starting with a central cylindrical body 60mm in diameter and 10mm high. Remove a concentric cylindrical hole from the center with a diameter of 30mm that passes completely through the body. Around this center, create a radial array of 8 mounting holes, each 3.1mm in diameter, po...
module effector() { effectorHeight = 10; bodyDiameter = 60; bodyHeight = effectorHeight; bodyDiaphram = 30; armLength = 35; armWidth = 40; armHeight = effectorHeight; armNub = 4; bodyMounts = 8; bodyMountsOffset = 20; difference() { union() { body(bodyDiameter, bodyHeight, bodyDiaphra...
glb/cad_dc161dcd9621.glb
Create a Board Mount Adapter consisting of two sets of mounting holes connected by a rectangular frame of struts. First, create four outer mounting pillars. Each pillar is a cylinder with a diameter of 3mm, a height of 2mm, and a concentric hole of 1.5mm diameter running through its center. Position these pillars at ...
outerHorizontalDistance = 91; outerVerticalDistance = 86; innerHorizontalDistance = 67; innerVerticalDistance = 128; outerScrewDiameter = 3; innerScrewDiameter = 3; outerDistanceHeight = 2; innerDistanceHeight = 10; strutHeight = 2; strutMode = 0; outerTLOffsetX = 0; outerTLOffsetY = 0; outerTROffsetX = 0; ...
glb/cad_8e9b83026113.glb
Create a personalized keychain by starting with a base plate that is 90mm long, 20mm wide, and 5mm thick. The base should have fully rounded corners and edges with a radius of 2mm. At the left end of the plate, create a circular hole with a diameter of 20mm that passes completely through the thickness of the base. On ...
$fn=100; name = "Test text!"; font = 1; google_font = "Arial Unicode MS"; style = 4; text_spacing = 1.0; text_height = 15; width = 20; length = 90; thickness = 5; roundness = 2; font_list = [undef, "Helvetica", "Times", "Arial Unicode MS", "Courier", ...
glb/cad_59c95d2aa78a.glb
Create a 3D parametric snowflake with a thickness of 2mm. The shape is generated by extruding a 2D profile consisting of two mirrored curves. To define the curve, plot a series of points where the x-coordinate is determined by `(cos(t) + cos(7t)/2) - sin(17t)/3` and the y-coordinate by `(sin(t) + sin(7t)/2) - cos(17t)/...
scale2 = 30; width = 2; thickness = 2; power = 1.5; linear_extrude( height=thickness, twist=0, scale=[1, 1], center=false){ union(){ curve(); mirror([1,0,0]){ curve(); } } } module curve() { for (t = [0 : abs(1) : 360 - 1]) { hull() { point_at(t); point_at((t + 1)); } } } ...
glb/cad_e9a3b78c0371.glb
Create a Wall Holder for File Set consisting of a backplate and six tool slots. Start with a rectangular wallplate measuring 4mm thick, 12.6mm wide, and 20mm high. Along the 12.6mm width, create six identical tool-holding units spaced evenly. Each unit consists of a hanger block measuring 15mm wide, 12.6mm deep, and 4m...
slots = 6; tool_diam = 3; $fn = 50 * 1; trad = tool_diam / 2; sw = trad * 1.2; min_wid = 6.3 + tool_diam * 2; cen = (min_wid / 2); module wallplate(){ difference(){ cube([4, min_wid, 20]); } } module hanger(){ difference(){ cube ([tool_diam * 5, min_wid, 4]); translate ([tool_dia...
glb/cad_e5f30ea00e8d.glb
Create a Rod Tripod stand designed to support a rod with a diameter of 20mm. The structure consists of three identical legs radiating from a central hub at 120-degree intervals. Start by creating a central cylindrical hole with a radius of 10mm and a height of 40mm to accommodate the rod. Surround this hole with a ce...
rod_dia = 20.0; size = 80; wall_thickness = 2.46; leg_pads = 0.9; extra_strong = 0.0; height_ratio = 0.5; closed_bottom = 1; square_rod = 0; height = size * height_ratio; epsilon = 0.001; module leg(leg_pads) { $fn = 50; union() { hull() { translate([0,0, height/2]) ...
glb/cad_fa6147a73f57.glb
Create a tape dispenser by starting with a central rectangular block 30mm long, 23.8mm wide, and 15mm high. Shape the top of this block into a curved profile by intersecting it with a cylinder 40mm in diameter, centered on the block and oriented horizontally along its length. Carve out a central rectangular void to h...
$fn=100; latime_rola = 20; inaltime = 15; lungime = 30; diametru_curbura = 40; fanta = 10; latime = latime_rola + 1.9*2; corp(); module corp() { intersection() { rotate([90, 0, 0]) translate([0, -diametru_curbura/2, 0]) cylinder(h = latime_rola*2, d = diametru_curbura, center = true, $fn=100); ...
glb/cad_8c03be5fd25c.glb
Create a wheel cap consisting of a cylindrical base and a tapered top section. Start by constructing a hollow cylindrical base with an outer radius of 34.5mm and an inner radius of 34mm, giving the walls a thickness of 1mm, and a height of 12mm. Cut a small semi-circular notch with a radius of 1.5mm into the side of th...
in_rad=68/2; width=1; out_rad=in_rad+width; cap_rad=55/2; base_h=12; top_h=30; difference(){ difference(){ cylinder(h = base_h, r=out_rad, $fn=200); cylinder(h = 12, r=in_rad, $fn=200); } translate([in_rad-0.5, 0, base_h/2]){ rotate([0,90,0]){ cylinder(h=3, r=3/2,...
glb/cad_34e4d8cf1816.glb
Create an SFT Direct Drive Extruder consisting of several geometric components. First, create two identical main body supports. Each support is a plate 10mm high. The base is a hull formed by three cylinders of radius 4mm positioned at (0, 21.7), (21.7, 0), and (-21.7, 0). Subtract a central hull of three cylinders o...
h = 10; drive_dia = 10.6; drive_hole_dia = drive_dia+1; drive_filament_path_dia = 9.7; bearing_h = 7; bearing_dia = 22; bearing_inner_dia = 8; concentric_delta = 0.8; filament_dia = 1.60; filament_path_dia = 4; filament_path_x_offset = drive_filament_path_dia/2 + filament_dia/2; nut_w = 8; nut_b = 4; nut_h = 9; ...
glb/cad_d51a572a645e.glb
Create a Logitech QuickCam Pro 5000 Mount consisting of a main cylindrical base and an attached mounting pin. Start by creating a cylinder with a diameter of 20mm and a height of 10mm. Drill a 4.4mm diameter hole through the center of this cylinder along its vertical axis. Attached to the side of this cylinder, add a ...
$fn = 60; micron = 0.01; Pro5000Mount(); module Pro5000Pin() { height_pin = 8; square_width = 6.65; square_thick = 2.65; difference() { union() { cylinder(h=height_pin, d=4.5); translate([0,0,height_pin/2]) cube([2.65, square_width, height_pin], center=true...
glb/cad_a03d3234f647.glb
Create a drill guide for a square leg. Start by creating a square base plate measuring 50.5mm by 50.5mm with a thickness of 2mm. In the exact center of this base, add a cylindrical pilot hole with a diameter of 3mm that passes completely through the plate. To create the guide walls, add two rectangular prisms. The fir...
$fn=128+0; pilot_hole_diameter=3; leg_size=50.5; half_leg=leg_size/2; thick=2; guide_height=12; union() { difference() { translate([-half_leg,-half_leg,0]) cube([leg_size,leg_size,thick]); translate([0,0,0]) cylinder(d=pilot_hole_diameter,h=thick*2.5,center=true); } translate([-half_leg-thick,-half_leg-thick,0])...
glb/cad_47a154d53ab7.glb
Create a MendelMax Power and USB panel. Start with a rectangular base plate measuring 110mm wide, 69mm high, and 3.8mm thick, with rounded corners (10mm radius). On the left side, centered vertically, create a rectangular cutout for an IEC power module. This cutout should be 48mm wide and 28mm high. To accommodate the...
use</home/mark/data/openscad/libraries/MCAD/boxes.scad> use</home/mark/data/telepresense/includedthings/GoblinOne.scad> panel_width = 110; panel_height = 69; panel_depth = 3.8; panel_hole_hedge_w=5; panel_hole_vspace=50; mount_hole_d = 5; IEC_offset=-20; IEC_width=47+.5*2; IEC_height=27+.5*2; IEC_depth=1; IEC_rim=1....
glb/cad_a83ea06e10b7.glb
Create a parametric graphene molecular model consisting of a 3x3 grid of hexagonal unit cells. The structure is composed of spheres representing atoms and cylinders representing chemical bonds. Each atom is a sphere with a radius of 2.5mm. The bonds are cylinders with a radius of 1.5mm and a length of 10mm. The sphere...
rs=2.5; r = 1.5; bl=10; MaxR=3; MaxC=3; A=bl/2; B=0.8660254*bl; C=bl; ColS = 2*B; RowS = 2*A+C; ux=0; uy=0; for(j=[0:1:MaxR-1]) { for(i=[0:1:MaxC-1]) { union() { translate([i*ColS+j*B,A+C+j*RowS-A*j,0]){sphere(rs);} translate([i*ColS+j*B,A+C+j*RowS-A*j,0])rotate([0,90,30]){cylinder(bl,r,r);} translate([i*ColS+j*...
glb/cad_62dd2c03e1d2.glb
Create an IOIO holder by starting with a central rectangular plate measuring 69mm by 31mm with a thickness of 3mm. Cut a rectangular hole through the center of this plate that is 50mm long, 20mm wide, and 4mm deep to create a recessed central area. At each of the four corners of the plate, add a tapered cylindrical peg...
module ioio() { for(i = [ [ 32.0, 13.0, 0], [32.0, -13.0, 0], [-32.0, 13.0, 0], [-32.0, -13.0, 0]]) { translate(i) cylinder(r1=2.5, r2=1.75, h=10); } } translate([0,0,1.5]) { ioio(); difference() { cube(size=[69,31,3], center=true); cube(size=[50,20, 4], center=true); } }
glb/cad_eb96bef14fdd.glb
Create a miniature table by combining a rectangular top, four legs, and a supporting skirt. Start with a rectangular tabletop measuring 50mm in length, 40mm in width, and 2mm in thickness. At each of the four corners of the tabletop, add a square leg measuring 3mm by 3mm with a height of 40mm. Position these legs so ...
offset = 0.5; top_colour = "SaddleBrown"; leg_colour = "SaddleBrown"; skirt_colour = "SaddleBrown"; top_x = 50; top_y = 40; top_z = 2; leg_x = 3; leg_y = 3; leg_z = 40; skirt_x = 2; skirt_top_offset = 2; skirt_z = 4; union() { translate([0,0,leg_z + top_z + offset]) { rotate([0,180,0]) { ...
glb/cad_35bfcfd729f7.glb
Create a Letterbox Door by starting with a flat plate that is 2mm thick. The plate has a complex rectangular footprint: the bottom edge is 130mm wide, and the top edge is 240mm wide, with a total height of 140mm. The corners are rounded with a 10mm radius. At the bottom center of the plate, 30mm up from the bottom edg...
xw=0.4; dw1 = 130; dw2 = 240; dh = 140; dho = 20; to = 30; td = 8; ww = 2; rd = 10; hno = 30; hd1 = 5; hd2 = 10; hdc = 3; hh = 12; translate([0,to,-hh+(hd2-hd1)]){ difference(){ union(){ linear_extrude(height=ww) hull(){ translate([-(dw1-rd*2)/2,0]) circle(d=10); ...
glb/cad_09ab612b4c91.glb
Create a flashlight diffuser cap consisting of a conical section and an octagonal grip. Start by creating a hollow truncated cone with a height of 14mm; the inner base diameter is 10.28mm, widening to an inner top diameter of 14.8mm. The wall thickness of this cone is 1mm. At the top of the cone, add a grip section. T...
BarrelDiameter=14.4; CapHeight=14; WallThickness=1; Margin=0.2; DoCutout=1; NotchWidth=0; LanyardHole=0; TipDiameter=BarrelDiameter*10/14; GripHeight=BarrelDiameter*3/14; NotchHeight=0.5; AntiRoll=8; difference(){ union(){ difference(){ cylinder(r1=TipDiameter/2+WallThickness, r2=(BarrelDiameter+Margin...
glb/cad_3a99ba74b4ba.glb
Create a mounting plate for a J Head Lite printer part. Start with a rectangular base measuring 67mm wide, 75mm high, and 4.8mm thick. Remove several geometric cutouts from this base. Create six circular holes with a radius of 1.95mm: two at the top corners (x=5.5mm and x=60.5mm, y=60.1mm), two for mounting (x=5.5mm ...
plate_h=75; plate_w=67; plate_t=4.8; box=8; bolt=3.9/2; $fn=100; module bolt(pos) { pos1=pos+[0,0,plate_t/2]; translate(pos1) cylinder(r=bolt,h=2*plate_t,center=true); } module box(pos) { pos1=pos+[0,0,plate_t/2]; translate(pos1) cube([box,box,2*plate_t],center=true); } module main() { difference() { union()...
glb/cad_dd185938dbca.glb
Create an RRW Spool Mount by constructing a central cylindrical hub and an outer ring. Start with a central cylinder that has a radius of 15mm and a height of 5.5mm. In the center of this hub, create a vertical hole with a radius of 4.25mm that passes through the entire height. Around this center, create a larger cylin...
in_rad = 31 / 2; out_rad = 80/2; wall_width = 5.5; out_depth = 1.7; bearing_rad = 22.2/2; bearing_support_rad = 30/2; bearing_depth = 7; rod_rad = 8.5/2; offset = 0.5; support = 0.4; difference() { union() { translate([0,0, (wall_width+ out_depth)/2]) difference() { cylinder(r=out_rad+wall_width, h=out_d...
glb/cad_c8c3b6d5e808.glb
Create a board game card caddy consisting of a rectangular base with three card wells. The overall base dimensions are 145mm in width, 75mm in depth, and 11mm in height. Within this base, create three identical rectangular wells. Each well should be 46mm wide and 70mm deep, positioned with a 5mm border around the out...
card_width = 44; card_height = 68; number_of_wells = 3; well_depth = 10; caddy_border_width = 5; card_well_buffer_spacing = 1; card_padding = caddy_border_width + (card_well_buffer_spacing * 2); well_shelf_depth = 1; well_shelf_width = 3; filger_cutout_size = 15; filger_cutout_y_tweak = 0; filger_cutout_z_tw...
glb/cad_f9dc9708e18c.glb
Create a radio stand consisting of two identical side legs connected by two horizontal bars. Each side leg is a flat, angular profile constructed from 10mm thick material. The leg features a main support section 150mm long. From the base, the leg extends at a 25-degree angle to form the front support, while the rear ...
Angle = 25; BackAngle = 25; SupportLength = 150; BarLength = 83.5; Tolerance = 0.1; part = "Assembled"; SubAngle = -(90-Angle); SharedAngle = -SubAngle + BackAngle; comp = (10/sin(SharedAngle)); truecomp = (SharedAngle > 90 ? comp : (SharedAngle == 90 ? 1 : 0)); echo(truecomp); SubBackAngle = (90-BackAngle); ...
glb/cad_2b6bb676b771.glb
Create a Mobius Penrose-like loop with a triangular cross-section. The loop should be centered on a circle with a radius of 30mm. The triangular cross-section has a width of 15mm and a thickness of 1mm. Construct the shape by sweeping this triangle along the circular path. As the triangle travels 360 degrees around t...
Radius = 30; Width = 15; Thickness=1; Halftwist=1.33333333333; Start=90; Step = 5; triangle_points = [[-Width/2,(-Width/(2*sqrt(3)))], [0,(sqrt(3)*Width/2-Width/(2*sqrt(3)))], [Width/2,(-Width/(2*sqrt(3)))]]; module mobius_strip(radius,width,thickness,step=1, halftwist=3,start=90) { for...
glb/cad_42693716a00f.glb
Create a Pill Box Organizer consisting of a main container and a matching lid. For the container, create a grid of 14 rectangular compartments arranged in 7 rows and 2 columns. Each individual compartment should have inner dimensions of 25mm length, 20mm width, and 15mm height. The walls separating the compartments a...
use <write.scad> include <write/Write.scad> part = "all"; Length_For_Each_Compartment = 25; Width_For_Each_Compartment = 20; Height_For_Entire_Model = 15; number_days = 7; number_per_day = 2; nubs = 0; wall = 1; day_names = 1; day_time_names = 1; text_h = 8; row_one = "B"; row_two = "L"; row_three = "D"; ...
glb/cad_bdd43a865d51.glb
Create a customizable phone and tablet stand by starting with a solid rectangular base measuring 95mm wide, 95mm high, and 20mm deep. Carve a phone slot into the center of this base. The slot should be 77mm wide and 10mm deep, positioned 4mm from the front edge and 5mm above the bottom surface. Tilt this slot backward ...
phone_width = 76; phone_depth = 9; buffer = .5; base_width_scale = 1.25; base_height_scale = 1.25; base_depth = 20; base_width = phone_width * base_width_scale; base_height = phone_width * base_height_scale; slot_angle = 20; slot_y_tweak = 4; slot_z_tweak = 5; difference() { cube([base_width, base_height...
glb/cad_36938b128015.glb
Create a miniature chair by combining a backrest, a seat, and four legs. Construct the backrest as a vertical panel 30mm high and 35mm wide at the base. The top of the backrest should be rounded with a thickness of 3mm, while the bottom edge is 2mm thick. Tilt the entire backrest 10 degrees. Carve a small, horizontal...
back(); seat(); legs(); chair_back_height = 30; chair_back_top_thickness = 3; chair_back_bottom_thickness = 2; chair_back_bottom_width = 35; chair_back_handhold_width = 6; chair_back_handhold_height = 1; chair_back_angle = 10; chair_seat_thickness = 3; chair_seat_depth = 40; chair_seat_front_width = 50; leg_...
glb/cad_5b2b80324211.glb
Create a direct extruder gear component. Start with a main cylinder that is 6mm high and 28mm in diameter, using a 32-facet resolution. Remove a central vertical hole with a diameter of 5.4mm and a 12-facet resolution. Around the outer perimeter of this main cylinder, create 16 evenly spaced vertical notches, each 2mm ...
m3d=3+0.4; m3r=m3d/2; m3dh=3+0.2; m3nd = 6.2+0.4; m3nr = m3nd/2; m3nh=2.6; m5d=5+0.4; he=6; d=28; difference() { cylinder(he, d/2, d/2, $fn=32); for (i=[0:15]) { rotate([0,0,360/16*i]) translate([d/2, 0, -1]) cylinder(he+2, d/16, d/16, $fn=8); } translate([0,0,-1]) cylinder(he+2, m5d/2, m5d/2, $fn=12); tr...
glb/cad_6b4f59469288.glb
Create a Direct Extruder for a Prusa i3. Start with a main base body that incorporates a complex profile for the extruder housing. The base features a flat bottom section 3mm thick, transitioning into a vertical housing 15mm high. Integrate a central cylindrical cavity with a radius of 12mm and a height of 4mm to acc...
include<MCAD/teardrop.scad>; x_filament = 4.2; z_filament = 9.5; x_idler = 10; m3d=3+0.4; m3dh=3.2; m3nd=6.2+0.4; m3nh=2.5; m3shd=7.6; m4dh=4+0.3; module mk8() { translate([0,0,z_filament]) rotate_extrude(convexity = 10, $fn = 100) import (file = "MyExtruder_v1.2.dxf", layer = "mk8"); } module base() { diff...
glb/cad_7d78693cc5c9.glb
Create a servo horn for a Hitec C1-24T spline. Start by creating a central cylindrical hub with a total height of 5.6mm. The hub should have a base diameter of 5.6mm and a central vertical hole with a diameter of 1.6mm. Inside the hub, create a spline consisting of 24 teeth. Each tooth should have a height of 0.4mm, a...
spline_type = 1; arm_length = 20; arm_count = 1; arm_screw_diameter = 2.0; base_thickness = 2.0; SERVO_HEAD_CLEARANCE = 0.2; $fn = 40/1; HITEC_D1_SPLINE = [ [7.6, 5.5, 1.8, 3.4, base_thickness], [15, 0.7, 1.3, 0.2] ]; module servo_hitec_d1(length, count) ...
glb/cad_e778b72677b1.glb
Create a wall mount for RC car tires. The main body is a semi-cylindrical clamp with a width of 20mm. The outer radius of the clamp is 52mm (based on a 100mm wheel diameter plus a 2mm margin), and the inner cutout is a cylinder with a 50mm radius to accommodate the tire. The clamp is backed by a flat rectangular base ...
wheel_diameter = 100; width = 20; hole_diameter = 4; hole_inset_diameter = 8.4; hole_count = "three"; part = "left"; wheel_radius = wheel_diameter / 2; outer_radius = wheel_radius + 2; _t = 3; _screw_head_radius = hole_inset_diameter/2; _screw_hole_radius = hole_diameter/2; _w = width; if (part == "left") { ...
glb/cad_a07683db2db6.glb
Create a pair of skis for figures by constructing a long rectangular base measuring 70mm in length, 6.9mm in width, and 2mm in thickness. At the front end of the ski, round the tip by adding a semi-cylindrical cap with a radius of 3.45mm and a height of 2mm, tilted at a 30-degree angle relative to the vertical axis. Ce...
ski_length=70.0; foot_length=18.6; ski_thick=2.0; foot_width=6.9; foot_height_toes=2.3; module oval_tube(height, rx, ry, wall, center = false) { difference() { scale([1, ry/rx, 1]) cylinder(h=height, r=rx, center=center); translate([0,0,-height/2]) scale([(rx-wall)/rx, (ry-wall)/rx, 2]) cylinder(h=height, r...
glb/cad_b6c888418183.glb
Create a Contact Washer by starting with a main cylinder that has a diameter of 16mm, a height of 2mm, and a 30-facet resolution. Remove a central vertical hole with a diameter of 8.1mm to create the ring shape. To add the grip features, create 35 evenly spaced radial holes around the center. Each grip hole should be a...
Overall_Diameter = 16; Inner_Hole_Diameter = 8 ; Fitting_Tolerance = 0.1; Washer_Thickness = 2; num_grips=35; $fn = 30; difference(){ cylinder (h=Washer_Thickness , d1=Overall_Diameter , d2=Overall_Diameter); for (i=[1:num_grips]) { translate([0,0,Washer_Thickness]) rotate ([90,0,i*360/num_grips]) cy...
glb/cad_656dca47f40f.glb
Create a set of geodesic dome connectors designed for 3.175mm diameter rods. All connectors use a central cylinder with a radius of 4.7625mm and a height of 15mm. Create 6 five-way connectors. Each consists of two halves. Each half is a cylinder with a 15mm height and 4.7625mm radius, with a 1.5875mm radius hole runni...
$fn = 28; Red_ang = 16; Blu_ang = 18; Cyl_len = 15; shaft = 3.175; module base4way(radius, length, base, blue) { rotate(a=90, v=[1,0,0]) { difference() { union() { cylinder(r=radius*3, h=length); if (blue == 1) { translate([0,-radius*2,length]) sphere(1); ...
glb/cad_05b87d09cead.glb
Create a customizable cup holder consisting of a tapered main body and a top lip. First, construct the main body as a hollow cylinder with a total height of 89mm. The outer wall of this body is a cylinder with a diameter of 80mm. The interior is a hollowed-out conical void starting 3.5mm from the bottom; this void begi...
$fa=2; top_id = 73; top_od = 80; bottom_id= 69; il = 85; lip_overhang = 4; lip_height = 5; wall_thickness = top_od - top_id; ol = il + wall_thickness; lip_od = top_od + lip_overhang * 2; slant_amount = top_id - bottom_id; slant_rate = (top_id - bottom_id) / il; module lip() { difference() { cylinder...
glb/cad_64d1fe244e76.glb
Create a square game board for pyramid game pieces by starting with a solid base cube measuring 180mm by 180mm with a height of 6mm. Center this base on the coordinate system so it extends from -17mm to 163mm on both the X and Y axes. Within this base, carve out a 5 by 5 grid of square holes. Each hole must be 26.4mm w...
difference() { translate ([-17,-17,0]) cube([180,180,6]); for ( x=[0:30:132] ) { for ( y=[0:30:132] ) { translate([x,y,3]) cube([26.4,26.4,5]); } } }
glb/cad_760317e913b1.glb
Create a rectangular game board for Pyramid game pieces. Start with a solid rectangular base measuring 150mm in length, 120mm in width, and 6mm in height. Within this base, carve out a grid of 12 square indentations. Each square hole must measure 26.4mm by 26.4mm and have a depth of 3mm. Arrange these holes in a grid o...
difference() { translate ([-17,-17,0]) cube([150,120,6]); for ( x=[0:30:92] ) { for ( y=[0:30:62] ) { translate([x,y,3]) cube([26.4,26.4,5]); } } }
glb/cad_194e8816a616.glb
Create a game board for Pyramid game pieces by starting with a solid square base measuring 210mm by 210mm with a thickness of 6mm. Centered within this base, carve out a 6 by 6 grid of square holes. Each hole must measure 26.4mm by 26.4mm and have a depth of 3mm. Arrange these holes with a consistent spacing of 30mm fr...
difference() { translate ([-17,-17,0]) cube([210,210,6]); for ( x=[0:30:162] ) { for ( y=[0:30:162] ) { translate([x,y,3]) cube([26.4,26.4,5]); } } }
glb/cad_adf2b5c63f28.glb
Create three hollow square-based pyramids of increasing size. Each piece is constructed by centering a smaller square pyramid inside a larger one and removing the inner volume to create a thin shell. The smallest piece, the pawn, has an outer pyramid with a base side of 14.2875mm and a height of 25.4mm, with an inner ...
displayMode= rezScreen(); function rezPrinter()=0; function rezScreen()=1; function resolution(value) = displayMode==1 ? 360 : value*2*3.141592; $fn=resolution(4); function vectorDistance(v1, v2) = sqrt((pow(v2[0]-v1[0],2)+pow(v2[1]-v1[1],2))+pow(v2[2]-v1[2],2)); ep=0.01; in=25.4; module pyramid(side=10, height=...
glb/cad_ead4299e8ee4.glb
Create a tin can scoop grip consisting of two identical handle plates and a central connecting stick. First, design the handle plates. Each plate is a flat piece 13mm thick (10mm height plus 3mm wall thickness). The outer profile is a hull formed between two circles: a large circle with a diameter of 106mm (100mm plu...
BOTTOM = "bottom"; TOP = "top"; STICK = "stick"; ALL = "all"; ASSAMBLED = "assamble"; YES = "yes"; NO = "no"; print = "all"; dCanTop = 101.5; dCanBottom = 100; hCan = 118.5; grip = 110; dBroomStick = 25; dScrew = 3; hScrew = 30;...
glb/cad_76058a62906c.glb
Create a shaver holder for a bathroom corner shelf. The main body is a flat rectangular plate 75mm long, 1mm thick, and 44mm wide. At one end of the plate, create a hollow cylindrical hook with an outer diameter of 14mm and an inner diameter of 12mm. This hook should be partially open-faced to allow a shaver handle t...
mytext="Hers"; embossed=1; mytextsize=12; fontName="Helvetica Light"; manualFont="Roboto Condensed"; h2 = 75; z1=44; cut_w=25; d1=14; d2=11; mat=1; $fn=100; dt1=0.001; dt2=dt1*2; font2="Helvetica:style=Light"; font3="Palatino Linotype:style=standard"; font4="PortagoITC TT"; font5="Papyrus"; font6="Helvetica Neu...
glb/cad_5e2c0ce5a7eb.glb
Create a parametric adjustment knob. Start with a main body consisting of two stacked cylinders: a bottom lip cylinder with a diameter of 27mm and a height of 3mm, and a primary upper cylinder with a height of 15mm that tapers from a base diameter of 25mm to a top diameter of 22mm. On the top surface, center a small ...
Diameter = 25; Hieght = 15; Grips_Num = 20; Bottom_Lip_Hieght = 3; Hex_Nut_Thickness = 3; Hex_Nut_Diameter = 0; Shaft_Width = 6; Shaft_Depth = 10; Shaft_Diameter = 6; Shaft_FlatSize = 2; Fitting_Tolerance = 0.1; Smoothing_Factor = 50; $fn=Smoothing_Factor; difference(){ body(); marker_hole(); grips(); hexh...
glb/cad_addeb43271db.glb
Create a Nema 17 Stepper 20mm Mount. Start with a base plate that is 2.5mm thick. The main body is a block with a length of 48mm and a width of 43mm. Cut a central rectangular channel through the body to accommodate a 20mm extrusion, with a width of 20.5mm. Along the length of this channel, create three sets of holes...
include <hardware.scad>; Titan_Mount_Thick = 2.5; Titan_Wide = 25; Titan_Filament_Y = 11.1; Titan_Filament_X = 13.5 + Titan_Mount_Thick / 2; Titan_Motor_Len =48; Nema_Mount_Pattern = 31; Nema_Center_Diameter = 22.5; Nema_Hardware = m3; Nema_Outer_Dim = 43; translate([0,0,Titan_Mount_Thick/2]) rotate([0,-90,0]) Titan...
glb/cad_491bc86dd905.glb
Create a 3D model of the B4,4 polyhedron (also known as a cubohemioctahedron) with an edge length of 30mm. Start with a cuboctahedron. To achieve the specific B4,4 geometry, remove the eight triangular faces of the cuboctahedron, leaving only the six square faces. Then, add four intersecting hexagonal faces that pass...
poly = "B44"; size = 30; fsize = 0.03; orientation = "solid"; s2 = 1/sqrt(2); module onetetra() { polyhedron( points = [ [0,0,0], [1,0,0], [0.5,0.5,s2], [0.5,-0.5,s2] ], triangles = [ [0,3,1], [1,3,2], [0,2,3], [0,1,2] ]); } module twotetra() { union() { onetetra(); rotate(90,[1,1,0]) onetet...
glb/cad_1bae0687d3e9.glb
Create a Printrbot Alu Extruder Mount for a Prusa i3. Start with a main rectangular plate that is 75.8mm long, 44mm wide, and 6mm thick. On the top surface of this plate, center a circular hole with a radius of 9mm to accommodate the hotend. Around this central hole, create four bolt holes for mounting. These holes a...
use <nuts_and_bolts.scad>; plateLength = 75.8; plateHeight = 6.0; plateWidth = 44.0; plateThickness = 6.0; frontPlateHeightDown = 23.0; frontPlateWidthUp = 33.3; frontPlateWidthDown = 58; frontPlateTopScrewOffset = 2.5; frontPlateThickness = 5.0; sideLocksWidth = 17.0; wallThickness = 4; wallAngle = 70; holeDistan...
glb/cad_e7acfd71badf.glb
Create a toy train track piece that is 250mm long, 40mm wide, and 12mm high. The main body is a rectangular slab with rounded ends. At each end of the track, create a connector consisting of a circle with a 6mm radius centered on the width, with a 3mm wide, 10mm long rectangular stem extending from the circle toward th...
TRACK_WIDTH = 40; TRACK_HEIGHT = 12; GROOVE_WIDTH = 6; GROVE_DISTANCE_IN = 4; GROOVE_DEPTH = 3; CONNECTOR_RADIUS = 6; CONNECTOR_STEM_LENGTH = 4; CONNECTOR_STEM_WIDTH = 3; $fn=100; module train_track(length = 250) { difference() { linear_extrude(height = TRACK_HEIGHT) { difference() { union(){ translate([CON...
glb/cad_5dec7f61d42a.glb