Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a glass mirror clip by starting with a solid rectangular block measuring 16mm wide, 22mm deep, and 10mm high. Remove a rectangular section from the center of the block's depth, leaving two outer walls; this cutout should be 10.5mm wide and 16mm deep, starting from the top and extending 3.74mm down into the block...
$fn = 64; module corner(radius, height) { difference() { cube([radius, radius, height]); translate([radius, radius, 0]) cylinder(r=radius, h=height); } } difference() { cube([16, 22, 10]); union() { translate([0, 11.5, 0]) cube([16, 10.5, 3.74]); translate([8, 5.75, 0])...
glb/cad_3dee0f3631ac.glb
Create a protective octagonal bellows with a total height of 140mm. The model consists of a central flexible body capped at both ends by rigid cylindrical sleeves. Start by creating two identical sleeves, each 20mm tall, with a 20-sided cylindrical profile. Position one sleeve at the base and one at the top of the ass...
x = 25; y = 25; approx_z = 100; steps = 10; step = round(approx_z / steps); z=step*steps; step2 = floor(step * 2); ext = 1.5; radi = 1; verticalsegment = 0.2; sleeve = 20; sleeve_ext = 0; sleeveext = sleeve*sleeve_ext; sleeveFN = 20; hx=x/2; hy=y/2; rotate([0,0,rnd(360)]){ sleeves(); body(); } echo (ext); module slee...
glb/cad_1a48f0963a5e.glb
Create a customizable fan duct and mounting system. Start by constructing the fan duct: create a hollow channel with a square base of 40mm x 40mm and a height of 12.1mm. The channel walls should be 1mm thick with 4mm rounded corners. Extend the channel to a length of 45mm, tapering the open end to a width of 10mm and r...
fan_duct(); fan_size = 40; fan_drill_dist= 32.5; fan_drill = 3; channel_len = 45; channel_open = 10; channel_wall = 1; channel_round = 4; channel_shift = 40; channel_rotate = 60; fan_mount_offset_x = -5; fan_mount_offset_z = 19; holder_height = 12.1; holder_wall = 6.0; holder_drill = 4.5; holde...
glb/cad_6a67f16275a7.glb
Create a staple storage box consisting of a main container and a sliding lid. The main container is a rectangular prism with an outer dimension of 106mm by 106mm and a height of 15mm. The walls are 3mm thick, and all four vertical outer corners are rounded with a radius of 5mm. The interior is hollowed out to create a ...
wallThickness = 3.0; innerWidth = 100.0; innerDepth = 100.0; innerHeight = 15.0; topText = " SOME "; bottomText = " STAPLES"; $fn = 180; tolerance = 0.3; edgeRoundness = wallThickness + 2.0; width = innerWidth + 2 * wallThickness; depth = innerDepth + 2 * wallThickness; height = innerHeight;...
glb/cad_a2c91a70b42b.glb
Create a cooler drain plug consisting of a cylindrical cap with a wide outer brim. Start by creating a main cylindrical body with an outer radius of 10.25mm and a total height of 8mm. Hollow out the center of this cylinder to create a sleeve with an inner radius of 8.25mm, leaving a wall thickness of 2mm and a base thi...
r_max=14; r_outer=8.25; r_inner=6.35; w_hinge=14; thickness=2; height=6; $fn=100; difference() { rotate_extrude() polygon( points=[[r_max,0], [r_max,thickness], [r_outer+thickness,thickness], [r_outer+thickness,0]] ); translate([r_max/2,0,thickness/2]) cube(size=[r_max,w_hinge,2*th...
glb/cad_53c0d88d33af.glb
Create a 3D model consisting of a series of repeated tapered cylinders arranged in a circular pattern. First, define the base element: a tapered cylinder with a bottom radius of 0.1mm, a top radius of 0.2mm, and a height of 3mm. To arrange these elements, create a loop that generates 36 instances of this cylinder, ...
function node_translate_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = translate([0,5,0])*node_cylinder_matrix(i=i,j=j,k=k,l=l,m=m,n=n); module node_translate(i=0,j=0,k=0,l=0,m=0,n=0) { translate([0,5,0])node_cylinder(i,j,k,l,m,n); } function node_lookat_matrix(i=0,j=0,k=0,l=0,m=0,n=0) = onlytranslate(node_rotate_matrix(i=i,j=j,k=...
glb/cad_72ab1cb305fc.glb
Create a MakerFarm i3v Heat Bed Wiring High Strain Relief bracket. Start with a base plate 15mm wide by 35mm deep and 2mm thick. At the center of the plate's width, extend a round post with a 20mm diameter and a height of 8mm. Add a reinforcement strut 3mm thick and 8mm high that angles upward from the post. For the ...
use <MCAD/polyholes.scad> cable_support( 1 ); bed_size = 214; bed_keepout = 203; bed_sz = 6; tab_or = 10; old_hsp = 7.5; old_oy = tab_or - 6.5; bed_iy = 0; post_od = 2*tab_or; plate_sx = 15; plate_sy = 35; plate_sz = 2; plate_r = 2; post_sz = 8; new_sx = 2; new_sy = 4; new_hsp = old_hsp; strut_sx = 3.0; strut_sz = ...
glb/cad_61f5eb4a3396.glb
Create a clock face by starting with a main circular disc that is 180mm in diameter and 4mm thick. Bore a small circular hole with a 6mm diameter through the exact center of the disc. Around the face of the disc, place the numbers 1 through 12, evenly spaced every 30 degrees. Each number should be extruded to a height ...
X=12 ; Y=70 ; $fn=60; Clock_Face(); Clock_Face_Numbers(X,Y); module Clock_Face() { color("white") difference(){ cylinder(h=4, r1=Y+20, r2=Y+20, center=true); translate([0, 0, -.1] ) cylinder(h=6, r1=3 , r2=3 , center=true); }} module Clock_Face_Numbers(X,Y) { for (i = [1:1:X]) { Clock_Face=360/X; ...
glb/cad_c1f404e88d77.glb
Create a clock face by starting with a main white disc that is 136mm in diameter and 4mm thick. Bore a small hole with a 4mm diameter through the exact center of the disc. Around the outer perimeter, place 60 small markers to represent seconds; each marker should be a 7-facet sphere with a 2mm diameter, positioned 52mm...
X=12; Y=60 ; $fn=30; Font_Size=9; font = "Liberation Sans"; difference(){ Clock_Face(); translate([0, 0, 1] ) Clock_Face_Numbers(X,Y);} module Clock_Face_Dots(X,Y) { Sec = 5 ; for (i = [1:1:60 ]) { Clock_Face= 6 ; rotate([0,0,Clock_Face*i]) translate([0, Y-8,4] )sphere(1, $fn=7); }} module Clock_Fac...
glb/cad_e08b8f3d3b85.glb
Create a clock face consisting of a thin dodecagonal plate and numerical markers. Start by creating a 12-sided prism with a radius of 62mm and a height of 4mm, centered on the origin. Drill a small cylindrical hole with a diameter of 2mm through the center of the plate. Around the perimeter, place twelve numbers from ...
X=12; Y=50 ; Font_Size=9; font = "Liberation Sans"; difference(){ Clock_Face(); translate([0, 0, 1] ) Clock_Face_Numbers(X,Y);} module Clock_Face_Dots(X,Y) { Sec = 5 ; Clock_Face= 6 ; for (i = [1:1:60 ]) { rotate([0,0,Clock_Face*i]) translate([0, Y-X,4] )sphere(1, $fn=6); }} module Clock_Face...
glb/cad_43c1c0191d14.glb
Create a Spool Drawer organizer designed to fit inside a filament spool. Start by defining a cylindrical volume with an outer diameter of 200mm and an inner diameter of 90mm, with a total height of 56.5mm. The structure features a bottom base and a top lid, each 2mm thick. Construct the storage area as a hollowed cyli...
number_of_drawers = 4; render_drawers = 1; inner_diameter = 90; outer_diameter = 200; inner_spool_width = 56.5; spool_hole_diameter = 30; segments_per_circle = 360; wall_thickness = 2; clearance_from_spool= 1; screw_hole_diameter = 2.492; tab_length = ...
glb/cad_b2cac2cda571.glb
Create a Kossel Vertical Arm Assembly Jig consisting of a main support block and a separate spacer ring. For the main support, start with a central rectangular block 45mm long, 11.8mm wide, and 15mm high. At the center of this block, create a vertical cylindrical cutout with a 12mm diameter and a 3mm diameter hole pa...
wall_t=3; eye_insert_id=3; eye_insert_od=6.5; eye_od=12; eye_insert_w=5.8; eye_outer_w=4.25; eye_l=45; eye_thread_l=17; rod_od=5; rod_l=310; eye_space=325; $fn=60; screw_d=3; screw_l=2*eye_insert_w+2*wall_t; extrusion_w=20; mount_screw_d=5; mount_screw_head_d=7; mount_screw_head_h=4; assembly_offset=wal...
glb/cad_952b78ffcd4c.glb
Create a compact dust pan with a total width of 80mm and a total length of 90mm. The main body is a hollowed-out tray with a wall thickness of 2.5mm and a base thickness of 2.5mm. The back wall and two side walls are 25mm high, with the back two corners rounded to a radius of 15mm. The front opening is 10mm high. The...
$fn=64; width = 80; length = 90; height = 25; front_height = 10; corner_radius=15; wall_thickness = 2.5; base_thickness = 2.5; slope_height = 0.8; slope_length = 30; first_layer_inset_width = 0.3; first_layer_inset_height = 0.2; eps1 = 0.01 + 0; eps2 = 2*eps1; module inset_first_layer(w=0.4, h=0.2, eps=0.0...
glb/cad_4054b2c2d0c6.glb
Create a pen holder for a Nema 17 stepper motor consisting of a main mounting body and a pen adapter. First, construct the motor holder body. Start with a central block 46mm wide, 46mm deep, and 28mm high. Hollow out the center with a 42.5mm square pocket 27mm deep. Remove a 30mm diameter cylinder from the center of ...
$fn=100; dia = 11.2; tipDia = 5; module nema17HolderBody() { union() { difference() { translate([0,0,1.5]) cube ([46,46,28], center=true); cube ([42.5,42.5,27], center=true); cylinder (d=30, h=100, center=true); translate([0,-42.3/2-5/2+0.01,-11.5]) cube([10, 5, 50], center=true); }...
glb/cad_96585fae62d2.glb
Create a fine focus knob for a telescope focuser. Start with a solid cylinder 70mm in diameter and 10mm thick. Remove a concentric inner cylinder with a radius of 10.3mm to create a hollow ring. To accommodate the focuser ribs, cut eight rectangular slots through the thickness of the ring, spaced every 45 degrees aroun...
OD_inner = 20.2; OD_outer = 22.1; rib_width = 4.7; rib_locations = [0, 45, 90, 135, 180, 225, 270, 315]; rib_ht = 0.5 * ( OD_outer - OD_inner ); tol = 0.2; OD = 70.0; rO = 0.5 * OD; thk = 10.0; rI = 0.5 * OD_inner + tol; rR = rI + rib_ht + tol; b1 = rib_width + 0.5* tol; half_b1 = 0.5 * b1; b2 = rib_width - 0.2 - 0.5...
glb/cad_e379cdcac810.glb
Create a PanelMax Vertex upper vertex mount. Start by constructing a main rectangular enclosure with a base width of 98.11mm and height of 60.12mm, and a wall thickness of approximately 2mm. The enclosure should be designed to house an LCD screen measuring 95.77mm by 39.96mm with a thickness of 8.27mm. Incorporate a d...
include <../config/configuration.scad> lcd_scrn_w=95.77; lcd_scrn_h=39.96; lcd_scrn_t=8.27; lcd_scrn_offset_x=1.18; lcd_scrn_offset_y=9.95; lcd_board_t_adj=0.5; lcd_board_w=98.11; lcd_board_h=60.12; lcd_board_t=12.77-lcd_scrn_t+lcd_board_t_adj; lcd_hole_d=3.2; lcd_hole_offset=1; lcd_holespace_w=90.82+lcd_hole_d; l...
glb/cad_923060b4d0bc.glb
Create a square panel ceiling clip by constructing a composite geometric form. Start with a base rectangular block 27.6mm wide, 1.6mm high, and 44mm deep. Add two vertical side walls, each 1.6mm thick and 4.8mm high, positioned at the outer edges of the base. Connect these walls with two horizontal bars, each 1.6mm thi...
width = 23; nozzle = 0.8; rim = 1.5; breath = 44; cable = 5; rotate([0,-45,0])intersection(){ union(){ union(){ cube([nozzle*2,nozzle*2*2+rim,breath]); translate([nozzle*2+width,0,0])cube([nozzle*2,nozzle*2*2+rim,breath]); difference(){ union(){ translate([0,nozzle*2+rim,0])cube([nozzle*7,nozzle*2...
glb/cad_a8158786ad18.glb
Create a radio button knob with a total height of 13mm and an outer diameter of 21.5mm. The main body is a hollow cylinder with a wall thickness of 2.5mm. At the base, center a vertical shaft with an outer diameter of 10mm and a height of 14mm. This shaft is not a smooth cylinder; it features a 24-tooth internal star...
ButtonHeight = 13; ButtonDiameter = 21.5; ButtonWall = 2.5; ShaftDiameter = 8; ShaftToothHeight = 0.5; ShaftToothCount = 24; ShaftHeight = ButtonHeight+1; ShaftWall = 1; ShaftHoleDepth = ShaftHeight-1; GripCount = 12; GripSize = 1; GripHeight = 9; GripAlign = 1; RingThickness = 2.5; RingHeight = 1; HoleDiameter = 1...
glb/cad_a35a49d77705.glb
Create a FatKame battery and electronics enclosure consisting of a lower base and an upper lid. For the lower part, create a rounded rectangular box with overall dimensions of 102mm length, 77mm width, and 32mm height, using a corner radius of 2mm. The walls should be 2mm thick. Hollow out the center to create an ope...
$fa = 0.5; $fs = 0.5; lower=false ; kamebox_length=102; kamebox_width=77; kamebox_servobox_height=32; kamebox_wallstrength= 2; kamebox_lid_height= 6; kamebox_iro_width=32; kamebox_iro_length = 72; kamebox_iro_height = 12; servo_width=12; servo_height = 21; servo_length=24; servo_overhang=4; servo_mounthole = 0.7; ...
glb/cad_5dfb7460307a.glb
Create a hot glue gun holder by starting with a solid cylinder 25mm high with a radius of 26.4mm. Cut a smaller concentric cylinder with a radius of 24mm and a height of 100mm through the center to create a hollow tube. To form the cradle, remove a central rectangular section using a cube 60mm wide, 60mm deep, and 20mm...
$fn=100; difference() { difference() { union() { difference() { difference() { rotate([180,0,0]) difference() { cylinder (h=25,r=26.4); } rotate([-10,0,0]) cube([60,60,20], center=true); } cube([60,60,15], center=true); } translate([0,26.4,-23]) cube([52.8,52.8,4],center=true); } cylinder (h...
glb/cad_28e579a6c2ad.glb
Create a Notebook Organizer bookmark that is 160mm long, 25mm wide, and 0.6mm thick. The main body is a rectangular slab with rounded corners on the right side, using a fillet radius of 2mm. On the left edge, create a series of circular holes for a spiral binding, each with a diameter of 3.2mm. These holes should be sp...
width = 25; length = 160; height = 0.6; hole_diameter = 3.2; hole_distance = 8.5; writeTag = 1; textTag = "Arduino"; textFont = "Open Sans"; textStyle = "Bold"; textSize = 4; textHeight = 0.4; fillet_radius=2; dist_hole_edge = 4; slot_width = 2; hole_border = 2; textDistance = 0.5; $fn=50; difference(){ ...
glb/cad_c54378f050b0.glb
Create a control panel box for a printer enclosure. Start with a main body that is a rounded rectangular prism measuring 123mm in length, 25mm in width, and 45mm in height. The corners of this body should be rounded with a radius of 0.7mm. The box is open at the back; create a hollow interior by removing a smaller rou...
$fs = 0.01; module rcube(size = [1, 1, 1], center = false, radius = 0.7, apply_to = "all") { size = (size[0] == undef) ? [size, size, size] : size; translate_min = radius; translate_xmax = size[0] - radius; translate_ymax = size[1] - radius; translate_zmax = size[2] - radius; diameter = radius * 2; module b...
glb/cad_a202b67b4ba2.glb
Create a DC fan mounting surround. Start with a rectangular base plate measuring 137.4mm in length, 51.4mm in width, and 11.8mm in height. The base consists of a perimeter wall 11.8mm high with a thickness of 2.7mm. Within this base, create three identical square fan mounting sections. Each section features a central ...
module fan_mount(size=40,thick = 4) { if(size == 25) { _fan_mount( fan_size = 25, fan_mounting_pitch = 20, fan_m_hole_dia = 3, holder_thickness = thick ); } if(size == 30) { _fan_mount( fan_size = 30, fan_mounting_pitch = 24, fan_m_hole_dia = 3, holder_thickness = thick ); } if(size...
glb/cad_8edcecb93361.glb
Create a sensor holder bracket consisting of two rectangular plates joined at a 90-degree angle. The first plate is a flat rectangular block measuring 14mm wide, 16mm long, and 2.7mm thick. The second plate, which extends from the first, is 14mm wide, 19mm long (making the total length of the combined part 35mm), and 2...
$fs = 0.01; module hole( diam, height ) { translate( [ 0, 0, -0.005 ] ) cylinder( r = diam / 2 , h = height + 0.01 , $fn = 30 ); } module FanSide() { difference() { union() { cube( [14,18.2,2.7] ); rotate( a = 90, v =...
glb/cad_5da7d789fe2a.glb
Create a Nerf Rapidstrike Butt Plate by constructing a tiered, asymmetrical geometric plug. Start with a base rectangular section 43mm wide, 27mm deep, and 6mm high. Above this, add a second tier that transitions from a lower width of 43mm to an upper width of 57.6mm over a height of 9.5mm, with a depth of 20.75mm. B...
module buttplate() { extraDepth = 100; bottomBitWidth = 37.75; bottomBitSlantDepth = 6.75; tier0Width = 43; tier0Depth = 27; tier0Height = 6; tier1Depth = 20.75; tier1SlantyBitDepth = 3.5; tier1LowerWidth = tier0Width; tier1UpperWidth = 57.6; tier1Height = 9.5; tier1tr...
glb/cad_eafd46f49927.glb
Create a GPS isolation plate with a base footprint of 47mm by 40mm and a thickness of 1.3mm. The base is a rounded rectangle created by expanding a 35mm by 27.5mm rectangle with an 8mm radius. Add four rectangular mounting knobs that extend 8mm upward from the base. Position two knobs at the top: one from x=3.75 to 9...
mRo_length = 47; mRo_height = 40; mRo_width = 1.3; difference(){ union(){ minkowski() { cube([35,27.5,1]); cylinder(r=8,h=1,$fn=50); } translate([3.75,32.5,0])cube([6,4,8]); translate([21.5,32.5,0])cube([5.75,4,8]); translate([2,-8.5,0])cube([6,4,8]); translate([24...
glb/cad_c29e6848dbaa.glb
Create a bridge test model consisting of two supporting pillars connected by a horizontal span. Start by creating two identical feet, each a square prism with a side length of 10mm and a height of 0.1mm, rotated 22.5 degrees. Position these feet 30mm apart from center to center along the x-axis. At each foot, build a ...
bridge_length = 25; bridge_angle = 0; bridge_width = 5; bridge_recovery_layers = 10; layer_height = 0.1; extrusion_width = 0.5; module foot() { rotate([0, 0, 180/4]) cylinder(r=bridge_width * 2, h=layer_height, $fn=4); } module strut() { rotate([0, 0, 180/4]) difference() { cylinder(r1=bridge_width / 1.5 / cos...
glb/cad_dd861eb369f3.glb
Create a camera mount for an Eachine TX03. Start by designing a mounting plate with a total height of 1.5mm. The plate is based on a circle with a radius of 26mm (diameter 52mm) and a 16-sided polygonal profile. Cut a smaller 8-sided polygonal hole from the center and remove four circular sections from the corners of t...
CAMERA_ANGLE = 25; module tx01_box(angle) { inner_width = 19; inner_depth = 8; height = 8; tx_box(19, 8, 8, angle); } module tx03_box(angle) { inner_width = 20.5; inner_depth = 8.5; height = 9.75; tx_box(inner_width, inner_depth, height, angle); } module tx_box(inner_width, inner_depth, height, angle...
glb/cad_0bee3c999269.glb
Create a 19-inch rack mount ear for a network device. Start with a rectangular rail mount base measuring 15.88mm wide, 43.66mm high, and 4.5mm thick. Drill two 5mm diameter holes through this base, positioned 6.35mm from the top and bottom edges and centered along the width. Attached to the inner edge of the rail moun...
device_w=190; device_h=32.0; device_clip_w=10; clip_l=75; clip_t=3.5; rib_t=3; latch_t=3.5; zipper_d=6; rack_screw_distance3=31.75; rack_screw_edge_distance=12.70/2; rack_screw_d=5; rack_U=44.45; rack_H=rack_U-0.787; rack_W=450.85; rack_rail_w=15.88; rack_rail_t=4.5; X=0.4; $fn=50; brims=[ [0,0], [0,rack_...
glb/cad_f8825bc3ae8b.glb
Create a pill box with a sliding lid. The main body is a rounded rectangular box with overall dimensions of 24mm width, 42mm depth, and 12mm height. The corners should have a radius of 2.5mm. The walls of the box are 2.8mm thick. The interior is hollowed out to a depth of 8.4mm, leaving a ledge at the top for the lid t...
include <MCAD/boxes.scad> bX=24; bY=42; bZ=12; corner=2.5; col=0; row=2; divWall=1.5; wall=2.8; lip=2; snug=.99; catch=1; boxDim=[bX, bY, bZ]; over=.5; module xDiv(inSide){ xInc=inSide[0]/col; for ( i = [1 : col-1] ) { translate([i*xInc, 0, 0])cube([divWall, inSide[1]+over, inSide[2]+over], center=t...
glb/cad_7536c6be16fe.glb
Create a Hook Card, which is a credit card-sized frame containing three different sized hooks. Start by creating a flat rectangular base measuring 85.6mm by 53.98mm with a uniform thickness of 2mm. The outer perimeter of this base is a solid frame 5mm wide, with the four corners rounded using a radius of 3mm. Inside t...
$fn=30; height = 2; frameWidth = 5; difference(){ union(){ difference(){ cube([85.6,53.98,height],center=true); translate([41.3,25.49,0]) cube([3,3,height],center=true); translate([-41.3,-25.49,0]) cube([3,3,height],center=true); ...
glb/cad_9af771b2e38c.glb
Create a hook for a rail by combining two identical hollow cylindrical components. First, create a cylinder with a height of 4mm, an outer radius of 3mm, and a concentric inner hole with a radius of 2mm. From this cylinder, remove a rectangular section measuring 4mm wide, 3mm deep, and 4.6mm high, centered on the Z-axi...
union() { difference() { cylinder (h = 4, r=3, center = true, $fn=1000); cylinder (h = 4.1, r=2, center = true, $fn=1000); translate([-1,-1.9,0]) color("red") cube(size = [4,3,4.6], center = true); } translate([-5,-0.4,0]) difference(){ color("green") cylinder(h =4.2, r = 3, center = true, $fn=1000); cylinder(...
glb/cad_040c03d51ee9.glb
Create a hook for an IKEA BYGEL rail by combining several geometric primitives. Start with a central cylinder 4mm high with a 3mm radius, and remove a smaller concentric cylinder 4.1mm high with a 2mm radius to create a ring. From this ring, remove a rectangular block 4mm wide, 3mm deep, and 4.6mm high, centered on the...
union(){ difference() { cylinder (h = 4, r=3, center = true, $fn=1000); cylinder (h = 4.1, r=2, center = true, $fn=1000); translate([-1,-1.9,0]) color("red") cube(size = [4,3,4.6], center = true); }; translate([-5,-0.4,0]) difference(){ color("green") cylinder(h =4, r = 3, center = true, $fn=1000); ...
glb/cad_5505c1ff3d6b.glb
Create a Hotshoe Bracket by starting with a main rectangular block measuring 70mm wide, 30mm deep, and 15mm high. From this main body, remove several sections to create a specific mounting profile. First, remove two rectangular blocks from the left and right sides, each measuring 20mm wide, 30mm deep, and 11mm high, po...
xwidth_slider=70; xdepth_slider=30; xheight_slider=15; plategap=19.5; xwidth=xwidth_slider; xdepth=xdepth_slider; xheight=xheight_slider; translate([0,0,xdepth]){ rotate([270,0,0]){ difference(){ cube([xwidth,xdepth-0.1,xheight]){}; union(){ translate([0,0,4]){ cube([(xwidth-30)/2,xdepth,xheight-4]){}; ...
glb/cad_61cd9d65e235.glb
Create a Hotshoe Bracket by starting with a main rectangular block measuring 70mm in width, 30mm in depth, and 15mm in height. From this main body, remove several sections to create specific gaps and holes. First, remove two rectangular blocks from the left and right sides, each with a width of 20mm, a depth of 30mm, a...
xwidth_slider=70; xdepth_slider=30; xheight_slider=15; plategap=19.5; xwidth=xwidth_slider; xdepth=xdepth_slider; xheight=xheight_slider; translate([0,0,xwidth]){ rotate([0,90,0]){ difference(){ cube([xwidth,xdepth-0.1,xheight]){}; union(){ translate([0,0,4]){ cube([(xwidth-30)/2,xdepth,xheight]){}; ...
glb/cad_d6ca815c6129.glb
Create a thin rectangular plate for a phone mount with a total thickness of 3mm. The overall footprint of the plate is a rectangle where the width is 21mm and the height is 11.55mm. Centered within this plate, remove a T-shaped cutout. The T-shaped void consists of a central vertical bar and a horizontal top bar. The v...
use <tee.scad>; unit = teeUnit(); squareDimen = 2*unit + teeTopBarLength(); clearance = 0.05; module matePlate() { difference() { square([squareDimen, squareDimen*0.55]); translate([(squareDimen-unit)/2, -0.3]) { scale([1+clearance, 1+clearance, 1]) { tee(); } } } } linear_extrude...
glb/cad_13e3bc0b14c1.glb
Create a steering wheel mount base plate by extruding a specific 2D profile to a height of 115mm. The profile is composed of several joined elements. Start with a main rectangular base that is 80mm long and 1.2mm wide. At the end of this rectangle, integrate a T-shaped joint with a length of 30mm and a width of 1.2mm. ...
use <tee.scad>; unit = teeUnit(); topBarLength = teeTopBarLength(); thinWidth = 1.2; totalHeight = 20; totalLength = 80; outerRadius = 12.8; $fn=200; module basePlan() { square([totalLength - (outerRadius*2), thinWidth], center=false); rotate([0,0,25]) { square([30, thinWidth], center=false); } } module outerE...
glb/cad_c944f9232fad.glb
Create a phone mount holder consisting of a hollowed-out rectangular shell. Start by creating a solid block with overall dimensions of 13.45mm in width, 61mm in height, and 82.25mm in depth. Inside this block, carve out a central cavity to fit a phone, measuring 7.45mm in width, 58.8mm in height, and 79.25mm in depth...
use <tee.scad>; unit = teeUnit(); squareDimen = 2*unit + teeTopBarLength(); clearance = 0.05; wallWidth=3; fudge=0.01; function HolderLength() = 158.5/2 + wallWidth; phoneZ=HolderLength() - wallWidth; phoneY=78.4*0.75; phoneX=7.45; module simpleHalfPhone() { cube([phoneX+1, phoneY, phoneZ]); } module simplePh...
glb/cad_f4df5457363f.glb
Create a right-side phone mount holder. Start by creating a solid rectangular block with overall dimensions of 21.45mm in width, 81.4mm in height, and 75.5mm in depth. Hollow out the center of this block to create a shell with a wall thickness of 3mm. The interior cavity should be 7.45mm wide, 78.4mm high, and 75.5mm...
use <tee.scad>; unit = teeUnit(); squareDimen = 2*unit + teeTopBarLength(); clearance = 0.05; wallWidth=3; fudge=0.01; function HolderLength() = 158.5/2 + wallWidth; phoneZ=HolderLength() - wallWidth; phoneHeight=78.4; phoneY=phoneHeight*0.75; phoneX=7.45; module lozenge(width1, width2, height, depth) { hull() {...
glb/cad_a23042ab3661.glb
Create a CTC Prusa I3 Pro B Active Cooler support by starting with a cube that measures 10mm in width, 10mm in depth, and 8mm in height. Center a vertical cylindrical hole through the middle of the cube, starting from the top face and extending downwards. This hole must have a diameter of 6mm and a depth of 8mm. Ensure...
difference() { translate([-5,-5,0]) cube([10,10,8]); cylinder(8,3,3); }
glb/cad_afd77d9344be.glb
Create a CTC Prusa I3 Pro B Active Cooler support. Start by creating a main body with a height of 10mm, based on a complex 2D profile that is roughly rectangular but features several irregular, organic curves and indentations along its perimeter. Within this main body, remove two cylindrical holes, each with a diamet...
fudge = 0.1; module poly_rect4136(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-55.371939,-53.857420],[-56.360221,-53.507810],[-56.828971,-24.265620],[-56.932747,-23.229027],[-56.641768,-22.269306],[-56.010796,-21.489872],[-55.094595,-20.994...
glb/cad_c2066c031a39.glb
Create a CTC Prusa I3 Pro B Active Cooler support. The model is a vertical bracket designed to hold a cooling fan. Start by creating a main body that consists of a rectangular base and two vertical side walls. The side walls are 2mm thick and stand 40mm high. The base connects these walls, forming a U-shaped channel. ...
fudge = 0.1; module poly_rect3780(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-69.301760,-36.791015],[-69.042702,-25.173929],[-68.350500,-13.428003],[-66.922128,-1.963277],[-65.837183,3.535500],[-64.454561,8.810213],[-62.736384,13.809606],[-60.644774,18.482425],[-58.14...
glb/cad_f94e05f463c3.glb
Create a foldable FPV quadcopter arm with a height of 10mm. The main body is a long rectangular beam 152mm long and 20mm wide. At the motor end, create a cylindrical motor mount with an outer radius of 19mm and a height of 10mm. This mount features a central hole with a radius of 16mm and a depth of 3.5mm. Around the...
baseheight=3.5; foldbase=12; motorbasemin=16; motorbasemax=20; armlength=152; armheight=10; armwidth=20; armwidthmin=20; armwidthmax=38; wallwidth=2; motorhole=32; motorwallwidth=3; boltholed=3.5; h=(armwidthmax-armwidthmin)/2; l=sqrt(armlength*armlength/4+h*h); walllenght=2*l+(2*l-armlength)/3; wallrad=walllenght*180/...
glb/cad_7de80d63615d.glb
Create a vacuum adaptor consisting of a hollow base and a tapered top section. Start by creating a hollow cylinder for the base with an outer diameter of 56.5mm, an inner diameter of 53.5mm, and a height of 47.5mm. On the outer wall of this base, add a small cylindrical nub with a diameter of 5mm and a height of 3.3mm,...
$fn=120; vac_size = 56.5; vac_inside =32.5; vac_nodule_dia = 5; vac_nodule_dist = 20; vac_nodule_h = 3.3; vac_pipe_gap= 15; pipe_size_big = 53.8; pipe_size_small = 48.5; pipe_outside = 30; pipe_space = 10; pipe_wall = 6; module vacside(){ difference(){ cylinder(h=vac_inside+vac_pipe_gap, r= vac_size/2)...
glb/cad_88ac4f1f4433.glb
Create a flower pot consisting of a tapered main body and a thick rim. Start by constructing the main body as a hollowed conical frustum with a height of 75mm; the outer wall should taper from a base radius of 39mm up to a top radius of 57mm. Create the interior cavity of this body by removing a smaller conical frustum...
module pot() { translate([0,0,75]) difference() { cylinder(r=58, h=25); translate([0,0,-0.1]) cylinder(r=56, h=25.2); } difference() { cylinder(r1=39, r2=57, h=75); translate([0,0,-0.1]) cylinder(r1=35, r2=53, h=75.2); } difference() { translate([0,0,-5]) cylinder(r=39, h=5); translat...
glb/cad_b642e469e1db.glb
Create a High Stability Parametric Z-Probe Holder. Start with a base consisting of a cylinder with a radius of 8mm and a height of 8mm. Attach a rectangular block to this cylinder measuring 12mm by 15mm by 8mm, centered on the X-axis. Add a second rectangular block measuring 20mm by 17mm by 8mm, centered on the X-axis ...
probe_height=30; switch_len=20; switch_height=10; switch_width=6.4; module base() { union() { cylinder(r=8,h=8, center = false,$fn=64); translate ([-6,0,0]) cube([12,probe_height/2,8]); translate ([-switch_len/2,(probe_height/2)-4,0]) cube([switch_len,switch_height+7,8]); translate ([-10-6,(probe_height/2)+2,0]) ...
glb/cad_3dc0fdd14a1a.glb
Create a VESA NTC C.H.I.P. Mount consisting of a base plate and a mounting bracket for a single board computer. Start with a base plate 1.2mm thick. Create two mounting circles with a diameter of 15mm, positioned 100mm apart from center to center. Center a 4mm diameter hole through each circle. Attached to the base ...
hole_diameter = 4; mount_diameter = 15; vesa_size = 100; base_thickness = 1.2; wall_thickness = 1.6; use_four_holes = 0; mount_offset = 20; chip_length = 60.5; chip_width = 41.5; chip_height = 18; riser_height = 3; riser_width = 0.8; mount_top = 1; mount_bottom = 1; mount_left = 0; mount_right = 0; riser_top = 1; riser...
glb/cad_acd4b45a730c.glb
Create a webcam cover by constructing a composite vertical structure with a total height of 200mm. Start with a base rectangular slab that is 40mm wide, 10mm thick, and 200mm high. Attached to this base, add a second rectangular section that is 10mm wide and 200mm high, positioned so it sits adjacent to the first slab ...
high = 200; breite = 10; bruecke = 130; kreis = 30; auslaufer = 50; union(){ cube([auslaufer-breite,breite,high]); translate([0,breite,0]){ cube([breite,bruecke,high]);} difference() { translate([kreis,breite + bruecke,0]){ cylinder(h = high, r=kreis, centre = true );} translate([kreis,breite + bruecke,0]){ c...
glb/cad_ce1a3e201206.glb
Create a DFRobot Romeo v2.2 case base. Start with a solid rectangular block measuring 94mm by 89mm with a height of 19mm. Hollow out the center by removing a rectangular volume of 90mm by 85mm by 17mm, positioned 2mm from the bottom and 2mm from the side walls, leaving a base thickness of 2mm and wall thickness of 2mm....
ep=2; h=15; $fn=50; module bas(){ difference(){ cube([90+2*ep,85+2*ep,2*ep+h]); translate([ep,ep,ep])cube([90,85,ep+h+1]); translate([ep+20,ep+20,0])cylinder(d=3,h=5*h); translate([ep+70,ep+20,0])cylinder(d=3,h=5*h); translate([ep+20,ep+70,0])cylinder(d=3,h=5*h); translate([ep+70,ep+70,0])cyli...
glb/cad_0e7d6ec99364.glb
Create an Apple Device Cord Holder consisting of a C-shaped clip and an attached base. Start by creating a rectangular clip with an outer width of 28.5mm, a thickness of 6mm, and a length of 50mm. Hollow out the center of this clip to create a channel that is 20.5mm wide, 6mm deep, and 50mm long, leaving walls that are...
clipLength = 50; width = 6; openingDiameter = 20.5; cordDiameter = 3.6; render() rotate([90, 0, 0]) cordHolder(cordDiameter, clipLength, width, openingDiameter); tinyVal = 0.001; module cordHolder(cordDiameter, clipLength, width, openingDiameter) { adjCordDiameter = cordDiameter + 0.4; clip(clipLength, wi...
glb/cad_e4581f3fa3ca.glb
Create a customizable oiler nozzle cap consisting of three stacked coaxial sections with a uniform wall thickness of 2mm. Start with a bottom conical tube that is 20mm high, with an outer diameter tapering from 10.5mm at the base to 7.5mm at the top, and an inner diameter tapering from 6.5mm to 3.5mm. Above this, add a...
wallThickness = 2; topDiameter = 3.5; topHeight = 5; middleDiameter = 3.5; middleHeight = 3; bottomDiameter = 6.5; bottomHeight = 20; capHeight = wallThickness; mainColor = [0.117, 0.565, 1]; highlightColor = [0.384, 0.726, 1]; $fa = 0.3; $fs = 0.3; delta = 0.1; color(mainColor) { difference() { transla...
glb/cad_3059d92ea677.glb
Create a wrench for a 32mm hex nut. Start by creating a main cylindrical body with a radius of 18mm and a total height of 52mm. Inside this cylinder, remove a hexagonal prism with a circumradius of 16mm and a height of 40mm, centered at the base, to create the socket. Attached to the top of the cylinder, add a handle....
NUT_SIZE = 16; HOLLOW = 40; HOLE = 3; module polygon(N=3, A=0, R=0, S=0, h=0) { N = (N < 3 ? 3 : N); angle = 360/N; angleA = angle/2; if (A > 0) { S = 2 * A * tan(angleA); R = (A * tan(angleA)) / sin(angleA); _build_polygon(N=N, R=R, h=h); } else { if ( S > 0 ) { ...
glb/cad_cd86b127a609.glb
Create a lightweight top-load badge holder by starting with a main rectangular body centered on the origin. Construct the outer shell using a Minkowski sum of a 54mm by 87.31mm by 2.4mm cube and a sphere with a 2mm radius to ensure all edges are rounded. At the top center of the holder, add a small rectangular extensio...
$fn = 40; badge = [54, 87.31, 2.4]; module copy_mirror(vec = [0, 1, 0]) { children(); mirror(vec) children(); } union() { difference() { union() { minkowski() { cube([badge[0], badge[1], badge[2]-2], center = true); sphere(r = 2, center = true); ...
glb/cad_15e916f2187d.glb
Create a shoe rack bracket designed to hold a 18.27mm diameter pipe. Start with a base plate that is 10mm thick and 50mm wide. The main body of the bracket extends 82mm from the wall. The section that grips the pipe should be a cylinder with a diameter of 24.27mm (the pipe diameter plus 6mm) and a height of 12mm. The...
$fn=120; Lw=82; Dt=18.27; DtH=10; WL=50; WH=10; HH=DtH+2; taperLength=0; dOkr=30; taperAngle=0; module shHole(diam){ cylinder(d=diam,h=40); cylinder(d1=diam+4,d2=diam,h=3); translate([0,0,-80])cylinder(d=diam+4,h=80); } module cutout () { hull(){ translate([-10,(Dt+6)/2+dOkr/2,0])c...
glb/cad_0d6edd29f0ac.glb
Create a shoe rack bracket designed to hold a 18.27mm diameter pipe. The main body is a horizontal arm 82mm long and 12mm thick. At the mounting end, create a vertical plate 50mm wide and 10mm thick. On the top surface of the arm, integrate a semi-cylindrical cradle with a diameter of 24.27mm and a depth of 16mm to s...
$fn=120; Lw=82; Dt=18.27; DtH=16; WL=50; WH=10; HH=DtH+2; taperLength=15; dOkr=30; module shHole(diam){ cylinder(d=diam,h=40); cylinder(d1=diam+4,d2=diam,h=3); translate([0,0,-80])cylinder(d=diam+4,h=80); } module cutout () { hull(){ translate([-10,(Dt+6)/2+dOkr/2,0])cylinder(d=dOk...
glb/cad_50c5a31ce9a1.glb
Create a knurled adjustment knob for a router parallel guide. Start by creating a cylindrical base with a diameter of 16mm and a height of 3mm. Above this, add a conical transition section 3mm high that expands from the 16mm base diameter to a 20mm outer diameter. Atop this transition, place a 20mm high cylinder with a...
knob_outer_diameter = 20.0; knob_height = 20.0; knob_base_diameter = 16.0; knob_base_collar_height = 3.0; knob_base_height = 3.0; iso_diameter = 6.0; iso_nut_diameter = 11.5; nut_cavity_depth = 20; knurl_polyhedron_width = 5.0; knurl_polyhedron_height = 5.0; knurl_polyhedron_depth = 2.0; cylinder_ends_smoothed_heigh...
glb/cad_ea4e4131d366.glb
Create a Round Peg and Hole Fitment Test consisting of two separate components. First, create a standalone peg as a smooth cylinder with a radius of 2.5mm and a height of 30mm. Second, create a rectangular base plate measuring 115mm in length, 15mm in width, and 5mm in height. In this base plate, create a series of ele...
cylinder( h = 30, r = 2.5, $fn = 100 ); translate( [0, 20, 0] ) { difference() { cube( [115, 15, 5] ); translate( [5, 7, 0]) cylinder( h = 5, r = 2.5, $fn = 100 ); translate( [15, 7, 0]) cylinder( h = 5, r = 2.55, $fn = 100 ); translate( [25, 7, 0]) cylinder( h = 5, r = 2.6, $fn...
glb/cad_09c90c7c0400.glb
Create a Geo Cube puzzle by constructing 12 identical components. Each component is based on a tetrahedron with a side length of 50mm. For each part, integrate two hinge joints on two of the edges. Each hinge consists of a cylindrical barrel with an outer diameter of 2.5mm and an inner hole diameter of 1.0mm to accom...
$fn = 50; module geocube(side){ polyhedron( points=[[0,0,0], [side,0,0], [0,side,0], [side/2,side/2,side/2]], faces=[[0,1,2],[0,3,1],[0,4,5,1],[2,3,0],[1,3,2]] ); }; $fs = 0.5; module clearanceBlock(clearanceLength,clearanceHeight,hingeOutsideDiameter,hingePla...
glb/cad_46908f478f31.glb
Create a Michelson Interferometer mounting component. Start with a main rectangular body measuring 60mm in width, 60mm in height, and 10mm in depth. From this body, remove a central rectangular section measuring 46mm by 46mm with a depth of 11mm to create a recessed area. Within this recessed area, create two small s...
include <nuts_and_bolts.scad>; body_w = 60; body_h = 60; body_d = 10; standoff = 0; m_plate_w = 46; m_plate_h = 46; m_plate_d = 2; m_plate_gap_to_body_w = 2; m_plate_gap_to_body_h = 2; m_plate_hole_radius = 3; magnet_h = 3.5; magnet_w = 3.5; magnet_d = 3.5; magnet_edge_offset = 2; spring_w = 2;spring_h=8;spring_d...
glb/cad_b947a1706f6c.glb
Create a lens holder for a Michelson Interferometer. Start by creating a main cylindrical sleeve with an outer diameter of 29.5mm and a height of 12mm. Bore a hole through the center of this cylinder with a diameter of 26.5mm and a height of 14mm to allow a lens to fit securely. Attached to the side of this cylinder,...
d_lens = 26.5; h_lens = 12; ep = 2; difference(){ cylinder(d = d_lens + 2*ep, h = h_lens); translate([0,0,-1]) cylinder(d = d_lens, h = h_lens+2); } translate([-15-d_lens/2,0,h_lens/2]) rotate([90,0,0]) { difference(){ cube([30,h_lens,2],true); union(){ translate([0,0,-2]) cylinder(d = 3.5, h = 4, $fn =...
glb/cad_58eec7d9ef14.glb
Create a lens mount for a Michelson Interferometer. Start by creating a main cylindrical ring with an outer diameter of 31mm and an inner diameter of 27mm, with a total height of 10mm. Centered within this ring, remove a cylindrical core with a diameter of 27mm and a height of 10mm, and add a smaller concentric relief ...
d_lens = 27; ep = 2; difference(){ union(){ cylinder(d = d_lens + 2*ep, h = 10); translate([0,-d_lens/2,0]) rotate([0,0,-45])cube([50,20,2]); translate([22+d_lens/2,-30,1]) cube([44,14,2],true); } translate([0,0,ep]) cylinder(d = d_lens, h = 10); translate([0,0,-1]) cylinder(d = d_lens - 2*ep, h = 10); tran...
glb/cad_2839d8595bb4.glb
Create a lens mount for a Michelson Interferometer. Start by creating a wide, flat cylindrical base with a diameter of 43mm and a height of 2mm. Centered on top of this base, add a second cylinder with a diameter of 37mm and a height of 5.5mm, positioned so its bottom sits 2mm above the very bottom of the base. Finally...
d_lens = 39; ep = 2; difference(){ union(){ translate([0,0,ep]) cylinder(d = d_lens - 1, h = 5.5); cylinder(d = d_lens + 2*ep, h = ep); } translate([0,0,-1]) cylinder(d = d_lens - 1 - 2*ep, h = 12); }
glb/cad_06e6a027e802.glb
Create a Michelson Interferometer mounting component. Start with a main body block measuring 44mm wide, 49mm high, and 9mm deep. From the center of this block, remove a rectangular section measuring 38mm wide and 38mm high, with a depth of 10mm, to create a recessed cavity. At the bottom of the main body, add a mounti...
include <nuts_and_bolts.scad>; body_w = 44; body_h = 44; body_d = 9; standoff = 5; m_plate_w = 34; m_plate_h = 34; m_plate_d = 2; m_plate_gap_to_body_w = 2; m_plate_gap_to_body_h = 2; m_plate_hole_radius = 5.2; magnet_h = 3.5; magnet_w = 3.5; magnet_d = 3.5; magnet_edge_offset = 2; spring_w = 2;spring_h=8;spring_...
glb/cad_f08ab77add6c.glb
Create a mounting bracket for a Michelson Interferometer consisting of a flat base and a vertical wall. Start by creating a rectangular base plate measuring 28mm in length, 14mm in width, and 2mm in height, centered on the origin. Drill two cylindrical holes completely through the base plate, each with a diameter of 3....
translate([0,0,1]){ difference(){ cube([28,14,2],true); union(){ translate([8,0,-2]) cylinder(d = 3.5, h = 4, $fn = 50); translate([-8,0,-2]) cylinder(d = 3.5, h = 4, $fn = 50); } } } translate([14,-7,0]) cube([3,14,20]);
glb/cad_be06b56e3d8b.glb
Create a little scoop consisting of a bowl and a handle. For the bowl, create a hollow hemisphere with an inner radius of 6mm and a wall thickness of 1.5mm. Extend the walls of this hemisphere vertically upward by 4mm to create a cylindrical rim, ensuring the inner cavity remains a consistent 6mm radius. Attach a hand...
scoop_inner_radius = 6; scoop_thickness = 1.5; lip_thickness = 0.0; scoop_extra_height = 4; blade_length = 6; handle_dim = [30, 6, 2]; support_size = 8; support_thickness = 1.5; $fn=128; module scoop_hemisphere() { difference() { difference() { sphere(scoop_inner_radius + scoop_thickness); ...
glb/cad_1f8fee58e371.glb
Create a Parol lantern ornament. Start by constructing a five-pointed star centered at the origin. Each star point is formed by a cone with a base width of 20mm and a length of 50mm, tapering to a point. Surround the star with a circular torus ring. The ring's centerline should have a radius of 50mm, and the tube of ...
star_points = 5; star_thickness = 0; point_length = 50; point_width = 20; point_thickness = 5; point_points = 4; post_diameter = 15; post_sides = 3; each_angle = 180/point_points; mounting_post = true; thread_hole = false; wall_mount_hole = true; torus = true; top_half = true; bottom_half = false; if( top_half ) { tr...
glb/cad_367a646291c8.glb
Create a parametric telescope eyepiece extender with a total length of 80mm and a wall thickness of 2mm. The object consists of three coaxial sections. Start with the eyepiece end: create a hollow cylinder 25mm high with an outer diameter of 50.9mm (based on a 2-inch nominal size plus tolerance) and an inner diameter...
eyepieceSize = 2; telescopeFocuserSize = 1.25; extenderLength = 80; wallThickness = 2; eyepieceLength = 25; endstopLength = 20; eyepieceTolerance = 0.1; eyepieceSizemm = eyepieceSize*25.4; telescopeFocuserSizemm = telescopeFocuserSize * 25.4; eyepieceEnd(eyepieceLength,eyepieceSizemm,wallThickness,eyepieceToleranc...
glb/cad_cb87d22d5ba8.glb
Create a Parametric Slide consisting of a base rail and a sliding carriage. First, construct the base rail by extruding a profile 60mm in length. The profile is 30mm wide and 7.5mm high. The cross-section features a central recessed channel with a dovetail geometry, flanked by two raised outer rails. The outer rails ...
Slide_length = 60 ; Slide_width = 30 ; clearance = 0.1 ; carriage_length= 20 ; $fn = 100 ; View_parts = 4 ; Slide_height=Slide_width/4; r=Slide_width*0.018; podfcl=Slide_width*0.22; rfbt=(Slide_width/4)*0.3333333; bcr=Slide_width*0.1625; if (View_parts ==1) base_rail_extruded (); if (View_parts ==...
glb/cad_60cb4059a514.glb
Create a hexagonal battery case consisting of two identical mirrored trays that fit together. Each tray features a honeycomb grid of cylindrical cells designed to hold batteries with a diameter of 12mm and a height of 47mm. For each tray, arrange the cells in a grid 3 columns wide and 2 rows deep. The outer walls of ...
_batteryDiameter = 12; _batteryHeight = 47; _columns = 3; _rows = 2; _walls = 2; _innerWalls = 1; _base = 1.5; _magnetCylinderDepth = 4; _magnetCylinderDiameter = 3; _lipHeight = 5; _fitGap = 0.1; _labelDepth = -0.6; font = "Impact"; letter_size = 9; letter_height = 2.5; letter_line_space = 3; letter_text_li...
glb/cad_cdc3718428db.glb
Create an offset pipe reducer consisting of two concentric hollow cylinders connected by a tapered transition section. First, create the lower pipe as a hollow cylinder with an inner diameter of 32mm, an outer diameter of 40mm (4mm wall thickness), and a height of 20mm. Second, create the upper pipe as a hollow cyl...
lower_diameter = 32; lower_height = 20; lower_wall = 4; trans_height = 20; trans_angle = 0; trans_ratio = 100; in_parallel = true; segments = 36; upper_diameter = 12; upper_height = 20; upper_wall = 2; ang = 360 / segments; $fn = segments; fudge = 1; lower_btm = 0; lower_top = lower_btm + lower_height; uppe...
glb/cad_14e7f66111ba.glb
Create a 6-inch rack unit for an Odroid C1. The model consists of a front plate, a main cabinet, a lid, and a back plate. The front plate is a rectangular slab 155mm wide and 44.5mm high (1U) with a thickness of 3mm. It features four 4.6mm diameter mounting holes located 10mm from the corners to align with standard ra...
$fn = 50*1; sixinch = 155*1; width = 155-20-20; unit = (44.5/19)*6; gauge = 3*1; gauge_box = 2*1; Part = "a"; Units = 4; Depth = 115; screw_head = 7.4; screw_head_height = 2.5; screw_dia = 3; screw_hole = 2.3; screw_length = 12; nut_4mm = 8.1; slip = 0...
glb/cad_8be9692bf735.glb
Create a charging stand for a Fitbit Charge HR. Start with a base rectangular box that has external dimensions of 38.4mm in width, 27.6mm in depth, and 22.96mm in height, with a wall thickness of 1.2mm. This base box should be hollowed out, leaving only the outer shell, and must feature a rectangular cutout on the side...
thickness=1.2; chargerX=36; chargerY=27.6; chargerZ=20.48; chargerTotalY=48.66; chargerUSBslotY=16; chargerUSBslotZ=7; watchX=36; watchY=12; watchZ=22; watchUSBholeX=6.82; watchUSBdistX=5.4; chargerUSBslotX=thickness + 2; plateY=chargerTotalY - chargerY; watchUSBholeZ=watchZ; base(); module base() { translate([...
glb/cad_21023a10e5f3.glb
Create a 3D text layout consisting of two rows of characters. The overall footprint for the text area is 49mm wide by 54mm high. Each character should be extruded to a height of 2mm. The first row contains the characters "AM1" and "AM2" placed side-by-side. The second row, positioned directly below the first, contains...
intX = 45; intY = 50; extWall = 2; strings = [["AM1", "AM2"], ["PM1", "PM2"]]; textSize = 45; module deboss(strings = [["a", "b", "c"], ["1", "2", "3"]], rot = 0) { xTrans = (intX + 2*extWall)/len(strings[0]); yTrans = (intY + 2*extWall)/len(strings); textHeight = textSize/100 * yTrans; rotate([0, 0, 90 * ...
glb/cad_cb578fdad7e4.glb
Create a wall-mounted multiple phone holder consisting of six slanted shelves and two mounting tabs. Each shelf is a thin plate 1.6mm thick, with a length of 123.2mm and a width of 19.6mm. The shelves are angled upwards at 10 degrees relative to the back plane. The shelves are stacked vertically with a gap of 1.6mm be...
phone_height = 120; phone_width = 90; phone_thickness = 20; shelf_angle = 10; shelf_width_percentage = 66; number_of_shelves = 6; thickness = 1.6; sides = 1; tabs = 1; tab_width = 15; tab_height = 20; tab_hole_diameter = 4; width_adjusted = phone_width * shelf_width_percentage / 100 + phone_thickness / tan(90 - shelf_...
glb/cad_a0f550f2561c.glb
Create a holder for a CD label tool by starting with a solid base that is 5mm thick. The overall footprint is a semi-circular shape with an outer diameter of 62mm. From this base, remove a central circular hole with a diameter of 18mm that passes completely through the thickness. Additionally, carve out a larger centra...
thickness=5; od=62; id1=44; id2=18; intersection() { translate([-od/2,-od*0.9,0]) cube([od,od,thickness]); difference() { hull() { cylinder(d=od, h=thickness); translate([-od/2,0,0]) cube([od,od/2, thickness]); } cylinder(d=id2, h=thickness); translate([0,0,thickness...
glb/cad_2146d807ec65.glb
Create a forecastle deck for a pirate ship. Start with a main deck floor that is a rectangular slab 202mm wide, 300mm deep, and 5mm thick, positioned from x=-300 to -100 and y=-150 to 150, with the top surface at z=40. Integrate a hull-shaped base that blends into this deck, featuring a central cylindrical section wi...
include <map3.scad> include <map2.scad> include <map1.scad> include <upper_hold.scad> include <boat_frame.scad> include <lib.scad> module window() { } deck_floor(); module deck_floor() { difference() { union() { difference() { intersection() { union() { ...
glb/cad_79ebae39d4de.glb
Create an anti-rollout insert for a paintball marker. Start by creating a hollow cylinder with an outer diameter of 21.97mm (0.865 inches) and an inner diameter of 17.45mm (0.685 inches), with a total height of 1.2mm. To this ring, add three identical radial prongs spaced equally at 120-degree intervals. Each prong is ...
OD_inch = 0.865; ID_inch = 0.685; Lip_Thickness = 0.4; N = 3; D = 1; PD = 2.5; Prong_Thickness=0.2; $fn=64; anti_rollout(); module anti_rollout() { intersection() { cylinder(h=Lip_Thickness*3, r=25.4*OD_inch/2, center=true); union() { difference() { cylinder(h=Lip_Thickness, r=1.01*25.4*OD_inch/2); ...
glb/cad_a454f62ed05d.glb
Create a tripod foot by first forming a composite solid consisting of a cylinder with a 24mm diameter and 20mm height, topped with a sphere of the same 24mm diameter centered at the cylinder's top face. Constrain this combined shape by intersecting it with a larger sphere of 27mm diameter centered at the origin. From t...
module manfrotto_foot () { difference () { intersection() { union() { cylinder (d=24,h=20, $fn=64); translate ([0,0,20]) sphere (d=24, $fn=64); } sphere (27, $fn=128); } translate ([0, 0, -1]) cylinder (d=15, h=21, $fn=64)...
glb/cad_45cf71d01bc8.glb
Create a custom OptiTrack marker stand by starting with a central cube that measures 10mm in width, 10mm in depth, and 10mm in height. From this central cube, extend six identical marker arms. Each arm consists of a thin cylinder with a diameter of 2.5mm and a length that varies randomly between 20mm and 35mm. At the e...
x_measurement = 10; y_measurement = 10; z_measurement = 10; diameter = 10; marker_count = 5; max_length = 7; seed = 150; translate([0,0,z_measurement/2]) cube([x_measurement, y_measurement, z_measurement], center=true); rotX = rands(0, 180, marker_count, seed); rotY = rands(0, 180, marker_count, seed); rotZ = r...
glb/cad_51400253c3ec.glb
Create a repair part for alpine equipment by constructing a composite block. Start with a central rectangular base measuring 50mm in length, 10mm in width, and 15mm in height. Attach a smaller rectangular block to the side, measuring 35mm in length, 4mm in width, and 15mm in height, centered along the length. Add a thi...
play=0.2; $fa = 3; $fs = 1; difference() { union(){ translate([0,10/2,15/2-4]) cube([50,10,15],center=true); translate([0,-4/3+1,15/2-4]) cube([35,4,15],center=true); translate([0,-13/2-2,15/2-4]) cube([35-2*play,13,15],center=true); for(d=[35/2-...
glb/cad_2fd8d57f8f35.glb
Create a parametric timing belt in the shape of a thin, closed circular loop. The belt should have a total width of 11.8mm. Construct the belt by repeating a specific tooth profile 100 times, rotated evenly around a central axis. Each tooth is a linear extrusion 11.8mm high based on a 2D polygon profile. The profile ...
belt_width=11.8; teeth=100; experimental_break=0; additional_extension=0.58; teeth_lenght=1.525411; teeth_extension_bottom=0.447675+additional_extension+4/teeth; teeth_extension_top=0.447675+additional_extension; radius=(teeth_extension_top+teeth_lenght)*teeth/(2*PI); teeth_loop=experimental_break==0?teeth:experiment...
glb/cad_09a9121398bd.glb
Create a battery holder box with a wall thickness of 1mm. The outer dimensions of the box are 16mm deep, 56.5mm wide, and 118mm high. The box is an open-ended rectangular sleeve with a hollow interior measuring 14mm deep, 54.5mm wide, and 116mm high. The box features two small circular mounting holes for wall fixation...
use <Write.scad> D = 14; L = 50.5; D = 10.3; L = 44.1; Writing = "Nuove"; N = 8; T = 1; hole_for_screws = false; Sup_carving_h = hole_for_screws?D:0; Tolerance = 5.0; H = (D + Tolerance) * ((hole_for_screws?1:0)+N) + T * 2; W = L + Tolerance + T * 2; Depth = (D + Tolerance) + T * 2; $fn=0;$fs=1;$fa=2; %color("l...
glb/cad_9d1802ad2dd1.glb
Create a sugar packet holder by starting with a solid rectangular block measuring 39mm wide, 64mm long, and 42.3mm high. Hollow out the center of this block to create a container with a wall thickness of 2mm on all sides and a base thickness of 2mm. The resulting internal cavity should measure 35mm wide, 60mm long, and...
iw = 35; il = 60; ih = 40.3; th = 2; fn = 64; squish = 1; module packetholder(width=iw,sq=squish) { difference() { cube([width+th*2,il+th*2,ih+th],center=true); translate([0,0,th/2+0.01]) cube([width,il,ih],center=true); translate([0,0,ih + (width-ih)/2 - width/2]) scale([1,1,sq]) rotate([90, 0,0]) cy...
glb/cad_f9cd255cb189.glb
Create a Customizable Enclosure Intake Vent consisting of two primary components: an exterior faceplate and an interior filter housing. First, create the exterior plate as a rectangular slab with total dimensions of 120mm by 120mm and a thickness of 2mm. Round the four outer corners with a 6mm radius. In the center of...
$fn=50; intake_hole_width=90; intake_hole_height=90; insert_depth=13; outer_lip_width=15; outer_lip_radius=6; total_width = intake_hole_width + outer_lip_width * 2; total_height = intake_hole_height + outer_lip_width * 2; intake_filter_space=8; screw_hole_radius=4/2; screw_column_radius=screw_hole_radius + 1.5; scre...
glb/cad_9014bc3e724a.glb
Create a simple push bike model centered around two wheels. Construct each wheel as a cylinder with a diameter of 30mm and a width of 15mm. Hollow out the center of the wheels to create a rim with a wall thickness of 7.5mm. Add a central hub cylinder with a diameter of 5mm and a width of 15mm, capped by a wheel nut cyl...
module wheel(dia=30, tyre=7.5, width=15) { union() { translate([0,-width/2,0]) { rotate([-90,0,0]) { difference() { cylinder(h=width, r1=dia, r2=dia); translate([0,0,-0.5]) cylinder(h=width + 1, r1=dia - tyre, r2=dia - tyre); } cylinder(h=width, r1=dia/6, r2=dia/6); translate([0,...
glb/cad_6c1dec00105b.glb
Create an optical sensor support consisting of two primary components: a motor body and a sensor probe assembly. First, create the motor body as a rectangular plate 33mm wide, 20mm deep, and 2mm thick. Remove a central rectangular section 11mm wide and 12mm deep, and a semi-circular cutout with a 12mm diameter on one ...
$fn=30; alca_esp=2.5; pino_alt=62; pino_alt_extra=20; pino_larg=4; pino_prof=4; pino_folga=1.0; corpo_motor_prof=2; corpo_sonda_prof=2; box_larg=14.25; box_alt=5.25; box_prof=9; box_loc_v=60; sup_loc_v=40; gfix=0.1; module corpo_motor() { difference() { cube([33,20,corpo_motor_prof]); union()...
glb/cad_ff654ffd75a3.glb
Create a shelf support pin by combining a cylinder and a rectangular block. Start with a cylinder 6mm tall with a diameter of 4.7mm, and join it to a centered rectangular block measuring 9.4mm in width, 4.7mm in depth, and 6.1mm in height. To finish the part, remove a 2mm diameter vertical hole through the center of th...
difference() { union() { translate([0,0,6]) cylinder(6, d=4.7, $fn=50); translate([4.7/2,0,3]) cube([4.7*2,4.7,6.1], center=true); } translate([0,0,-1]) cylinder(18, d=2, $fn=50); translate([4.7/2+2,0,3]) cube([3,2,8], center=true); }
glb/cad_1fa7a7e1791d.glb
Create a Syringe Holder consisting of two separate parts: a main plunger body and a tip. Construct the plunger body as a series of stacked cylinders. The base section is a cylinder with a diameter of 17mm and a height of 42.8mm. Above this, add a thin middle transition cylinder with a diameter of 15mm and a height of ...
$fn=180; od1 = 17; h1 = 42.8; od2 = 15; h2 = 1.0; od3 = 17.5; h3 = 1; total_height = h1 + h2 + h3; echo("*** total height: ", total_height); chamfer = 0.5; screw_hole_len = total_height - 2; screw_hole_diameter = 13; tip_cone_height = 2.8; tip_top_diameter = 2; tip_base_height = 0.8; tip_base_diameter = od3; ep...
glb/cad_1463fb41ff41.glb
Create an extruded smiley face bauble by combining several geometric forms. Start with a central sphere with a radius of 55mm, flattened along the Z-axis to 35% of its height. Add a central vertical column created by extruding a 40mm square to a height of 100mm, centered on the origin, with a 150-degree twist applied a...
module smiley() { linear_extrude( file="../Downloads/smily.dxf", twist=50, height=100, center=true); } union() { scale([1,1,0.35]) sphere(55); linear_extrude( height=100, center=true, twist=150, slices=20 ) { square(40, center=true); } translate([0,0,60]) rotate([0,90,0]) rotate_extru...
glb/cad_7352b630f05d.glb
Create a bed-levelling test consisting of nine identical small cylinders. Each cylinder must have a radius of 10mm and a height of 1mm. Arrange these cylinders in a square 3x3 grid pattern on a single plane. Position the central cylinder at the origin (0, 0, 0), with the remaining eight cylinders spaced exactly 80mm ap...
dist=80; for(x=[-1:1:1]) { for(y=[-1:1:1]) { translate([x*dist,y*dist,0]) { cylinder(1,r=10); } } }
glb/cad_a5b081ee90f6.glb
Create a parametric RC wheel with a total diameter of 74mm and a width of 48mm. The main body is a hollow cylinder with a wall thickness of 2mm. At both the top and bottom edges of the outer rim, create a tire bead groove consisting of a lip 2mm thick and an inner lip 1mm thick, separated by a 4mm gap. In the center o...
module Hex_Prism(d,h) { difference() { cylinder (r=1*d,h=h,center=true); union() { for (i=[0:1:5]) { rotate([0,0,i*60]) translate([d,0,0]) cube([d,1.1*d,1.01*h], center=true); } } } } module TC_Wheel(wd,ww,hd,off) { module TC_Wheel_Tire_Groove() { olt = 2; ilt = 1; gap=4; translate([0,0,-w...
glb/cad_b856ded5caf1.glb
Create an LVDS MV29 MV59 electronics box. The main body is a rectangular shell with outer dimensions of 189.5mm in length, 43mm in width, and 20mm in height. The walls have a thickness of 1.2mm. The interior is hollowed out, leaving a central cavity of 186.1mm by 40.6mm by 17.6mm. On the front face, create a series of...
$fn=32; box_x=189.5; box_y=43; box_z=20; wall=0.4*3; z_offset=2; module vga(xl=14.0,xh=16.5,y=8.5,d=2){ translate([-25/2,y/2,0])circle(d=4); translate([+25/2,y/2,0])circle(d=4); translate([-xh/2,d/2,0])hull(){ translate([0,y,0])circle(d=d); translate([xh,y,0])circle(d=d); translate(...
glb/cad_3906b964abd4.glb
Create a BigBox Dual Hybrid mounting bracket for a BLTOUCH z probe. Start by extruding a 2D polygon to a height of 10mm, centered vertically. The polygon vertices are defined at [0,0], [5.25, 11.5], [20.25, 11.5], [25.5, 0], [19.25, 0], [19.35, 9.5], and [6.15, 9.5], returning to [6.15, 0]. From this solid, remove a ce...
bkt_h = 11.5; pgon =[[0,0],[5.25,bkt_h],[20.25,bkt_h],[25.5,0.0],[19.25,0.0],[19.35,bkt_h-2.0],[6.15,bkt_h-2.0],[6.15,0.0]]; channel = [[0,2],[5.25,2],[5.25,bkt_h],[0,bkt_h]]; difference() { linear_extrude(height=10,center=true) polygon(pgon); translate([0,0,0])linear_extrude(height=7,center=true) polygon(chann...
glb/cad_a913272c251a.glb
Create a Flat Clamp for a CNC machine. Start with a rounded rectangular base that is 80mm wide, 20mm high, and 6mm deep, with corner radii of 8mm. On the top face, create a central cutout that is 60mm long and 6.35mm wide (matching the diameter of a 1/4" bolt), centered along the length and height. At one end of the ...
part="hclamp"; boltd=6.35; hcw=80; hch=20; hcd=6; hnotch=1; vcw=76; vch=20; vcd=16; vcrd=12; ctray_count=12; gripd=40; if(part=="clamp_tray") clamp_tray(); else if(part=="dual_tray") { clamp_tray(); translate([ctray_count*9,0]) m4_tray(left=0); } else if(part=="rod_tray") { m4_tray(); } else i...
glb/cad_8de54aa03142.glb
Create a Raspberry Pi enclosure base. Start by creating a solid rectangular block with dimensions 95mm in width, 66mm in depth, and 13mm in height. Apply a 2mm fillet or rounded edge to all exterior corners and edges of this block. Hollow out the center of the block by removing a smaller rectangular volume from the top...
use <rpi.scad> board_x = 85.0; board_y = 56.0; board_z = 1.1; base_x = board_x+10; base_y = board_y+10; base_z = 13; base_width = 1.5; module base_block() { difference() { base(); translate([base_width,base_width,base_width]) cube([base_x-base_width,base_y-base_width,base_z]); } } module base() { $fn=50...
glb/cad_6c620ffab009.glb
Create a Palindrome trinket consisting of a circular ring with embedded text. First, construct a thin circular torus with a major radius of 190mm and a cross-sectional circle radius of 4mm. Create a hollow center for this ring by removing a concentric inner torus with a cross-sectional radius of 5mm, leaving a thin cir...
RingRadius = 160; size=50; txtfont="Showcard Gothic"; ExtrudeHeight=30; str = "NURSEISPYGYPSIESRUN"; incs = (360/len(str)); difference(){ theText(); theRingHole(); } theRing(); module theRing(){ translate([0, 0, ExtrudeHeight/2]){ rotate_extrude(convexity = 10, $fn = 50) translate([190, 0, 0]) ...
glb/cad_6023d0d2dc1d.glb
Create a Modified Z-endstop for a PCB factory. Start with a main rectangular block 40mm wide, 18mm high, and 16mm deep. Add a PCB mount block 26mm long, 2mm high, and 7mm deep, positioned atop the main block. To finish the outer edges of the main block, add half-cylinders with a radius of 7mm and a height of 16mm. Cre...
w_zend = 54.0; h_zend = 18.0; d_zend = 16.0; w_rodhole = 8.0; d_rodhole = 6.0; s_rh_centers = 40.0; w_bolthole = 3.5; d_bolthole = 7.0; d_nuthole = 2.3; w_nuthole = 5.8; d_nutslot = 5.5; w_pcbmount = 7.0; l_pcbmount = 26.0; d_pcbmount = 2.0; w_clam...
glb/cad_0ebef0372642.glb
Create a leveling screw locker consisting of a main vertical cylinder and a wider, knurled base. The main cylinder has a height of 24mm and a diameter of 9.5mm, with a 24-facet resolution. Centered vertically through the entire length of this cylinder is a hole with a diameter of 3.6mm, rendered with 12 facets. At the...
height = 24; thick_height = 5; diameter = 9.5; thick_diameter = 16; hole_diameter_tolerance = 0.7; hole_diameter_base_size = 2.9; nut_thickness = 2.3; nut_width_tolerance = 0.35; nut_width_base_size = 5.4; module dummy() {} hole_diameter = hole_diameter_base_size + hole_diameter_tolerance; nut_width = nut_width_base...
glb/cad_57095002d9c0.glb
Create a protective box and lid for a RouterBoard 912UAG-2HPnD. Construct the main container as an open-top rectangular box. The base should be a solid plate measuring 113.11mm by 113.11mm with a thickness of 2mm. From this base, extend four vertical walls to a height of 22mm. The walls are 2mm thick, leaving an inte...
$fn=60; margine=2; pareti=2; altezza=22; contenitore(); translate([150,0,0]) coperchio(); module rb91xg() { color("green") difference() { cube([105.11,105.11,4]); translate([4,105.11-4,-1]) cylinder(r=1.82,h=6); translate([4,25.9,-1]) cylinder(r=1.82,h=6); translate([105.11-4,105.11-4,-1]) cylinder(...
glb/cad_d9605a8bb476.glb
Create an adjustable endstop for a 3D printer X-carriage. Start with a solid rectangular block measuring 13mm wide, 15mm long, and 10mm high. Remove a rectangular slot from the center of the front face that is 2mm wide, 12mm long, and 7mm high, positioned 2mm from the left edge. Within this area, create a square cuto...
Overall_W = 13; Overall_H = 10; Overall_L = 15; Slot_W = 2; Slot_H = 7; Slot_L = 12; Slot_W_Pos = 2; Slot_L_Pos = 0; Slot_H_Pos = 0; Sqaure_Nut_Diameter = 7; Square_Nut_Radius = Sqaure_Nut_Diameter / 2; Square_Nut_Height = 3; Square_Nut_1_W_Pos = Slot_W_Pos + Slot_W; Square_Nut_1_L_Pos = 2; Square_Nut_1_H_Pos = 0; ...
glb/cad_99e28fa7f341.glb