Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a Half Push Spacer by constructing a low-resolution cylinder with a height of 8mm, an outer radius of 15mm, and 10 facets. Remove a central cylindrical core with a radius of 4.5mm and the same height. To complete the part, cut a rectangular notch through the center of the object from the top to the bottom; this ...
hight = 16/2; outer_r = 30/2; inner_r = 9/2; difference() { cylinder(h=hight, r=outer_r, $fa=5, center=true); cylinder(h=hight*1.1, r=inner_r, $fa=5, center=true); translate(v=[0 , outer_r/2, 0]) #cube(size=[inner_r*2*0.8, outer_r, hight*1.1], center=true); }
glb/cad_64a5f06ab992.glb
Create a shed door slider consisting of a rectangular base with a total length of 50.5mm, a width of 31.5mm, and a height of 6mm. On the top surface, incorporate a raised section that is 11mm wide and 25mm high, leaving a 1mm lip at the edge. Carve out a central channel from this raised section to create a bridge-lik...
$fn=30; overall_length=50.5; hole=2.5; firstholex=23.5; firstholey=10.5; secholex=23.5; secholey=33; offsetx=2; offsety=3.5; cylh=6; difference() { union(){ translate([0, 0, 0]) cube([31.5,overall_length,6], center=false); translate ([0,0,0]) cube([11,overall_length,25], center=false); translate ([0,0,-1]) cu...
glb/cad_0d9d215291a8.glb
Create a cylinder wedge by intersecting a primary 3D object with a wedge-shaped volume. The wedge volume is defined by a radius of 10mm, a height of 20mm, a start angle of 10 degrees, and an angular span of 210 degrees. To ensure the outer curved boundary is smooth, intersect the primary object with a cylinder of 10m...
module cylinder_wedge( r, h, start_angle, angle, smooth_fn=0 ) { r_wrk = r+1 ; a = floor( angle/90 ) ; offset = 90 * a ; rem = angle - offset ; intersection() { union() { if ( a > 0 ) for ( i=[0:a-1] ) { rotate( [ 0, 0, start_angle+90 * i ] ) cube( [ r_wrk, r_wrk, h ] ) ; } intersection() { ...
glb/cad_775998cd189b.glb
Create a hinge consisting of a series of repeating cylindrical elements. For each element, create a cylinder with an outer radius of 5mm and a length of 10mm, centered on the X-axis. Subtract a concentric inner cylindrical hole with a radius of 2mm through the center of each element. For each cylindrical element, add ...
use <plib/support_box.scad> function hinge_height( r_outer, max_height ) = max_height > 0 && max_height < r_outer*sqrt(2) ? max_height : r_outer*sqrt(2) ; function hinge_length( len, gap, n_hinges ) = n_hinges*len+(n_hinges-1)*gap ; module hinge_element( len, r_outer=5, r_inner=2, offset=1, v_offset=1, max_he...
glb/cad_9cae4b5ecd34.glb
Create a rectangular block with dimensions 14mm in width, 40mm in length, and 6mm in height. Position this block so its center is offset by 3mm along the x-axis. From this block, remove three hexagonal holes, each with a height of 6mm, to create slots for nuts. The first hexagonal hole should have a radius of 3.6mm a...
module draw_nut_hex( r, thickness ) { linear_extrude( thickness ) circle( r, $fn=6 ) ; } module nut_m3( thickness=2.8 ) { draw_nut_hex( 3.6, thickness ) ; } module nut_m4( thickness=3.5 ) { draw_nut_hex( 4.7, thickness ) ; } module nut_m5( thickness=4.0 ) { draw_nut_hex( 5.4, thickness ) ; } difference() { trans...
glb/cad_756bc1a9d147.glb
Create a support box structure designed to support an overhang. The overall bounding volume is defined by a width of 5mm, a depth of 15mm, and a height of 15mm. Construct the support using a series of thin plates, each 0.3mm thick, spaced 3mm apart. These plates should run across the shorter dimension of the box. If ...
module draw_support_box( dim, trans_vec, cube_vec, plate_w, plate_gap ) { n_iter = ceil( (dim-plate_w)/(plate_w+plate_gap) ) ; plate_diff = (dim-plate_w)/n_iter - plate_w ; for (i = [0:n_iter] ) { translate(i * ( plate_w + plate_diff )*trans_vec) cube( cube_vec ) ; } } module draw_perforated_box( di...
glb/cad_a34d347ba2c7.glb
Create two separate polycube solids. The first is a unit cube with all vertices positioned at the coordinates defined by the ranges X: 0 to 1, Y: 0 to 1, and Z: 0 to 1. The second solid is a non-uniform six-faced polyhedron positioned with a translation of 2 units along the X-axis. Construct this second shape by defi...
module polycube( P ) { vertices = [ P[0][0][0], P[0][1][0], P[0][0][1], P[0][1][1], P[1][0][0], P[1][1][0], P[1][0][1], P[1][1][1] ] ; poly_faces = [ [ 1, 3, 2, 0 ], [ 4, 6, 7, 5 ], [ 4, 5, 1, 0 ], [ 2, 3, 7, 6 ], [ 0, 2, 6, 4 ], [ 5, 7, 3, 1 ] ] ; polyhedron( vertices, poly_faces ) ; }...
glb/cad_9166a0fc747a.glb
Create a camera box clasp consisting of three distinct parts: an axle, a main arm, and a catch. First, create the axle as a cylinder with a height of 23mm and a radius of 2.5mm. Remove a concentric inner cylinder from the axle with a radius of 1.5mm, extending it slightly beyond the ends to ensure it is hollow. Seco...
use <plib/cylinder_wedge.scad> clasp_w = 23 ; difference() { cylinder( clasp_w, r=2.5, $fn=360 ) ; translate( [ 0, 0, -1 ] ) cylinder( clasp_w+2, r=1.5, $fn=360 ) ; } translate( [ 0, -78, 0 ] ) cylinder_wedge( 80, clasp_w, 91.2, 16.7 ) difference() { translate( [ 0, 0, -1 ] ) cylinder( clasp_w+2, r=80, $fn=360...
glb/cad_6dbcf8fb2a31.glb
Create a camera box for a Canon SX700HS with an inner cavity measuring 123mm x 74mm x 14mm. The main body is a filleted cube with an outer dimension of 132mm x 83mm x 18mm and a wall thickness of 3mm. The interior cavity is created by removing a filleted cube of 129mm x 79mm x 15mm from the center. Add structural rein...
use <plib/hinge.scad> use <plib/support_box.scad> use <plib/fillet_cube.scad> module rect_gasket( inner_x, inner_y, z, thickness, r_inner, r_outer_raw=0 ) { echo( r_inner ) ; r_outer = r_outer_raw > 0 ? r_outer_raw : r_inner ; difference( ) { fillet_cube( [ inner_x+2*thickness, inner_y+2*thickness, z ], r_...
glb/cad_43fd584fbc0b.glb
Create a camera box for a Canon SX700HS with a main cavity measuring 123mm by 74mm and a height of 17mm. The outer dimensions of the box are 132mm by 84mm with a total height of 21mm, featuring walls 3mm thick and rounded corners with a 4mm fillet radius. The interior is reinforced with one longitudinal and two transve...
use <plib/hinge.scad> use <plib/support_box.scad> use <plib/fillet_cube.scad> module rect_gasket( inner_x, inner_y, z, thickness, r_inner, r_outer_raw=0 ) { echo( r_inner ) ; r_outer = r_outer_raw > 0 ? r_outer_raw : r_inner ; difference( ) { fillet_cube( [ inner_x+2*thickness, inner_y+2*thickness, z ], r_...
glb/cad_756d2950e18b.glb
Create a camera flash cover by starting with a central rectangular block measuring 18.5mm in width, 14mm in depth, and 3mm in height, centered on the origin. From this main body, remove two identical rectangular sections to create a recessed channel. Each cutout must be 3.5mm wide, 15mm deep, and 4mm high. Position the...
difference(){ cube([18.5, 14, 3], center=true); translate([7.8,0,1.5]){ #cube([3.5, 15, 4], center=true); translate([0,2,0]) #cube([3.5, 12, 6], center=true); } translate([-7.8,0,1.5]){ #cube([3.5, 15, 4], center=true); translate([0,2,0]) #cube([3.5, 12,...
glb/cad_d7ad7d59a54b.glb
Create an additional door lock housing consisting of a base and a holder. Start with a rectangular base measuring 15mm wide, 60mm high, and 5mm thick. At each end of the base, centered along the width, create a mounting hole 4mm in diameter that passes through the thickness. At the surface of each mounting hole, add a ...
base_width=15; base_height=60; base_thickness=5; mounting_hole_diameter=4; mounting_hole1_offset=10; mounting_hole2_offset=50; bolt_head_diameter=8; bolt_head_depth=3; holder_width=25; holder_height=31; holder_thickness=15; holder_offset=15; door_hole_diameter=8; door_hole_z_pos=20; door_hole1_Offset=20; door_hole2...
glb/cad_c19deda350bf.glb
Create an arm joint by constructing a complex circular base and an attached cylindrical peg. Start by creating a revolved shape based on a specific profile: a cross-section defined by points at (3, -10), (3, -8), (1, -8), (1, -5), (3, -5), (3, -3), (-3, -3), (-3, -5), (-1, -5), (-1, -8), and (-3, -8), (-3, -10) rotated...
union(){ rotate_extrude(convexity=10,$fn=70){ rotate([0,0,90]) polygon(points = [ [3, -10],[3, -8],[1, -8],[1, -5],[3, -5],[3, -3],[-3, -3],[-3, -5],[-1, -5],[-1, -8],[-3, -8],[-3, -10]]); } translate([0,-14,0]) rotate([90,0,0]) cylinder(r=5,h=4,$fn=70); translate([0,-9,0]) rotate([90,0,0]) cylinder(r=3,h=5,$fn=70); ...
glb/cad_c958aeb334b3.glb
Create a simple wheel with a total height of 8mm. Start by constructing a central hub consisting of a cylinder with a 10mm diameter and a height of 8mm, featuring a concentric vertical hole through the center with a diameter of 3.5mm. Surround this center with a ring that has an outer diameter of 50mm, a height of 8mm,...
$fn=50; HEIGHT = 8; spokes = 8; tracks = 20; module ring(diameter, height, thickness) { difference(){ cylinder( d=diameter, h=height ); translate([0,0,-0.15]) cylinder( d=diameter-thickness, h=height+.3 ); } } module spoke() { cube([2, 24, HEIGHT]); } module hub(){ difference(){ union(){ rin...
glb/cad_6f09347b7c2a.glb
Create a castle model consisting of a perimeter wall and several towers. The perimeter is a hollowed-out polygon with a diameter of 90mm and a height of 40mm, with a wall thickness of 6mm. Cut a rectangular gate opening through the wall, 8mm wide and 12mm high. Position several towers around the perimeter. Each tower ...
generate_details = "Off"; structure_random_seed = 90; detail_random_seed = 70; people_scale = 4; tall_and_narrow = 4; dense = 7; chaos = 4; sides_predef=[4,5,6,8,12,60]; $fn = 10; overlap = 0.01; max_roof_types = 3; edge_margin_factor = 0.1; wall_thickness = 6; window_width_base = 0.4*people_scale; window_cove...
glb/cad_df684afa5bb0.glb
Create a 3D printable representation of a mathematical function. The object is a solid extrusion with a constant height of 1mm. The base of the shape is a rectangle defined by an x-axis range from -2mm to 2mm, scaled by a factor of 5, resulting in a total width of 20mm. The top profile of the shape follows the functi...
pi=3.1415927; e=2.7182818; RESOLUTION=400; XMIN=-2; XMAX=2; YMIN=-1; YMAX=1; XSCALE=5; YSCALE=5; HEIGHT=1; function F(X) = X*X/3.5+(sin(X*1500)/20); DX=(XMAX-XMIN)/RESOLUTION; union() { for(i=[0:RESOLUTION-1]) { Y=F(XMIN+i*DX)*YSCALE; Y1=(Y>YMAX*YSCALE) ? YMAX*YSCALE : Y; ...
glb/cad_50640dc31ffc.glb
Create a waterproof electronics box and lid consisting of two main parts. For the main box, create a rectangular shell with outer dimensions of 40mm x 80mm and a total height of 15.6mm (14mm inner height plus 1.6mm bottom thickness). The box should have rounded corners with a 6mm radius. The walls should be 3.6mm thi...
box_Size_X = 40; box_Size_Y = 80; box_Inner_Height = 14; box_BottomTop_Thickness = 1.6; box_Screw_Corner_Radius = 6; box_Screw_Diameter = 3.2; box_Wall_Thickness = 3.6; barrier_Thickness = 1.2; barrier_Height = 2; barrier_Tolerance = 0.8; screwnose_Number = 2...
glb/cad_cb00fd0d92eb.glb
Create a parametric tube adapter consisting of two concentric cylindrical sections connected by a tapered transition. Start by creating a lower hollow cylinder with an outer diameter of 40mm, an inner diameter of 38mm, and a height of 40mm. From the top edge of this lower cylinder, create a conical transition section t...
thickness = 1; slope_height = 10; lower_od = 40; lower_id = lower_od-(thickness*2); lower_height = 40; upper_id = 30; upper_od = upper_id+(thickness*2); upper_height = 40 - slope_height; nudge = 0.01; $fs = 1; $fa = 2; module tube(od, id, h) { difference() { cylinder(r=od/2, h=h); translate([0,...
glb/cad_ad39a36458d8.glb
Create a bowl by forming a hollow spherical shell with an outer radius of 50mm and a wall thickness of 2mm. The shell should be constructed using a low-facet resolution of 16 sides to give it a polygonal appearance. Modify the overall proportions of the shell by applying a non-uniform scale: stretch the vertical Z-ax...
BowlSize=50; WallThickness=2; BowlResolution=16; CutType=1; CutAngle=5; CutSpin=45; BowlTrim=50; Trim=BowlTrim/100; PrettyCutOffset=0; PrettyCutResolution=100; PrettyCutRadius=200; VerticalSquashOrStretch=75; ZSquash=VerticalSquashOrStretch/100; HorizontalSquashOrStretch=100; YSquash=HorizontalSquashOrStretch/100...
glb/cad_856299dc1cc4.glb
Create a support for a DIY LED lamp by constructing a circular base with a total height of 5mm. Start with a main cylinder of 21.36mm radius and 5mm height. Add a wider, shorter base layer by attaching a cylinder with a 24.36mm radius and 2.5mm height to the bottom. From this combined volume, remove a central cylinder ...
tol = 0.3; led_dia = 5.0+tol; led_spacing = 5.12; wall = 5.0; irim = 1.0; orim = 3.0; d = 0.01; module circle(n, rad) { for (a = [0:n]) { translate([rad*sin(a*360/n), rad*cos(a*360/n), -d]) cylinder(d=led_dia, h=wall+2*d, $fn=20); } } difference () { union () { cylinder(r=3.0*...
glb/cad_ef6a7516c07a.glb
Create a parametric pipe clamp consisting of a circular band and a rectangular mounting plate. Start with a cylinder that has an outer diameter of 28.6mm (25.4mm shaft diameter plus 2.6mm wall thickness) and a height of 20mm. Remove a concentric inner cylinder with a diameter of 25.4mm and a height exceeding 20mm to cr...
shaftDiameter = 25.4 ; clampWidth = 20 ; clampThickness = 2.6 ; clampLegLengthFromShaft = 12 ; clampLegThickness = clampThickness + 4.6 ; clampLegGap = 10 ; clampToClampScrewCenter = (clampLegLengthFromShaft - clampThickness) / 2 - 3 ; clampScrewDiameter = 3.5 ; shaftToMountPlate = 0 ; mountPlateThickness = 5 ; mountPl...
glb/cad_99c18f60ac63.glb
Create a Customizeable Pipe Bender consisting of a handle, a bending lever, an axle, and a bracket. For the handle, create a central cylinder with a radius of 39.5mm and a height of 36mm. Subtract three horizontal cylindrical holes through the center to accommodate pipes of 6mm, 8mm, and 10mm diameters, with a 0.2mm ...
part = "Preview"; rad=40; tolerance=0.20; CustomPipe = "no"; CustomPipeDia=9.52; CustomPipeRad=CustomPipeDia/2; bend_180 = "no"; winkel=atan(((rad/2)-6)/(rad+15)); winkel2=atan(((20)-6)/(rad+15)); echo(winkel); if (part == "Preview") { translate([0,0,8])Vorschau(); } else if (part == "Handle") { if (bend_180=...
glb/cad_545c87a09891.glb
Create a Desktop Rotary Flexshaft Mount consisting of a rectangular base plate and a vertical clamping assembly. Start with a base plate measuring 50mm by 90mm with a thickness of 5mm. Centered on this plate, create a vertical support structure that holds a cylindrical clamp. The clamp is formed by a cylinder with a r...
translate([0,-42,-2]) difference(){ cube([50,90,5], center=true); cylinder(h=10, r=3, center=true); translate([17.5,35,0]) cylinder(h=10, r=3, center=true); translate([-17.5,35,0]) cylinder(h=10, r=3, center=true); translate([17.5,-35,0]) cylinder(h=10, r=3, center=true); translate([-17.5,-35,0]...
glb/cad_f1117eed36d2.glb
Create a "Futuristic City Builder Generator" model starting with a rectangular base measuring 60mm by 60mm with a height of 2mm. Center the base at the origin. Engrave the seed number "123456" into the bottom surface of the base. On top of this base, construct a recursive 3D structure. Begin with a central volume that...
seed= 123456; base = "rectangle"; base_height = 2; num_sides = 10; side_length = 9.75; position = "inscribed"; separation = 1; supports="yes"; size_x = 60; size_y = 60; diameter = 50; $fn=40; min_size = 3; level_height = 1; randoms = rands(0,1000,3000,seed); if(base=="poligon"){ poligonal_base(side_le...
glb/cad_dbdedc313134.glb
Create an Arduino and shield mounting case. Start by constructing a flat rectangular base plate measuring 73.5mm by 60.5mm with a thickness of 2mm, centered on the origin. Build a rectangular box atop this base with outer dimensions of 73.5mm by 60.5mm and a height of 19mm. The walls of this box should be 2mm thick. Ho...
cl = 0.2; th = 2; fn = 32; al = 69.5; aw = 56.5; ah = 17; auw = 12.5; apw = 9.5; difference() { union() { cube([al+th*2,aw+th*2,ah+th],true); translate([0,0,-ah/2]) cube([al+th*2+20,aw+th*2+20,th],true); } translate([0,0,th/2+0.01]) cube([al,aw,ah],true); translate([-al/2-th/2,aw/2-auw/2-9,th/2+0.01]) c...
glb/cad_5acce279dbea.glb
Create a GoG Lab Equipment Clip by constructing a vertically stacked, rotationally symmetric profile. Start with a central cylindrical void with a radius of 6.35mm (half of the 12.73mm outside width) running through the center of the object. The main body is a revolved shape with a total height of 15.25mm. The bottom ...
top_width = 6.41; flare_width = 11.10; bottom_width = 9.46; outside_width = 12.73; flare_height = 5.69; top_height = 5.08; bottom_height = 5.08; arm_thick=0.935; arm_angle=45; arm_opening=outside_width; min=0.5; inf=5; total_height=flare_height+top_height+bottom_height; $fn = 1000; difference() { intersection() { go...
glb/cad_1e096aab772d.glb
Create a coupler wrench consisting of two semi-circular gripping heads connected by a central rectangular handle. The entire tool has a uniform thickness of 7mm. The first gripping head is a semi-circular ring with an outer radius of 29.5mm and a wall thickness of 7mm. The inner diameter is 44mm. Inside this ring, add...
$fa=.1; $fs=.1; thickness=7; radius=22.5 + thickness; radius2=21 + thickness; base_height=7; degrees=180; n=0; rotate([0,0,0]) union () { difference() { rotate_extrude($fn = 100) translate([radius - thickness, 0, 0]) square([thickness,thickness...
glb/cad_84b7f37a8278.glb
Create a rectangular chair foot consisting of a hollow outer shell and a thinner inner sleeve. First, construct the base as a solid rectangular block measuring 36.5mm in length, 19.5mm in width, and 4mm in height, with all four vertical edges rounded to a 3mm radius. On top of this base, add a hollow rectangular sleeve...
innerLength = 31; innerWidth = 15; innerHeight=20; outerLength = 36.5; outerWidth = 19.5; outerHeight = 4; thickness = 2.5; cornerRad = 3; fudge = 0.6; module simpleNub(innerLength, innerWidth, innerHeight, outerLength, outerWidth, outerHeight, thickness, cornerRad, fudge=0.1){ translate([0,0,innerHeight*0.5]){ ...
glb/cad_c86b1ee9312d.glb
Create a tool rack by starting with a solid rectangular block measuring 223mm in length, 36mm in width, and 36mm in height. Hollow out the main body by removing a smaller rectangular block of 215mm by 32mm by 32mm, offset from the origin by 4mm on the width and height axes, to create a tray-like shell. From the interio...
$fn = 150; difference(){ cube(size = [223, 32+4, 32+4], center = false); translate([-1,0,0]) rotate([45,0,0]) cube(size = [225, 51, 51], center = false); translate([4,-4,4]) cube(size = [223-4-4, 32+4, 32+4], center = false); translate([165,9,-2]) cube(size = [50, 18.5, 8], center = false); translate([125,12,-2]) ...
glb/cad_a8efa428efdc.glb
Create a printable LM8UU bushing with an outer diameter of 15mm and a total height of 23.8mm. The object is a hollow cylinder with a central bore of 8.1mm in diameter. The wall of the bushing is not solid but consists of five equidistant vertical fins that provide structural flexibility. These fins are created by ext...
lm8uu_od = 15; lm8uu_length = 24; lm8uu_id = 8.1; layer_height = 0.2; extrusion_width = 0.5; overlap_ratio = 0.15; wall_width = extrusion_width * 2 - extrusion_width * overlap_ratio; echo("wall_width: ",wall_width); fins = 5; contact_percent = 20; twist_percent = 50; $fn=64; union() { difference() { cylin...
glb/cad_707741fb3ba1.glb
Create a boat rudder assembly consisting of a vertical blade and a mounting base. First, construct the rudder blade as a vertical rectangular prism 4mm wide, 20mm deep, and 87mm tall. At the top of this blade, add a small horizontal cylinder with a radius of 5mm and a height of 4mm, centered at a height of 85mm. Nex...
module Safran(){ difference(){ union(){ translate([0,0,85]) rotate([0,90,0]) cylinder(h=4,r=5,$fn=50); translate([0,-20,0]) cube([4,20,90]); cube([4,20,87]); translate([0,-29,70]) cube([4,9,15]); } translate([-1,25.4,30,]) rotate([20,0,0]) cube([6,20,70]); translate([-1,0,0]) rotate([-10,0,0]) cube([6,20,70]); transla...
glb/cad_d2f661ec58af.glb
Create a Dropzone Commander building corner consisting of a base sidewalk and a vertical building slot. Start by creating a square sidewalk base measuring 49mm by 49mm with a height of 1.5mm. Carve a thin 0.5mm wide groove into the top surface of this base that runs along the perimeter, offset 0.5mm from the edges. Div...
wallZ=3; wallX=39; wallY=5; paperY=1; sidewalkWidth=10; sidewalkHeight=1.5; grooveZ=0.5; difference() { cube([sidewalkWidth+wallX, sidewalkWidth+wallX, sidewalkHeight]); translate([sidewalkWidth*1.7,sidewalkWidth*1.7,-1]) cube([wallX,wallX,sidewalkHeight+2]); translate([grooveZ,grooveZ,sidewalkHeight-gr...
glb/cad_5806289db7c9.glb
Create an Air Jet Body replacement by constructing a hollow vertical tube. Start with a solid cylinder 20mm in diameter and 150mm in height. Cap the top of this cylinder with a hemisphere that has a 20mm diameter, centered on the top face. Now, create a hollow interior by removing a smaller concentric cylinder 17mm in ...
$fn=120; difference(){ union(){ cylinder(h=150,d=20); difference(){ translate([0,0,150]) sphere(d=20); translate([0,0,130]) cylinder(h=20,d=20); } } union(){ translate([0,0,-1]) cylinder(h=151,d=17); translate([0,0,150]) sphere(d=17); } }
glb/cad_8e31c5020458.glb
Create a Mk7 fan duct with a total depth of 20mm. Start with a main body consisting of a rectangular block 40mm wide, 60mm long, and 20mm deep. Hollow out the center to create walls 2mm thick. On the front side, create a vent opening 20mm wide and 20mm high, offset by 5mm from the edge. At the top corners, add four cy...
wall_width=2; thin_wall_width=2; fan_side=40; duct_depth=20; vent_height=20; vent_width=20; vent_window_height=5; vent_offset=5; anchor_side=8; hole_center_offset=4; lower_anchor_height=7; m3_hole_radius=1.9; m3_thread_radius=1.5; m3_head_hole_radius=3.1; module body() { difference() { translate ([-fan_sid...
glb/cad_cf5bb47d9d6d.glb
Create a Closet Divider consisting of a circular disk with a total height of 3mm and a diameter of 75mm. Remove a central cylindrical hole with a diameter of 37mm that passes through the entire height of the disk. To create a slot for a shelf, remove a rectangular section from the center of the disk extending to the ou...
include <write/Write.scad> message1 = "Shirts"; message2 = "Pants"; Font = "write/Letters.dxf"; font_size = 10; font_spacing = 0; Radius = 27; spacing_factor = font_spacing/100; difference(){ union(){ cylinder(h=3, d=75); translate([0,0,2]) cylinder(h=1, d=75); translate([0,0,-1]) ...
glb/cad_2249b828d3dc.glb
Create a parametric cup with a height of 65mm and a wall thickness of 3mm. The body is a hollowed-out truncated cone formed by rotating a profile around a central vertical axis. The exterior base has a diameter of 40mm, tapering outwards to a top exterior diameter of 55mm. The interior is hollowed out to maintain the 3...
d1=55; d2=40; h=65; t=3; becher(d1=d1,d2=d2,h=h,t=t); module becher(d1=55,d2=40,h=65,t=3) { p1=[d2/2,0]; p2=[(d2/2)+t,0]; p3=[(d1/2)+t,h]; p4=[d1/2,h]; pa=[[0,0],p2,p3,[0,h]]; pi=[[0,t],[d2/2,t],[d1/2,h+0.2],[0,h+0.2]]; difference() { rotate_extrude($fn=180) polygon(points=pa); rotate_extru...
glb/cad_fc802468f4e1.glb
Create a Power Grid Oil Barrel piece by constructing a central cylinder with a radius of 5.1mm and a height of 10mm. Surround this central core with four concentric decorative bands. Place the first band at the base, starting at z=0, with a thickness of 0.5mm and a height of 0.5mm, extending to a radius of 5.5mm. Add t...
module midBand(rDrum,tBand,hBand,zPos){ translate([0,0,zPos]) { rotate_extrude($fn=100) { translate([rDrum,-(hBand/2+tBand),0]) { polygon([[0,0],[tBand,tBand],[tBand,(tBand+hBand)],[0,(2*tBand+hBand)]]); }}}} module botBand(rDrum,tBand,hBand,zPos){ translate([0,0,zPos]){ rotate_extrude($fn=100){ translate([rDrum,0,0])...
glb/cad_2897f0b4d965.glb
Create a shower drainage lid starting with a base cylinder 75mm in diameter and 3mm high. On the top surface of this base, add six smaller solid cylinders, each 12mm high. Two of these cylinders must have a radius of 6.5mm and be positioned at coordinates (21, 0) and (-21, 0). The remaining four cylinders must have a r...
height1 = 3 ; height2 = 12 ; difference () { union () { cylinder (h=height1, $fn = 80, r=75/2); translate ([21,0,0]) { cylinder (h=height2, $fn = 80, r=6.5); } translate ([-21,0,0]) { cylinder (h=height2, $fn = 80, r=6.5); } translate ([0,30,0]) { cylinder (h=height2, $fn = 80, r=2.5); } translate ([26,15,...
glb/cad_cb001278131f.glb
Create a customizable chainguard by starting with a main disc that has an outer diameter of 188mm and a thickness of 4mm. Remove a concentric center cylinder with a radius of 44.5mm and a height of 6mm to create a ring. Around the ring, create five bolt holes distributed evenly every 72 degrees. Each hole is centered ...
outer_diameter = 188; bcd = 130; bolt_count = 5; bolt_clearance_angle_before = 18; bolt_clearance_angle_after = 15; bolt_angle = 360/bolt_count; difference(){ cylinder(r=outer_diameter/2, h=4); translate([0,0,-1])cylinder(r=44.5, h=6); for(i=[0:bolt_angle:359]){ rotate([0,0,i])translate([0,bcd/2,-1])cylinder...
glb/cad_7c507b90028e.glb
Create a T-Slot 20x20 Connector consisting of two identical plates joined at an angle. Each plate is a rectangular block 20mm wide, 50mm long, and 4mm thick. Centered on the top face of each plate, add a raised rectangular ridge that is 4mm wide and 1.3mm high, running the full 50mm length. Pierce each plate with two...
use <../utils/build_plate.scad> use <MCAD/2dShapes.scad>; build_plate_selector = 0; build_plate_manual_x = 100; build_plate_manual_y = 100; build_plate(build_plate_selector,build_plate_manual_x,build_plate_manual_y); Dicke = 4; Dicke2 = 1.3; Laenge = 50; Breite = 20; Breite2= 4; Winkel= 15; dScrew=5.5; $fa=1; $...
glb/cad_d15acb08bd32.glb
Create a rectangular power source enclosure with a main body measuring 146mm in width, 43mm in height, and 2mm in thickness. On the front panel, center a rectangular cutout for a display measuring 40.5mm by 26.5mm. To the right of the display, create a rectangular cutout for a power button measuring 19mm by 13mm. Pos...
$fn=32; th=2; w=146; he=43; module krep(){ difference(){ cube([9,3.6,28]); translate([3.5,-0.1,28-23])rotate([-90,0,0])cylinder(d=3,h=5); } } module krep_back(){ difference(){ translate([0,0,0])cube([12,3.6,32]); translate([2,-0.1,32-25])rotate([-90,0,0])cylinder(d=3,h=5);...
glb/cad_5d458a1362d1.glb
Create a parametric mesh filter for a 140mm fan. Start by constructing a square base plate measuring 140mm by 140mm with a thickness of 0.25mm. To form the outer frame, add four rectangular border rails, each 5mm wide and 0.25mm thick, positioned along the four edges of the square. Create a large circular cutout in the...
fan_size = 140; half_size = fan_size / 2; hole_size = 7; hole_dist = 7.5; module hole() { translate([half_size-hole_dist,half_size-hole_dist,-1]){cylinder(r=hole_size/2, h=3);} } module holes() { for (i = [0 : 4]) rotate([0,0,i*90]){hole();} } module corners() { difference() { transla...
glb/cad_ba4362e4e40a.glb
Create a 2020 T-Slot extrusion profile with a total height of 20mm. The main body is a square profile with rounded corners, created by combining a square of 20mm minus twice the corner radius (1mm) with a circle of radius 1mm. At the center of the profile, create a vertical cylindrical hole with a diameter of 4.3mm t...
ProfileCore = 4.3 * 1; minkR_TS = 0.04 * 20; minkR_IC = 0.075 * 20; minkR_PF = 0.05 * 20; height_in_mm = 20; 2020Profile(height_in_mm); module 2020Profile(height, core = ProfileCore) { linear_extrude(height = height, center = true) union() { difference() { minkowski() { translate([0, 0, 0]) cir...
glb/cad_9a6ca3d61901.glb
Create a Spectra line idler pulley with an overall height of 8mm and a central bore of 10.2mm in diameter running through the entire length. The main body is a cylinder with an outer diameter of 13.5mm. Carve a symmetrical groove into the center of the outer wall to create a recessed channel. This groove should have a ...
outerDia = 13.5; innerDia = 10.2; grooveDia = 12.3; grooveHeight = 1; overallHeight = 8; module pulley(outerDia, innerDia, midDia, midHeight, height){ difference(){ union(){ translate([0,0,(height-midHeight)/2]) cylinder(h=midHeight/2, r1=outerDia/2, r2=midDia/2,$fn=50); transla...
glb/cad_a39628a612a5.glb
Create a dial indicator bracket suite consisting of two mounting brackets and one mounting disc. For the mounting disc, create a tiered cylinder with a base radius of 6mm and height of 2mm, a middle section with a radius of 3mm and height of 4mm, and a central vertical hole with a radius of 2mm and height of 6mm. For ...
dialMount(); translate([0,-20,0]) dialMount(1); dialDisc(); dialDia = 4; barDia = 8.2; setDia = 4; blockW = 12; blockH = 12; blockL = 30; module dialDisc(){ translate ([0,15,-6]) difference(){ union(){ cylinder(r=6, h=2, $fn=32); cylinder(r=3, h=4, $fn=32); } cylinder(r=2, h=6, $fn=32); } } module mo...
glb/cad_07d77abb075a.glb
Create a parametric soap dish designed to mount onto a vertical tube. Start by forming a rectangular soap compartment with a base measuring 90mm in length and 60mm in width, with a height of 13mm. The walls should be 2.5mm thick with rounded corners of 5mm radius. At the center of one of the short ends, attach a cylin...
part = "main"; soap_w = 60; soap_l = 90; soap_h = 13; corner_r = 5; wall = 2.5; chamfer = 0.6; mnt_wall = 5.0; drain_dist = 15.0; drain_dia = 4.0; rib_h = 1.0; mnt_dia = 25.0; friction_delta = -0.10; friction_tabs = 10; tol = 0.25; d = 1*0.1; nx = floor((soap_l-2*corner_r)/drain_dist); ny = floor((soap_w-...
glb/cad_e181ab384b67.glb
Create a water cup by constructing a hollowed-out conical frustum. First, create a solid tapered cylinder with a height of 110mm, a top diameter of 55mm, and a bottom diameter of 80mm. To create the interior cavity, remove a smaller concentric tapered cylinder from the center. This inner void should have a height of 10...
hi=110; du=55; dd=80; q=100; th=4; du1=du-th*2; dd2=dd-th*2; hi2=hi-th*2.3; zh=th*2.5; difference() { cylinder (d1=du, d2=dd, h=hi,$fn=q); translate([0,0,+zh]) cylinder (d1=du1, d2=dd2, h=hi2,$fn=q); }
glb/cad_9b35c03d6778.glb
Create a bed handle consisting of two separate parts: a main cylindrical grip and a small rectangular insert. First, construct the main grip as a vertical cylinder with a height of 70mm and a diameter of 20mm. Carve a rectangular slot through the center of this cylinder to create an opening. This opening must be 20mm...
pieces = 0; hauteur = 70; diametre = 20; ouverture_x_min = 4; ouverture_x_max = 7; ouverture_z = 20; enc = 1; epaisseur = 4; module poignee(){ difference(){ cylinder(hauteur, d=diametre); translate([-ouverture_x_min/2, 0, hauteur/2-ouverture_z/2]) cube([ouverture_x_min, diametre, ouverture_z]); translate([-...
glb/cad_47eacf49aebf.glb
Create a Prusa I3 X carriage for dual Wade L3K extruders. Start with a central rectangular block 72mm wide, 45.2mm high, and 11mm thick. Cut two longitudinal cylindrical channels through the block, each with a diameter of 15.2mm, running the full width of the carriage. Remove a central rectangular section from the bl...
diametre_m3=3+0.2; height=45.2; width=72; w=4; lmuud=15; bd=15.2; hz=11; hzb=10.25; hyb=height-lmuud-w-1; hy=height+15+w; gt2_32d=18.2; pl_dia=gt2_32d; id_dia=13; belt=6.5; belth=1.4; st=2; include <lm8uu.scad>; main(); module main() { difference() { union() { x_carriage(); ...
glb/cad_2022472a9a0e.glb
Create a compact extruder body for a J-head. Start with a main block measuring 42mm in width and 45mm in depth, with a height of 44mm. At the base, create a circular cutout with a radius of 12mm and a depth of 5mm to accommodate a motor. Centered within this area, create a vertical shaft hole with a radius of 6mm and...
motor_offset=8; extra=3; module nozzlemount(){ rotate([0,90,0]) cylinder(r=2, h=70, $fn=30); translate([17,0,0]) rotate([0,90,0]) cylinder(r2=3,r1=2, h=10, $fn=30); translate([1,0,0]) rotate([0,90,0]) cylinder(r1=4, r2=2, h=3); } difference(){ union(){ translate([0,-1,0]) cube([42,19,52-motor_offset]); translate([0,...
glb/cad_d4a35909db68.glb
Create a parametric rounded corner plate with overall dimensions of 100mm in width, 50mm in depth, and 1mm in height. Start with a rectangular base of these dimensions and apply a corner radius of 5mm to all four corners. Ensure the rounded corners are smooth by using a resolution of 32 facets for the circular arcs. Th...
size_x=100; size_y=50; size_z=1; corner_radius=5; corner_faces=32; module plate (sizeX, sizeY, sizeZ, cornerRadius, cornerFaces) { union() { difference() { cube([sizeX,sizeY,sizeZ]); cube([cornerRadius,cornerRadius, sizeZ+1]); translate([sizeX-cornerRadius,0,0]) cube([cornerRadius,cornerRadius,sizeZ+1])...
glb/cad_e0af404ba01b.glb
Create a Karcher DS 5600 fixator consisting of a hollowed cylindrical body. Start by creating a main cylinder with an outer diameter of 41.6mm and a height of 32mm. Hollow out the center by removing a concentric cylinder with a diameter of 41.6mm and a height of 40mm to create a thin-walled tube. Add a wider circular ...
$fn=128; difference(){ union(){ cylinder(d=45-0.6,h=34.3); hull(){ translate([0,0,34.3-6+2])cylinder(d=45+3,h=6-2); translate([0,0,34.3-6])cylinder(d=45,h=6); } } translate([0,0,-0.1])cylinder(d=45-0.6-0.4*4*2,h=35); hull(){ difference(){...
glb/cad_3f844998deae.glb
Create a parametric LCD bezel. Start with a base rectangular plate measuring 100mm by 50mm with a thickness of 1mm and rounded corners with a 5mm radius. On top of this base, add a rim that follows the outer perimeter, 10mm high, with an inner cutout radius of 3mm. In the center of the plate, create a rectangular cuto...
size_x=100; size_y=50; size_z=1; corner_radius=5; corner_faces=32; cutout_corner_radius=2; cutout_corner_faces=32; offset_x=10; offset_y=8; rim_height=10; module plate (sizeX, sizeY, sizeZ, cornerRadius, cornerFaces) { union() { difference() { cube([sizeX,sizeY,sizeZ]); cube([cornerRadius,cornerRadius, s...
glb/cad_07522349afca.glb
Create a foldable solar panel frame designed to hold a panel measuring 136.4mm by 110.5mm with a thickness of 2.9mm. The frame should have a base thickness of 6mm. Construct a rectangular outer border with a central cavity of 136.4mm by 110.5mm and a depth of 1.45mm to secure the panel. The outer walls of the frame sh...
ew = 0.56; module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module connectorbox(dupont=false){ wall = 6*ew; usbw = 13.5; usbl = 14; usbh = 6; pcbl = 16; pcbe = 9...
glb/cad_f1fd05435113.glb
Create a Latte-Panda centered display stand case with a total height of 17mm and a wall thickness of 0.9mm. Start with a base plate of 66.4mm by 84.4mm and 0.9mm thickness. In this plate, create four circular screw holes with a radius of 1.8mm, positioned at the corners with coordinates (±31.5mm, ±40.5mm). Add a smal...
$fn=20; schrauben_abstand_x=63; schrauben_abstand_y=81; x=schrauben_abstand_x; y=schrauben_abstand_y; hoehe=17; screw_r=1.8; space_wall=1.7; abstand=screw_r+space_wall; gehaeuse_dicke=.9; schlitz=8; extra=0; ges_x=x+extra+abstand*2; ges_y=y+extra+abstand*2; verkleinerung=abstand; schlitzzahl=6; ruecksprung=34.5; tran...
glb/cad_ca184873dd12.glb
Create a plunger for a microswitch bracket consisting of two coaxial cylinders of different diameters and lengths. First, create a main cylinder with a radius of 2.9mm and a length of 12mm. Attached to this, create a second, longer cylinder with a radius of 1.9mm and a length of 43mm, extending from the end of the firs...
plus_X = [ 0, 90, 0]; difference () { Body (); Grubs (); } module Body () { translate([0, -3, 6]) rotate (plus_X) cylinder ($fn=30, r=1.9, 43); translate([0, -3, 6]) rotate (plus_X) cylinder ($fn=30, r=2.9, 12); } module Grubs () { translate([0, -3, 6]) rotate (pl...
glb/cad_367062aa47ab.glb
Create a Wanhao i3 X axis microswitch bracket. Start with a main rectangular block measuring 72mm in length, 3mm in height, and 34mm in width. On the left side, add a plunger cover shell that extends from the base, measuring 43mm long, 3mm high, and 8mm wide. Integrate a semi-cylindrical cutout with a 4mm radius along ...
plus_X = [ 0, 90, 0]; plus_Y = [270, 0, 0]; difference () { Block (); Holes (); Slot (); Screws (); Plunger (); } module Block () { translate([0, 0, 0]) cube ([72, 3, 34]); translate([0, -3, 13]) cube ([ 43, 3, 8]); translate([0, -3, 17]) rotate (plu...
glb/cad_262e93a9ca27.glb
Create a filament guide consisting of a mounting plate and a curved guide arm. Start with a rectangular base plate measuring 14mm wide, 20mm long, and 8mm thick. Position two 5mm diameter holes through the plate, spaced 18.25mm apart along the center axis. Attached to one end of this plate, create a curved guide sectio...
$fn=72; difference() { union() { rotate_extrude() translate([6,0,0]) circle(r=4); translate([12,-16,-6]) cube([5,32,12]); translate([0,0,-4]) difference() { cylinder(d=20,h=8); translate([0,0,-1]) cylinder(d=12,h=10); } difference() { translate([0,-10,-4]) cube([14,20,8]); translate([0,0,-5]) cyl...
glb/cad_70db95cce550.glb
Create a Low Profile Arcade Button Housing. Start with a rectangular top plate that is 64mm wide (top_plate_width) and 44mm deep (top_plate_height), with a thickness of 2.5mm. Cut six circular holes into this plate to accommodate buttons with a radius of 17mm. Arrange these holes in two rows of three. The holes shoul...
include <triangle.scad>; include <supportTriangle.scad>; button_radius=17; button_height=12; button_diameter=button_radius*2; num_button_rows=2; num_button_cols=3; edge_padding=10; top_plate_thickness=2.5; top_plate_height=button_diameter*num_button_rows+edge_padding; top_plate_width=button_diameter*num_button_cols+edg...
glb/cad_59560db1ca51.glb
Create a Low Profile Arcade Button Housing. Start with a rectangular top plate 64mm wide by 44mm deep and 2.5mm thick. Cut six circular holes into this plate, each with a radius of 17mm. Arrange these holes in two rows of three. The center of the first hole is positioned at x = -22.5mm, y = -12mm; the second at x = 0...
include <triangle.scad>; include <supportTriangle.scad>; button_radius=17; button_height=12; button_diameter=button_radius*2; num_button_rows=2; num_button_cols=3; edge_padding=10; top_plate_thickness=2.5; top_plate_height=button_diameter*num_button_rows+edge_padding; top_plate_width=button_diameter*num_button_cols+edg...
glb/cad_b94d69294450.glb
Create a Low Profile Arcade Button Housing designed to hold six buttons in a 2x3 grid. Start with a rectangular top plate that is 64mm wide by 44mm deep and 2.5mm thick. Cut six circular holes into this plate, each with a radius of 17mm. Position the holes in two rows of three, leaving a 10mm padding from the edges. ...
include <triangle.scad>; include <supportTriangle.scad>; button_radius=17; button_height=12; button_diameter=button_radius*2; num_button_rows=2; num_button_cols=3; edge_padding=10; top_plate_thickness=2.5; top_plate_height=button_diameter*num_button_rows+edge_padding; top_plate_width=button_diameter*num_button_cols+edg...
glb/cad_3b00b3e89ddb.glb
Create a replacement cap shaped sleeve for an air tool. Start by creating a wide, thin circular base with a radius of 5.4mm and a height of 1mm. Centered on this base, place a hollow cylinder with an outer radius of 3.9mm and a total height of 13.15mm, though the walls of the cylinder should begin 1mm above the bottom ...
$fa=0.5; $fs=0.5; difference() { translate([0,0,1]) cylinder(r=3.9, h=12.15); translate([0,0,1]) cylinder(r=2.43,h=12.15+1); rotate([90,0,0]) { translate([0,5.85,-4.85]) cylinder(r=1.65, h=10); } } difference() { cylinder(r=5.4, h=1); translate(0,0,-2) cylinder(r=2.43, h=1+1+1+1...
glb/cad_a0db6eae83d3.glb
Create a Tap Holder Handle consisting of a cylindrical grip and a threaded top section. The object is composed of three stacked segments. Start with a base section that is 4mm high. Above this, add a middle cylindrical handle section with a diameter of 25mm and a height of 50mm. Finally, top the assembly with a threade...
hln=50; tln=0; handle(); module handle(); { fln=tln > 0 ? tln-30 : hln; ln=fln <= 8 ? 0.2 : fln-8+0.2; union() { import(file="bottom.stl", convexity=10); translate([0,0,4-0.1]) scale([1,1,ln/12]) import(file="middle.stl", convexity=10); translate([0,0,4+ln-0.2]) import(file="top.stl", convexity=10)...
glb/cad_0a8b9a92438b.glb
Create a Pyramid screwless gears model. Start by constructing a central core block that serves as the hub for eight gears. Create eight bevel gears in two sizes: four larger gears with 18 teeth and four smaller gears with 9 teeth. Each gear must have a tetrahedral-shaped void at its center. The tetrahedral void is cr...
use <../MCAD/involute_gears.scad> eightflatgears($fn=100); cs=50; rf1=2*cs; cp=1/10; td=3; cd=0; hd=0; Ls=0; ps=0; $fs=td/6; n1=18; n2=9; r1=0.7493; r2=0.3746; module baseshape() { scale([65,65,65])translate([0,0,-.36])cylinder($fn=3,r1 = 1, r2=0,h=1.414); } dc=rf1/sqrt(1-pow(r1,2)); theta=asin(1/sqrt(3)); pitch...
glb/cad_9a4142306da2.glb
Create a set of identical pins for a screwless gear assembly. Each pin is constructed around a central cylinder with a radius of 3.2mm and a height of 11mm. At both ends of this central cylinder, add conical flares that taper from a base radius of 3.8mm down to a point, each flare having a height of 2 * (3.8mm - 3.2mm)...
module pinsolid(pinradius,pincoreheight,flareradius,gappercent){ cylinder(h=pincoreheight,r=pinradius); translate([0,0,pincoreheight-(2*pinradius)])cylinder(h=2*flareradius, r1=0, r2=flareradius); translate([0,0,pincoreheight+2*(flareradius-pinradius)])cylinder(h=2*flareradius, r1=flareradius, r2=0); translate([0,0,2*p...
glb/cad_ef36bde65b5a.glb
Create a Mendel90 Titan mounting bracket starting with a rectangular base measuring 35mm in length, 15mm in width, and 2.5mm in height. At one end of the base, add two identical rectangular blocks protruding upwards, each 10mm wide, 4mm thick, and 10mm high. These blocks should be positioned such that they are separate...
difference() { translate([-5,0,0]) cube([35,15,2.5]); translate([0,7.5,-1]) cylinder(20,2,2); } difference() { union() { translate([17,11,0]) cube([10,4,10]); translate([17,3,0]) cube([10,4,10]); } translate([22,0,8]) rotate([-90,0,0]) cylinder(40,2,2); }
glb/cad_a0520d26de36.glb
Create a Mendel90 Titan mounting bracket. Start with a rectangular base plate measuring 39mm wide, 9mm deep, and 3mm thick. In this base, place two circular holes with a diameter of 3mm and a depth of 2mm, positioned at coordinates (3, 3, 0) and (36, 3, 0). From the base, extend a main housing upwards. This housing is ...
difference() { translate([0,-1,0]) cube([39,9,3]); { translate([3,3,0]) cylinder(3,2,2); translate([36,3,0]) cylinder(3,2,2); } } hull() { translate([0,6,0]) cube([34,2,1]); translate([0,14,17]) cube([34,2,2]); } hull() { translate([0,6,0]) cube([2,34,2]); translate([0,14,17]) cube([2,26,2]); } hull() { translate([32,...
glb/cad_2f281255fd6b.glb
Create two identical mounting brackets for a Mendel90 Titan extruder. Each bracket begins with a base rectangular plate measuring 40mm in length, 15mm in width, and 4mm in thickness. Attached to the top of this base is a second rectangular block measuring 14mm in width, 15mm in depth, and 40mm in height, positioned to ...
rotate([-90,0,0]) difference() { union() { cube([40,15,4]); translate([13,0,0]) cube([14,15,40]); } translate([5,7.5,-1]) cylinder(7,2,2); translate([35,7.5,-1]) cylinder(7,2,2); translate([20,-1,25]) rotate([-90,0,0]) cylinder(25,4.4,4.4); translate([18,-1,15]) cube([4,25,50]); translate([9,7.5,35]) rotate([0,90,0]...
glb/cad_d470aea5fa51.glb
Create a drawer slide consisting of a central rectangular block 62mm wide, 32mm high, and 10mm thick. At each end of the block's width, add a cylinder with a 10mm radius and 10mm height, centered vertically. On the top surface, add two rectangular tabs, each 13mm wide, 3mm thick, and 16mm deep, positioned symmetrically...
x=[1,0,0]; y =[0,1,0]; z=[0,0,1]; width=62; height=32; thick=10; slotwid=30; $fn=20; difference(){ union(){ translate(x*21) cylinder(r=10,h=10,center=true); translate(x*-21) cylinder(r=10,h=10,center=true); translate(y*height/2) cube( [width, height,thick],center=true); transl...
glb/cad_c0a1c7534cb3.glb
Create a Dynamic String Sorter, which is a flat, elongated tray with rounded ends. The main body is a hull formed between two cylinders of 50mm diameter, positioned 90mm apart (for a total length of 140mm), with a total height of 5mm. The bottom of the tray is hollowed out to a base thickness of 3mm, leaving a 5mm oute...
Holder_Length = 140; Holder_Width = 50; Edge_Thickness = 5; Base_Thickness = 3; Hole_Size = 10; $fn=25; difference(){ createBase(Holder_Length, Holder_Width, Edge_Thickness, Base_Thickness, Hole_Size); generateHoles(Holder_Length, Holder_Width, Hole_Size); translate([Holder_Length - Holder_Width, 0, ...
glb/cad_01fec1d1e432.glb
Create a parametric mirror clip by starting with a rounded box that is 30mm long, 14mm wide, and 9mm tall, with a corner radius of 4mm. From this base shape, remove a cylindrical hole with a diameter of 4mm that passes completely through the center of the 14mm width and the 9mm height. Additionally, remove a rectangula...
include <mcad/boxes.scad>; ClipThickness = 5; MirrorThickness = 4; ScrewDiameter = 4; difference() { roundedBox([30,14,ClipThickness+MirrorThickness],4,true); #translate([-7.5,0,0]) cylinder(ClipThickness+MirrorThickness+1,ScrewDiameter/2,ScrewDiameter/2,true); #translate([8,0,ClipThickness/2]) cube([16,15,MirrorThic...
glb/cad_2a2cce6f71bd.glb
Create a Light-up Rose base consisting of ten identical ring-shaped components arranged in a roughly square grid. Each individual ring is a thin cylinder with an outer radius of 16.7mm and a total height of 3mm. To form the ring, remove a central cylindrical core with a radius of 14.7mm and a height of 2.2mm, startin...
$fn = 75; numberOfCircles = 10; circleRadius = 33.4; circleHeight = 3; circleDistance = circleRadius+2; circleWallThickness = 2; module roseCircle() { difference() { cylinder(r=circleRadius/2, h=circleHeight); translate([0,0,0.8]) cylinder(r=(circleRadius/2)-circleWallThic...
glb/cad_53c996fe691d.glb
Create a Tamiya Power Plug to Raspberry Pi Power Connection adapter. Start with a base plate that is 13mm wide and 4mm deep. Extend this base by adding a rectangular section 7.62mm wide and 25mm long, extending backwards from the main body. Integrate a Tamiya-style battery connector into the main structure with a wir...
use <tamiya_compatible.scad> use <female_header.scad> inch = 25.4; header_width = 0.1 * inch; wire_diameter = 1; header_reinforcement = 0.02 * inch; base = 25; pin_spacing = 2.4; pin_width = 1.2; pin_space = 2; base_depth = 4; bolt_diameter = 4; regulator_width = 10.4; union() { translate([0, -header_width - header...
glb/cad_dd3c06367786.glb
Create a Tamiya Power Plug to Raspberry Pi Power Connection adapter consisting of a rectangular block containing three identical vertical pin slots. The overall block dimensions are 7.62mm wide, 12.7mm deep, and 12.7mm tall. Each of the three slots is centered within a 2.54mm wide section. Within each section, create...
units = 25.4; num_headers = 3; width_in_units = 0.1; height_in_units = 0.5; wire_diameter_in_units = 0.04; inner_width_in_units = 0.06; wire_jut_in_units = 0.015; reinforcement_in_units = 0.02; width = width_in_units * units; height = height_in_units * units; inner_width = inner_width_in_units * units; wire_diameter ...
glb/cad_f989ff7375fc.glb
Create a hydroponic plant pot shaped as a tapered cylinder with a height of 60mm. The outer wall should taper from a bottom radius of 19mm to a top radius of 23.5mm. The walls are 1.5mm thick. At the top edge, add a flat rim that extends the radius to 25mm with a thickness of 2mm. Hollow out the center of the pot to th...
cup_top_rad=47/2; cup_wall=1.5; cup_bottom_rad=38/2; cup_height=60; grid_ht=2.3; difference () { union () { cylinder(h=cup_height,r1=cup_bottom_rad,r2=cup_top_rad); translate([0,0,cup_height-2]) cylinder(h=2,r2=cup_top_rad+cup_wall,r1=cup_top_rad); } translate([0,0,-0.1]) cylinder(h=cup_height+0.2,r1=cup_bot...
glb/cad_0233321dc9de.glb
Create a Prusa i3 MK2 induction probe converter by starting with a solid rectangular block measuring 21mm in width, 35mm in length, and 12mm in height. Carve a rectangular slot into the bottom of the block that is 15mm wide, 18mm long, and 5mm deep, positioned 3mm from the side edge. Drill two vertical holes completely...
difference() { cube([21,35,12]); translate([3,0,3]) {cube([15,18,5]);} translate([10.5,5,0]) {cylinder(r=4.5,h=20);} translate([10.5,25,0]) {cylinder(r=6.5,h=20);} }
glb/cad_a61181cfd9b2.glb
Create a linear extrude scale test object by starting with a 20mm by 20mm square base. Extrude this square vertically to a height of 20mm, applying a linear scale transformation so that the top face is reduced to 25% of the original base dimensions, resulting in a top square of 5mm by 5mm. The final shape should be a t...
SCALE = 50; linear_extrude(height=20, scale=SCALE/200) square(20);
glb/cad_706f91a7a149.glb
Create a Dog Agility Wing Cup consisting of three main components: a cross, a backing plate, and a semi-cylindrical cup. First, construct a cross-shaped insert. Create two intersecting rectangular prisms, each 4mm thick and 30mm long, with a total width of 24mm. Add cylinders with a 4mm diameter at the ends of these p...
cross_width = 24; cross_thickness = 4; cross_length = 30; cross_height = 12.5; plate_base_width = 28; plate_top_width = 48; plate_thickness = 3; plate_corner_dia = 10; plate_height = 50; plate_peak = 4; bar_dia = 50; cup_height = 21; cup_thickness = 3; cup_length = 34; cup_curve = 14; cup_fillet_depth = 8; cup_fillet...
glb/cad_0493094705ba.glb
Create a Customizable Box Mod enclosure. Start by constructing a main body and lid based on the Hammond 1590B specifications: the outer dimensions are 112.4mm in length, 60.5mm in width, and 31mm in height, with a lid height of 4.1mm. The body should have an inner cavity of 108.1mm by 56.5mm by 27mm. Add four screw pos...
boxType = "hammond1590b"; boxColor = "gray"; type_510_connector = "varitube22mmV2Slotted"; color_510_connector = "silver"; xOffset_510 = 0; yOffset_510 = 0; zOffset_510 = 112.4; xRotate_510 = 0; yRotate_510 = 0; zRotate_510 = 0; enableFireSwitch = "yes"; fireSwitchType = "cloneTec12mmRaised"; fireSwitchColo...
glb/cad_5dcc37223e6a.glb
Create a kitchen tong holder consisting of a central spring ring and two extending arms. Start by creating a hollow cylinder with a height of 26mm, an outer diameter of 27mm, and a wall thickness of 2mm. Cut a wedge-shaped section out of this cylinder to create an opening, leaving a remaining arc angle of 30 degrees. ...
epaisseur = 2; angle = 30; diametre = 25; ouverture_service_x = 4; ouverture_service_y = 15; ouverture_service_z = 22; longueur_encoche = 35; $fn = 36; hauteur = ouverture_service_z+2*epaisseur; module ressore( ar, dia, ep, h ){ function opp(alpha) = tan(alpha)*dia/2; difference(){ cylinder(h, d=...
glb/cad_726ae1d3a6e6.glb
Create a Radiator Booster Fan assembly consisting of a fan housing and a circuit board holder. First, construct the fan housing. Create a square base plate measuring 86mm by 86mm with a thickness of 3mm. Center a circular hole with a 76mm diameter in this plate. Add four vertical walls, each 3mm thick and 14mm high, ...
$fn=100; t = 3; dt = 6; ht = 1.5; printableView(); module printableView() { fanplateWithSideCutouts(); translate([-100, 0, 0]) sideWithFins(); translate([-140, 0, t]) rotate(a=180, v=[0,1,0]) sideWithGrooves(); translate([100,0,0]) circuitHolder(); translate([230,0,6]) rotate(a=180, v=[0,1,0]) c...
glb/cad_8111320c543c.glb
Create a protective case for a telemetry module consisting of a base and a lid. Construct the base as a rectangular box with exterior dimensions of 49mm in length, 21mm in width, and 2mm in height. The interior should be hollowed out to create a cavity 45mm long, 17mm wide, and 7mm deep. At one end of the base, creat...
$fn=100; t = 2; dt = t*2; ht = t/2; w=17; l=45; h=7; difference(){ base(); basefillets(); baseinset(); } translate(v=[0, 0, 12]) difference(){ lid(); lidfillets(); } module base() { color("green") cube(size=[l+dt,w+dt,t]); color("red") difference(){ cube(size=[t, w+dt, h+t]); translate(v=[-1, t+2.5,...
glb/cad_baa97c0a62b2.glb
Create a servo arm with a central hub and four radiating arms. Start with a central cylinder for the hub that has a diameter of 6.52mm (5.92mm plus 0.6mm thickness) and a height of 4mm. In the center of this hub, create a vertical hole with a diameter of 2.5mm. Inside the hub, create a spline interface consisting of 2...
$fn = 40; SERVO_HEAD_CLEAR = 0.2; FUTABA_3F_SPLINE = [ [5.92, 4, 1.1, 2.5], [25, 0.3, 0.7, 1.1] ]; module servo_futaba_3f(length, count) { servo_arm(FUTABA_3F_SPLINE, [length, count]); } module servo_standard(length, count) { servo_futaba_3f(length, count); } module servo_head_tooth(length, width, ...
glb/cad_eec7c4d8ce61.glb
Create a Power Cord Clip Tag consisting of a flat rectangular plate and a cylindrical clip. Start with a rectangular plate centered at the origin, measuring 21mm wide, 20mm high, and 2mm thick. On the top edge of the plate, centered horizontally, attach a cylindrical clip. The clip's outer diameter is 8mm (radius 4...
$fn=360; halign = [ [-20, "left"], [0, "center"], [90, "right"] ]; valign = [ [ 0, "top"], [ 40, "center"], [ 75, "baseline"], [110, "bottom"] ]; tag_text=7; font_name="Share Tech Mono"; CreateBlank(); echo (str(tag_text)); if ((tag_text)!=-1) { echo ("False"); CreateText(); } module...
glb/cad_f4e4d0ae0cf5.glb
Create a balloon powered jet car body by combining a sphere and a tapered cylinder. Start with a nose sphere of radius 16mm. Attached to this, create a conical body that extends 100mm in length, tapering from the 16mm nose radius to a rear radius of 28mm. Flatten the bottom of the entire assembly to create a stable bas...
nose_radius=16; back_radius=28; car_length=100; balloon_tube=7; tube_height=15; tube_position=40; tube_thickness=2; exhaust_position=8; axel_width = 78; axel_bushing = 3; bushing_width = 2; axel_size = 4; axel_body = 7; port_size = 4; port_thickness = 2; module teardrop(ra,he) { union() { cylinder(r=ra, h=he); ...
glb/cad_bacc6a0f158f.glb
Create a Decora Switch Extension consisting of three separate components: a switch mount, an extension piece, and a pull handle. All parts have a consistent height of 6mm. For the switch mount, create a rectangular base with a width of 17mm (calculated from a 7mm inner radius plus 1.5mm wall thickness on each side). I...
use <sliding-bolt.scad>; buildSwitch = true; buildExtension = false; buildHandle = false; inner_radius = 7; travel = 35; spacing = 96.8375; height = 6; standoff = 7; decora_switch_face = 2; extension_length = 150; handle_radius = 500; use_handle = false; handle_length = 13; handle_height = 8; handle_fillet = 3; han...
glb/cad_726bfb2c4192.glb
Create a Space Invaders Fleet consisting of a grid of pixelated alien figures and matching bases. The fleet is arranged in 2 rows and 3 columns. Each alien figure is constructed from a grid of small cubes, each measuring 5mm x 5mm x 4mm. The figures are 9 pixels wide and 7 pixels high. The specific arrangement of cube...
seed = 123; part = "both"; Fleet_Rows = 2; Fleet_Columns = 3; Invader_Width = 9; Invader_Height = 7; Separated_Bases = "No"; randoms = rands(0,1,10000,seed); p = 0.6; grid = 5; fx = Fleet_Columns; fy = Fleet_Rows; invx = Invader_Width; invy = Invader_Height; print_part(); module print_part() { if (part == "...
glb/cad_864a66f32301.glb
Create a Raspberry Pi Camera Case and Mount. Start by constructing the main camera holder as a rectangular block measuring 9.75mm by 30.5mm by 28.5mm. Hollow out the center of this block to create a compartment that is 4.75mm deep, 25.5mm wide, and 23mm high, leaving a wall thickness of 2.5mm on all sides. Cut a rectan...
board_width=25.5; board_height=23; board_thick=4.75; cable_width=18; cable_thick=1; side_cover=7.5; camera_hole_width=10; camera_hole_height=5.5; screw_hole_r=2.65; padding=2.5; d=0.001; mount_offset=2*padding+board_width; mount_thickness=8; union(){ difference(){ cube([board_thick+2*padding, board_width+2*padding, ...
glb/cad_fd94e4a6caf4.glb
Create a 7-segment display housing with a total wall height of 30mm. The structure is based on a repeating segment unit. Each unit is a hollowed-out elongated hexagon with an outer width of 33mm (25mm square section plus 8mm height extensions) and an inner cutout width of 33mm (25mm square section plus 8mm height exten...
Margin=1; HH=8; L=25; LEDS=3; LED_Diam=5; WallHeight=30; $fn=40; module Segment(SegSize=50,SegH=15) { SegH_h=SegH/2; SegSize_h=SegSize/2; polygon(points=[[-SegSize_h-SegH_h,0], [-SegSize_h,SegH_h], [SegSize_h,SegH_h], [SegSize_h+SegH_h,0], ...
glb/cad_7c462fd802bc.glb
Create a drawer divider with a thickness of 1.5mm. The main body is a rounded rectangle with a top width of 51mm, a bottom width of 50mm, and a height of 33mm. The top two corners have a radius of 1mm, while the bottom two corners have a larger radius of 3mm. In the center of the top edge, create a rectangular cutout ...
include <../MCAD/boxes.scad> thickness = 1.5; widthTop = 51; widthBottom = 50; heightLeft = 33; heightRight = 33; cornerRadiusTopLeft = 1; cornerRadiusTopRight = 1; cornerRadiusBottomLeft = 3; cornerRadiusBottomRight = 3; DrawerDivider(widthTop, widthBottom, heightLeft, heightRight, thickness, corn...
glb/cad_3fb4ba2295cb.glb
Create a Solidoodle Printrboard Dual Fan Cover Plate by starting with a rectangular base plate measuring 105mm x 61.6mm x 3mm. On the top surface of the plate, add two fan mounting structures. Each structure consists of a 47mm square base (40mm fan size plus 3.5mm clips on each side) with a thickness of 3mm. Within e...
plate_thick=3; holedia=4.36; holerad=holedia/2; clipslop=1.5; fanthick=10+clipslop; fansize=40; fanhole=39; fanedge=(fansize-fanhole)/2; clipthick=3.5; clipwidth=12; clipheight=(fanthick+clipthick); fan1x=6.6; fan1y=8.6; fan2x=fan1x+fansize+7; fan2y=fan1y; module screw_and_reset_holes() { union() { tran...
glb/cad_369d09fa15e2.glb
Create a deck and section label consisting of a thin backplate with raised text. Start by creating a backplate 150mm wide, 25mm high, and 1mm thick. The backplate should have fully rounded ends, formed by a hull connecting two semicircles with a radius of 12.5mm centered at each end. On the surface of this plate, add ...
part = "both"; base_thickness = 1; base_width = 150; base_height = 25; text_height = 1; font = "Russo One"; deck = "10"; section = "01"; title_text = "Ten Forward"; description_line_1 = ""; description_line_2 = ""; print_part(); module print_part() { if (part == "back") { color("red") back...
glb/cad_4a413e3de975.glb
Create a bathtub sailboat consisting of a hull and a sail. For the hull, start with a sphere of 20mm radius and scale it by a factor of 2 along the X-axis to create an ellipsoid. Rotate this shape 10 degrees around the Y-axis and intersect it with a cube 100mm on each side to clip the top, leaving only the bottom porti...
% square(100, center=true); fn=32; th=1.5; size=20; module boat() { difference() { intersection() { translate([0,0,size*1/2]) rotate([0,10,0]) scale([2,1,1]) sphere(size,$fn=fn); translate([0,0,50]) cube(100,center=true); translate([0,0,-size*3/2]) rotate([0,10,0]) cube(100,center=true); } inter...
glb/cad_62f2e20dbb2f.glb
Create a Hex Shank Bit Holder block with a total height of 16.5mm, consisting of a 0.5mm thick base footer and a 16mm tall main body. The block should be sized to accommodate a grid of 5 columns and 2 rows of holes. Each hole must have a diameter of 7.8mm. For the columns, maintain a gap of 1.25mm between holes and a...
rows = 2; columns = 5; foot = 0.5; height = 16; rowsGap = 1.1; colsGap = 1.25; colsEdge = 1.0; rowsEdge = -0.8; holeDia = 7.8; holeShape = "hex"; fRad = 2.0; module fil_2d_i(r, angle=90) { translate([r, r, 0]) difference() { polygon([ [0, 0], [0, -r], [-r * tan(angle/2), -r], ...
glb/cad_34c1b8370012.glb
Create a Fan Adapter Plate by starting with a square base measuring 40mm by 40mm with a thickness of 2mm. Remove a large central circular hole with a radius of 15mm to create an opening for a smaller fan. To allow for mounting, create eight small circular holes, each with a radius of 1mm, positioned symmetrically near ...
bigfan=40; smallfan=30; bfscrewhole=1; sfscrewhole=1; thickness=2; bfshoffset=bigfan/10; sfshoffset=smallfan/10; thickness2=thickness+2; bfshoffset1=bfshoffset; bfshoffset2=bigfan-bfshoffset1; sfshoffset1=((bigfan - smallfan)/2) + sfshoffset; sfshoffset2=bigfan-sfshoffset1; difference() { cube([bigfan,bigfan,thickne...
glb/cad_7c15368c0c44.glb
Create a Clayr Pendant consisting of a central core and radiating star points. Start by constructing a central cluster of four interlocking rings, each with a diameter of 10mm and a thickness of 2mm. From this center, radiate 7 star points equally spaced around the circumference. Each point should be a pyramid-like s...
part = "pendant"; torusRingDiameter=10; torusRingThickness=2; starPoints=7; starRadius=25.4; starSpreadHeight=2; starSpreadWidth=5; keys=4; keyRadius=25.4; keyRodRadius=1; keyBitOffset=1.5; keyBitOffsetLength=2; keyBitWidth=1.5; keyBitLength=4; ringOuterRadius=2; ringThickness=2; pourwayBigR=3; pourwayL...
glb/cad_97a8e09488f8.glb
Create a Y-Axis Idler Pulley Bearing Mount designed to hold a bearing with a 5mm bore, 18mm rim diameter, and 8.7mm thickness. Start with a central rectangular base plate 8mm thick and 20mm wide. Through the center of this plate, create a horizontal bore 5mm in diameter and 21mm long to accommodate the axle bolt. At ...
use <threads.scad> bolt_inner_len = 21; bearing_thick = 8.7; bearing_bore_diam = 5; bearing_rim_diam = 18; bearing_contact_diam = 12; bearing_mount_ring_size = 0.2*bearing_bore_diam; original_bolt_displacement = 28; original_bearing_contact_diam = 22; belt_thickness = 1.5; min_bearing_clearance_radial = 2; extr...
glb/cad_8076292a124e.glb
Create a Belt Junction/Tensioner consisting of a rectangular block with a captured hex nut socket and a belt-gripping slot. Start with a main rectangular block measuring 8.75mm in width and depth (head diameter 6.75mm plus 1mm borders on each side) and 13mm in height (10mm length plus 3mm cap). Subtract a vertical ...
T2 = [ 2, 2, 1, 1.2, 10, 0.2, 0.2, 1.3, 1.3 ]; beltType = T2; beltWidth = 6; toothCount = 6; difference() { intersection() { union() { #rotate([180,0,0]) translate([0, 1.3, -9]) dog_linear(beltType, toothCount, beltWidth, 3); translate([0, -5, 0]) cube([...
glb/cad_d6f96667d1e0.glb
Create a Box Mod 75w tc connector component consisting of four stacked, coaxial cylinders aligned along a single axis. Start by creating a base cylinder with a diameter of 4mm and a height of 3mm. Centered on top of this base, add a second cylinder with a diameter of 7.5mm and a height of 1.5mm. Above that, place a thi...
$fn=96; translate([0,0,0]) rotate([0,0,90]) cylinder(d=4,h=3); translate([0,0,3]) rotate([0,0,90]) cylinder(d=7.5,h=1.5); translate([0,0,4.5]) rotate([0,0,90]) cylinder(d=5.6,h=3.5); translate([0,0,8]) rotate([0,0,90]) cylinder(d1=5.6,d2=4.8,h=0.5);
glb/cad_2fbeb8c74714.glb
Create a Box Mod 75w tc case by starting with a rectangular block measuring 21mm wide, 28mm deep, and 81mm tall. From this main body, remove several geometric features. First, carve out a 10mm diameter semi-circular notch from the center of the bottom edge and a matching 10mm diameter semi-circular notch from the cente...
include <C:\Users\THOMAS\Documents\OpenSCAD\libraries\writescad\write.scad> $fn=96; translate([40,0,0]) { difference() { translate([-21/2,22+2,4-0.4]) cube([21,2,77]); translate([-5,26,17]) rotate([90,0,0]) write("+",t=3,h=16); translate([-5,26,60]) rotate([90,0,0]) write("-",t=3,h=16); translate(...
glb/cad_9c4bba87fb0e.glb