Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a MendelMax spool holder mount. The main body is a vertical block 80mm high, 20mm wide, and 22mm deep. Centered within this block, remove a square channel 20mm by 20mm that runs the full height of the part to accommodate a main extrusion. The outer walls of the mount are 4mm thick. On the sides of the block, cr...
HOLDER_WIDTH = 80; outer_hole_dia = 5; expanded_part_width = 16; HOLDER_THICKNESS = 4; module extrusion_mount() { difference() { union() { translate([0, -2, 0]) minkowski() { cube([20,22,HOLDER_WIDTH-1]); cylinder(r=HOLDER_THICKNESS,h=1); } difference() { hull() { translate([10,20,0]) { cylind...
glb/cad_d9e80811d736.glb
Create a MendelMax spool holder axis. Start with a central cylinder 172mm long with a radius of 4mm. At both ends of this central cylinder, add larger circular discs with a radius of 15mm and a thickness of 4mm. Along the length of the central cylinder, starting from the first disc, place six additional circular discs,...
$fn=30; SIDE_WIDTH = 4; SIDE_WIDTH_2 = 4; SIDE_R = 15; LENGTH = 172 + SIDE_WIDTH + SIDE_WIDTH_2; R = 4; R_INNER = 4+20; difference() { translate([0,0,3.5]) rotate([-90,0,0]) union() { cylinder(r=R, h=LENGTH); cylinder(r=SIDE_R, h=SIDE_WIDTH); translate([0,0,LENGTH-SIDE_WIDTH]) cylinder(r=SIDE_R, h=SIDE_WIDT...
glb/cad_278dab3f07bd.glb
Create a Braille Writer plaque by starting with a rectangular base slab measuring 110mm wide, 72mm deep, and 1mm thick. Position this slab so it is centered on the Y-axis and elevated slightly. On the top surface of the slab, add a series of Braille characters arranged in six lines of text. Each line is spaced 12mm ap...
testText = ["All human beings are born", "free and equal in dignity and", "rights. They are endowed with", "reason and conscience and", "should act towards one another", "in a spirit of brotherhood."]; dotRadius = 0.5; charWidth = 3.5; resolution = 10; lineHeight = 12; totalHeight = length(testText)*lineHeight; slabX...
glb/cad_9a5c484142b9.glb
Create a Braille Writer plaque by starting with a rectangular base slab measuring 150mm by 120mm with a thickness of 1mm. On the top surface of this slab, place a series of Braille characters arranged in ten horizontal lines. Each line of text is spaced 12mm apart vertically. The Braille dots are formed as small cylin...
testText = [ "All human beings are", "born free and equal", "in dignity and", "rights. They are", "endowed with reason", "and conscience and", "should act towards", "one another in a", "spirit of", "brotherhood." ]; dotHeight = 0.5; dotRadius = 1; charWidth = 7; resolution = 10; lineHeight = 12; totalHeight ...
glb/cad_c296d795298b.glb
Create a Return Addressee Unknown Stamp by starting with a rectangular base measuring 52mm in width, 34mm in depth, and 5mm in height. On the top surface of this base, add three rows of mirrored, raised text, each with a height of 2mm. The text must be mirrored along the X-axis to be suitable for stamping. Position the...
cube([52,34,5]); translate([52,24,2]) mirror([-1,0,0]) resize([50,10,5]) linear_extrude([0,0,2]) text("RETURN", center=true,font = ".Helvetica Neue Desk UI:style=Regular"); translate([52,12,2]) mirror([-1,0,0]) resize([50,10,5]) linear_extrude([0,0,2]) text("ADDRESSEE", center=true,font = ".Helve...
glb/cad_22e8e27beaba.glb
Create a Return Addressee Unknown Stamp by constructing a single solid rectangular prism. The prism must have a width of 30mm, a depth of 10mm, and a height of 30mm.
cube([30,10,30]);
glb/cad_ab566d95c33d.glb
Create an Ariston SME Armboard by starting with a main cylindrical body that is 10mm thick with a radius of 43.5mm. From this body, remove two large cylindrical cutouts, each with a radius of 14.5mm, positioned symmetrically along the Y-axis at 21mm and -21mm from the center. To create a central slot, remove a centered...
difference() { cylinder(h=10, r=43.5, center=true, $fn=100); translate ([35,0,0]) cylinder (h=12, r=2.4, center=true, $fn=100); translate ([35,0,3.75]) cylinder (h=2.7, r1=2.3, r2=5, center=true, $fn=100); translate ([-35,0,0]) cylinder (h=12, r=2.4, center=true, $fn=100); translate ([-35,0,3.75]) cylinder (h...
glb/cad_1e42433ebeeb.glb
Create a printer gap test model consisting of a thin rectangular base with two vertical towers. Start by creating a base plate that is 28mm wide, 11mm deep, and 0.4mm thick. Position two identical rectangular towers on top of this base; each tower must be 4mm wide, 7mm deep, and 9mm tall. Place the first tower at a mar...
margin=2; base_thickness=0.4; distance=20; tower_width=4; tower_depth=7; tower_height=9; text_height = 1*1; total_width = margin + tower_width + distance + tower_width + margin; total_depth = margin + tower_depth + margin; translate([0,0,-base_thickness]) cube([total_width,total_depth,base_thickness]); translat...
glb/cad_0d957d72772b.glb
Create a SmartLCD Case bottom enclosure. Start with a base rectangular footprint of 60mm by 73mm with a wall thickness of 3mm. The base should have rounded corners with a radius of 3mm. At each of the two rear corners, create a mounting structure for a PCB. Each mount consists of a block that is intersected by a 15-de...
include <common.scad> include <smartlcd.scad> module corner_cube() { translate([-4, -4, 4]) intersection() { cube([8,8,8], center=true); translate([-3, -3, -4]) rotate([-40, 0, -45]) cube([15,15,15], center=true); } } module smartlcd_case_bottom() { translate([-3, -5, 0]) { minkowski() { ...
glb/cad_c4871dbd3d2f.glb
Create a discretized hyperbolic paraboloid composed of a 16 by 16 grid of square prisms. Each prism must have a base measuring 3mm by 3mm. Arrange the prisms so that their center points are aligned to a coordinate system where the origin is the center of the grid. The height of each individual prism is determined by ...
cs=3; steps=16; hp(cs,steps); module hp(cs,steps){ hp1(cs,steps); hp2(cs,steps); } module hp1(cs,steps){ steps=steps-1; div=steps/2; for (x=[0:steps]) { for (y=[0:steps]) { if((x%2==0 && y%2==0) || (abs(x%2)==1 && abs(y%2)==1)) color("white")translate([cs*(div-x),cs*(div-y),0]) cube([cs*1.01,cs*1.01...
glb/cad_535a1150693c.glb
Create a Kossel Glass/Hot Bed Tab by constructing a composite base and removing a central vertical hole. Start by forming a union of three shapes: a cylinder with a radius of 10mm and a height of 5.7mm, a cube measuring 20mm wide, 10mm deep, and 3mm high positioned with its center at the origin, and a second cylinder w...
tabsize=10; threadradius= 2; heatedbedheight = 2.7; glassheight= 3; epsilon = 0.2; difference() { union(){ cylinder (r=tabsize, h=heatedbedheight + glassheight); translate([-tabsize,0,0]) {cube([2*tabsize,tabsize,glassheight]);} translate([0,tabsize,0]) cylinder (r=tabsize, h=glassheight); ...
glb/cad_b6cadb745b19.glb
Create a customisable anti-curl cuboid base plate with overall dimensions of 150mm width, 100mm depth, and 10mm height. Start with a solid cuboid of these dimensions. To create the waffle structure, remove a grid of rectangular cutouts from the main body. The grid should consist of 5 segments along the width and 4 se...
base_width_x = 150; base_depth_y = 100; base_height_z = 10; thickness = 1.5; tower_radius = 1.5*thickness; x_segments = 5; y_segments = 4; $fn=50; x_space = (base_width_x-thickness)/x_segments; y_space = (base_depth_y-thickness)/y_segments; waffle_cutout_x = (base_width_x-(thickness*(x_segments+1)))/x_segments; wa...
glb/cad_68873d934347.glb
Create a customizable text sign. Start with a rectangular base plate that is 0.4mm thick. The total width of the plate is 58mm (50mm text width plus 4mm margins on each side for holes) and the height is 14mm (10mm text height plus 4mm margins). The corners of this base plate should be chamfered. On the base plate, cen...
$fn=16*1; E = 0.01*1; content="Please ring bell"; text_width=50; text_height = 10; base_thickness=0.4; margin=4; margin_type = "chamfer"; holes = "left+right"; hole_dia = 4; border_width_tenths = 10; border_width = min([margin,border_width_tenths/10]); border_thickness = 1; font_name="Helvetica"; font_weig...
glb/cad_31fb99e3d443.glb
Create an OpenRC truggy shield with locker by constructing a rounded cube with dimensions 5mm x 5mm x 5mm. The overall shape is a cube where every edge and corner is rounded with a radius of 1mm.
pad=0.05; green=[0.1,0.9,0.2,0.8]; black=[0.3,0.3,0.3,1]; fgreen=[0.3, 0.9, 0.2, 0.95]; fgold=[1,0.85, 0.1, 0.95]; fblue=[0.2,0.2,0.79]; function cot(x)=1/tan(x); module up(z){ translate([0,0,z]) children(); } module Cube(x,y,z,size){ if(size){ translate([0,0,size[2]/2]) cube(size,center=...
glb/cad_9f8f98938d58.glb
Create a Printrbot Simple Metal Spool Holder consisting of a cylindrical axle and a mounting base. First, create the spool axle as a cylinder with a diameter of 29mm and a height of 100mm. Construct the mounting base by creating a central cylinder with a diameter of 30mm and a height of 8mm. Within this base, creat...
$fa = 0.1; $fs = 0.1; handle_looseness = 0.1; alu_handle_width = 16 + handle_looseness; screw_distance = 81; screw_looseness = 1; screw_diameter = 3 + screw_looseness; screw_head_diameter = 5.5 + screw_looseness; screw_head_height = 4; screw_height = 4; spool_base_height = screw_height + screw_head_height; spool_ba...
glb/cad_eb00eaa26dfc.glb
Create a dual X-carriage and X-end assembly for a vertical X-axis. The carriage consists of two mirrored halves. Each half starts with a base block 30mm wide, 70mm high, and 7.5mm thick. On each half, position two cylindrical bearing holders with an outer diameter of 19mm and a length of 31mm, centered 50mm apart alo...
include <timing_belts.scad> $fn=100; x_rod_diameter = 8; z_rod_diameter = 10; lm8uu_bearing_diameter = 15; lm8uu_bearing_length = 24; lm10uu_bearing_diameter = 21; lm10uu_bearing_length = 31; wall_thickness = 6; hole_margin = 1; outer_distance_between_xrods = 50+x_rod_diameter; center_distance_between_xrods = 50; b...
glb/cad_4a97c8d199e0.glb
Create a set of X-axis ends and an X-carriage for a Mendel Max 1.5 printer designed for vertical X-axis orientation. For the X-ends, create two symmetrical brackets. Each bracket features a central block with a hole for an 8mm X-rod and a larger housing for a 10mm Z-axis rod. The Z-axis housing includes a smooth rod h...
$fn=100; x_rod_diameter = 8; z_rod_diameter = 10; lm8uu_bearing_diameter = 15; lm8uu_bearing_length = 24; lm10uu_bearing_diameter = 19; lm10uu_bearing_length = 31; wall_thickness = 6; hole_margin = 1; outer_distance_between_xrods = 50+x_rod_diameter; center_distance_between_xrods = 50; idler_bearings_width = 17; idl...
glb/cad_a9be84ea6c84.glb
Create a Kossel ATX PSU mount designed for 2020 aluminum extrusions. Start with a rectangular base plate measuring 86.8mm by 150.8mm with a thickness of 20mm. Hollow out the center of this plate to create a frame with a wall thickness of 5mm. On the right side of the frame, add two symmetrical mounting brackets. Each ...
dim = [ 86.5, 150.5 ]; c = 0.3; w = dim[0]+c; h = dim[1]+c; l = 20; t = 5; b = 20.5+c*2; m3r = 5/2*1.1; $fn=16; difference() { cube( [ w+t*2, h+t*2, l ], center = true ); cube( [ w, h, l*2 ], center = true ); translate([-w/2-t,0,0])color("red")cube ([t*2, h+t*2,l], center=true); } translate( [ w/2+t+b/2, 30,...
glb/cad_3d40f75c4131.glb
Create a Kossel ATX PSU mount designed for 2020 aluminum extrusions. Start with a rectangular base plate measuring 92.5mm by 156.5mm with a thickness of 20mm. Hollow out the center of this plate to create a rectangular frame with a wall thickness of 5mm, leaving a central opening of 86.5mm by 150.5mm. In the base plat...
dim = [ 86.5, 150.5 ]; c = 0.3; w = dim[0]+c; h = dim[1]+c; l = 20; t = 5; b = 20.5+c*2; m3r = 5/2*1.1; $fn=16; difference(){ translate([0,0,l/2-1])cube ([ w+t*2, h+t*2, 2 ], center = true); translate([0,0,l/2-1])cube ([ w-20, h-20, 2 ], center = true); translate([-dim[0]/2+6,-dim[1]/2+6,0])cylinder(r=m3r,h=...
glb/cad_644b28e2285f.glb
Create a Tetrix ZTE Speed mount. Start with a base consisting of two cylinders with a radius of 14mm and a height of 3mm, positioned 64mm apart center-to-center, connected by a rectangular block 64mm long, 28mm wide, and 3mm high. Drill 4.5mm diameter holes through the base at the center of each cylinder and at the mid...
zteWidth=12; baseWidth=3; module base() { cylinder(h=baseWidth, r=14, $fn=40); translate([0,-14,0]) cube([64,28,baseWidth]); translate([64,0,0]) cylinder(h=baseWidth, r=14, $fn=40); } module side() { difference() { union() { translate([-1,-14,0]) cube([5,(28-zteWidth)/2,75]); translate([-1,(14-(28-zteWidth...
glb/cad_24203f78f58d.glb
Create a coffee stamp by constructing a base and a handle. Start with a cylinder 56mm in diameter and 5mm in height. From the center of this base, extend a vertical column upwards to a total height of 60mm. This column should taper linearly from the 56mm diameter of the base to a 16mm diameter circle located 55mm above...
diameter = 56; nob_diameter = 30; height = 60; $fn=100; module stamper(dia=56,ndia=30,height=60) { hull() { cylinder(r=dia/2,h=5); translate([0,0,height-(ndia/2)-5]) cylinder(r=8,h=3); } translate([0,0,height-(ndia/2)]) sphere(r=ndia/2); } stamper(diameter,nob_diameter,height);
glb/cad_1c5b950ff3cb.glb
Create a key for a restroom dispenser by combining a rectangular base with a central cylindrical post and two small rectangular protrusions. Start with a rectangular base measuring 30mm in length, 10mm in width, and 5mm in height. Centered on top of this base, place a cylinder with a radius of 4.7mm and a height of 10m...
module bormanKey(){ translate([0,0,5]){ cylinder(h=10,r1=4.7, r2=4.7, center=true); translate([0,0,-5]){ cube([30,10,5],center=true); } } translate([2.6,0,12]){ cube([2.5,4,4.5],center=true); } translate([-2.6,0,12]){ cube([2.5,4,4.5],center=true); } } bormanKey(...
glb/cad_0e8007494ce9.glb
Create a kafopane, which is a thin, square relief plaque. Start by creating a base square plate measuring 204mm by 204mm with a thickness of 0.4mm. On top of this base, add a textured surface layer that is 2.4mm high, spanning 200mm by 200mm, where the height of the surface varies based on an image to create a 3D relie...
image_file = "image-surface.dat"; hole_diameter = 10; layer_height = 0.2; number_of_layers = 12; length = 200; width = 200; min_layer_height = layer_height*2; hole_radius = hole_diameter/2; height = layer_height*number_of_layers; scale([.75,.75,1]) union() { difference() { translate([0, 0, min_layer_height...
glb/cad_3845a626785a.glb
Create a Meta Clip holder consisting of two round clips attached to a mounting bracket with an integrated back clip. First, create the mounting bracket as a rectangular base 6mm thick and 10mm high. The total length of the base is 90mm, extending 25mm beyond the center of the first and last clips. Construct two iden...
$fs = 0.25; $fn = 100; clipNumber = 2; clipSpacing = 40; clipInnerDiameter = 25; clipWidth = 10; clipWallThickness = 4; clipOpeningAngle = 110; bracketThickness = 6; mountEarsLength = 25; mountHoleOffset = 5; mountHoleDiameter = 3; do_back_clip = true; wallThickness = 12; module roundClip() { difference() { cy...
glb/cad_2c89b72ef35a.glb
Create a tool holder consisting of a flat base plate and several vertical gripping and mounting features. Start with a base plate that is 35mm wide, 40mm long, and 3mm thick. On the right side of the base, create three identical gripping sections spaced evenly along the length. Each grip consists of a front vertical ...
x=35; y=40; z=6; grips = 3; gripSpacingRatio = 0.5; gripWidth = y / (grips + gripSpacingRatio * (grips - 1)); gripSpacing = gripWidth * gripSpacingRatio; thickness = 3; gripDepth = 10; supportWidth = 0.75; toolGap = 10; holderWidth = 20; holderLength = 4 * toolGap + 39; manifoldOffset = 0.01; useSupport = true; sup...
glb/cad_149c99b65824.glb
Create a 3D maze puzzle consisting of a solid base plate and a network of vertical walls. The base plate should be a rectangular slab with a thickness of 2mm. On top of this base, construct walls with a height of 10mm. The maze layout is a grid 10 units wide by 10 units high. Each path within the grid must be 10mm wid...
maze_width=10; maze_height=10; maze_type = "Sidewinder"; direction_bias = 5; width_of_paths=10; wall_height=10; inside_wall_thickness=3; outside_wall_thickness=5; include_an_entrance=1; base_thickness=2; random_seed = 0; bias = (direction_bias < 5)? 5/direction_bias : .2*(10-direction_bias); seed = (random_...
glb/cad_69995b20e2c7.glb
Create a Rostock Max filament spool consisting of two identical circular end plates separated by a central core. Each end plate is a disk with a diameter of 160mm and a thickness of 70mm. At the center of each disk, create a cylindrical hole with a diameter of 40mm that passes through the entire 70mm thickness. To re...
unit = 1; spool_width = 70; spool_walls_diameter = 160; spool_walls_width = 3; spool_hole_diameter = 40; filament_diameter = 2; spl_l=spool_width*unit; spl_w_d=spool_walls_diameter*unit; spl_w_w=spool_walls_width*unit; spl_h_d=spool_hole_diameter*unit; $fn=48*2; spl_w_r=spl_w_d/2*1; spl_h_r=spl_h_d/2*1; fil_r=fi...
glb/cad_e4fb7aca96bf.glb
Create a Customizable Shelf Talker designed to clip onto a shelf. Start by creating a thin rectangular base plate that is 3mm thick. On top of this base, center the word "fiction" using a font size of 20mm and a thickness of 3mm. To create the mounting clip, attach a U-shaped bracket to the rear of the base. This bra...
label_text = "fiction"; font_size = 20; letter_spacing = 1; font = "write/Letters.dxf"; shelf_thickness = 20; 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); use <write/Write.scad> use <utils/build_pl...
glb/cad_f03c61f6d526.glb
Create a Customizable Easy Gyro consisting of four concentric, orthogonal rings. The outermost ring has a diameter of 60mm, a thickness of 3mm, and a height of 8mm. Each subsequent inner ring is smaller, reducing in diameter by 8mm (the sum of the ring thickness and a 2mm spacing) relative to the one preceding it. For...
largest_diameter = 60; rings = 4; ring_thickness = 3; ring_height = 8; ring_spacing = 1; resolution = 50; for(i = [0 : rings - 1]) { current_outer_diameter = largest_diameter - ((ring_thickness + ring_spacing) * 2 * i); next_outer_diameter = largest_diameter - ((ring_thickness + ring_spacing) * 2 * (i +...
glb/cad_205e30896bb3.glb
Create a layer height quality test gauge by starting with a sphere of 200mm diameter centered at [0, 0, -87.5]. Remove a large vertical cylinder with a 120mm radius and a height of 500mm from the center of the sphere, and further remove a 100mm cube positioned at [-50, 15, 2] to create a hollowed, bowl-like basin. On t...
layer="0.30 mm"; union(){ translate([0,30,2])rotate([0,0,180])linear_extrude(height=1)text(layer,size=12,font="arial:style=Bold",halign="center",walign="center"); difference(){ translate([0,0,-87.5])sphere(100,$fn=200); rotate([0,180,0])cylinder(r=120,h=500); translate([-50,15,2])cube(100); };};
glb/cad_dc483625d6b4.glb
Create a pickup block for a 3-panel sliding shower screen by starting with a rectangular solid measuring 26.13mm in length, 8.20mm in width, and 4.13mm in height. At two specific positions along the length, create vertical holes that pass through the block. The first hole is centered 5.08mm from the left edge and the s...
module hole(pos){ translate([pos,4.1,1.63]) cylinder(h = 2.5, r=2.7,$fn=30); translate([pos,4.1,0]) cylinder(h = 4.17, r=1.5, $fn=30); } $fn=25; difference() { cube(size=[26.13,8.20,4.13],center=false); hole(5.08); hole(21.05); }
glb/cad_6157de1b5e0d.glb
Create a BeagleBone Black DIN rail clip by designing a base shape based on the provided DXF profile, extruded to a height of 6mm and centered. Integrate two square pillars, each measuring 5mm by 5mm by 6mm. Position the first pillar at a Y-offset of 6.35mm and the second pillar at a Y-offset of 48.26mm. Through each of...
CLIP_H = 6; HOLE_DEPTH = 5; HOLE_DIAMETER = 2.9; PILLAR_H = 5; PILLAR_1_Y_OFFSET = 6.35; PILLAR_2_Y_OFFSET = 48.26; module din_clip() { difference() { union() { linear_extrude(height=CLIP_H, center=true, convexity=5) { import(file="bbb_din_clip.dxf", layer="0", $fn=64); } translate([-PILLAR_H/2, PILL...
glb/cad_7001474bc171.glb
Create an end plate for a project box by starting with a central rectangular slab measuring 27mm wide, 71mm long, and 1.5mm thick. Add two overlapping rectangular sections to the center of the slab to create a total footprint of 27mm by 78mm by 1.5mm. On the top surface of the plate, place two rectangular blocks, each...
{ difference(){ union(){ translate([9.5,35,0]) cylinder( r = 4 , h = 1.5 , center=true , $fn=100); translate([9.5,-35,0]) cylinder( r = 4 , h = 1.5 , center=true , $fn=100); translate([-9.5,35,0]) cylinder( r = 4 , h = 1.5 , center=true , $fn=100); translate([-9.5,-35,0]) cylinder( r = 4 , h = 1.5 , center=...
glb/cad_5f59ac47c42a.glb
Create a Stylus Holder by constructing a conical base and carving out a central cavity. Start with a cone that has a bottom radius of 38.5mm and tapers to a point at a height of 129mm. Surround this with a slightly larger concentric cone of the same height and a base radius of 39.5mm. Carve a vertical cylindrical hol...
a = 62; b = 33 / 2; b0 = 5; b1 = (2 * b + b0); b2 = (b + 2 * b0); h = (2 * a) + b0; s = a / b; alpha = atan(b1 / h); pentaPoints = [[0,7],[55,7],[62,0],[55,-7],[0,-7],[0,5],[54,5],[60,0],[54,-5],[0,-5]]; pentaPaths = [[0,1,2,3,4],[9,8,7,6,5]]; module pentagon(angle) { rotate([0,0,angle]) translate([b1,0,0]) rot...
glb/cad_13c47b034ed2.glb
Create a Platform Leveling Tool by starting with a solid cylinder 25mm tall with a radius of 5mm. From the bottom of this cylinder, remove a hexagonal hole with a radius of 3.555mm and a height of 7mm. Continuing upward along the central axis, remove a smaller cylindrical hole with a radius of 2.2mm and a height of 20m...
m3_diameter = 4.4; m3_nut_diameter = 7.11; a = 2.5; b = sqrt( 2 * a * a); difference() { cylinder(h = 25, r = 5, $fn=100, center=false); translate(v = [0, 0, -0.01]) cylinder(h = 7, r=m3_nut_diameter/2, $fn=6, center=false); translate(v = [0, 0, 0]) cylinder(h = 20, r=m3_diameter/2, $fn=9, center=false); translat...
glb/cad_6dee77df5f9e.glb
Create a glass mounter by starting with a base shape formed from a sphere with a radius of 10mm, scaled by a factor of 2 along the X and Y axes and a factor of 3 along the Z axis. From this primary volume, remove a large rectangular block measuring 100mm x 100mm x 100mm positioned at X-50, Y-50, Z-100 to carve out a si...
function ngon(num, r) = [for (i=[0:num-1], a=i*360/num) [ r*cos(a), r*sin(a) ]]; union () { difference() { scale([2, 2, 3]) sphere(r = 10); translate([-50, -50, -100]) cube(100); translate([-4, -30, 10]) cube([8, 60, 40]); translate([0,...
glb/cad_e23cf41eb10e.glb
Create a glass mounter by starting with a base shape formed from a sphere scaled by a factor of 2 in the X and Y axes and a factor of 3 in the Z axis. Cut away the bottom half of this shape with a large cube. From this remaining upper shell, remove a central rectangular block measuring 8mm wide, 60mm deep, and 40mm hig...
function ngon(num, r) = [for (i=[0:num-1], a=i*360/num) [ r*cos(a), r*sin(a) ]]; difference() { difference() { scale([2, 2, 3]) sphere(r = 10); translate([-50, -50, -100]) cube(100); } translate([-4, -30, 10]) cube([8, 60, 40]); translate([0, -10...
glb/cad_86bb76acfb1c.glb
Create a Trumpstache ornament consisting of a mouthpiece and a stylized mustache. First, generate the mouthpiece by rotating a 2D profile around a central axis, positioning it at [0, -6, 0]. For the mustache, create two symmetrical halves. Each half is formed by the intersection of a 75mm cube and a composite shape. Th...
a1 = 12; w1 = 15; l1 = 25; a2 = -12; w2 = 12; l2 = 20; a3 = -22; w3 = 8; l3 = 10; a4 = -18; w4 = 5; l4 = 10; a5 = -20; w5 = 3; l5 = 15; union() { translate([0, -6, 0]) rotate_extrude(file = "mouthpiece.dxf", layer = "mouthpiece", origin = [0,0], $fn = resolution); scale([0.6,0.6,0.3]){ union(){ mirror() H...
glb/cad_6ea9c07c91a1.glb
Create an MDF Construction Helper L-section tool. Start by creating a solid L-shaped base with a height of 7mm. The outer dimensions of the L-shape should be formed by two intersecting rectangular prisms, each with a width of 5.4mm. One prism is centered and extends 23mm along the X-axis, while the second is rotated 90...
mdf = 3; axis = 10; wall = 1.2; hgt = 7; sect = "l"; width = mdf+2*wall; length = 2*axis+mdf; hlength = axis+mdf; delta = 1; module iCube(x,y,z) { translate([0,0,z/2]) cube([x,y,z], center = true); } module xSect() { difference() { union() { iCube(length, width, hgt); rotate(...
glb/cad_5456c53de89a.glb
Create a Pacman Ghost figure using a voxel-like construction based on a 14x14 grid of 4mm units. Start with a base rectangular slab measuring 56mm wide, 56mm deep, and 4mm thick. Modify the top surface of the slab to create the ghost's head and body. The top is flat across the middle but curves down at the corners; s...
padding = 0.01; multiplier = 4; union() { difference() { cube(size = [14*multiplier,14*multiplier,1*multiplier], center=false); translate([14*multiplier+padding,padding,+1*multiplier]) rotate(a=[0,180,0]) upper_corner(); upper_corner(); lower_bits(); eye_ball(); } } eye_pupil(); module eye_pupil() { transl...
glb/cad_9deb2d80d533.glb
Create a TinyOLED display controller housing consisting of a main frame, a snap-in rear cover, and a rotary encoder knob. The main frame is a rectangular box with outer dimensions of 56.5mm in length, 43mm in width, and 23mm in height, featuring walls 3.5mm thick. Create a central rectangular cutout for the OLED scre...
eh=0.25; ew=0.55; 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 chamfered_cylinder(r=0,r1=0,r2=0,h=0,d=1){ hull(){ translate([0,0,d])cylinder(r1=(r?r:r1),r2=(r>0?...
glb/cad_4a79165dad3f.glb
Create a QFH antenna holder by starting with a central cylindrical hub and adding four rectangular arms extending outwards. The central hub is a cylinder with a radius of 17.75mm and a height of 20mm. This hub contains a vertical center hole with a diameter of 12.75mm that passes completely through the object. Extend ...
top_cross=1; base_width = 20; base_thickness = 20; holder_wall = 5; hole_dia = 25.5/2; mount_tube_dia=16.5; module holder() { difference(){ union(){ translate([14,-10,0]) cube(20,10,10,center=false); translate([-34,-10,0]) cube(20,10,10,center=false); if(top_cross==1){ rotate([0,0,90]) translate(...
glb/cad_39ac546e4155.glb
Create a parametric nose pad for glasses consisting of an oval base with a rectangular pin. Start by creating an oval disc with a long radius of 5.5mm, a short radius of 3.5mm, and a thickness of 1.5mm. Centered on top of this disc, add a rectangular pin that is 4mm long, 1.5mm wide, and 3mm high. Rotate the pin 10 deg...
$fn = 200; l = 5.5; w = 3.5; t = 1.5; pl = 4; pw = 1.5; ph = 3; pr = 10; module oval(w,h, height, center = false) { scale([1, h/w, 1]) cylinder(h=height, r=w, center=center); } oval(l,w,t); rotate([0,0,pr]) translate([-pl/2,-pw/2,0]) cube([pl,pw,ph+t]);
glb/cad_f244cb9966a4.glb
Create a protective phone cover for an iPhone 6 with a total thickness of 1.8mm. The main body should be a rounded rectangular shell with a width of 67mm, length of 138mm, and a height of 6.75mm, featuring a corner radius of 8mm. The sides should have a slight taper of 3 degrees for better grip. On the back surface, c...
primary_color="red"; iphone_version = 3; case_thickness = 1.8; type_of_case = 1; include_hooks="no"; input = "no_input"; image_scale=75; offX =0; offY =0; image_rotation =0; pattern_shape =6; pattern_radius =17; pattern_overlap = 18; pattern_rotation = 13; pattern_thickness = 5; mashup_type=1; index_i=1; ind...
glb/cad_edbf79ea6dd8.glb
Create a Camdeck LED Mount consisting of a flat base plate and a raised central housing. Start with a rectangular base plate 42mm wide, 5.5mm deep, and 2mm thick. Center two circular holes with a 3.5mm diameter on the base plate, positioned 20mm from the center on each side. On top of the base plate, center a raised L...
$fn=50; rotate([-90, 0, 0]){ BasePlate(); translate([0,5.5/2,6]) rotate([90, 0, 0]) LedModule(); } module LedModule() { linear_extrude(1.5) LedPlate(2.7); translate([0, 0, 1.5]) linear_extrude(3.5) LedPlate(3.2); } module BasePlate() { w=47; ws=40; linear_...
glb/cad_b1722edce60a.glb
Create a brush holder by constructing a hollowed-out composite volume with a total height of 42mm. First, form the outer shell by combining a rectangular block measuring 40mm wide, 17mm deep, and 42mm high with a cylinder that has a radius of 20mm and a height of 42mm, scaled along the depth axis by a factor of 29/35 t...
difference() { union() { translate( v=[-40/2,2,0 ] ) { cube( size=[40,17,42] ); } scale( v=[1,29/35,1] ) { cylinder( r = 40/2, h=42); } } union() { translate( v=[-35/2,0,0 ] ) { cube( size=[35,15,42] ); } scale( v=[1,29/35,1] ) { cylinder( r = 35/2, h=42); } } }
glb/cad_554398b1802d.glb
Create a Von Karman rocket nose cone by generating a profile curve and rotating it 360 degrees around its vertical axis. The nose cone must have a total length of 30mm and a base radius of 10mm. To define the profile, calculate the radius at various points along the length using the Haack series equation for a Von Karm...
L = 30; R = 10; C = 0; num_faces = 45; $fn = 80; function theta(x) = acos(1 - 2*x/L); function y(x) = R * sqrt(theta(x)*PI/180 - sin(2*theta(x))/2 + C * pow(sin(theta(x)), 3)) / sqrt(PI); pts = concat([[0, 0]], [ for (i = [0 : num_faces]) let (x = i * L / num_faces) [y(L - x), x] ]); rotate_extrude() polygon(poin...
glb/cad_5a2c0f5bf699.glb
Create a lid for a Mini-ITX case by starting with a square plate measuring 185mm by 185mm with a thickness of 5mm. Remove four circular holes from this plate: two small holes with a diameter of 2.5mm centered on the edges at coordinates (92.5, 2.5) and (2.5, 92.5), and another at (182.5, 92.5). Additionally, create fou...
$fn=100; lid(); module lid(){ difference(){ union(){ cube([185,185,5]); } translate([92.5,2.5,0]){ cylinder(h=2.5,d=2.5); } translate([2.5,92.5,0]){ cylinder(h=2.5,d=2.5); } translate([182.5,92.5,0]){ cylinder(h...
glb/cad_a167f645e942.glb
Create a Mini-ITX case base with overall dimensions of 185mm x 185mm x 31.79mm. Start with a solid block of these dimensions and hollow out the center by removing a 175mm x 175mm x 31.79mm block starting 5mm from each edge. Remove material to create several circular openings: place four vertical holes with a diameter ...
$fn=100; mid(); module mid(){ difference(){ union(){ cube([185,185,31.79]); translate([92.5,2.5,31.79]){ cylinder(h=2,d=2.5); } translate([2.5,92.5,31.79]){ cylinder(h=2,d=2.5); } translate([182.5,92.5,3...
glb/cad_563683c99444.glb
Create a Mini-ITX case base with overall outer dimensions of 185mm x 185mm x 53.21mm. The main body is a hollowed-out shell; create this by starting with a solid block of the outer dimensions and removing a central rectangular volume of 175mm x 175mm x 48.21mm, leaving a wall thickness of 5mm on the sides and a floor t...
$fn=100; bottom(); module bottom(){ difference(){ union(){ cube([185,185,53.21]); translate([92.5,2.5,53.21]){ cylinder(h=2,d=2.5); } translate([2.5,92.5,53.21]){ cylinder(h=2,d=2.5); } translate([182.5,...
glb/cad_9b7503991a0c.glb
Create an Enlarged Rostock Carriage for 12mm smooth rods. Start with a central body that is 60mm wide and has a height defined by the carriage height. The main structure is a rectangular block with rounded ends, where the ends are formed by cylinders with a radius of 11mm plus a 1mm tolerance. Integrate two linear bea...
include <configuration.scad> use <linear_bearing.scad> use <belt_coupler_v6_Mod.scad> H = carriage_height; W = 60; d = 22; th = 4; width = 76; offset = 25; cutout = 13; middle = 2*offset - width/2; module conical_groove(d1, d2, w) { difference() { translate([0, 0, -w ]) cylinder(r =d1/2+0.1, h=w*2, ...
glb/cad_d84ad39421b9.glb
Create a Spray Can Tube Holder consisting of two concentric, C-shaped rings of the same height. First, create a large outer ring with an outer diameter of 53mm, an inner diameter of 44mm, and a height of 4mm. Cut a gap into this ring by removing a rectangular section that spans the width of the ring and extends 22mm fr...
can_dia = 45 - 1; tube_dia = 2 + 0.5; thickness = 4; difference(){ translate([0.5*(can_dia+thickness),0,0]) cylinder(d = can_dia + 2*thickness, h = thickness); translate([0.5*(can_dia+thickness),0,-thickness]) cylinder(d = can_dia, h = 3*thickness); translate([can_dia,0,0]) cube([can_dia,0.5*can_dia,3*th...
glb/cad_83ba396333a2.glb
Create a mud guard spacer consisting of a central cylindrical body with an outer diameter of 38mm and a total height of 112mm. The main body is split into two sections: an upper section 62mm high and a lower section 50mm high. Both sections are constrained by a rectangular profile with a width of 27mm, creating a flatt...
inner_dia = 38; width = 27; lower_length = 50; upper_length = 62; small_hole_dia = 5; big_hole_dia = 15; hole_dist = 14.75; module upper_part(){ difference(){ intersection(){ translate([4,0,0]) cylinder(d=inner_dia, h=upper_length, $fn=72); translate([0.5*inner_dia,0,.5*upper_length]) cube([inner_dia, widt...
glb/cad_d3b7a18b0175.glb
Create a Cat's Eye Holder by first constructing a main vertical plate. This plate is a rectangular slab 2.5mm thick, 60mm long, and 12mm wide. The top and bottom edges of this slab are rounded with a radius of 9mm, creating a hull-like shape that transitions between two cylinders of 18mm diameter. Within this plate, c...
length_1 = 36; width_1 = 18; thick_1 = 3; dist_1 = 19; dia_1 = 6.5; thick_2 = 2.5; hight_2 = 12; dia_2 = 6; length_2 = 60; var_1 = 0.5*dist_1; var_4 = 0.5*hight_2+0.5*dia_2; var_5 = 0.5*(hight_2-dia_2); difference(){ hull(){ translate([0.5*thick_2,0,0]) rotate([0,90,0]) cylinder(d=width_1, h=thick_1); translate...
glb/cad_5ed295edb5ec.glb
Create a Weehoo IGo Turbo 2015 Seat Post Adapter. The object is a rotationally symmetrical sleeve with a total height of 52mm. The main body is formed by rotating a specific profile around a central axis. Starting from the bottom, create a base ring with an outer diameter of 49.3mm and a height of 10mm. Above this base...
seat_post = 26.8 + 0.3; coupling_inner = 37.8 + 0.1; adapter_outer = 49.3; adapter_bottom_hight = 10; adapter_hight = 50 + 2; cut_out_thickness = 2.5; cut_out_hight = 8; bar_width = 2; rotate_extrude($fn=100){ polygon(points=[[seat_post/2,adapter_hight-2], [seat_post/2+1,adapter_hight], [coupling_inne...
glb/cad_52743e153550.glb
Create a Motor Mount for an Electric Longboard consisting of two main cylindrical sections connected by a central body. The overall thickness of the base is 4mm. First, create two main circular areas with a 32-facet resolution. The first area, the motor mount, is centered at x = -35mm and the second, the truck mount, ...
boltholepattern = 25; tensioning = 7; motoropening = 5; motorboltsize = 4; boltheadsize = 7; truckhole = 9; centerdistance = 70; thickness = 4; recessed = 1; recessdepth = 4; cuttingoverlap = 1; $fn=32; module motormount() { hull(){ translate([-(boltholepattern/2)-(tensioning/2),-(tensioning/2),-cuttingoverlap...
glb/cad_db57d8df081f.glb
Create a Motor Mount for an Electric Longboard consisting of two main sections joined by a central body, with a total center-to-center distance of 68.9mm between the motor and truck mounting areas. First, create the motor mounting section. This is a flat plate 4mm thick. On this plate, create four elongated slots for ...
boltholepattern = 58.2; tensioning = 9; motoropening = 10; motorboltsize = 4; boltheadsize = 8; motormountextrameat = 6; tensioningangle = -45; truckhole = 9.5; truckmountextrameat = 9; centerdistance = 68.9; thickness = 4; recessed = 1; recessdepth = 4; cutsides = 1; cuttingoverlap = 1; $fn=64; module motormoun...
glb/cad_ffe00b60d054.glb
Create a model consisting of a ball bearing and a linear bearing positioned side-by-side. First, create a ball bearing by centering a cylinder with a radius of 11mm and a height of 7mm. Subtract a concentric cylindrical hole with a radius of 4mm and a height of 14mm to create the inner race. Second, create a linear ...
steel = [0.8, 0.8, 0.9]; module bearing(id, od, w) { translate([0,w/2,0]) color(steel) render() rotate([90, 0, 0]) difference() { cylinder(h=w, r=od/2, center=true); cylinder(h=w*2, r=id/2, center=true); } } bearing(8, 22, 7); module lm8uu() { translate([0,0,25/2]) color(steel) render...
glb/cad_356694aa972f.glb
Create a motor end bracket for a linear delta 3D printer. Start with a central rectangular block that is 6mm wide, 7mm deep, and has a height defined by the idler end height. At the center of this block, create a vertical cylindrical cutout with a radius of 4mm and a height of 40mm to accommodate the idler axle. Ad...
include <configuration.scad> use <bracket.scad> h = idler_end_height; tilt = 2; module bearing_mount() { translate([0, 0, 2.3]) cylinder(r1=12, r2=9, h=1.1, center=true); translate([0, 0, -2.3]) cylinder(r1=9, r2=12, h=1.1, center=true); } module stifener(l, w, z, a) { wz = sin(a)*w/2; wy = (1-cos(a))*w/2; ...
glb/cad_091733d49d8d.glb
Create a "jaws" component for a linear delta 3D printer. Start by forming a central body that is the intersection of a cylinder with a radius of 5mm and a height of 14mm (centered on the origin and rotated 90 degrees on the X-axis) and a rectangular block measuring 10mm by 14mm by 7mm. From this main body, remove seve...
h = 7; r = h/2 / cos(30); module jaws() { difference() { union() { intersection () { rotate([90, 0, 0]) cylinder(r=5, h=14, center=true, $fn=24); translate([-4, 0, 0]) cube([10, 14, h], center=true); } intersection() { translate([10, 0, 0]) cube([26, 14, h], center=true)...
glb/cad_cb5cfc36fc14.glb
Create a geometric component by combining three identical "stumpy" elements. Each stumpy element is the intersection of a 6-sided prism (radius 3.5mm, height 8mm) and a sphere (radius 5.1mm), with the prism rotated 30 degrees. Position these three elements to form a central cluster: place one at x=-2, y=0, z=0; one at...
h = 7; r = h/2 / cos(30); module stumpy() { rotate([0, 90, 0]) rotate([0, 0, 30]) intersection() { cylinder(r=r, h=8, center=true, $fn=6); sphere(r=5.1, $fn=24); } } module middle() { difference() { union() { translate([-2, 0, 0]) stumpy(); translate([2, 0, 0]) stumpy(); rotate([0,...
glb/cad_4ccd61bd4f87.glb
Create a circular platform for an Enlarged Rostock linear delta 3D printer. Start with a central cylinder of radius 30mm and a height equal to the platform thickness. Subtract a concentric inner cylinder with a radius of 20mm and a height that extends beyond the platform to create a ring. Position three identical a...
include <configuration.scad> use <carriage.scad> h=platform_thickness; cutout = 12.5; inset = 6; module platform() { translate([0, 0, h/2]) difference() { union() { for (a = [0:120:359]) { rotate([0, 0, a]) { translate([0, -platform_hinge_offset, 0]) parallel_joints(); tran...
glb/cad_8c4767d34e59.glb
Create a rectangular plate measuring 100mm by 160mm with a thickness of 5mm, centered on the origin. From this main plate, remove two smaller rectangular blocks to create a wide central slot. Each of these removed sections should measure 92mm by 80mm with a height of 6mm. Position the first cutout centered at [0, 42, 0...
difference() { cube([100,160, 5], center=true); translate([0, 42, 0]) cube([92,80, 6], center=true); translate([0, -42, 0]) cube([92,80, 6], center=true); }
glb/cad_360eb71d6ca9.glb
Create a belt tensioner for an Enlarged Rostock linear delta printer. Start by creating a central rectangular block 15mm wide, 5mm deep, and 12mm high, centered at [8, 0, 0]. From this main body, remove a smaller rectangular section measuring 17mm by 5mm by 15mm, rotated 45 degrees on the X-axis and centered at [8, 0...
include <configuration.scad> use <belt_coupler_v6_Mod.scad> use <carriage-V1.2.scad> H = carriage_height; th = 4; %carriage(); union(){ translate([8, 5, 0]) cube([15, 5., 12], center=true); difference() { translate([8, 0, 0]) cube([15, 5, 12], center=true); translate([8, 0, 7.5]) rotate([-45, 0, 0]) cube([17...
glb/cad_ae0aec840f10.glb
Create a linear delta 3D printer model called an Enlarged Rostock. The structure is based on three identical towers spaced 120 degrees apart around a central axis. For each tower, place a motor end at the base and an idler end at the top. Connect these with a smooth rod of length 250mm. Position a NEMA 17 stepper moto...
include <configuration.scad>; use <belt.scad>; use <bearing.scad>; use <nema.scad>; use <motor_end.scad>; use <idler_end_V1.2.scad>; use <carriage-V1.2.scad>; use <platform.scad>; use <rod.scad>; use <plywood.scad>; use <Linear_Bearing.scad>; aluminum = [0.9, 0.9, 0.9]; steel = [0.8, 0.8, 0.9]; wood = [0.9, 0.8...
glb/cad_5c4853fb43fd.glb
Create a clamp for a 3D printer hotend insulator. Start with a central base that is 46mm wide, 12mm deep, and 8mm high, centered on the origin. Add two cylindrical shoulders with a radius of 6mm and a height of 8mm, positioned at x = -23mm and x = 23mm. In the center, place a vertical cylinder with a bottom radius of 1...
module clamp(h, base){ difference(){ union() { cylinder(r1=4.5, r2=3.5, h=h); translate([0, 0, base]) cylinder(r1=10, r2=0, h=12, center=true); translate([0, 0, base/2]) { cylinder(r=11, h=base, center=true); cube([46, 12, base], center=true); } for (x = [-23, 23]) { translate...
glb/cad_779ef0e6e288.glb
Create a Rostock bracket for a linear delta 3D printer. Start with a central rectangular block 78mm wide, 28mm deep, and 20mm high. At each end of the block, add a cylindrical sandwich mount with a radius of 9mm and a height of 20mm. Within these end mounts, create vertical holes with a radius of 1.9mm passing through...
$fa = 12; $fs = 0.5; w = 60; module screws() { for (x = [-w/2, w/2]) { translate([x, 0, 0]) { translate([0, -10, 0]) rotate([0, 90, 0]) cylinder(r=1.65, h=20, center=true); translate([-x/3.8, -10, 0]) rotate([0, 90, 0]) cylinder(r=3.2, h=2.3, center=true, $fn=6); } } } module bracket(h) { ...
glb/cad_a370f4ae2ca7.glb
Create a motor end carriage for a linear delta 3D printer. The main body is a rectangular block 76mm wide and 60mm high. At the center of the block, create a vertical cylindrical housing with an outer diameter of 26mm and an inner diameter of 22mm. This housing features conical grooves at the top and bottom to facili...
include <configuration.scad> use <linear_bearing.scad> use <belt_coupler_v6_Mod.scad> H = carriage_height; W = 60; d = 22; th = 4; width = 76; offset = 25; cutout = 13; middle = 2*offset - width/2; module conical_groove(d1, d2, w) { difference() { translate([0, 0, -w ]) cylinder(r =d1/2+0.1, h=w*2, ...
glb/cad_7209c174eee8.glb
Create an idler end for a linear delta 3D printer. Start by constructing a central bracket with a total height of 20mm. This bracket should feature a rectangular cutout in the center and two vertical cylindrical holes with a radius of 1.9mm passing through the top and bottom edges, spaced 51mm apart. Add two additiona...
include <configuration.scad> use <bracket.scad> use <carriage.scad> h = idler_end_height; tilt = 0; x_offset = -2.8; module bearing_mount() { translate([0, 0, 2.3]) cylinder(r1=12, r2=9, h=1.1, center=true); translate([0, 0, -2.3]) cylinder(r1=9, r2=12, h=1.1, center=true); } x = 17.7; y = 16; module idler_end...
glb/cad_a8135cfd3532.glb
Create a BraceletX bangle by constructing a circular ring with a major radius of 38.75mm and a cross-sectional radius of 1.25mm. The main body consists of two concentric tori with a 60-facet resolution. Integrate a slotted decorative band into the ring's structure; this band is formed by a cylinder 15mm in height and 4...
module torus(major,minor,quality) { rotate([0,0,0])rotate_extrude(convexity = 10, $fn = quality) translate([major, 0, 0]) circle(r = minor, $fn = quality/2); } module slotted() { difference(){ translate([0,0,-3])rotate([3,0,0])difference(){ translate([0,0,6])rotate([-6,0,0]){ difference() { translate([0,...
glb/cad_e7565b8c7f9d.glb
Create a Micro Spool Holder consisting of a base and a removable filament guide arm. For the base, construct a complex clip-like structure. Start with a central block 15mm high, integrating several rectangular sections: one 20x15x3.3mm, one 4.15x15x3mm, and one 3.45x15x8.5mm. Add two cylinders with a 3mm radius and 1...
$fn=80; armwidth = 2.5; module base() { h = 15; difference() { color("yellow", .85) union() { translate([-2,-1,-4]) cube(size = [20,h,3.3]); translate([13.85,-1,-7]) cube(size = [4.15,h,3]); translate([-11.4,-1,-31]) cube(size = [3.45,h,8.5]); translat...
glb/cad_536fa476d4f3.glb
Create a dust extraction adapter consisting of two concentric hollow cylindrical sections connected by a conical transition. Start by creating a base cylinder with an outer diameter of 24mm and a height of 30mm. From the top of this base, create a conical transition section with a height of 16.2mm that flares outward f...
sciana = 2; wewn_srednica_odkurzacz = 32.5; odkurzacz_dlugosc = 50; zewn_srednica_makita = 25.5; zewn_srednica_makita_ciensza = 24; dlug_makita=30; $fn=45; rotate([0,180,0]) difference() { union() { translate([0,0,dlug_makita+(odkurzacz_dlugosc+dlug_makita)/5]) cylinder(r=(wewn_srednica_odkurzacz/2)+scia...
glb/cad_22c6b4c79e64.glb
Create a glass bed holder for a Kossel mini. Start with a main cylinder that has a diameter of 30mm and a total height of 12.5mm. Remove a large cylindrical section from the center of this main body to accommodate the bed; this cutout should have a diameter of 170mm and a height of 7mm, positioned 5.5mm above the bas...
DIAMETER = 30; BED_THICKNESS = 7; OPENBEAM_TO_BED_DIST = 5.5; BED_DIAMETER = 170; HOLDER_LENGTH = 16; HOLDER_CUT_OFF = 5; SCREW_HEAD_DIAMETER = 8; SCREW_DIAMETER = 4; SCREW_LENGTH = 3; SCREW_POS = (DIAMETER - HOLDER_LENGTH)/2.; ROUND_BED_EDGE = true; BED_ROUNDNESS = 6; tot_height = OPENBEAM_TO_BED_DIST + BE...
glb/cad_62eaea7dd58b.glb
Create a marble for a marble machine by starting with a sphere that has a diameter of 9mm. Bore a vertical hole straight through the center of the sphere from top to bottom. This hole should be a cylinder with a diameter of 3.5mm. To ensure the hole is clean and open at the poles, ensure the cylindrical cutout extends ...
$fn=100; md=9; fd=3.5; difference() { sphere(d=md); translate([0,0,-(2*md+1)/2]) cube([2*md+1,2*md+1,2*md+1],center=true); cylinder(d=1,h=md/2+1); intersection() { sphere(d=md-1.7); cylinder(d=fd,h=md,center=true); } cylinder(d1=fd+1,d2=fd,h=1,center=true); }
glb/cad_4f5fdfeefb17.glb
Create a crowned pulley for a ball bearing by starting with a central cylinder 16mm in diameter and 7mm in height, centered on the origin. Modify this main body by intersecting it with a sphere that has a radius of 10mm, scaled horizontally to match the pulley's 16mm diameter, which creates the crowned profile. To acco...
$fn = 128; bearing_diameter = 14.5; bearing_height = 5; bearing_holder_diameter = 10; pulley_height = 7; pulley_diameter = 16; pulley_crown_radius = 10; difference() { intersection() { cylinder(r = pulley_diameter/2, h = pulley_height, center=true); s = (pulley_diameter/2)/pulley_crown_radius; ...
glb/cad_cd7d58e8099a.glb
Create a ToM filament guide by constructing a base plate and an upright support. Start with a rectangular base measuring 87mm by 30mm with a thickness of 3mm. At one end of this base, attach a vertical rectangular wall measuring 3mm wide, 30mm deep, and 32mm high. Along the length of the base, add three small rectangul...
rotate([0,0,60]) { difference() { union() { translate([-46,-15,0])cube([87,30,3]); translate([-46,-2,0])cube([60,3,15]); translate([10,-10,0])cube([3,20,10]); translate([-10,-10,0])cube([3,20,10]); translate([-30,-10,0])cube([3,20,10]); translate([-46,-15,0])cube([3,30,32]); translate([41,0,0])c...
glb/cad_ffe2299754f1.glb
Create a filament guide consisting of a flat rectangular base and a vertical support pillar. Start with a base plate measuring 87mm by 30mm with a thickness of 3mm. Centered on this base, extend a vertical rectangular pillar 30mm wide and 32mm tall. At the top of this pillar, create a circular cutout with a diameter of...
rotate([90,-90,0]) { rotate([0,180,180])rotate([0,83,0])translate([12,0,-46])scale([0.7,0.7,0.7])import_stl("gangsta.stl",convexity=20); translate([-46,-6,0])cube([48,10,15]); difference() { union() { translate([-46,-15,0])cube([87,30,3]); translate([-46,-15,0])cube([3,30,32]); translate([41,0,0])cylinder(...
glb/cad_951888bf3f42.glb
Create a Customizable Hyperbolic Micro Brushed Quadcopter Frame with a thickness of 3mm. Start by constructing a central flight control deck. This deck is a rectangular ring with outer dimensions of 30mm by 32mm and a wall thickness of 3mm. From the four corners of this central deck, extend four hyperbolic struts. T...
Width=60; Length=100; FC_Width=30; FC_Length=32; Surface_Width=3; Frame_Thickness=3; Motor_Diameter= 7; Motor_Hole_Scaling=1.0; Motor_Cap=10; Motor_Cap_Wall_Thickness=2; Motor_Cap_Side_Opening=1; Motor_Cap_Inner_Bevel=0; Which_Parts="frame"; Resolution=100; FC_Band=Surface_Width; left = -Width/2; right =...
glb/cad_3e2e9ffa12d1.glb
Create a Knife Sharpener Guide designed to hold a sharpening stone of 50mm width, 200mm length, and 25mm height. First, construct a base holder for the stone. Create a rectangular platform 71mm wide and 220mm long with a thickness of 5mm. Add two side walls, each 10mm wide and 220mm long, rising 10mm from the base at...
display = 1; blade_angle = 17; $fa = 0.01; $fs = (display == 1)?2:0.5; block_w = 51; block_l = 200; block_h=26; blade_w = 2; guide_length = 70; use <openscad-bitmap/bitmap.scad> module num_to_str(number, block_size = 3, height = 10) { numbers_size = ceil(log(number) / log(10)); render() union() { for (lo...
glb/cad_60d862036cea.glb
Create a Bearing Belt Guide by constructing a circular ring with a total height of 1.3mm. Start with a base cylinder that has an outer diameter of 27mm and a height of 0.5mm. On top of this base, add a second cylinder that acts as a frustum, tapering from an outer diameter of 27mm at its bottom to an outer diameter of ...
module bearing_belt_guide ( inner_d = 19, outer_d = 27, width = 1.3, cone_width=0.8, cone_inner_d=22 ) { difference() { union() { cylinder(r=outer_d/2, h=width-cone_width, $fn=128); translate([0, 0, width-cone_width]) cylinder(r1=outer_d/2, r2=cone_inner_d/2, h=cone_width, $fn=128); } cylinder(r=i...
glb/cad_1deea0100960.glb
Create a male-to-female shaft coupling consisting of two primary cylindrical sections. First, construct the female end as a cylinder with an outer diameter of 19.5mm and a total height of 19.25mm. Remove a central cylindrical bore with a diameter of 13.5mm and a depth of 12mm, and cap the bottom of this bore with a con...
male_diam=5.8; male_h=10; fem_diam=13.5; fem_h=12; screw_diam=3.45; thick=3; module hide_variables() { } $fs=0.5; $fa=1; male_rad=male_diam/2; fem_rad=fem_diam/2; fem_o_rad=fem_rad+thick; fem_o_h=fem_h+thick+fem_rad; screw_rad=screw_diam/2; div_h=1.5; union() { difference() { cylinder(r=fem_o_rad, h=...
glb/cad_e83c5f58812a.glb
Create a protective case for a BG7TBL RF noise source PCB measuring 42.9mm by 70mm by 1.5mm. The case consists of a top cover and a bottom base that snap together. For the top cover, create a rectangular shell with walls 1.2mm thick. The outer dimensions should be approximately 45.3mm by 72.6mm. The top surface is a f...
part = "demo"; pcb = [42.9, 70.0, 1.5]; pcbmntdx = pcb[0]-2*0.5; pcbmntdy = pcb[1]-2*0.5; pcbmntdia = 2*(1.2+0.3+0.2); pcb2bot = 3.0; pcb2top = 11.5; ledpos = [pcb[0]/2-10.8, 4.3-pcb[1]/2]; leddia = 3.0+0.5; ledtubeh = pcb2top - 3.0; smapos = (11.2-6.7/2)-pcb[0]/2; smadia = 6.5+0.1; smaheight = 1.0; powerpos = pc...
glb/cad_e23326e3ea4c.glb
Create a Customizable Optics Table Servo Mount consisting of a rectangular base plate and two vertical mounting posts. The base plate is 2mm thick. Its overall dimensions are determined by a grid of holes spaced 25.4mm apart. Create a grid of 2 holes along the X-axis and 3 holes along the Y-axis, each with a diameter...
mount_hole = "slot"; screw_space = 28.3; mount_screw_diameter = 2.1; shaft_offset = 3.6; shaft_height = 25; post_thick = 1.5; post_width = 5; breadboard_grid = 25.4; breadboard_hole_diameter = 6.75; holes_x = 2; holes_y =3; base_thick = 2; base_clearance = 5; $fa=1; $fs=0.5; mount_screw_radius = mount_scr...
glb/cad_3d165f701758.glb
Create a jewelry hook holder consisting of a rectangular base plate and six cylindrical pegs. The base plate should be 3mm thick, with a total width of 102mm and a total height of 15mm. Center two 3mm diameter mounting holes through the base plate, positioned at the far left and far right ends. Arrange six cylindrical...
$fn=20*1; E = 0.01*1; num_hooks = 6; hook_dia = 7; x_margin = 10; y_margin = 4; hook_length=25; base_thickness = 3; hole_dia = 3; gap_depth_percentage = 40; gap_percentage_a = 90; gap_percentage_b = 70; gap_a = gap_percentage_a/100 * hook_length; gap_b = gap_percentage_b/100 * hook_length; gap_depth = hook_...
glb/cad_322b83dd4cd4.glb
Create a topless calibration hollow cube by starting with a solid cube measuring 20mm x 20mm x 20mm. From this solid volume, remove a smaller centered rectangular prism to create a hollow interior. This interior cutout should measure 19.6mm in both width and depth to leave a wall thickness of 0.2mm on all four sides. T...
X=20.0; Y=20.0; Z=20.0; Wall_Thickness=0.2; module thing1() { difference(){ cube([X,Y,Z], center = true); translate([0,0,0.9]) cube([X-Wall_Thickness*2,Y-Wall_Thickness*2,Z-Wall_Thickness*2],center=true); } } thing1();
glb/cad_e1575b4c08e6.glb
Create a spring-loaded belt tensioner for an Ultimaker printer consisting of two main sections: a fixed side and a motor side, both with a base thickness of 2mm. For the fixed side, create a plate with rounded ends (radius 3.1mm) and two mounting holes spaced 0mm apart. Incorporate a hexagonal recess for an M3 nylock...
$fn=40; tol=0.02; main_th= 2; m3_d= 3; m3_d_free= 3 + 1; m3_head_d= 5.5 + 0.2; m3_nylock_th= 5; m3_nylock_d= 6.1 + 0.1; m3_nylock_d_freeplay= 6.1 + 2; m3_washer= 6.1 + 0.1; m3_washer_th= 0.5 + 0.5; holder_margin= 3; balance_distance= 0; idle_holder_len= 8; lock_holder_len= 10; spring_ihl=4; spring_lhl=4.1; spring_n...
glb/cad_cd3d6b7f79a9.glb
Create a Bowden adapter kit consisting of a mounting block with a central protruding tower. The main base is a rectangular block 27mm wide, 10mm thick, and 20mm high, with rounded corners of 2mm radius. Centered on top of this base is a square tower 7mm by 7mm with a height of 12mm and 2mm rounded corners. A vertical...
el = 1e-2; fn = 20; module rcorner ( r ) { difference() { translate ( -el * [ 1, 1, 1 ] ) cube( r + el ); translate ( [ r, r, r ] ) sphere( r, $fn = fn ); } } module redge ( r, l ) { difference() { translate ( -2 * el * [ 1, 1, 1 ] ) cube( [ r + 2 * el, r + 2 * el, l + 4 * el ] ); tra...
glb/cad_be7bed1e1a14.glb
Create a Bowden adapter kit consisting of two main components: a carriage attachment and a J-head attachment. First, create the carriage attachment as a rounded cube measuring 35mm x 35mm x 9mm with a corner radius of 2mm. Remove a central square section measuring 23mm x 23mm from the bottom to create an inner hole. A...
el = 1e-2; fn = 20; module rcorner ( r ) { difference() { translate ( -el * [ 1, 1, 1 ] ) cube( r + el ); translate ( [ r, r, r ] ) sphere( r, $fn = fn ); } } module redge ( r, l ) { difference() { translate ( -2 * el * [ 1, 1, 1 ] ) cube( [ r + 2 * el, r + 2 * el, l + 4 * el ] ); tra...
glb/cad_cca3e6024530.glb
Create a Minimal Bowden adapter kit consisting of a main cylindrical body and a small guide ring. Start with a main cylinder that has a radius of 7.9375mm and a total height of 14.16mm. Bore a central vertical hole through the entire height with a radius of 2mm. At the bottom face of this cylinder, create a conical ent...
tol = 0.1; union(){ difference(){ cylinder( r = 15.875/2 - tol/2, h = 4.76 + 4.64 + 4.76, $fn=50 ); translate( [ 0, 0, -0.05 ] ) cylinder( r = 2, h = 4.76 + 4.64 + 4.76 + 0.1, $fn = 20 ); translate( [ 0, 0, -0.05 ] ) cylinder( r1 = 4, r2 = 2, h = 2, $fn = 20 ); translate( [ -14.8 / 2, 0, 4.76 + 4.6...
glb/cad_dcc1f22aa694.glb
Create a Bowden adapter mount consisting of a rectangular base with a central cylindrical housing. The base is a rounded rectangular block measuring 29.5mm in length, 17mm in width, and 4mm in height, with corner radii of 2mm. At each end of the base, center a vertical hole with a radius of 1.75mm that passes complet...
el = 1e-2; fn = 20; module rcorner ( r ) { difference() { translate ( -el * [ 1, 1, 1 ] ) cube( r + el ); translate ( [ r, r, r ] ) sphere( r, $fn = fn ); } } module redge ( r, l ) { difference() { translate ( -2 * el * [ 1, 1, 1 ] ) cube( [ r + 2 * el, r + 2 * el, l + 4 * el ] ); tra...
glb/cad_4237cbcacec5.glb
Create a plant label starting with a rectangular base that is 170mm long, 26mm wide, and 2mm thick. At one end of this base, add a triangular pointed tip that extends the total length to 200mm, with the tip's peak centered at the 13mm mark of the width. On the top surface of the label, add two lines of embossed text. P...
text_top = "HOLLY"; text_bottom = "BLUE ANGEL - F"; length = 200; color("Red",0.5) translate([2,14,2]) linear_extrude(height = 0.5) { text(text_top); } color("Blue",0.5) difference() { cube(size = [length-30,26,2], center = false); translate([2,2,1]) { linear_extrude(height = 8) { t...
glb/cad_eef0038b6ca6.glb
Create a Ciclop 3D scanner base wrapper. Start by constructing a rectangular block 20mm wide, 52.5mm long, and 7mm high. Modify this block by rounding one of the short ends into a semi-circle with a radius of 26.25mm, centered along the width. From this base, remove a cylindrical volume with a radius of 110.5mm, center...
plate_radius = 110.5; difference(){ translate([-10,60,0])difference(){ intersection(){ union(){ cube([20,plate_radius-58,7]); translate([0,plate_radius-58-4,7])#cube([20,4,5]); } translate([10,(plate_radius-58)/2,0]) #cylinder(13, r=(plate_radius-58)/2, $fn=64); } translate([10,10,0])#cylinde...
glb/cad_2f2cfb55fcbd.glb
Create a DIN rail clip for a solderless breadboard consisting of two identical mounting components. For each component, start with a base shape created by extruding a profile from a DXF file to a height of 6mm. Integrate two rectangular blocks into this base, each measuring 2mm by 6mm by 6mm, centered on the Z-axis. On...
CLIP_H = 6; HOLE_DEPTH = 5; HOLE_DIAMETER = 2.9; PILLAR_H = 2; PILLAR_1_Y_OFFSET = 8; PILLAR_2_Y_OFFSET = 41; module din_clip() { difference() { union() { linear_extrude(height=CLIP_H, center=true, convexity=5) { import(file="din_clip.dxf", layer="0", $fn=64); } translate([-PILLAR_H/2, PILLAR_1_Y_OFF...
glb/cad_46adbe3be415.glb
Create a Cube Farm Rack by starting with a solid rectangular prism measuring 25mm wide, 30mm deep, and 70mm high, centered on the origin. Carve out a smaller rectangular void from the front and center of the block, measuring 23mm wide, 2mm deep, and 68mm high, positioned 0.5mm above the center plane. Finally, remove a ...
difference() { union() { cube([25,30,70], center=true); difference() { translate(v=[0,-15,0.5]) cube([23,2,68], center=true); translate(v=[0,-14,0.5]) cube([21,5,65], center=true); } } translate(v=[0,5,35]) cylinder(r=7, h=5, $fn=50, center=true); }
glb/cad_d4508cb84380.glb
Create a two-part snap-together case for a BG7TBL attenuator board. The internal cavity for the PCB should measure 38.9mm by 37.3mm with a height of 8mm (1.5mm bottom clearance, 1.5mm PCB thickness, and 5mm top clearance). For the top cover, create a rectangular shell with a wall thickness of 1.2mm and rounded corners...
part = "top"; texts = "framed"; pcb = [38.9, 37.3, 1.5]; pcbmntdx = 14.0; pcbmntdy = pcb[1]-2*0.5; pcbmntdia = 2*(1.2+0.3+0.2); pcb2bot = 1.5; pcb2top = 5.0; smadia = 6.5+0.1; smaheight = 1.0; smadx = 20.6 - 6.4; snap_dia = 1.8; snap_len_y = pcb[1]*0.5; wall = 1.2; caser = wall; twall = 1.2; bwall = 3.6; tol = 0...
glb/cad_c159277809c3.glb
Create a Parametric Dashboard Phone Mount designed for a device measuring 111mm wide, 60.5mm high, and 19.5mm deep. The main body is a hollowed-out rectangular shell with walls 5mm thick and rounded corners. Inside the main body, create a central void to accommodate the phone. On the front face, center a screen cutout...
bolt_d = 3.5; bolt_r = bolt_d/2; phone_w = 111; phone_h = 60.5; phone_d = 19.5; screen_d = 6; screen_margin_tb = 5; screen_margin_r = 15; camera_off_x = 0; camera_off_y = 16.5; camera_x = 50; camera_y = 34; usb_off_y = 12.5; usb_y = 15; mic_off_y = 10; mic_y = 12; bolt_off_x1 = 70; bolt_off_x2 = 95; bolt_off_y1 =...
glb/cad_27f21dee09d6.glb
Create a hinged case consisting of two symmetrical halves. For each half, start with a rectangular base measuring 20.22mm in length, 2mm in height, and 6mm in width. At one end of each base, integrate a cylindrical hinge housing. This housing is formed by a cylinder with a radius of 3.5mm and a height of 6mm. Within ...
group() { group(){ union() { difference() { union() { multmatrix([[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.5], [0.0, 0.0, 1.0, 0.0], [ 0, 0, 0, 1]]){ cube (size = [20.22, 2.0, 6.0], center = true); } multmatrix([[1.0, 0.0, 0.0, 15.5], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [ 0, 0, 0, 1]]){ cylinder($fn = 0, $fa = ...
glb/cad_1e102331c030.glb
Create a hinged case consisting of two symmetrical halves. For each half, create a base shape by combining a cylinder with a radius of 3.7mm and a height of 3mm with a rectangular block measuring 6mm by 10mm by 3mm, centered such that the cylinder forms a rounded end. From this combined volume, remove a rectangular cut...
group() { group(){ union() { union() { multmatrix([[1.0, 0.0, 0.0, 0.0], [0.0, 2.22044604925e-16, -1.0, 8.0], [0.0, 1.0, 2.22044604925e-16, 0.0], [ 0, 0, 0, 1]]){ cylinder($fn = 0, $fa = 12.000000, $fs = 2.000000, h = 10.0, r1 = 1.5, r2 = 1.5, center = true); } difference() { union() { cylinder($fn = 0, $fa = 12.00000...
glb/cad_7dc39dc2a8bb.glb
Create a 60mm x 25mm fan model. Start with a square block measuring 60mm by 60mm with a height of 25mm. Center a cylindrical hole with a radius of 28.5mm through the center of the block. Within this central void, place a smaller solid cylinder with a radius of 15.75mm to serve as the hub. At each of the four corners o...
$fn=720; module fan_60mm_x_25mm() { difference() { linear_extrude(height=25, center = true, convexity = 4, twist = 0) difference() { square([60,60],center=true); difference() { circle(r=57/2,center=true); circle(r=31.5/2,center=true); ...
glb/cad_f299eb0ac756.glb
Create a straight pin header retainer by starting with a rounded rectangular block measuring 5.54mm in length, 17.78mm in width, and 3.14mm in height, with corner radii of 2.54mm. Centered along the length of this block, create two through-holes with a diameter of 2mm, positioned at each end of the width. In the center...
use <MCAD/shapes.scad> d = 2.54; n=1; m=4; plasticheight=2.54; pindiameter=0.90; screwdiameter = 2; rotate ([0,180,0]) retainer(); $fs=0.2; module retainer() { length = d*n+3; width = d*m+10; height = plasticheight+0.6; difference () { translate ([length/2,width/2,height/2])roundedBox (l...
glb/cad_1372bef219ff.glb