Prompt
stringlengths
96
2.17k
Code
stringlengths
27
249k
3d_glb
stringlengths
24
24
Create a spot weld helper consisting of two matching sliding components designed to hold 5 battery cells of 18.3mm diameter and 65mm height. For the first part, create a rectangular block with a width of 94.1mm (based on 18.5mm cell spacing) and a height of 60mm. In this block, create 5 vertical cylindrical cutouts w...
Number_of_Cells = 5; Cell_Diameter = 18.3; Cell_Height = 65; Cell_Spacing = 18.5; Use_Magnets = true; Integrate_Magnets = true; Magnet_1_Width = 10.0; Magnet_1_Height = 20.0; Magnet_1_Depth = 3.0; Magnet_2_Width = 6.0; Magnet_2_Height = 20; Magnet_2_Depth = 2; Use_Axis_Guides = true; Axis_Diameter = 8; Ba...
glb/cad_7eaeb2c77541.glb
Create a Nozzle Pen Body consisting of a long cylindrical handle and a hexagonal head. Start by creating a main shaft with a diameter of 10mm and a total length of 134mm. This shaft should be hollowed out by a central bore with a diameter of 7.5mm, extending from the base up to 119mm along its length. At the top of th...
resolution = 100; $fn = resolution; id = 7.5; sd = 12; sl = 134; td = 4.3; module hexagon(r) { for (i=[0:5]) { rotate(i*60) polygon([ [0, 0], [r, 0], [(r*cos(60)), (r*sin(60))]]); } } module rat(r) { translate([0, 0, -0.05]) linear_extrude(0.1) ...
glb/cad_04ab8b0c61d5.glb
Create a plant saucer by constructing a conical frustum with a height of 25mm, a bottom radius of 57.5mm, and a top radius of 75mm. Hollow out the center of this shape to create a thin-walled vessel. The interior cavity should be a slightly smaller conical frustum with a bottom radius of 56.64mm and a top radius of 73....
h=25; pr=115; gr=150; nl=2; lh=0.2; lw=0.86/2; $fn=360; difference() { cylinder(h,pr/2,gr/2); translate([0,0,nl*lh]) cylinder(h,pr/2-nl*lw,gr/2-nl*lw); }
glb/cad_41649dae736f.glb
Create a melamine sponge dispenser consisting of two identical side-by-side columns. Each column is a rectangular box with an outer width of 106mm, a depth of 66mm, and a total height of 107mm. The walls and bottom base are 2mm thick. The box is open at the back. The front wall is not a solid sheet but is raised 25mm ...
$fn = 180; WallWidth = 2; SpongeWidth = 102; SpongeDepth = 62; SpongeHeight = 21; NumberOfSponges = 5; NumberOfColumns = 2; FrontCutout=SpongeHeight+2*WallWidth; BoxHeight=NumberOfSponges*SpongeHeight+WallWidth; BoxWidth= SpongeWidth+ 2*WallWidth; BoxDepth=SpongeDepth +2*WallWidth; FrontCutoutWidth= 1/14*BoxWidth; ...
glb/cad_0c9560e01471.glb
Create a Benq GP520 ceiling mount consisting of two primary components: a triangular base plate and a circular mounting head. First, construct a triangular base plate with a thickness of 7mm. Within this plate, create a central mounting structure that includes a cylindrical joint. This joint should have a diameter of...
abstandAB=188; abstandAB_C=162.8; ecken=12; gewinde=4.5; dicke=7; gelenkDurch=55; gelenkDicke=12; gelenkLoch=8.5; gelenkHoehe=gelenkDurch/2+10; supScrwDA=3.75; supScrwDB=10; supScrwHA=64; supScrwHB=3.5; $fn=64; A(); translate([0,0,gelenkHoehe+dicke*2+gelenkHoehe])rotate([0,180,0])B(); module A(){ difference(){ tra...
glb/cad_e2c68c3b8b9e.glb
Create a ceiling mount for a Benq GP520 projector. Start by constructing a solid rectangular base that is 203.6mm wide, 150mm deep, and 40mm high. From this base, remove a central rectangular cavity that is 190mm wide, 100mm deep, and 38mm high, leaving a wall thickness of 1.8mm on the sides and bottom. The front secti...
wt=1.8; wNt=190; wI=wNt+10; wO=wI+wt*2; dNt=100; dO=150; hNt=38; hO=hNt+wt; dCutA=40; scrwDia=6; difference(){ union(){ translate([0,-dNt/2-wt,0])cube([wO,dNt+wt*2,hNt+wt]); translate([0,-dO/2,hO-wt])cube([wO,dO,wt]); } translate([wt,-dNt/2,wt])cube([wI,dNt,hNt]); translate([0,-dNt/2,wt+5])cube([wI,dNt,hNt]); ...
glb/cad_e203060ae773.glb
Create a simple heart-shaped pendant with an attached ring for a necklace. Construct the heart by combining a 20mm square base with two 10mm radius circles centered at the top corners, then extrude the entire heart shape to a height of 10mm. At the top right of the heart, specifically at coordinates [23.5, 22, 1.5], ad...
module simple_heart() { square(20); translate([10, 20, 0]) circle(10); translate([20, 10, 0]) circle(10); } linear_extrude(height = 10) simple_heart(); module necklacering() { difference () { union () { translate ([-2,0,0]) cylinder (r=8/2,h=3,center=true,$fn=50); } translate ([-2,0,0]) cylinder (r=3,...
glb/cad_76d64d5180d7.glb
Create a three-piece puzzle consisting of three separate components, each constructed from 10mm cubes. For the first piece, join three 10mm cubes: one centered at (0, 5, 5), one centered at (10, 0, 0), and one centered at (20, 5, 0). For the second piece, join three 10mm cubes: one centered at (10, -5, 20), one cent...
module piece1(height) { union(){ color([1,0,0]) translate([0, height/2, height/2]) cube([height, height, height], center = true); color([1,0,0]) translate([height, 0, 0]) cube([height, height, height], center = true); color([1,0,0]) translate([2*height, height/2, 0]) cube([height...
glb/cad_414f96da65ca.glb
Create an enclosure for an Arduino Uno and CNC Shield. Construct a main rectangular box with outer dimensions of 85mm in width, 65mm in length, and 45mm in height. The box should have rounded corners with a radius of 5mm. The walls and floor should be 5mm thick. On the side walls, create a series of vertical ventilati...
$fn=32; c = 85; l = 65; a = 45; delta = 10; raio = delta/2; chao = raio+2; altura_tampa1=2; altura_tampa2=1.; altura_tampa=altura_tampa1+altura_tampa2; ranhura=5; quadrado=29.5/2; pf=3.3/2; vt=36/2; usb_c=12.5; usb_a=11.5; jack_c=9.5; jack_a=12; dcfuro=35; dlfuro=25; h1 = 25; r_entrada_ar1=0.5; r_entrada_ar2=1; d...
glb/cad_73f6f113e30d.glb
Create an Arduino CNC Shield Box consisting of a main enclosure and a removable lid. The main box is a rectangular shell with outer dimensions of 78mm by 65mm and a height of 43mm. The walls are approximately 2mm thick. On the front face, create a large circular cutout with a diameter of 38mm to allow for cable access...
module uno_pcb(h = 1.7) { difference() { linear_extrude(h) polygon([[0,0],[66,0],[66,2],[68.6,5],[68.6,37],[66,40],[66,53.3],[0,53.3]]); translate([14.7, 50.5, -1]) cylinder(d = 3.2, h = h + 2, $fn = 12); translate([13.6, 2.3, -1]) cylinder(d = 3.2, h = h + 2, $fn = 12); transla...
glb/cad_c4ed5d0a92dd.glb
Create a CNC Shield Arduino case lid by starting with a rectangular base plate measuring 78mm in width, 65mm in depth, and 3mm in height. Position this base so its bottom surface is 2mm above the origin. Centered within this plate, remove a rectangular cutout measuring 50mm by 50mm with a height of 3mm, starting at a c...
module top(){ translate([100, 0, -2]) difference() { union() { translate([-4, -6, 2]) cube([78, 65, 3]); translate([72, -6, 2]) cube([2, 5, 5]); } translate([10, 1.5, 2]) cube([50, 50, 3]); translate([-2, 56, -1]) cylinder(d = 1.5, h = 10, $fn = 12); ...
glb/cad_80f7a4f366f6.glb
Create a CNC Shield Arduino enclosure consisting of a main box and a removable lid. Construct the main enclosure as a hollow rectangular shell with outer dimensions of 78mm x 65mm and a wall thickness of 2mm. The box should have a height of 43mm. On the side walls, create a series of vertical ventilation slots and a ...
module fan(h = 10.4) { difference() { linear_extrude(height = h) minkowski() { translate([2.5, 2.5, 0]) square([35, 35]); circle(d = 5); } for (i = [0, 32.5], j = [0, 32.5]) { translate([7.5/2 + i, 7.5/2 + j, -5]) cylinder(d = 3, h = h ...
glb/cad_20587e2edd6b.glb
Create an Arduino CNC Shield Case with overall exterior dimensions of 88mm width, 75mm length, and 45mm height. Construct the main body as a hollow rectangular box with walls 3mm thick. The base should be a solid plate 2mm thick. At the four bottom corners, create rounded feet using a hull operation between a 25mm di...
box_w = 88; box_l = 75; box_h = 45; module fan_holes(h = 10.4){ difference(){ linear_extrude(height = h) minkowski(){ translate([2.5, 2.5, 0]) square([35, 35]); circle(d = 5); } for (i = [0, 32.5], j = [0, 32.5]){ translate([7.5/2 + i, 7.5/2 + j, -5]) cylinder(h = h...
glb/cad_2a2d719b95f1.glb
Create a Foldable XYZ Coordinate System consisting of three rectangular arms, each 100mm long with a cross-section defined by the hull of four 3mm diameter cylinders positioned at the corners of a 17mm square. Each arm must have the corresponding axis letter (X, Y, or Z) embossed on its top face and on all four side fa...
$fn=50; color("Red")union(){ difference(){ translate([0,10,10])rotate([0,90,0])rotate([0,0,90])arm("X"); translate([-10,-5,6.666])cube([30,30,2*6.666]); translate([10,10,20])cylinder(d=3.8,h=40,center=true); translate([10,10,1.75])cylinder(d=7,h=3.5,center=true); translate([10,10,...
glb/cad_8e5a9711465f.glb
Create a T-nut for an aluminum 2020 V-slot profile. Start by creating a main block that is 12mm long. The cross-section of this block is based on a 20mm profile with a central slot. The slot walls are 1.74mm thick, and the slot depth is 3.2mm. The inner edges of the slot have a radius of 0.7mm. Within this block, crea...
$fn=64; h=12; nut=[6.2,0,3+2]; nutShift=-1; bolt=3+.3; prof=20; gap = 5.2; wall = 1.74; depth = 3.2; width1 = 4.6; width2 = 10; r1 = .7; r2 = .7; not = 0.01; inf=100; difference(){ tr([h/2,0,wall/2],[0,-90,0]) linear_extrude(height=h){ block(); } r(0) union(){ t([0,0,-nut.z+nutShift]) nutNegative(...
glb/cad_9d471e4c314e.glb
Create a Sugar Shake Sieve for varroa measuring. Start by creating a solid circular base with a diameter of 110.5 mm and a height of 1.5 mm. On top of this base, center a circular mesh pattern with an outer diameter of 108 mm. The mesh consists of two sets of parallel bars, each 1 mm wide and 1.5 mm deep, intersectin...
diameter = 108; line_width = 1; mesh_depth = 1.5; mesh_spacing = 3; frame_thickness = 5; frame_height = 1.5; module frame() { rotate_extrude($fn=180) translate([diameter/2,0,0]) { polygon([[0,0], [frame_thickness/2,0], [frame_thickness/2,frame_height], [0,...
glb/cad_c1ce1a73c67c.glb
Create a set of brackets for joining Hub75 LED panels. The system consists of several bracket types: center, edge, and corner brackets. The core geometry for all brackets is based on a quadrant shape. Create a base with a thickness of 2mm and walls of 2mm height. The inner corner of the bracket should have a radius of...
show_panel_dummies = false; panel_columns = 2; panel_rows = 2; bracket_spacing = 4; centre_brackets = true; horizontal_edge_brackets = true; vertical_edge_brackets = true; mid_panel_brackets = true; corner_edge_brackets = true; matrix_width = 256; matrix_height = 128; matrix_depth = 13.5; matrix_frame_width...
glb/cad_9311c7399c4d.glb
Create a Hummingbird Feeder Bottom Cap designed to fit a bottle with 53-SP400(M) threads. Start by constructing a main cylindrical cap with an outer diameter of 55mm and a wall thickness of 2mm. The cap should have an internal height of 12mm and feature internal threads with a 4mm pitch and a thread depth of 1mm, based...
module copy_rot(n, m=-1) { let(theta=360/n) for(i=[0:(m == -1 ? n : m) - 1]) rotate([0, 0, i*theta]) children(); } include <BOSL2/std.scad> include <BOSL2/threading.scad> include <BOSL2/bottlecaps.scad> od = 49; od2 = 51; wall_thickness = 2; cap_od = od2 + 2*wall_thickness; base_thickness = 2; thread_depth = 1; pitc...
glb/cad_0f30aef96109.glb
Create a watercolor travel palette insert by starting with a solid rectangular base measuring 91mm in width, 55mm in depth, and 4.5mm in height. Within this base, carve out a series of rectangular wells to hold paint pans, leaving a wall thickness of 1.5mm between all wells and around the outer perimeter. The wells sho...
$fn=50; pan_x=11.3; pan_y=21; wall=1.5; bottom=0.8; palette_width=91; palette_height=4.5; palette_depth=55; corner_pan=0.55; difference(){ cube([palette_width,palette_depth,palette_height]); translate([wall,wall,bottom]) cube([pan_x,pan_y,10]); translate([wall,wall+pan_y+wall,bottom]) cube([pan_x,pan_y*corner_pan,10...
glb/cad_bc0cfda65aa9.glb
Create a watercolor travel palette insert by starting with a solid rectangular base measuring 91mm wide, 58mm deep, and 4.5mm high. Within this base, carve out a series of rectangular wells to hold paint pans, ensuring all walls and the bottom floor of the wells are 1.5mm thick, with the floor of the wells sitting 0.8m...
$fn=50; pan_x=11.3; pan_y=22; wall=1.5; bottom=0.8; palette_width=91; palette_height=4.5; palette_depth=58; corner_pan=0.55; difference(){ cube([palette_width,palette_depth,palette_height]); translate([wall,wall,bottom]) cube([pan_x,pan_y,10]); translate([wall,wall+pan_y+wall,bottom]) cube([pan_x,pan_y*corner_pan,10...
glb/cad_fb5fbb74cf21.glb
Create a watercolor travel palette insert by starting with a solid rectangular base measuring 91mm in width, 55mm in depth, and 4.5mm in height. From this base, carve out 14 identical square pan recesses to hold paint. Each recess must measure 16.4mm by 14mm and be 3.7mm deep, leaving a bottom floor thickness of 0.8mm....
$fn=50; pan_x=16.4; pan_y=14; wall=1.5; bottom=0.8; palette_width=91; palette_height=4.5; corner_offset=9; palette_depth=55; difference(){ cube([palette_width,palette_depth,palette_height]); translate([wall,wall,bottom]) cube([pan_x,pan_y,10]); translate([wall,wall+pan_y+wall,bottom]) cube([pan_x,pan_y,10]); transla...
glb/cad_5ed736d247f4.glb
Create a watercolor travel palette insert by starting with a solid rectangular base measuring 91mm in width, 58mm in depth, and 4.5mm in height. Carve out 14 identical square wells, each measuring 16.4mm by 15mm, to a depth that leaves a 0.8mm thick bottom. Arrange the wells in a grid with 1.5mm thick walls between t...
$fn=50; pan_x=16.4; pan_y=15; wall=1.5; bottom=0.8; palette_width=91; palette_height=4.5; corner_offset=9; palette_depth=58; difference(){ cube([palette_width,palette_depth,palette_height]); translate([wall,wall,bottom]) cube([pan_x,pan_y,10]); translate([wall,wall+pan_y+wall,bottom]) cube([pan_x,pan_y,10]); transla...
glb/cad_ab5cfb7ca893.glb
Create a drum rim and clamp assembly. Start by creating a vertical cylinder with a diameter of 6mm and a height of 20mm. Position a second, smaller cylinder with a diameter of 2mm, oriented horizontally, so that it passes through the center of the first cylinder, intersecting it at a height of 4mm from the base. To for...
$fn = 40; rim_diameter = 6; edge = rim_diameter / 2 + 1; module clamp(scale_par) { scale([scale_par, scale_par, scale_par]) linear_extrude(8) { difference() { union() { circle(d = rim_diameter + 2); rotate([0, 0, -10]) ...
glb/cad_236f080137fc.glb
Create a 3D model of the "MERCURY" hood letters. Each letter should have a height of 30mm and a thickness of 8mm. The letters are designed with a specific 3D profile: they are not simple extrusions but feature slanted sides and rounded edges. For each letter, start with a 2D profile where the outer corners have a radi...
mode = 0; radius1 = 2; radius2 = 1; thickness = 8; slanted_sides = 2; smooth = 0.2; size = 30; rounding = 0.1; epsilon = 0.001; $fn = $preview ? 20 : 45; accuracy = $preview ? 8 : 20; text_string = "MERCURY"; position = [0,25,46,67,86,107,128]; if(mode==0) { z_size = thickness - smooth; for(i=[0:len(...
glb/cad_59d27f441d9e.glb
Create a Solar Greenhouse Pipe Clip by constructing a thick-walled, C-shaped cylindrical shell. Start with an outer cylinder that has a radius of 17.5mm and a height of 100mm. From this, remove a concentric inner cylinder with a radius of 15mm and a height of 100.2mm to create a wall thickness of 2.5mm. To complete the...
module greenhouse_film_clip(bar_diameter = 25, clip_length = 100, clip_thickness = 5, opening_gap = 3, hole_diameter = 3.5, hole_offset_from_edge = 10) { difference() { difference() { translate([0, 0, -clip_length / 2]) cylinder(h = clip_length, r = bar_diameter / 2 + clip_thickness); transla...
glb/cad_d250d417a794.glb
Create a custom stamp based on the text "Printables". Start by creating a rectangular base block with a thickness of 10mm. The width of this block should be approximately 80% of the font size multiplied by the number of characters in the string, and the height should be the font size plus 10mm. On the top surface of t...
stamp="Printables"; size=30; thickness=20; font="Liberation Mono"; withborder=false; scale([0.5,0.5,0.5]) StringStamp(stamp,size,thickness,font,withborder); module StringStamp( string="test", size=30, thickness=10, font="Liberation Mono", withborder=false) { rotate([0,180,0]) { li...
glb/cad_d00dfd52817a.glb
This OpenSCAD code is a collection of modules designed to create 2D vector-style icons and text using **Cubic Bézier curves**. The core logic relies on a custom `bezier_polygon` module that calculates points along a curve based on four control points (P0, P1, P2, P3) and renders them as a standard OpenSCAD `polygon`....
faces_segment = 6; textstring1="Franziska"; textstring2=""; textstring3=""; HiddenText="Valentine 2022"; add_a_special_character="left"; special_character=9829; distance_special_char = .5; textsize1=16; textsize2=16; textsize3=16; distance=1.1; fontname1="Spicy Rice"; fontstyle1="Regular"; fontname2="<sam...
glb/cad_3c202c103693.glb
This OpenSCAD code defines a set of custom modules to create 2D vector-style icons (like a gift, star, key, clock, pen, pin, and YouTube logo) using cubic Bézier curves. ### Core Logic Breakdown #### 1. The Bézier Engine At the bottom of the script, the author implements the mathematical foundation for cubic Bézier c...
faces_segment = 6; textstring1="Kim"; textstring2=""; textstring3=""; HiddenText="Valentine 2022"; add_a_special_character="left"; special_character=9829; distance_special_char = .5; textsize1=16; textsize2=16; textsize3=16; distance=1.1; fontname1="Spicy Rice"; fontstyle1="Regular"; fontname2="<same as f...
glb/cad_aa7900aac17b.glb
Create a hydraulic piston replacement consisting of a main shaft and a specialized hook end. Start by creating a cylinder for the main shaft with a diameter of 9.5mm and a length of 70mm. At one end of this shaft, attach a perpendicular hook assembly. This hook is formed by a cylinder with an outer diameter of 9.0mm an...
$fn=128; piston_diameter = 9.5; hook_inner_diameter=4.1; hook_outer_diameter=9.0; hook_width=7.0; hook_cutout_size= 3.8; cut_off = 2.0; height = 70.0; cut_cube_size = height*3; middle_offset = 7; rotate([0, 90, 0]) difference(){ { union(){ cylinder(r=piston_diameter/2,h=height); translate ([0, 0...
glb/cad_e8104c111109.glb
Create a miniature cinder block by starting with a solid rectangular prism measuring 40.64mm in length, 20.32mm in width, and 20.32mm in height. Apply a small 0.4mm chamfer to all exterior edges to soften the corners. To create the hollow cores, remove two identical rectangular voids that pass completely through the to...
scale_factor = 1/12; wall_thickness_in = 1.5; web_thickness_in = 1.0; chamfer_mm = 0.4; $fn = 40; inch = 25.4; outer_x = 16 * inch * scale_factor; outer_y = 8 * inch * scale_factor; outer_z = 8 * inch * scale_factor; wall_t = wall_thickness_in * inch * scale_factor; web_t = we...
glb/cad_e47a11873e75.glb
Create a parametric L-bracket consisting of two perpendicular walls. The first wall has a thickness of 3mm and the second wall also has a thickness of 3mm. The overall height of the bracket is 35mm. The first wall features a single centered oval hole with a length of 8mm and a width of 25mm. The second wall features t...
Hole_amount_side1 = 1; Hole_amount_side2 = 2; Thickness_side1 = 3; Thickness_side2 = 3; Hole_radius_side1 = 2; Hole_radius_side2 = 4; Hole_oval_length_side1 = 8; Hole_oval_width_side1 = 25; Hole_oval_length_side2 = 4; Hole_oval_width_side2 = 4; hole_distance = 35; Side1_length_add = 0; Side2_width_add = 0; Hole_offset_...
glb/cad_0bb700db3db0.glb
Create a pogo pin protector consisting of a rectangular base plate and a vertical housing block. The base plate is a rounded rectangle measuring 19mm by 12.7mm with a thickness of 1mm. Centered on this plate, create a vertical rectangular block with a height of 20.5mm, a width of 6.35mm, and a depth of 3.81mm. Within...
pin_spacing = 2.54; pin_grid = [3, 2]; pin_diameter_top = 1.5; pin_diameter_bottom = 2; pin_height = 20.5; extra_width = 1; plate_height = 1; screw_hole_spacing = 11; screw_hole_offset = 5; screw_hole_extra = 4; screw_hole_size = 3.3; $fn=60; smidge = 0.01; difference() { union() { minkowski() { translat...
glb/cad_c5b40f034a36.glb
Create a pencil saver extender consisting of a long, hexagonal body. The main shaft is a hexagonal prism with a diameter of 10mm and a total height of 80mm. This shaft must be hollowed out by a central hexagonal hole with a diameter of 7.8mm running through its length to accommodate a pencil. At the top of the extende...
$fn = 60; translate([0,0,0]) body_1(); translate([40,0,0]) body_2(); module body_1() { difference() { union() { for(i=[0:120:360]) { rotate([0,0,i]) hull() { translate([0,0,35]) cylinder(d=10.0,h=30,center=true,$fn=6); translate([-4.6,0,30]) resize([2,8,16])...
glb/cad_e7128f726b95.glb
Create a DS15-type EZCURRA key customizer model. Start with a main rectangular body measuring 26.5mm in length, 7.2mm in width, and 2.2mm in thickness. Carve a main longitudinal groove 1.4mm wide through the center of the body, rotated 45 degrees relative to the X-axis. Add a secondary outer groove 1.4mm wide running...
pin_code = "333333000000"; function pinV(i) = ord(pin_code[i]) - ord("0"); module _eof() {} size = [26.5, 7.2, 2.2]; pin_offset = [4.9, 1.25]; pin_coord = [3.333, -2.5]; pin_d_mult = 0.5; pin_d_off = 0.05; main_groove = 1.4; outer_groove = 1.4; $fn=16; module pin(){ sd = 0.5; fd = 5; cylinder(h = fd - ...
glb/cad_d5c49b4fd57c.glb
Create a mounting wedge for a smart video doorbell camera. Start with a base block that is 50mm wide, 135.5mm high, and 16mm thick. The top face of this block is a rounded rectangle of 47mm by 131.5mm, which is tilted 30 degrees to the right and -5 degrees downward. In the center of the wedge, create a wire cutout hol...
rot_ang = 30; tip_ang = -5; base_th = 16; $fn = 90; wedge_w = 47; wedge_h = 131.5; base_w = 50; base_h = 135.5; wire_hole_w = 33; wire_hole_h = 66; cam_screw_d = 3; cam_screw_y = 37.5; cam_screw_l = 10; wall_hole_w = 4.3; wall_hole_h = 18.2 - 2; wall_hole_y = 52.5; wall_screw_b_th = 1.4; wall_screw_head_d = 12; nu...
glb/cad_c102e6cc272c.glb
Create a Square Bellow Chamfered, which is a flexible, accordion-like geometric structure. Start by creating a central hollow core. The main body consists of four repeating segments stacked vertically. Each segment is formed by the union of two square-based pyramids (or truncated cones with 4 facets) mirrored across ...
debug = false; s0 = 42; t0 = 5; t0e = 5; bperimin = 3; bb = t0/4; tflexwall = 1.2; t1 = t0+t0e+2*tflexwall; scorein = 12; n = 4; tcore = 2.4; tperim = 1.8; rotate(-90,[0,1,0]) rotate(-45,[0,0,1]) FFF_unprintably_standing_bellow(); module FFF_unprintably_standing_bellow() { difference() { union() { ...
glb/cad_f698f5698079.glb
Create a stackable formicarium consisting of a rectangular base with four internal compartments. The overall outer dimensions are 88mm in width, 81.2mm in length, and 26mm in height. The walls are 3mm thick vertically and 2mm thick horizontally. The interior is divided into four equal sections, each designed to hold a...
slide_length = 76.2; slide_width = 25.4; compartment_size=[ slide_width*3+6, slide_length -3 ,20 ]; inner_size= compartment_size; lid_height = 1; vwt = 3; hwt = 2; lip_height = 2; lid_tolerance = .5; X = 0; Y = 1; Z = 2; $fudge = 1; $fn = 80; outer_size = [ inner_size[X] + 2 * hwt, inner_size[Y] + 2 * ...
glb/cad_8b2bedc2f6d1.glb
Create a stackable formicarium base and wall system. Start with a rectangular base plate measuring 66mm by 23mm with a thickness of 0.2mm. On this base, construct a series of parallel vertical walls, each 16mm high and 0.8mm thick. These walls should be spaced every 5mm along the length of the base. To create a snake-l...
slide_length = 76.2-5; slide_width = 25.4-2; $fn=20; cols = 14; rows = 4; cell_width = 5; cell_height = 5.75; wall_thickness = 0.8; base_height = 0.2; wall_height = 16; module generate_maze() { cube([66, 23, base_height]); for(x = [0:2:cols-2]) { translate([x*cell_width + cell_width - wall_thicknes...
glb/cad_ff72e719f16d.glb
Create a barrel cap for a toy blaster by constructing a hollowed-out cylindrical plug. Start with a main outer cylinder that has a height of 8.2mm and a diameter tapering slightly from 15.5mm at the base to 15.2mm at the top. Remove a central cylindrical core with a diameter of 12.1mm through the full height. At the to...
$fn=100; difference() { cylinder(d1=15.5 + .0, d2=15.2 + .0, h=8.2); cylinder(d=12.1, h=8.2+1); translate([0,0,7.5]) cylinder(d=13.2, h=8); } cylinder(d=18.9, h=2.12); cylinder(d=16.9, h=2.94); cylinder(d=6, h=5); difference() { intersection() { difference() { cylinder(d=22 +1, h=...
glb/cad_ed8a4acf79c0.glb
Create a barrel cap for a toy blaster consisting of two separate components: a main cap body and a gasket ring. First, construct the main cap body as a hollow cylinder with an outer diameter of 15.5mm tapering slightly to 15.2mm and a height of 8.2mm. Bore a central hole through this body with a diameter of 12.1mm. A...
$fn=100; difference() { cylinder(d1=15.5 + .0, d2=15.2 + .0, h=8.2); cylinder(d=12.1, h=8.2+1); translate([0,0,7.5]) cylinder(d=13.2, h=8); } cylinder(d=18.9, h=2.12 / 2); cylinder(d=16.9 - 2, h=2.94); cylinder(d=6, h=5); difference() { intersection() { difference() { cylinder(d=2...
glb/cad_16a85ce22337.glb
Create a parametrized bookmark consisting of a flat base and a central slot. Start by creating a rectangular base with a total length of 34mm (slot length 28mm plus a 3mm border on each end) and a total width of 12mm (slot width 6mm plus a 3mm border on each side), with a uniform thickness of 0.8mm. All outer corners o...
slot_length = 28; slot_width = 6; border_width = 3; height = 0.8; radius = 3; function area(width, height) = width * height; module base (width, height, depth, corner_radius) { hull() { translate([-width / 2 + corner_radius, -depth / 2 + corner_radius, 0]) circle(corner_radius, $fn=32); ...
glb/cad_690ee25291ce.glb
Create a test bracket for a VL53L0X module. Start with a base plate formed by the convex hull of two boxes: one 28mm by 20mm and another 32mm by 16mm, both 3.5mm thick, resulting in a rectangular slab with clipped corners. Carve a central rectangular cavity 16.5mm long, 13mm wide, and 3mm deep, centered on the base. ...
$fn=123; difference() { hull() { translate([2,0,0]) cube([32-2*2, 20, 3.5]); translate([0,2,0]) cube([32, 20-2*2, 3.5]); } translate([32/2-16.5/2, 20/2-13/2, 1.5]) cube([16.5,13, 3]); translate([32/2-16.5/2, 20/2-13/2, 2.25]) hull() { translate([-5/2+.5, 13/2, 0]) cylinder(r=5.5/2, h=3); ...
glb/cad_f698c98c3299.glb
Create a wrench tool with a total thickness of 10mm. The tool consists of a head and a handle. For the head, create a circular profile with a diameter of 35.85mm. From the center of this circle, remove a cutout to accommodate a nut; this cutout is defined by a central gap of 23.9mm in width, with the sides of the gap c...
wt = 10; ldf = 0.5; cdf = 0.8; nutdia = 23.9; bh = 20; bl = 80; ceh = 0.1; $fs = 0.2; $fa = 4; lmt = ldf * nutdia; module nut_cutout() { nhd = 0.5 * nutdia; ch = nutdia * ceh; points = [ [-nhd-lmt, -nhd-ch], [-nhd, -nhd], for (i = [-nhd : $fs : nhd]) [cdf*nhd*c...
glb/cad_65595cc9f4e3.glb
Create a Parametric Fabric Tape Measure Spooling Case consisting of a housing and a roller. First, construct the housing as a rounded cube with a body size of 50mm and a height of 25mm (tape width 20mm plus 5mm). The housing should have a central cylindrical cutout with a diameter of 21mm and a height of 20mm to acco...
tape_width=20; spool_diameter=20; body_size=50; tape_end_thickness=3; tape_thickness=1.5; hole_deep_thickness=0.3; quality=32; ring=true; module pos_space() { $fn=quality; minkowski(){ cube([body_size,body_size,tape_width+5],center=true); sphere(r=3); } if (ring) { trans...
glb/cad_b00d128eb7b8.glb
Create a parametric watering can by constructing a hollowed-out vessel. First, create the main outer body by forming a hull between a cylinder with a diameter of 60mm and a height of 0.1mm at the base, and a shape at the top (60mm height) that is a hull between a 60mm diameter cylinder and a smaller 6mm diameter cylind...
Diameter = 60; Height = 60; SpoutDiameter = 6; SpoutOffset = 50; SideThickness = 2; $fn=120; module can(pDiameter, pHeight, pSpoutDiameter, pSpoutOffset ) { hull() { cylinder( d = pDiameter, h = 0.1 ); translate( [ 0, 0, pHeight ] ) hull() { cylinder( d = pDiameter, h = 0.1 ); ...
glb/cad_335f47919024.glb
Create a parametric bit holder consisting of a central mounting base with two mirrored rows of hexagonal sockets. The base is a rounded rectangular block measuring 72mm in length, 5mm in width, and 12mm in height, with a 2mm fillet on the Y-axis edges. Drill two perpendicular holes through the center of the base: one...
bit_holder(height=14, angle=25, size=6, spacing=10); module hexbit(height, angle) { difference() { union() { rotate([angle, 0, 0]) translate([0,0,-2]) cylinder(r=5.5, h=height, $fn=6); } rotate([angle, 0, 0]) translate([0,0,2]) cylinder(r=4, h=20, $fn=6); translate([-10,...
glb/cad_77d06265ab06.glb
Create a vial rack holder by starting with a solid rectangular block with rounded corners. The block should have a total height of 16mm. The overall footprint is defined by a grid of 5 holes along the X-axis and 3 holes along the Y-axis. The outer walls and the spacing between the holes should be 1.2mm. To create the ...
X = 5; Y = 3; PV = 10.0; HD = 15.0; SD = 1.0; WA = 1.2; VO = 1.2; RO = PV + WA; $fn = 120; translate([RO/2,RO/2,0]) difference(){ Base(); for (XX = [0:1:X-1]) for (YY = [0:1:Y-1]) translate([XX*RO,YY*RO,1]) cylinder(SD+HD, d = PV); } module Base(){ hull(){ translate([0,0,0]) ...
glb/cad_044d9ac45fef.glb
Create a low-profile tripod stand by starting with a central cylinder that has an outer diameter of 20mm, a height of 20mm, and a concentric hollow center with a diameter of 10mm. Through the side of this cylinder, centered at half the height, create a horizontal hole for an M3 screw with a pitch of 0.5mm and a length ...
include <threads.scad>; $fn = 180; Base_diameter = 80; Top_OD = 20; Top_ID = 10; Height = 20; theta = atan2(Height, Base_diameter/2); tri_length = Base_diameter/2 - Top_ID/2; tri_height = tri_length * tan(theta); difference(){ cylinder(h=Height, r=Top_OD/2); translate([0,0,-0.5]) cylinder(h=Height+1, r...
glb/cad_ad1e2ff9c0a9.glb
Create a Furinno Shelf Headphone Hanger by constructing a vertical clip with a supporting arm. Start with a main rectangular block measuring 33mm wide, 50mm deep, and 153mm tall. Hollow out the center of this block by removing a rectangular section 32mm wide, 51mm deep, and 11.4mm tall, starting from a height of 137mm,...
$fn=120; module hanger() { difference() { cube([33,50,153]); translate([-3,-0.5,137.0]) cube([32,51,11.4]); translate([+4,-0.5,-0.5]) cube([73,51,132.5]); } difference(){ union(){ translate([0,25,50]) rotate([0,90,0]) cylinder(40,40,40); translate([40...
glb/cad_9c78be4686d8.glb
Create a softball baseball keychain consisting of a circular ball base and a personalized nameplate. Start by creating a circular base with a radius of 24mm and a thickness of 5mm. On the left side of this base, integrate a small ring for a keychain by adding a circle with a 7mm outer diameter and a 3mm inner hole, cen...
font = "Dancing Script:style=SemiBold"; name = "Aaliyah"; text_grow = 4; ball_radius = 20; color("Pink") { linear_extrude(5) { circle(ball_radius + text_grow); offset(text_grow) Print(); translate([-26, 0]) difference() { circle(7); circle(3); } } } color(...
glb/cad_3e5b2cea72c5.glb
Create a segmented circular hoop with a major radius of 50mm and a tube minor radius of 5mm. Divide the hoop into 4 equal segments. For each segment, create a curved tubular body that follows the hoop's arc. At one end of each segment, add a curved connector pin with a radius of 2mm that extends 15 degrees along the ...
hoop_major_radius = 50; tube_minor_radius = 5; smoothness_factor = 64; create_segmented_hoop = true; num_segments = 4; display_single_segment_if_segmented = true; connector_arc_angle = 15; connector_pin_width = 4; connector_clearance = 0.25; _connector_pin_radius = connector_pin_width / 2; connector_hole_radius...
glb/cad_af377c613c3e.glb
Create a parametric mug by first constructing a hollow cylindrical body with an outer radius of 12mm, an inner radius of 10mm, and a total height of 30mm, ensuring the bottom wall thickness is 2mm. Attach a handle to the side of the cylinder consisting of three sections. The main vertical part of the handle is a cylind...
$fs=0.1; $fa=1; thickness_bottom=2; radius_inner=10; radius_outer=12; height=30; height_handle=15; length_handle=10; radius_handle=3; radius_handle_corner=3; module body_outer(){ cylinder(height, radius_outer,radius_outer); } module body() { difference(){ body_outer(); translate([0,0,thickness_bottom]) ...
glb/cad_09727ff39593.glb
Create a tiny whoop battery holder consisting of a main body and a cover. The main body is a series of seven identical battery slots. For each slot, create a battery-shaped void consisting of a 7mm by 12mm by 56mm rectangular base, topped with a 9mm by 14mm by 8mm connector base and a 3mm by 5mm by 5mm connector tip. E...
nbat=7; batx=7; batz=56; baty=12; module bat(){ translate([-1.5,-2.5,batz+8])cube([3,5,5]); translate([-4.5,-7,batz])cube([9,baty+2,8]); translate([-3.5,-6,0])cube([batx,baty,batz]); } module holder(){ difference(){ hull(){ translate([-3.5-1,-6-1,-1])cube([7+2,baty+2,batz]); ...
glb/cad_b7e6f2b7f05e.glb
Create a Swiss 2 CHF Shopping Cart Coin by starting with a main cylindrical disc that has a diameter of 27.40mm and a height of 2.15mm. Attach a rectangular tab to the side of this disc; the tab should have a width of approximately 18.27mm (one third of the diameter), a length equal to the disc's diameter of 27.40mm, a...
$fa = 1; $fs = 0.2; coin_dia = 27.40; coin_hight = 2.15; coin_text = " 2 CHF"; module myCalib() { difference() { union(){ cylinder(d=coin_dia,h=coin_hight); translate([-coin_dia/3,-coin_dia,0]){ cube([coin_dia/1.5,coin_dia,coin_hight]...
glb/cad_18ea48a1bdcb.glb
Create a GoPro Hero 7 Silver lens cover. Start by constructing a rounded rectangular shell with outer dimensions of 34.2mm by 31.6mm and a total height of 5.2mm. The shell should have a wall thickness of 1.2mm and corner radii of 6.9mm. The top surface should be a flat plate of 1.2mm thickness, while the side walls ext...
include <A2D.scad>; use_vent_hole = true; use_hanger = true; inner_size_x = 31.8; inner_size_y = 29.2; edge_height = 5.2; wall = 1.20; radius = 4.5 + (wall * 2); outer_size_x = inner_size_x + (2 * wall); outer_size_y = inner_size_y + (2 * wall); hanger_size_x = 4.8; hanger_size_y = (hanger_size_x / 2) + wall; hang...
glb/cad_d39b675c604f.glb
Create a tire for the Wheel-less Trenchy remix by revolving a specific profile around a central axis. The profile starts at an inner radius of 4.25mm. It extends to a bottom lip with a radius of 4.95mm and a width of 1mm, then returns to the 4.25mm inner radius for the majority of the height. At the top, it steps out t...
tire_inner_radius = 8.5/2; tire_inner_lip_radius = (8.5+1.4)/2; tire_top_lip_radius = (8.5+3.4)/2; tire_outer_radius = 16/2; tire_width = 6.8; chamfer_size = 0.6; rim_lip_width = 1; tread_depth = 0.5; block_count = 16; $fn = 80; module tire_p...
glb/cad_869427947db0.glb
Create a tire for the Trenchy mini truck. Start by constructing the base tire profile as a revolved polygon with a total width of 6.8mm. The profile should have an inner bore radius of 4.25mm. At the bottom, include a rim lip that extends to a radius of 4.95mm for a width of 1mm. The top of the tire features a larger r...
tire_inner_radius = 8.5/2; tire_inner_lip_radius = (8.5+1.4)/2; tire_top_lip_radius = (8.5+3.4)/2; tire_outer_radius = 16/2; tire_width = 6.8; chamfer_size = 0.6; rim_lip_width = 1; tread_depth = 0.5; block_count = 16; $fn = 80; module tire_p...
glb/cad_c66443ca6af4.glb
Create a Solar Light Fencepost Holder by first constructing a hollow rectangular sleeve with outer dimensions of 40.5mm width, 25.5mm depth, and 20mm height. The walls of this sleeve should be 1mm thick. Centered on the back wall of this sleeve, attach a solid rectangular block that extends outwards with a width of 13m...
fencew=38.5; fenced=23.5; fenceh=20; lightd=62; lightpost=13; posth=16; lightoffset=((lightpost+lightd)/2)+2; union() { difference() { cube([fencew+2, fenced+2, fenceh]); translate([1, 1, 0]) cube([fencew, fenced, fenceh]); } translate([(fencew-lightpost)/2, fenced+1, 0]) { ...
glb/cad_82f9341e4972.glb
Create a parameterized box with a sliding cover. The main enclosure is a rounded rectangular prism with internal dimensions of 30mm x 20mm x 10mm. The walls and bottom thickness are 3mm, and all exterior corners are rounded with a 2mm radius. The top of the box is open, but a section is carved out to create sliding gro...
print_platter(); num = 32; module print_platter() { X = 30; Y = 20; Z = 10; wall = 3; zcover = 2; tol = 0.5; translate([ 0,-Y/2-5,0]) hull_box(X,Y,Z,wall,zcover,tol); translate([ 0, Y/2+5, 0]) box_slide(X,Y,wall,zcover,tol); } module hull_cube(x,y,z,radius) {...
glb/cad_bc8e0df42ec4.glb
Create a marker stand consisting of a honeycomb grid of hexagonal cells tilted at a 12-degree angle. The grid should be 4 rows wide and 5 columns deep. Each hexagonal cell is designed to hold a marker with a diameter of 16mm, with a wall thickness of 1.8mm between cells. The depth of each cell is 80mm. The cells are a...
Rows = 4; Columns = 5; Pen_diameter = 16; Wall_thickness = 1.8; Cell_height = 80; Tilt_angle = 12; Add_feet = true; Symmetrical = true; Flush_top = true; Wavy_asymmetry = false; Foot_offset = 0.2; function apothem(r,n) = r * cos(180/n); function circumrad(a,n) = a / cos(180/n); function circumrad_s(s,n) = s ...
glb/cad_dcf77c6b81c7.glb
Create a Motivational Sign Maker consisting of a flat rectangular base with curved, extruded text rising from it. Start by creating a rectangular base with a thickness of 1mm. The base width should be dynamically sized to fit the longest line of text plus 10mm of padding, and the base height should be the total height ...
lines = ["it works", "on my", "machine"]; font = "Liberation Sans:Bold"; font_size = 10; base_thickness = 1; font_factor = 0.90; base_padding = 10; angle = 45; MultiLineText(lines, font_size, font, font_factor, base_thickness, base_padding, angle); module MultiLineText(lines, font_size = 10, font = "Geologica:E...
glb/cad_5f05a556c1dc.glb
Create a pizza box table support consisting of a low circular base with three vertical legs. Start by creating a main disc with a radius of 25mm and a height of 2mm. Use a low facet count of 12 for this disc to give it a polygonal appearance. From the center of this disc, remove a smaller concentric cylinder with a r...
$fn = $preview ? 60 : 180; legs = 3; legLength = 40; difference() { color( "#baf4c2" ) cylinder( 2, r = 25, $fn = ( legs * 4 ) ); color( "#aaa" ) translate( [ 0, 0, -0.5 ] ) { difference() { cylinder( 3, r = 20, $fn = ( legs * 4 ) ); for ( i = [ 0 : ( legs - 1 ) ] ) rotate( [ 0, 0, ( i * ( 360 /...
glb/cad_343a4e1f575f.glb
Create a MiTail LED Jig, which is a rectangular base with a hollowed-out center and specific mounting features. Start with a solid rectangular block measuring 79mm in length, 44.5mm in width, and 11.5mm in height. Hollow out the center of the block to create a recessed tray, leaving a wall thickness of 2mm around the...
include <nutsnbolts/cyl_head_bolt.scad>; $fn=64; function dah(diameter, vertical = true) = vertical == true ? (1.0155 * diameter) + 0.2795 : (0.9927 * diameter) + 0.3602; module fillet(r, h) { translate([r / 2, r / 2, 0]) { difference() { cube([r + 0.01, r + 0.01, h], center = true); ...
glb/cad_70f9c020b938.glb
Create a miniature desk model for the FlutterWings animatronic system. Start by constructing two servo mounts. Each mount is based on a rectangular block measuring 113.5mm in length, 30mm in width, and 28mm in height. The main body of each mount is formed by combining a central block of 113.5mm x 3mm x 28mm with two ou...
$fn=64; function dah(diameter, vertical = true) = vertical == true ? (1.0155 * diameter) + 0.2795 : (0.9927 * diameter) + 0.3602; module fillet(r, h) { translate([r / 2, r / 2, 0]) { difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r / 2, r / 2, 0]) ...
glb/cad_bfd5bc35de65.glb
Create a miniature desk model of the FlutterWings animatronic wing mount. Start by constructing a central rectangular block measuring 17mm in width, 6mm in depth, and 12mm in height, centered on the origin. Attach a second rectangular block to the side, measuring 10mm in width, 8mm in depth, and 6mm in height, position...
$fn=64; function dah(diameter, vertical = true) = vertical == true ? (1.0155 * diameter) + 0.2795 : (0.9927 * diameter) + 0.3602; module fillet(r, h) { translate([r / 2, r / 2, 0]) { difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r / 2, r / 2, 0]) ...
glb/cad_67b2f03e8a3a.glb
Create a cup holder insert by starting with a tapered cylinder that has a height of 72mm, a bottom radius of 43mm, and a top radius of 51mm. Hollow out the center of this shape by removing a cylinder with a radius of 40.5mm, starting from a height of 3mm from the base and extending through the top. To create access slo...
$fn=120; r1_radius = 43; r2_radius = 51; r3_cup_radius = 40.5; height = 72; difference() { union() { cylinder(height, r1_radius, r2_radius); } union() { translate([0,0,3]) cylinder(height, r3_cup_radius, r3_cup_radius); translate([-60,-20,3]) cube([120,40,45]); transla...
glb/cad_4afbbe548e90.glb
Create a Parametric Hole Diameter Gauge Plate. Start by creating a rectangular base plate with a height of 10mm and rounded corners with a radius of 1mm. On the top surface of the plate, create a grid of circular holes. The holes should be arranged in columns, where each column contains a set of holes with diameters ...
$fs = 0.6; $fa = 4; font_size = 8; function font_size() = max(0, font_size); Core = "Circle"; Numbers = "debossed"; diameters = [2, 3, 4, 5, 6, 7, 8, 9, 10]; function diameters() = [for (i = [0:len(diameters) - 1]) max(diameters[i], 0)]; spacing = 2.0; function spacing() = max(spacing, 0); height = 10.0; function...
glb/cad_e2fa47286fbe.glb
Create a drill bit holder for a SKADIS board. Start with a rectangular base block measuring 15mm wide, 50mm long, and 40mm high. At the top of this block, carve out five vertical cylindrical holes of increasing diameters: 4mm, 5mm, 6mm, 8mm, and 10mm. Space these holes evenly along the length of the block, and emboss t...
include <Skadis_Hook.scad>; $fn = 15; m_width = 15; m_length = 50; module hole(index,size) { translate([ m_width/2, m_length+7-5*index-3*size, 17-(2*size) ]) union() { cylinder(50,d=size+0.3); translate([-(m_width/2)+1,0,0]) rotate([-90,180,90]) linear_extrude(2) { text(str(size),5,"Liberation Sans",ha...
glb/cad_71f064baa093.glb
Create a soap box consisting of a base, a lid, and a removable riser. For the base, create a rounded rectangular box with outer dimensions of 106mm length, 66mm width, and 33mm height. The walls should be 3mm thick. Along the top edge of the walls, integrate a raised O-ring seal with a radius of 1mm, positioned 5mm f...
$fn = 50; wall_thickness = 3; base_length = 106; base_width = 66; base_height = 33; clearance = 0.4; lid_length = base_length + clearance + 2*wall_thickness; lid_width = base_width + clearance + 2*wall_thickness; lid_height = 13; oring_from_top = 5; oring_z_percent = (base_height - oring_from_top) / base_height; orin...
glb/cad_4be3763f315c.glb
Create a soap box consisting of a base, a lid, and a removable riser. For the base, create a rounded rectangular shell with outer dimensions of 106mm x 66mm x 33mm and a wall thickness of 3mm. Incorporate a continuous O-ring channel around the top perimeter of the walls, positioned 5mm from the top edge, with a radiu...
$fn = 50; wall_thickness = 3; base_length = 106; base_width = 66; base_height = 33; clearance = 0.4; lid_length = base_length + clearance + 2*wall_thickness; lid_width = base_width + clearance + 2*wall_thickness; lid_height = 13; oring_from_top = 5; oring_z_percent = (base_height - oring_from_top) / base_height; orin...
glb/cad_611b58b5d914.glb
Create a soap box consisting of a base and a lid. Construct the base as a rounded rectangular box with outer dimensions of 106mm length, 66mm width, and 33mm height. The walls should be 3mm thick. Along the top outer perimeter of the base, 5mm below the top edge, add a raised gasket ridge with a radius of 1mm that fo...
$fn = 50; wall_thickness = 3; base_length = 106; base_width = 66; base_height = 33; clearance = 0.4; lid_length = base_length + clearance + 2*wall_thickness; lid_width = base_width + clearance + 2*wall_thickness; lid_height = 13; oring_z = base_height - 5; oring_r = 1; indent_r = 1.1; indent_z = 5; fillet_r = 2; cor...
glb/cad_253135b3a3d6.glb
Create a mount for an E38S6G5 rotary encoder. Start with a rectangular base plate 78.7mm long, 42.4mm wide, and 2mm thick, with corners rounded to a 2mm radius. At the center of the base, create a cylindrical housing with an outer diameter of 42.4mm and a height of 34.5mm. This housing must have a central vertical ho...
$fs = $preview ? 1 : 0.15; $fa = $preview ? 3 : 2; epsilon = 0.01; slot = 1; thick = 2; lug_length = 20; body_diam = 38.7 + 0.2; body_depth = 34.5; front_depth = 20; shaft_clear = 20; cable_clear = 15; hole_inset = 5; hole_offset = -15; insert_diam = 3.8; insert_height = 5; wall_add = 2; screw_diam = 3; slot_width...
glb/cad_40efb3d3af83.glb
This OpenSCAD code is a collection of modules designed to create 2D vector-style icons (like a gift, star, key, clock, pen, and a YouTube logo) using **Cubic Bézier curves**. The core logic relies on a custom `bezier_polygon` module that calculates points along a curve based on four control points ($P_0, P_1, P_2, P_3...
faces_segment = 6; textstring1="I love you"; textstring2="Franziska"; textstring3=""; HiddenText="Valentine 2022"; add_a_special_character="right"; special_character=9829; distance_special_char = .5; textsize1=16; textsize2=16; textsize3=16; distance=1.1; fontname1="Luckiest Guy"; fontstyle1="Regular"; fo...
glb/cad_b939324c14e5.glb
Create a toy hammering block peg with a total height of 75mm and an outer diameter of 7.8mm. The main body is a cylinder with rounded ends, created by extending a cylinder of 7.8mm diameter and 73mm height, then adding hemispherical caps with a 1mm radius to the top and bottom. To form the central cutout, remove a cyli...
d=15.6; h=75; module type1(){ slot=d/5; linear_extrude(h) difference(){ circle(15/2); # translate([slot,-3]) circle(slot/2, $fn=20); translate([slot/2,-3]) square([slot,15]); # translate([-slot,3]) circle(slot/2, $fn=20); translate([-slot*3/2,-15+3]) square([slot,15]); ...
glb/cad_a6254b6690a7.glb
Create an inner body for an Elko L3033 dimmer button. Start by creating a solid cylinder with a height of 5mm, a bottom diameter of 46.8mm, and a top diameter of 46.5mm. Carve a concave spherical void into the top surface of this cylinder using a sphere with a diameter of 145mm, centered such that the sphere's center i...
$fn=200; difference(){ union(){ cylinder(d2=46.5, d1=46.8, h=5); translate([0,0,1])difference(){ translate([0,0,-65.4])sphere(d=145); translate([0,0,-196])cylinder(d=146.5, h=200); } } union(){ translate([0,0,-1])cylinder(d=4, h=15); } }
glb/cad_3291709295b8.glb
Create a laser cutter mirror alignment aperture consisting of two concentric cylindrical sections. First, create a wide, thin base cylinder with a diameter of 12mm and a height of 1mm. Centered on top of this base, add a second cylinder with a bottom diameter of 10mm and a total height of 6mm. This upper cylinder shoul...
$fn=72; LaserAperture(Diameter=10, Center=0, Wall=1, Depth=5); module LaserAperture(Diameter=10, Center=0, Wall=1, Depth=0) { difference() { union() { cylinder(d=Diameter+2*Wall, h=Wall); if (Depth==0) { cylinder(d1=Diameter, d2=0.95*Diameter, h=2*Wall); ...
glb/cad_67f8facb68ee.glb
Create a TOPA holder consisting of a wall mount and side supports. First, construct the wall mount as a rounded rectangular plate with dimensions 100mm x 240mm x 7mm. The corners should have a radius of 3.5mm. In this plate, create four countersunk holes: two smaller holes at positions [25, 50, 0] and [25, 190, 0] wi...
include <BOSL/constants.scad>; use <torus.scad>; use <wedge.scad>; use <BOSL/transforms.scad> use <BOSL/beziers.scad> use <BOSL/math.scad> use <BOSL/metric_screws.scad>; $fn = 100; TOPA_dia = 125; TOPA_hoehe = 105; TOPA_hole = 45; metric_bolt_size = 17; metric_bolt_len = 242; wand = ...
glb/cad_c1ceded69f37.glb
Create a TOPA Halterung spacer ring. Start by constructing a solid base cylinder with a height of 1.5mm and a diameter of 49mm. On top of this base, add a 10mm tall tapered cylinder that narrows from a bottom diameter of 45mm to a top diameter of 43mm. Above that, add a further 4mm tall tapered cylinder that narrows fr...
$fn = 100; TOPA_dia = 125; TOPA_hoehe = 105; TOPA_hole = 45; bolt_len = 242; wand = 7; off_wand = TOPA_dia/2 + 8; Abstandsring(pos=[0, 0, -1], rot=[0, 0, 0]); module Abstandsring(pos=[undef, undef, undef], rot=[undef, undef, undef]) { difference() { union() ...
glb/cad_a51a6ae9a663.glb
Create a TOPA Halterung by constructing a wedge-shaped section of a cylinder. The cylinder must have a radius of 1mm and a total height of 1mm. The shape is defined by a 270-degree arc, leaving a 90-degree open gap. Center the geometry so that the open part of the wedge faces in the positive y direction. Ensure the fin...
module wedge(h, r, a, $fn=50) { th=(a%360)/2; difference() { cylinder(h=h,r=r,center=true, $fn=$fn); if(th<90) { for(n=[-1,1])rotate(-th*n)translate([(r+0.5)*n,0,0]) cube(size=[r*2+1,r*2+1,h+1],center=true); } else { int...
glb/cad_278fadb63091.glb
Create a Sanyo RP40 battery door starting with a main rectangular plate measuring 54.75mm wide, 30.5mm deep, and 1.5mm thick. Round the four corners of this plate with a 1mm radius. On the top surface, centered along the width, create a rectangular cutout 18.25mm wide and 1mm deep, with a small 4.5mm wide slot and a ...
$fn=100; corner_radius = 1; door_top_dims = [54.75, 30.5, 1.5]; module door() { door_top( door_top_dims, corner_radius); wedge( door_top_dims, [door_top_dims.x, 1.5, 4.5], [door_top_dims.x, 5, 0.5]); tabs(door_top_dims, [10, 3, 1], [5, 3, 1], 4, 2.5, 1); } rotate([180, 0, 0]) door(); module gr...
glb/cad_a48f9b3a5a20.glb
Create a wall mount for an Echo 1st Gen speaker. Start by creating a backplate that is 90mm wide, 27mm high, and 3.5mm thick, with the upper corners rounded to a 2mm radius. On this backplate, add three mounting pegs spaced 40mm apart. Each peg consists of a main shaft 7mm long and 4.6mm wide, with a 3mm outer radius...
$fa = 0.5; $fs = 0.5; backplate_w = 90; backplate_h = 27; backplate_r = 2; backplate_t = 3.5; peg_w = 4.6; peg_outer_r = 3.0; peg_inner_r = 1.0; peg_h = 13.0; peg_shaft = 7.0; peg_space = 5.1; peg_hole_h = 14.7; peg_plug_h = peg_hole_h - peg_shaft; peg_plug_w = 5; peg_plug_t = peg_space - 1.2; peg_plug_collar = 1.5;...
glb/cad_1242ffc930fd.glb
Create a Bracelet Sizing Set tool by constructing a hollow oval band. The outer boundary should be an oval with a width of 80mm and a height of 60mm, with a total thickness of 20mm. To create the band, remove a concentric oval from the center that is 5mm smaller in both width and height than the outer boundary. The ba...
braceletWidth = 80.0; braceletHeight = 60.0; braceletDepth = 20; braceletThickness = 5; braceletIsOpen = true; braceletOpening = braceletWidth/2; gripSize = 10; mountHoleDiameter = 2.25; showLabel = false; labelWidth = 30; labelHeight = 8; labelFontSize = 5; module __oval(w, h, depth, center = false) { scale(...
glb/cad_94aec4af4fbe.glb
Create a Skadis Black & Decker Wizard Holder. The main body is a hollow, tapered cylindrical sleeve with a wall thickness of 4mm. The outer diameter tapers from 31mm at the top to 26mm at the bottom, while the inner cavity tapers from 31mm at the top to 22mm at the bottom, with a total height of 15mm. Attached to the...
include<skadis_hook 3rd Party.scad> use <my_library.scad> $fa=1; $fs=0.4; hook_w = 4.5; hook_h = 34.942; wall = 3; height = 15; width = 7; depth = 37-hook_w+1; t_wall = 4; t_height = 15; edge = 1; c_depth = 10; c_width = 50; mirror([0,180,0]) { translate([-(35),-(hook_w/2),-t_height-hook_w-0.5]) Hook("blank"); ...
glb/cad_216cad4b27ef.glb
Create a Universal Spool consisting of two identical mirrored halves. For one half, start with a central cylindrical hole of 10mm radius that runs through the entire height of the part. Construct the core by creating a cylinder with a total height of 13mm (11mm inner width plus two 1mm walls). The inner section of the...
include_counterpart=false; inner_width=11; inner_radius=20; outer_radius=65; core_thickness=2; tooth_angle=55; tooth_thickness=1.8; tooth_gap=0.5; notch_scale=1.0; notch_gap=0.2; center_hole_radius=10; wall_thickness=1; wall_pattern="bars"; wall_pattern_padding=5; bars_bar_width=10; hex_diameter=10; hex_wall_thickn...
glb/cad_969e9974694d.glb
Create a chamfered cylinder with a diameter of 40mm and a height of 20mm. The top and bottom faces are flat, but the vertical side is modified by two distinct chamfer angles: a 45-degree chamfer on the top edge and a 60-degree chamfer on the bottom edge. Ensure the geometry is rendered as a faceted cylinder rather than...
cylinderChamfered(chamfer=[0,45],extra_z=0); module circleChamfered(d=40,chamfer=[45,45],extra_z=0){ module chamfer(chamfer=45,extra_z=0){ val=d/2+extra_z; val2=d/2-extra_z; for(b=[0,1]) mirror([b,0]) polygon([ [0,-val], [0,-d/2], [-d/2*cos(90-chamfer),-d/2*sin(90-chamfer)], [-val2*cos(90-chamfer)+t...
glb/cad_f135649fb5ac.glb
Create a mounting bracket for a Prusa MINI coreXY expansion. The main body is a hull formed by connecting six spheres of radius 2mm located at the corners of a rectangular volume. Position two spheres at the base (z=2mm) at x=2mm and y=±(7.5-2)mm, two spheres at the far end (x=28mm) at the same y and z coordinates, and...
$fn= $preview ? 16:64; bolt_shift=11+25-30; l1 = 30; l2 = 20; prof = 15; bolt1 = 3.5; bolt2 = 4.5; boltHead1 = 8; boltHead2 = 9; padH = 2.5; r=2; rail=[0,0,0]; rotate=90; tol = 0.15; not = 0.01; inf = 100; difference(){ body(); holes(); t([padH,-boltHead2/2,padH]) cube([inf,boltHead2,inf]); } module rails(){ ...
glb/cad_d3da244422c5.glb
Create a parametric honeycomb peg. Start by constructing a hexagonal prism with a base diameter of 4mm and a total height of 26mm. Taper the prism slightly so the top face diameter is 10% smaller than the base. At the bottom of this prism, attach a rectangular base block that is 30mm long, 3.46mm wide, and 3mm high. Ce...
module HoneyCombPeg(Diameter=4, Length=15, Arm=3, Material=4) { union() { cylinder(d1=Diameter, d2=0.9*Diameter, h=Length+Arm+Material, $fn=6); intersection() { hull() { translate([0,0,-1]) cube([2*Length, (Diameter/2)*sqrt(3), 2], center=true); translat...
glb/cad_9a2e9ec671f8.glb
Create a pomodoro timer case consisting of a bottom chassis and a top cover. For the bottom section, create a rounded rectangular base with a width of 56mm (52mm internal + 2mm walls) and a depth of 35mm (29mm internal + 2mm walls + 8mm front padding). The floor thickness is 4mm. Add a 10mm x 3.5mm x 3.5mm rectangula...
wall_thickness = 2; floor_thickness = 4; corner_radius = 2; additional_front_padding = 8; esp_width = 52; esp_depth = 29; esp_height = 14; display_outer_width = 27; display_outer_height = 28; display_width = 25; display_height = 14.5; button_width = 11; button_height = 14; front_plate_angle = 20; epsilon = 0.01; ...
glb/cad_a6dda099c9ee.glb
Create a Trapezoidal L-truss construction module. The module is a structural frame consisting of two main parallel longitudinal tubes, each 140mm long with a diameter of 3.5mm. These tubes are separated by a centerline distance of 30mm. Connect the two main tubes using a series of diagonal struts that form a zig-zaggi...
$fs=0.1; $fa=2; trussZ=3.5; trussE=6; flare=0; truss_length=140; truss_majorOD=trussZ; truss_diagOD=1.5; truss_round=1.5; truss_dY = 15; truss_angle = 22.5; topperZ=50; topperOD=truss_diagOD+0.5; truss_top = truss_length + 2*sin(truss_angle)*truss_dY; vheight=20; gX = trussZ; gY = trussZ; wall=1.2; clearance=...
glb/cad_8492e3606e46.glb
Create two types of replacement knobs for a music box: a volume knob and a song selector knob. Both knobs share a common outer ring with a diameter of 24mm and a total depth of 14mm. This outer ring features a recessed face with a depth of 0.8mm and a rim width of 2.25mm, including a 0.3mm bevel. A pointer slot 1.5mm w...
generateVolumeKnob = true; generateSongSelectorKnob = false; knobOD = 24; knobRimDepth = 14; knobFaceIndentDepth = 0.8; knobFaceRimRingWidth = 2.25; knobFaceRimBevel = 0.3; knobFaceCenterOD = 18.5; knobPointerSlotDepthFromRing = 3.5; knobPointerSlotWidth = 1.5; knobPointerDepth = 0.5; selectorSwitchPostOD = 6.25; sel...
glb/cad_36bf07d95c49.glb
Create a collet holder for R8 mill collets consisting of a base and a matching top cover. For the base, create a solid block with a height of 105mm and a bottom thickness of 4mm. The block should have rounded corners with a radius of 20mm. Cut eight collet-shaped holes into the top surface. Each hole is a composite s...
colletOverallHeight = 101; colletBaseDiameter = 25.4; colletBaseHeight = 76; colletTopDiameter = 32; numberOfSmallCollets = 8; numberOfLargeCollets = 0; widestCollet = 3.25 * 25.4; tallestCollet = 8 * 25.4; bottomThickness = 4; fingerSpace = 18; $fn = 96; holderCornerRadius = (numberOfLargeCollets > 0 ? wide...
glb/cad_804aa4471f6d.glb
This OpenSCAD code is a collection of modules designed to create 2D vector-style icons and text using **Cubic Bézier curves**. The core logic relies on a custom `bezier_polygon` module that calculates points along a curve using the standard Bézier polynomial formula and then renders them as a standard OpenSCAD `polyg...
faces_segment = 6; textstring1="Happy Valentine's Day"; textstring2="Morticia"; textstring3=""; HiddenText="Valentine 2022"; add_a_special_character="right"; special_character=9829; distance_special_char = .5; textsize1=16; textsize2=16; textsize3=16; distance=1.2; fontname1="Mouse Memoirs"; fontstyle1="Re...
glb/cad_1d67c7d93e7b.glb
Create a stackable riser consisting of a rectangular base and a trapezoidal prism. Start by creating a centered rectangular base measuring 75mm wide by 75mm deep with a height of 25mm. On the top surface of this base, center a trapezoidal prism that is 5mm tall. This prism should taper from a bottom dimension of 70mm...
base_x = 75.000; base_y = 75.000; base_z = 25.000; prism_bottom_x = 70.000; prism_bottom_y = 70.000; prism_top_x = 65.000; prism_top_y = 65.000; prism_height = 5.000; tolerance = 0.100; model_mode = 0; show_stacking = true; $fa = 1; $fs = 0.4; module trapezoidal_prism(bottom_x, bottom_y, top_x, top_y, height) { ...
glb/cad_f7b738cee5f5.glb
Create a stackable riser box starting with a centered rectangular base measuring 75mm by 75mm with a height of 25mm. On the top surface of this base, add a centered trapezoidal prism that is 5mm tall, tapering from a bottom footprint of 69.8mm by 69.8mm to a top footprint of 64.8mm by 64.8mm. To allow for stacking, cre...
base_x = 75; base_y = 75; base_z = 25; prism_bottom_x = 70; prism_bottom_y = 70; prism_top_x = 65; prism_top_y = 65; prism_height = 5; tolerance = 0.2; show_stacking = true; $fa = 1; $fs = 0.4; module trapezoidal_prism(bottom_x, bottom_y, top_x, top_y, height) { linear_extrude(height = height, scale = [top_x / b...
glb/cad_5a18daefee4e.glb
Create a phone holder with a GoPro mount consisting of two main components: a phone gripping assembly and a mounting base. First, create the gripping assembly. Construct a rectangular block 70mm wide, 40mm high, and 21mm deep. In this block, create two vertical cylindrical holes with a diameter of 5.5mm (5mm plus 0.5m...
PhoneWidth = 168; PhoneHeight = 82; PhoneDepth = 21; sirka_uchytu = 70; mintl=2.0; screw_dia=5; screw_head_dia=8; screw_head_heigth=4; toc_dia=40; toc_heigth=15; tolerance=0.5; $fn=64; goproConnector = "double"; module matice() { $fn = 64; val_dia=PI*toc_dia/$fn*1.4; val_step=360/$fn*2; difference...
glb/cad_f9370a07a451.glb
Create a phone holder with a GoPro mount consisting of several separate components. First, create two identical main clamping arms. Each arm is a rectangular block measuring 70mm wide, 17mm deep, and 15mm high. On the inner face of each block, create a horizontal cylindrical cutout with a diameter of 15mm that runs t...
PhoneWidth = 168; PhoneHeight = 82; PhoneDepth = 15; sirka_uchytu = 70; vyska_uchytu = 15; mintl=2.5; screw_dia=5.1; screw_head_dia=8.2; screw_head_round=10; screw_head_heigth=5; toc_dia=34; toc_heigth=12; tolerance=0.6; $fn=64; goproConnector = "double"; hornidil(); translate([-sirka_uchytu-3,0,0]) dolnidil(...
glb/cad_5249b9dbd9dd.glb
Create a phone holder with a GoPro mount consisting of two main clamping parts and a central spacer. First, create two identical clamping arms. Each arm is a block 70mm wide, 15mm high, and 15mm deep. In each block, create a horizontal cylindrical hole with a diameter of 5.7mm (5.1mm plus tolerance) passing through t...
PhoneWidth = 168; PhoneHeight = 82; PhoneDepth = 15; sirka_uchytu = 70; vyska_uchytu = 15; mintl=2.5; screw_dia=5.1; screw_head_dia=8.1; screw_head_heigth=5; toc_dia=34; toc_heigth=12; tolerance=0.6; $fn=64; goproConnector = "double"; module matice() { $fn = 64; val_dia=PI*toc_dia/$fn*1.8; val_step=3...
glb/cad_a4d5a2c820a3.glb
Create a phone holder with a GoPro mount consisting of two symmetrical clamping arms and two adjustment knobs. Each clamping arm is a rectangular block 70mm wide and 14.7mm high. The top of each arm features a semi-cylindrical cutout with a 17mm diameter to accommodate the phone. Within each arm, create two perpendic...
PhoneWidth = 168; PhoneHeight = 82; PhoneDepth = 21; sirka_uchytu = 70; mintl=2.0; screw_dia=5; screw_head_dia=8; screw_head_heigth=4; toc_dia=34; toc_heigth=12; tolerance=0.5; $fn=64; goproConnector = "double"; module matice() { $fn = 64; val_dia=PI*toc_dia/$fn*1.8; val_step=360/$fn*2; difference...
glb/cad_6ce6bada1ffa.glb
Create a trellis holder for garden accessories. The main body is a rectangular block with a total width of 200mm, a height of 30mm, and a depth of 75mm. The base is a flat plate 4mm thick. Attached to this base is a back wall, also 4mm thick, that rises 30mm high. The holder features four identical compartments, each ...
count = 4; w_part = 50; t_front = 50; t_back = 25; height = 30; bottom = 4; back = 4; strut = 4; cutout = 15; screw = 4; minkr = 1.5; w = count * w_part; eps = 0.01; difference() { rounded_body(); for (i = [0:1]) { translate([w_part/2+i*(w-w_part),back-minkr+eps,t_back*.6]) ...
glb/cad_cbc412f3622f.glb
Create a parametric board game insert with outer dimensions of 155mm in length, 90mm in width, and 48mm in height. The main body is a solid block with rounded vertical corners of 5mm radius. Hollow out the interior to create five identical rectangular pockets, each separated by walls 1.6mm thick, leaving a bottom floor...
num_pockets = 5; outer_length = 155; outer_width = 90; outer_height = 48; rounded_fn = 50; wall_thickness = 1.6; bottom_thickness = 2; use_rounded_corners = true; corner_radius = 5; available_width = outer_length - (num_pockets + 1) * wall_thickness; pocket_width = available_width / num_pockets; pocket_size = [ ...
glb/cad_9ec5dc2dfc07.glb