Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a T-handle wrench grip by forming a horizontal main body and a vertical sleeve. Start with a horizontal cylinder 65mm long and 16mm in diameter, capped at both ends with hemispheres of the same 8mm radius. Add a vertical cylinder centered on the main body with a height of 20mm and a diameter of 16mm. From this...
Wrenchsize=8; TWidth=65; Thickness=16; holeradius=(Wrenchsize/sqrt(3)); Tcutout=25; Overhang=1.0; height=20; difference() { union() { rotate(a=90, v=[0,1,0]) { translate([0,0,TWidth/2-Thickness/2]) { sphere(r=Thickness/2); } translate([0,0,-(TWidth/2-Thickness/2)]) { sphere(r=Thickness/2); } ...
glb/cad_63ba967e1394.glb
Create a Parametric Hex Wrench T-Handle consisting of a main handle body and a removable cover. For the main handle, create a central cylinder with a diameter of 16mm and a total length of 50mm. Cap both ends of this cylinder with hemispheres of the same 8mm radius. Add a vertical cylindrical sleeve extending 20mm fr...
Wrenchsize=8; TWidth=50; Thickness=16; holeradius=(Wrenchsize/sqrt(3)); Tcutout=20; Overhang=1.0; height=20; dovetailheight=2.5; dovetailwidth=3; flatheight=sqrt(pow(Thickness/2,2)-pow(holeradius*2,2)/4); cover(); THandle(); module THandle() { translate([0,0,flatheight]) { difference() { union() { rotate(a=...
glb/cad_338ab0f4f92d.glb
Create a name tag keychain consisting of a flat circular body with a thickness of 2mm and a radius of 17mm. At the top edge of the circle, centered on the Y-axis, add a smaller protruding cylinder with a radius of 4.25mm (one quarter of the body radius) and the same 2mm thickness. Pierce a small hole straight through t...
body_thickness = 2; body_radius = 17; raisedText = false; text = "KI5CGK"; text_font = "Arial:Bold"; text_size = 5; text_spacing = 1.1; text_height = 1; module create_body() { difference() { union() { cylinder(body_thickness, r = body_radius, center = true); translate...
glb/cad_ea01ad44344a.glb
Create a Zip Plate platform by starting with a solid rectangular base measuring 50mm in length, 50mm in width, and 3mm in height. Into this base, carve a grid of rectangular slots to accommodate zip ties. Each slot must be 1mm wide and 3mm long, oriented vertically. Arrange these slots in a repeating pattern with a 5mm...
Height = 3; Length = 50; Width = 50; Spacing = 5; Zip_Tie_Height = 1; Zip_Tie_Width = 3; difference() { cube(size = [Length, Width, Height], center = false); for (x = [Spacing : Spacing : Length - Spacing] ) { for (y = [Spacing : Spacing : Width - Spacing] ) { translate ([ x , y , 0 ]) cube( size = [Zip...
glb/cad_5f6f7c52f3ec.glb
Create an Egyptian-style obelisk composed of three stacked sections, all based on a four-sided polygonal profile. Start with a square base plate that is 2.4mm high, tapering from a bottom width of 38mm to a top width of 24mm. Centered on this base, place a tall main shaft with a height of 140mm; this shaft is a hollowe...
point=24; tall=140; faces=4; bot=38; mid=38; top=24; base=2.4; translate([0,0,0])rotate([0,0,0])scale([1,1,1]){ difference(){ translate([0,0,0])rotate([0,0,0])color("ivory")cylinder(r1=bot,r2=mid,h=base,$fn=faces); translate([0,0,0])rotate([0,0,0])cylinder(r=18,h=80,$fn=faces);}; difference(){ translate([0,0,b...
glb/cad_155dd6e03da3.glb
Create a K40 Laser Mirror Alignment Tool consisting of a cylindrical mount and a target slot. Start by creating a hollow cylinder with an outer diameter of 27.135mm (26.035mm plus a 1mm wall thickness), a height of 28.4988mm, and a wall thickness of 1mm. Cut a rectangular notch out of the side of this cylinder that i...
Mounting_Diameter = 26.035; Mounting_Tolerance = 0.1; Mounting_Height = 28.4988; Mounting_Cutout_Height = 20; Mounting_Cutout_Width = 16; Wall_Thickness = 1; Target_Radius = 12; Target_Slot_Depth = 2; Target_Slot_Width = 0; Mirror_Opening_Diameter = 10.1; Paper_Target_Radius = Target_Radius; Paper_Target_Dept...
glb/cad_e54748bff23d.glb
Create a purge waste bin for a 3D printer with overall outer dimensions of 48mm in width (X), 70mm in depth (Y), and 75mm in height (Z). The main body is a hollow rectangular container with a wall thickness of 2mm. The top edges of the side walls are angled at 30 degrees to create a flared opening. The interior of the...
layer_thickness=0.20; nozzle_wall=0.40; version="V1.0 PCN"; fudge=.01; $fn = $preview ? 20 : 50; font = "helvetica:style=Bold"; print_version= true; print_oshw= true; outer_x = 48; outer_y = 70; outer_z = 75; outer_th=2; vis_ang=30; vis_x = 40; vis_z=14; mgt_r=6/2; mgt_th=3; mgt1_x=0; mgt1_y=outer_y-(outer_y/5); mg...
glb/cad_954a20c7de5c.glb
Create a Freezer Drain Plug consisting of a cylindrical knob head and a mounting shaft. The knob head is a cylinder with a diameter of 30mm and a height of 10mm. Around the outer vertical wall of this cylinder, add knurled finger ridges spaced 3mm apart. Attached to the bottom of the knob is a cylindrical shaft wit...
HoleDiameter = 6.275; HoleDepth = 0; HoleFlatThickness = 0; KnobHeight = 10; KnobDiameter = 30; CapType = 0; TimerKnob=0; Pointer1 = 0; DivotDepth = 0; FlatSide = 0; DRotate = 45; RecessDepth = 3; RecessInnerRadius = 6.8; RecessOuterRadius = 13; Pointer2 = 0; Knurled = 1; TaperPercentage = 0; RingWidth =...
glb/cad_a4f42819efb3.glb
Create a Carcassonne Expansion Storage Box. Start by creating a solid rectangular block with a width of 48.6mm, a length of 29.9mm, and a height of 30mm. Hollow out the center to create a container with a floor thickness of 1mm and wall thickness of 1.3mm. The interior cavity should have a length of 27.5mm and a widt...
floor_thickness = 1; wall_thickness = 1.3; wall_height = 30; tab_height = 28; icon = "abbey"; inset = 0.9; inside_length = 27.5; length = inside_length + wall_thickness * 2; width = 46 + wall_thickness * 2; fudge = 0.1; rotate(a=[0,0,-90]) { difference () { union () { difference () { cube([width,length,wall_height...
glb/cad_9601d3f491a6.glb
Create a Terminal Cover for a 5 Channel Solid State Relay. Start by constructing a hollow rectangular ring with outer dimensions of 55mm in width, 47mm in depth, and 8mm in height. The walls of this ring should be 2mm thick, leaving a central void of 51mm by 43mm. To this structure, add two solid rectangular plates, ea...
THICKNESS = 2; RING_WIDTH = 51; RING_DEPTH = 43; RING_HEIGHT = 8; PLATE_WIDTH = 51; PLATE_DEPTH = 11; WIDTH = 51; DEPTH = 65; HEIGHT = 8; module plate(){ cube([PLATE_WIDTH+THICKNESS*2,PLATE_DEPTH-THICKNESS,THICKNESS]); } module relay_cover() { difference() { cube([RING_WIDTH+THICKNESS*2,RING_DEPT...
glb/cad_98012ccbef52.glb
Create a Customizable Tool Holder consisting of a base plate and vertical tool guides. Start with a rectangular base plate 2mm thick. The overall length is determined by 6 tools in a row with a 15mm handle diameter and 2mm spacing between them, totaling 104mm in length and 17mm in width. Add a wall fixing plate that ...
hole_diameter=4; handle_diameter=15; spacing=2; number_of_tools_in_a_row=6; number_of_rows=1; thickness=2; wall_fixing_plate_height = 15; center_support="yes"; screw_diameter = 3; number_of_screws=4; tool_guide="yes"; tool_guide_height=10; $fn=40; cubesize_length=(handle_diameter+spacing) *number_of_tools_in_a_ro...
glb/cad_cb0ee33fbbe3.glb
Create a parametric button cell storage box and lid. The box is a rectangular container with an outer dimension of 86.4mm in length, 24.8mm in width, and 22.8mm in height. The interior is hollowed out starting 2mm from each edge, leaving a 2mm wall thickness, with the internal cavity measuring 82.4mm by 20.8mm by 20.8m...
Anz = 28; H = 1.6; Bezeichnung = "CR2016"; DBatt = 20; D = DBatt+0.8; t = 2; ts = 0.6; Abs = (H+ts+0.8) ; XKiste = Anz*Abs+t*2; YKiste = D+t*2; ZKiste = D+t; XDeckel = Anz*Abs+5*t+0.7; YDeckel = D+5*t+0.7; ZDeckel = D-4; XDeckelinnen = Anz*Abs+2*t+0.7; YDeckelinnen = D+2*t+0.7; ZDeckelinnen = D-(4-t); difference (){...
glb/cad_ea1011608aa3.glb
Create a parametric button cell storage box consisting of a base container and a matching lid. For the base, create a rectangular block with dimensions 67.6mm in length, 24mm in width, and 22mm in height. Hollow out the center by removing a rectangular volume starting 2mm from each edge, leaving a wall thickness of 2...
Anz = 20; H = 3.1; Bezeichnung = "CR2032"; Kistedrucken = true; Deckeldrucken = true; DBatt = 20; D = DBatt+0.8; t = 2; ts = 0.6; Abs = (H+ts+0.8) ; XKiste = Anz*Abs+t*2; YKiste = D+t*2; ZKiste = D+t; XDeckel = Anz*Abs+4*t+0.7; YDeckel = D+4*t+0.7; ZDeckel = D-4; XDeckelinnen = Anz*Abs+2*t+0.7; YDeckelinnen = D+2*t+0...
glb/cad_67d36bf79f5f.glb
Create a Citiz reusable Nespresso Pod holder. Start by creating the main body as a semi-circular extrusion with a radius of 55mm and a height of 25mm, extending the arc slightly beyond 180 degrees by 27 degrees on each side. At the base, add a concentric lip that is 4mm high, with an outer radius of 48mm and an inner r...
SphereRadius=2; OverAngle=27; InnerRadius = 48; MainRadius=InnerRadius+7; LipWidth=2.5; HolderHeight=25; LipHeight=4; PodBottomDiameter=23; PodTopDiameter=30; PodHeight=22; module sequentialHull(){ echo($children); for (i = [0: $children-2]) hull(){ children(i); children(i+1); ...
glb/cad_568958fa3d3a.glb
Create a COVID mask strap tensioner with a total thickness of 1.5mm. Start by creating a central rectangular base that is 3mm wide and 60mm long. Along both the left and right sides of this base, add three chevron-shaped grips. Each chevron should be 23mm wide and 2mm thick, with a hexagonal profile (6-sided resolution...
use <../../nohscadlib/round.scad> use <../../nohscadlib/fillet.scad> wd = 2; h = 1.5; fn=6; chwidth =23; straprad = 60; name="Name"; chevrons = 3; mask_tensioner(); module mask_tensioner() { strap(); mirror([0,1,0]) strap(); translate([2,straprad/2,0]) rotate([0,0,90]) linear_extrude(height=h) text...
glb/cad_79f3805985c5.glb
Create a fat separator vessel with an octagonal cross-section. The main body is an octagonal prism with a diameter of 75mm (measured from vertex to vertex) and a height of 140mm. The walls of the container should be 1.6mm thick. Hollow out the interior of the prism to create a reservoir, leaving the 1.6mm wall thicknes...
AnzE=8; $fn=AnzE; WS=1.6; D=75/cos(180/AnzE);; H=140; Da=20; Ha=H; GR=10; W=1/tan(25); Ht=15; test=false; difference(){ union(){ cylinder(d=D, h=H); translate([-D/2+WS,0,H-Ht])cylinder(d1=2*WS,d2=(Ht/W*2), h=Ht); difference(){ translate([D/2,0,H-Ht-GR])cylinder(d1=Da,d2=(Ht/W*2)+Da, h=Ht); transla...
glb/cad_2125f03e75bd.glb
Create a Parameterized Printable Inkjet Head consisting of three main components: a body, a piezo clamp, and a tube clamp. First, create the body as a cube with a side length of 23mm and a total height of 11mm. Center a cylindrical chamber cutout with a radius of 10.15mm and a height of 11mm. Create a smaller concentr...
gen_for_stl = 1; piezo_diameter=20; piezo_height=0.5; o_ring_body_height=2; o_ring_clamp_height=0; nozzle_plate_height=2; body_xy_extra=3; body_extra_height=3; bolt_hole_diameter=3; tube_diameter = 3; tube_clamp_extra_height = 2; nozzle_ledge_height=2; nozzle_ledge_inset=5; piezo_clearance=0.1; piezo_clamp_cle...
glb/cad_e9892b446cf8.glb
Create a food roller consisting of a central cylinder and two handles. The main body is a cylinder with a diameter of 40mm and a length of 140mm. This central cylinder is hollowed out by a smaller concentric cylinder with a diameter of 20mm and a length of 162mm. Running through the center of the main body is a long a...
wide_noodle_teeth=1; narrow_noodle_teeth=1; translate ([-25,70,40]) rotate ([90,18.3,0]) union () {union () { difference (){cylinder (140,40,40);translate ([0,0,-1])cylinder (162,20,20);} scale ([wide_noodle_teeth,wide_noodle_teeth,1]) difference (){cylinder (4,40,40);translate ([0,0,-1])cylinder (162,30,30);} sca...
glb/cad_f970b41a03e7.glb
Create a CD and DVD storage rack with a total outer dimension of 221mm in length, 85mm in depth, and 131.4mm in height. The main body is a solid block from which several slots and cutouts are removed. Create 16 equidistant vertical slots, each 12mm wide and 127mm high, spaced 1.6mm apart. These slots are centered alon...
eps=0.1; cutout_straight=false; slot_w=12; slot_h=127; space_bw_slots=1.6; wall_min=1.6; floor_h=2.2; slot_holder=20; box_length=221; box_depth=85; box_h=slot_h+2*floor_h; slots_n=floor((box_length-2*wall_min)/(slot_w+space_bw_slots)); slots_length=slot_w*slots_n+space_bw_slots*(slots_n-1); slots_start=(box_length-slo...
glb/cad_6a9c18d2e2ae.glb
Create a roof holder for a C270 webcam. Start by constructing a base block that is 15mm wide, 10mm deep, and 20mm high, and merge it with a second block that is 15mm wide, 45mm deep, and 30mm high, positioned so they share a common edge. Create a mounting plate by forming a hull between a 40mm by 10mm by 5mm rectangu...
$fn=50; angle = 30; hull() { translate([-50+15,0,30])rotate([0,-angle,0])cube([40,10,5]); translate([-50+15,0,20])cube([50,10,10]); } translate([-50+15,0,30])rotate([0,-angle,0]) { translate([20,10,2]) difference() { translate([-10,0,0])cube([30,30,3]); translate([-2.5,20,0])cylinder(r1=7/2,r2=3.5/...
glb/cad_2be355f431e6.glb
Create a customizer test model consisting of a finger base with integrated flexures. Start by creating a central rectangular base block 29.57mm long, 15mm deep, and 18mm high, centered on the origin. Add two smaller rectangular tabs at each end of the base, each 4mm wide, 15mm deep, and 3mm high, positioned at the top ...
width_destroy = 0.7; width_keep = 3; width_tab = 4; finger_length = 100; finger_height = 18; finger_depth = 15; L_ratio = 0.67; K_ratio = 2.5; K_length = 12; LB = 29.5715; T1 = 15; T2 = 15; L2 = finger_length / (1+1/L_ratio); L1 = finger_length - L2; R1 = 8; R2 = R_ratio*R1; K1 = 4.25; K2 = pow((K_ratio*pow(K...
glb/cad_790c5b852b55.glb
Create a Brio Connector for toy train tracks with a total height of 11mm. The object is centered around a central axis and consists of two cylindrical heads connected by a rectangular neck. Start by creating a central rectangular neck that is 6.5mm wide and 11.25mm long, extending from the center to each side. At eac...
$fn = 100; H = 11.0; ctr_to_ctr = 22.5; head_diameter_large = 12; head_diameter_small = 11; neck_width = 6.5; module __CustomizerLimit__() {} ptx = ctr_to_ctr / 2; translate([-ptx, -2.5, 0]) cube([ptx, 5, H]); translate([-ptx, 0, 0]) cylinder(h=H, d=head_diameter_small); translate([0, -neck_width/2, 0]) cube(...
glb/cad_ccaeb1f2de3b.glb
Create a Parametric Paint Palette Tray with an overall outer footprint of 31.5mm by 88.4mm and a total height of 9mm. Start by constructing a solid rectangular base with these dimensions and rounded outer corners with a 3mm radius. Hollow out the center of this base to create a container with a wall thickness of 1.2mm ...
$fn=120; x_width = 32.3; y_length = 89.2; n_row = 2; n_col = 5; wall_thickness = 1.2; border_radius = 2; x_gap = 0.8; y_gap = 0.8; wall_height = 9; actual_x_width = x_width - x_gap; actual_y_length = y_length - y_gap; spacing_x = actual_x_width/n_row - wall_thickness - wall_thickness/n_row; spacing_y = actual_y_lengt...
glb/cad_ffe5e8d7ce0c.glb
Create a Wooden Train Wheel and a matching spacer. For the wheel, start with a central cylinder that has a radius of 7.7mm (6mm hub radius plus a 1.7mm collar) and a height of 4mm. Around this central hub, add a larger ring with an outer radius of 10mm and a height of 4mm. This outer ring should be modified so that i...
module wheel_spacer(axel_radius, $fn=100) { thickness = 2.5; radius = 3.5/.9; difference() { translate([radius + pad_radius + 1,0,0]) rotate_extrude(convexity = 10) union() { translate([radius-thickness/2,thickness/2]) circle(r = thickness/2); square([radius,thickness/2]); square([...
glb/cad_12f4f87505c4.glb
Create a V-Slot Cover for a 2020 aluminum extrusion. The main body is a linear profile with a total length of 400mm. The cross-section is designed to fit into the extrusion slot with an inner thickness of 0.6mm and an outer thickness of 0mm, making the cover flush with the rail surface. The walls of the profile should ...
length = 400; side_extension_width = 0.0; outer_thickness = 0.0; inner_thickness = 0.6; wall_thickness = 0.8; rail_overlap = 0.0; slope_offset = -0.2 ; hole_centers = [10, 30, length-30, length-10]; hole_diameter = 8.5; ring_diameter = 10.9; cover_screws = false; assert( !cover_screws || outer_thickness > 0,...
glb/cad_767f1d4a6f54.glb
Create a Yazzonic Disc Ball Holder consisting of a central disc and multiple matching spherical ball components. First, construct the main disc as a cylinder with a radius of 27mm and a height of approximately 6.18mm, centered on the Z-axis. Bore a 12-sided polygonal hole with a radius of 2mm through the center of th...
discball(ballradius=10); goldenratio = 1.61803399; discradius = 27; jointexpansionfactor = 1.11; notchsize = 11.5; module discball(ballradius) { thickness = (ballradius)/goldenratio* 1.2; translate([0,0,ballradius]) rotate([0,90,0]) difference() { sphere(ballradius); translate([-ballradius-0.25, notch...
glb/cad_348ba6c636d4.glb
Create a shelf hole drill template consisting of a rectangular base plate and several protruding alignment pegs. The base plate should be 4mm thick, with a total width of 80mm (calculated as two 8mm padding areas plus two 32mm intervals) and a depth of 16mm. Position three alignment pegs along the center line of the ...
$fn = 30; hole_distance = 32; hole_diameter = 5; inbetween = true; peg_count = 3; peg_height = 6; peg_padding = 8; board_thickness = 4; peg_at_end = false; hole_radius = hole_diameter / 2; tolerance = 0.7; module peg(){ r = hole_radius - tolerance; cylinder(peg_height - r, r, r); translate([0, 0, peg_hei...
glb/cad_eb5317c3ad23.glb
Create a plastic spacer and nut for N scale locomotive frames. First, construct the spacer by creating a rectangular block measuring 8mm wide, 7mm deep, and 0.55mm high. Centered within this block, add a cylinder with a diameter of 2.9mm and a height of 2.7mm. Then, drill a vertical hole with a diameter of 2.1mm throug...
module spacer() { $fn=250; difference() { union() { cube([8,7,.55]); translate([3.3,4.1,0]) { cylinder(d=2.9,h=2.7);} } #translate([3.3,4.1,-.1]) { cylinder(d=2.1,h=5);} } } module hole(d,h) { $fn=150; cylinder(d=d,h=h); } module nut() { $fn=6; difference() { translate([0,0,0]) { cylinder(d=4.6,h=3...
glb/cad_9cc77d3f3c52.glb
Create a Pen Storage box with an outer shell and a hollow interior. The outer dimensions are 143.1mm in length, 133.1mm in width, and 155.4mm in height, with a uniform wall thickness of 3mm. The interior cavity measures 127mm by 38.1mm by 152.4mm. Round the four interior bottom edges of the cavity using a fillet radiu...
$fn=30; debug = false; CounterSunkScrewsMetric=[ [0, 0, 0], [1, 1.9, 0.6], [1.6, 3, 0.96], [2, 3.8, 1.2], [2.5, 4.7, 1.5], [3, 5.6, 1.65], [3.5, 6.5, 1.93], [4, 7.5, 2.2], [5, 9.2, 2.5], [6, 11, 3], [8, 14.5, 4], [10, 18, ...
glb/cad_dff5667c96d1.glb
Create a filament holder consisting of a central hub with three radiating arms. Start with a base cylinder that has a height of 10mm, a bottom radius of 51mm, and a top radius of 53mm. From this base, remove a central vertical hole consisting of two concentric cylinders: a core cylinder with a radius of 6.5mm and a hei...
$fn=180; intersection () { difference() { union () { for(i=[0:120:360-120]) rotate ([0,0,i]) { translate ([-8,0,0]) { difference () { cube ([16,106/2,10]); translate ([2,0,2]) cube ([12,96/2,78]); } } } cylinder (r=36/2,h=10); } union() { cylinder (r=13/2,h=10); translate ([0,0,3]) cylinder (r=22.2/2,h=7); } } cyli...
glb/cad_638f691725a5.glb
Create a bucket lock bushing consisting of a wide base and a hollow central sleeve. Start by creating a solid flat cylinder for the base with a radius of 15.8mm and a height of 1.3mm. Centered on top of this base, add a taller solid cylinder with a radius of 9.55mm and a height of 17mm. Finally, remove a cylindrical co...
$fn=180; difference () { union () { cylinder (r= 31.6/2, h=1.3); cylinder (r = 19.1/2, h=17); } cylinder (r=16.3/2,h=18); }
glb/cad_193f5a8df5e1.glb
Create a parametric threaded box consisting of a main body and a screw-on cap. The main body is a hollow cylinder with an outer diameter of 30mm and a total height of 30mm. The walls are 2mm thick. The bottom of the body is closed with a 2mm thick base. The top 5mm of the body features an external screw thread with a p...
use <threads-library-by-cuiso-v1.scad> draft=true; part_selection = 0; box_height = 30; box_diameter = 30; wall_thickness = 2; thread_clearence = 0.4; thread_height = 5; grip = false; grip_size = 2; grip_spacing = 1.1; box_hole = false; box_hole_diameter = 3; cap_hole = false; cap_hole_diameter = 3; $fn=draf...
glb/cad_f09621776dbf.glb
Create a custom nameplate for a Yaesu FT-991A radio. Start with a rectangular base measuring 140mm in width, 37.8mm in height, and 3mm in thickness. Center the base on the origin. At each of the four corners, create a circular hole with a diameter of 2.86mm that passes completely through the thickness of the plate. Th...
font = "VCR OSD Mono"; text = "KI5CGK"; font_size = 15; left_icon_unicode = "\U01F4FB"; left_icon_x_position = -50; right_icon_unicode = "\U01F4E1"; right_icon_x_position = 50; padding = 5; thickness = 3; text_thickness = 1; $fn = 100; screw_x_dist = 130.0; screw_y_dist = 27.8; screw_diameter = 2.86; module create_b...
glb/cad_040e8872d187.glb
Create an Estradiol pill box consisting of two interlocking halves. The overall outer dimensions of the pill shape are 8.94mm in height, 4.47mm in depth, and 8.94mm in width. Construct the main body as a pill-shaped capsule with chamfered ends. The top half should be a hollowed-out shell designed to receive the bottom...
height_inches = 0.075 + 0.0016 + 0.0002; depth_inches = 0.175 + 0.0013 + 0.0004; width_inches = 0.350 + 0.0020 + 0.0008; in_to_mm = 25.4; height = height_inches * in_to_mm; width = width_inches * in_to_mm; depth = depth_inches * in_to_mm; chamfer_height = height * (7.485 / 56.814); pixel_width = 118.222; pixel_depth...
glb/cad_370933738a67.glb
Create four identical landing feet for a quadcopter. For each foot, start with a base cylinder 48mm in diameter and 3mm thick. Centered on top of this base, add a rectangular block measuring 18mm wide, 15.5mm deep, and 12mm high. On the top surface of this rectangular block, center a horizontal cylinder with a radius o...
module foot(){ difference(){ union(){ cylinder(r=24, h=3, $fn=100); translate([-18/2, -15.5/2,1]) scale([18,15.5,5+1.5+.5+.5+4]) cube(1); translate([-9,0,6+1.5+.5+.5+4]) rotate(a=90,v=[0,1,0]) cylinder(r=15.5/2, h=18, $fn=100); } translate([-10,0,6.5+1.5+.5+4]) rotate(a=90,v=[0,1,0]) ...
glb/cad_4d800cf90571.glb
Create a Pin Blocker designed to cover electronic pin headers. The main body is a rectangular block composed of a grid of smaller cubes, each measuring 2.54mm by 2.54mm with a height of 6mm. The grid consists of 2 rows and 20 columns. For every position in this 2x20 grid, create a cube centered on the pin location. F...
Row_Count = 2; Column_Count = 20; Pin_Spacing = 2.54; Pin_Width = 0.7; Blocker_Height = 6; Open_Pins = [1, 2, 3, 4]; Union_Padding = 0.0001; Difference_Padding = 0.1; $fs = 0.05; $fa = 1.5; module Make_Blocker() { union() { for (y = [0: Row_Count - 1]) { for (x = [0 : Column_Count - 1]) { Pin_Num...
glb/cad_bc7a02d80285.glb
Create a Pin Blocker designed to obstruct specific pin holes on a PCB. The base of the model is a rectangular platform with a total length of 50.8mm (20 columns at 2.54mm spacing) and a width of 5.08mm (2 rows at 2.54mm spacing). The main body has a height of 1mm. Along the outer edge of the width, add a thin lip that...
Row_Count = 2; Column_Count = 20; Pin_Spacing = 2.54; Distance_To_PCB_Edge = 2.23; PCB_Lip_Height = 1.6; Blocker_Height = 1; Open_Pins = [1, 2, 3, 4]; Union_Padding = 0.00001; module Make_Blocker() { Distance_To_PCB_Edge = Distance_To_PCB_Edge - (Pin_Spacing / 2); Edge_Width = Distance_To_PCB_Edge + PCB_Lip_H...
glb/cad_6c18fad4b864.glb
Create a Gen7 opto-endstop PCB model consisting of a main board and conductive traces. Start by creating a rectangular board 25.675mm wide, 16.755mm long, and 1.5mm thick. Within this board, create several holes for components. Place two large holes with a diameter of 3.2004mm at (3.3865, 13.58) and (22.5635, 13.58). ...
board_thickness = 1.5; board_width = 25.675; board_length = 16.755; pad_size=0.3; trace_size=0.8; eta=0.2; module drill(x, y, d, with_hole=true) { if (with_hole) { translate([x, y, -eta]) cylinder(r=d/2, h=board_thickness+2*eta); translate([x, y, -eta]) cylinder(r=d/2+pad_size, h=2*eta); translate([x, y, ...
glb/cad_08444e657837.glb
Create a tube cutter guide for a bowden tube. Start with a solid rectangular block that is 41.3mm long, 8mm wide, and 8mm high. Carve out a central horizontal channel to hold a tube with a 4mm diameter. This channel should be centered vertically and horizontally within the block, leaving 3mm thick walls at the ends and...
cutoff_length = 31.3; blade_width = 0.6; tube_diameter = 4.0; add_label = true; module __Customizer_Limit__ () {} w = 3; m = 2; o = m + tube_diameter + m; l = cutoff_length - blade_width/2; union() { difference() { cube([w + l + blade_width + w + 10, o, o], false); translate([w, -1, w]) ...
glb/cad_91b9dfa06845.glb
Create a windshield water reservoir lid. Start by creating a main cylindrical body with a height of 8mm and a diameter of 31mm, featuring rounded edges with a 1mm radius. Inside this body, remove a central cylindrical core that transitions from a diameter of 55.5mm at the base to 54mm at the top, with a height of 4.4mm...
$fn=50; module rcube(Size=[20,20,20],b=2) {hull(){for(x=[-(Size[0]/2-b),(Size[0]/2-b)]){for(y=[-(Size[1]/2-b),(Size[1]/2-b)]){for(z=[-(Size[2]/2-b),(Size[2]/2-b)]){ translate([x,y,z]) sphere(b);}}}}} module rcylinder(r1=10,r2=10,h=10,b=2) {translate([0,0,-h/2]) hull(){rotate_extrude() translate([r1-b,b,0]) circle(r =...
glb/cad_c2cc5ac61127.glb
Create a parametric ruler for a compass called a Zirkel-Schablone. The main body is a rectangular slab 30mm wide and 3mm high. The length of the slab is determined by a maximum value of 7, scaled by a factor of 10, plus a 6mm margin at each end. At the starting end, create a semi-circular rounded edge. Centered on thi...
use <text_on/text_on.scad> maximum = 7; steps = 0.5; ruler_height = 3; ruler_width = 30; ruler_margin = 6; groove_width = 15; groove_offset = -0.8; cone_depth=0.8; height_start_cylinder=0.45; $fn=80; scaling_factor=1.0; intersection() { difference() { union() { difference() { translate([0,0,-ruler_height])...
glb/cad_43473a17bcc8.glb
Create a car radio support for the Citroën Ami consisting of a flat rectangular base and two angled side wings. Start with a central rectangular base measuring 55mm in width, 45mm in depth, and 2mm in height. Attach two side plates, each 55mm wide, 3mm thick, and 20mm high; position one plate so its bottom edge is 3mm ...
$fn = 50; translate([-5, 0, 0]) cube([55,45, 2]); translate([-5, 45/2 - 3, -19]) rotate([3,0,0]) cube([55,3,20]); translate([-5, 45/2 + 3, -19] ) rotate([-3,0,0]) cube([55,3,20]); translate([15,25,0]) { translate([0,0,0]) linear_extrude(15) circle(1.5); translate([14,0,0]) linear_extrude(15) circle(1.5); translat...
glb/cad_cfd7629a89ac.glb
Create a Nespresso Vertuo Capsule box holder designed for the "vertuo_diavolito" format. The object is a hollowed-out container with a wall thickness of 3mm and a total height of 50mm. The main body is a rectangular sleeve with an interior cavity measuring 61mm in width and 52mm in depth. The walls are 3mm thick. The ...
wd= 3; height= 50; typ = "vertuo_diavolito"; halter3(typ= typ,h=height, wd=wd, flat=true); function nespresso_formats(typ = "regular")= (typ == "vertuo_diavolito")?[61,52]: (typ == "vertuo_colombia")?[61,66]: [37,38] ; module halter(typ= typ, wd=wd, h=50, flat= false) { grundf = nespresso_formats(typ); translate...
glb/cad_6ad481fd2f35.glb
Create a 7.62x39 Ammo Box consisting of a bottom container and a top lid. For the bottom container, create a rectangular box with a base thickness of 1mm and outer walls 3.5mm thick. The interior should feature a grid of 50 pockets arranged 10 wide by 5 deep. Each pocket must be 11.7mm square with 0.8mm walls between...
showtop=1; showbottom=1; holesx=10; holesy=5; bullethole =11.7; betweenhole = .8; bottom_outsidewall=3.5; bottom_taper=1.5; bottom_height=38; dividerheight=34; rim=1.5; rimheight=3.7; bottomthick=1; corner_radius=3; numfaces=150; top_height=25; top_upperthinkness=1.5; top_wallthinkness=1.5; spacing = ...
glb/cad_57a6f062bd62.glb
Create a T-shaped panel connector called a TOffsetClip with a total length of 15mm along the Z-axis. Start by creating a central joining cube of 9mm x 9mm x 15mm. From this center, extend a rectangular outer wall along the X-axis with dimensions 17.2mm x 2mm x 15mm. Add two parallel inner walls along the X-axis: one ...
gDefaultExtent = 25.4/2; gDefaultGap = 5; gDefaultThickness = 2; gDefaultLength = 15; gMakerBotDoubleSlotLength = 50; TOffsetClip(gDefaultLength, gDefaultExtent, gDefaultThickness, gDefaultGap); module Lclip(length, extent, thickness, gap) { cube(size=[thickness*2+gap+extent, thickness, length]); translate([thic...
glb/cad_1574c22386a3.glb
Create a Mini Parts Washer consisting of a basin, a reservoir, and a mounting bracket. First, construct the basin as a rectangular tub with dimensions 210mm wide, 210mm long, and 40mm high. The walls should be 2.4mm thick. Round the bottom edges with a 20mm radius. In the center of the floor, create a drain hole 20mm ...
Es= 0 ; F= 120 ; Gap=0.6; Version= 1 ; Wsb= 2.4 ; Xb= 210 ; Yb= 210 ; Zb= 40 ; Rb= 20 ; Ds= 12 ; Ya= 30 ; Da= 20 ; Za= -5 ; Ha= 8 ; Gb= 4.2 ; Gu= 5 ; Ga= 90 ; Gx= 5 ; Ls= 30 ; Wsv= 2.0 ; Xv=90 ; Yv=66 ; Zv= 100 ; Hv= -18 ; Sb= 6 ; Sh= 4 ; Wsh= 4 ; Bh= 6 ; Zbh= 90 ; Ubh= 10 ; Del= 18; Zsh= 135; Hsh= 10 ; if (Vers...
glb/cad_29b957131416.glb
Create a fan mount for a 30mm fan. Start by constructing a base block that is 32mm wide, 32mm deep, and 18mm high. Attach a rectangular extension to the side of this block that is 42mm wide, 10mm deep, and 18mm high, positioned so the total width of the combined base is 42mm. On the top surface of this assembly, add a ...
difference() { union() { color("dodgerBlue"){ hull(){ translate ([-16,-16,0]) cube([32,32,18]); translate ([-21,-5,0]) cube([42,10,18]); }} color("Green"){hull(){ translate ([-21,50 -21,10-0.5]) cube([42,10,3]); translate ([+16, 50 - 16 ,0]) cylinder (d=8,h=2); translate ([-16, 50 - 16 ,0]) cylinder (d=8,h=2); }}...
glb/cad_e3cc42b552ca.glb
Create a fan mount for a 30mm fan. Start by constructing a main rectangular base measuring 42mm wide, 42mm deep, and 18mm high. Attach a second rectangular block to the back, measuring 42mm wide and 10mm deep, with a height of 13mm, positioned so it extends from the rear of the base. Remove a large central void from ...
difference() { union() { color("dodgerBlue") translate ([-21,-21,0]) cube([42,42,18]); color("Green") translate ([-21,50 -21,0]) cube([42,10,18-5]); } #translate ([0,60,15]) rotate ([90,0,0]) cylinder (d=25,h=100); translate ([+16,+16,-5]) cylinder (d=3.2, h=50, $fn=30); translate ([+16,-16,-5]) cylinder (d=3.2, h=5...
glb/cad_d4da65ec8003.glb
Create an end cap for a wall connection profile. Start by constructing a base plate 5mm thick. The footprint of this plate is defined by a polygon with vertices at [0,0], [29,0], [29,1], [25.5,2], then curving upward with a radius of 10mm centered at [8,20], and closing with vertices at [2.5,31], [1.2,35], and [0,35]. ...
r=10; $fn=80; points = [[0,0],[29,0], [29,1], [25.5,2]]; finalpoints = [[2.5,31],[1.2,35],[0,35]]; allpoints = concat(points, [for (a=[20: 1/$fn : 82]) [8+r*cos(a), 20+r*sin(a)]], finalpoints); difference() { linear_extrude(5) polygon(allpoints); translate([-sqrt(0.5),-sqrt(0.5),2]) linear_extru...
glb/cad_3187b79a0155.glb
Create a thin-walled ring with a height of 7mm. Start by constructing a cylinder with an outer radius of 11mm and a height of 7mm, using a 50-facet resolution. Remove a concentric inner cylinder with a radius of 10mm and the same height to create a wall thickness of 1mm. Finally, remove a rectangular section from the s...
finger_rad = 10; difference() { cylinder(h=7,r=finger_rad+1,$fn=50); cylinder(h=7,r=finger_rad,$fn=50); } translate([-1*(finger_rad+2),-1*((finger_rad-2)/2),0]) cube([2,(finger_rad-2),7]);
glb/cad_370a83ae7c86.glb
Create a microwell plate caster by starting with a main rectangular chamber that is 43mm wide, 87mm long, and 4.8mm high. From this main body, remove a central rectangular slot that is 36.2mm wide and 83mm long, starting from a height of 1.5mm above the base and extending to the top of the chamber. This creates a reces...
x=43; y=87; dz = 1.5; z= 3.3 +dz; slx = 36.2; chamber(); translate([x-5,y,0]) base(5,30,z); translate([0,y,0]) base(5,30,z); module chamber(){ difference(){ cube([x,y,z]); translate([(x-slx)/2, 0,dz]) cube([slx,y-4,z-dz]); } } module base(bx,by,bz){ cube([bx,by,bz]); }
glb/cad_2a49f0e5a2c7.glb
Create a programmable resistor box case. The main body is a rounded rectangular shell with outer dimensions of 122mm in length, 45mm in width, and 11.4mm in height. The walls are 2mm thick. The interior is hollowed out from the top, leaving a bottom floor that is 2mm thick, except for four reinforced support posts in t...
$fn=30; board_len = 116; board_width = 40; board_thickness = 1.6; board_hole_distance = 3.58; resistor_z_clearance = 1.25; board_margin = 0.5; wall_width = 2; corner_radius = wall_width; space_below_board = 5.4; top_margin = 1; screw_hole_width = 2.2; support_rail_width = 1.5; support_post_x_len = 10; sup...
glb/cad_d5be40845b7e.glb
Create a Wera Screwdriver Holder consisting of a mounting rail and individual tool holders. For the rail, create a rectangular base with a width of 90mm, a height of 15mm, and a thickness of 4.5mm. Along the length of the rail, add a series of mounting points spaced 45mm apart. Each point should feature a cylindrical...
handle_diameter = 36; handle_bottom_outer_diameter = 26.7; handle_bottom_inner_diameter = 23; thin_shaft_diameter = 5.0; thick_shaft_diameter = 5.0; symbol = "tx"; label_first_line = "TX"; label_second_line = "25"; handle_sides = 6; module customizer_wera_holder() { wera_holder(handle_diameter, handle_bottom_out...
glb/cad_1d4bb5abf05f.glb
Create a Wera Screwdriver Holder consisting of a mounting rail and individual tool holders. First, construct a mounting rail. The rail is a rectangular base with a series of vertical peg-like protrusions spaced 45mm apart. Each peg consists of a cylindrical base with a diameter of 8mm and a height of 0.71mm, transiti...
handle_diameter = 36; handle_bottom_outer_diameter = 26.7; handle_bottom_inner_diameter = 23; shaft_diamater = 5.0; ferrule_diamater = 8.0; symbol = "tx"; label_first_line = "TX"; label_second_line = "25"; handle_sides = 6; module customizer_wera_holder() { wera_holder(handle_diameter, handle_bottom_outer_diamet...
glb/cad_b67050a40cd0.glb
Create a Power Brick Holder consisting of two identical mirrored brackets. For one bracket, start with a main body that is a rounded rectangular block with overall dimensions of 40mm width, 69mm depth, and 25.5mm height. The walls and base should be 3mm thick. The interior is a recessed open-top box measuring 34mm by...
use <utilities.scad> $fn=50; module makeBracket (innerBox=[34,63,19.5],WT=[3,3,3],rounding=3) { difference(){ union(){ difference(){ translate((innerBox+multelems(WT,[2,1,2]))*0.5) minkowski() { cube(innerBox-2*[rounding,rounding,rounding]+multelems(WT,[2,1,...
glb/cad_709ff5af2344.glb
Create a rotary encoder knob. Start with a main cylindrical body 20mm in diameter and 12mm high. Attach a second, smaller cylinder to the bottom as a base, with a diameter of 14mm and a height of 5mm. Add 24 vertical ridges around the outer perimeter of the main body. Each ridge should protrude 2.8mm from the surface ...
knobMaker(); knobDia = 20; knobDiaTop = 20; knobHeight = 12; knobBottomDia = 14; knobBottomDiaTop = 20; knobBottomHeight = 5; outerRidged = true; outerRidgeAngle = 60; noOfOuterRidges = 24; outerRidgesHeight = 10; outerRidgesProtrution = 2.8; outerRidgesOffset = 0; makeTopIndent = false; centerTopIndent = true; top...
glb/cad_4820c875a0f7.glb
Create a rectangular fan grill with a main body and a surrounding brim. The central port is 100mm by 40mm with a depth of 10mm and a wall thickness of 2mm. Surround this port with a flat brim that extends 10mm outward from each side, with a total brim thickness of 3mm (composed of a 2mm base and a 1mm top layer). With...
$fn=30; Port_X=100; Port_Y=40; Port_Z=10; Port_Thk=2; Port_Rf=0; Brim_Siz=10; Brim_Z=2; Brim_Z1=1; Brim_Rf=0; Grl_Square = true; Grl_X = true; Grl_Y = true; Grl_Zf=.25; Grl_HX=6; Grl_HY=6; Grl_ThkX=0.8; Grl_ThkY=0.8; Grl_Ang_X=0; Grl_Ang_Y=0; Grl_SX=0; Grl_SY=0; Holes_Vis = true; Holes_Co...
glb/cad_8207694f5fc9.glb
Create a Utility Vacuum Head consisting of a tapered nozzle and a connecting pipe. Start by constructing the main head as a hollowed-out shell. The outer shape is formed by the union of a sphere and a cylinder, resized to be 38mm thick, 120mm wide, and 20mm high. Hollow out the interior of this head to create a shell, ...
$fn=30; Cone_H = 20; Width = 120; Thick = 38; Mouth_Ang = 30; SupWid = 3; Sup_Z = 5; Bump = 1.1; P_Len = 50; P_ID = 31.5; P_ExThk = 5; ClipBottom(Ang=[0,Mouth_Ang,0]) { render(convexity=5) Hollow() SolidHead(); translate([0,0,Width/2+Cone_H]) difference() { cylind...
glb/cad_bbf19d12f6ed.glb
Create a Hudl 2 charging dock consisting of a base plate and a tilted support structure. Start with a rectangular base plate 148mm wide, 70mm deep, and 6mm high. Construct a rear support wall that is 148mm wide and 4mm thick. This wall should lean forward at an 80-degree angle. The wall features a central cutout to a...
hudl_x = 128 + 4; hudl_radius = 12; hudl_thickness = 8 + 4; hudl_power_x_center = 75; hudl_y = 224; cutout_oversize = 0.2; hudl_angle = 80; stand_width = hudl_x + 20; front_stand_overlap = 10; front_stand_inset = 10; back_stand_overlap = 40; general_thickness = 4; base_height = 6; base_depth = 70; extra_front_su...
glb/cad_af199988587e.glb
Create a handle for a microscope slide holder by constructing a thin, rectangular U-shaped frame. Start with a main rectangular block that is 74mm wide, 78.5mm tall, and 5.5mm thick. From this block, remove a central rectangular section measuring 68mm wide by 81.5mm tall by 5.5mm thick, positioned 3mm from the left edg...
handleHeight = 100; slides = 15; actualHeight = handleHeight-21.5; union() { difference() { union() { cube(size = [(4*slides)+14,actualHeight,5.5], center = false); } translate([3,-6,0]) cube(size = [(4*slides)+8,actualHeight+3,5.5], center = false); } cube(size = [9,2,5.5]); transl...
glb/cad_ecf52bbf4dd9.glb
Create a model of the Vesperman Machine consisting of two identical parallel cylinders. Each cylinder must have a radius of 5mm and a total height of 305mm. Position the two cylinders so they are parallel to one another, with a center-to-center distance of 77mm between them. Ensure each cylinder is rendered with a face...
include <xy_simple_block.scad> include <xy_motor_block.scad> include <generic_clamp.scad> include <belt holder.scad> rotate([90,0,0]) 10mm305mmShaft(); translate([77,0,0]) rotate([90,0,0]) 10mm305mmShaft(); translate([38,-155,22]) rotate([90,0,180]) xyMotorBlock(); translate([38,155,22]) rotate([90,0,0]) xySimpleBl...
glb/cad_fcf4fd21df2b.glb
Create a C-clamp bracket with a thickness of 25mm. Start with a main body consisting of a cylinder with a radius of 7.5mm and a height of 25mm. Attach a rectangular block to the side of this cylinder, measuring 11mm in length, 15mm in width, and 25mm in height, positioned so it extends from the cylinder's center. Carv...
c_clamp(); module c_clamp() { rod_diameter = 10; flesh = 5; thickness = 25; extra_length=11; c=.85; bolt_hole_x = 7; bolt_hole_diameter = 3; PI = 3.15159265; $fs=0.2; $fa=3; difference() { union() { cylinder(r=rod_diameter/2+flesh/2,h=thickness); translate([0,-rod_diameter/2-flesh/2,0]) cube([extra_leng...
glb/cad_90bc48437f49.glb
Create a Vesperman Machine pulley component. Start by constructing a GT2 2mm pulley with a diameter of 0.764mm and a width of 1.494mm. Attach a cylinder to the top of this pulley with a radius of 10mm and a height of 11mm, positioned 18mm above the base. From this combined volume, remove a central square prism measur...
include <Pulley_T-MXL-XL-HTD-GT2_N-tooth (1).scad> drivetrain = false; difference() { union() { pulley ( "GT2 2mm" , GT2_2mm_pulley_dia , 0.764 , 1.494 ); translate([0,0,18]) cylinder(r=10, h=11,$fn=pulley_b_dia*2); if(drivetrain) { translate([0,0,28]) pulley ( "GT2 2mm" , GT2_2mm_pulley_dia , 0....
glb/cad_c8e07b056a10.glb
Create the Vesperman Machine part by combining a central cylinder and a rectangular block. Start with a cylinder 13.5mm in radius and 25mm high, centered on the origin. Merge this with a rectangular block measuring 27mm wide, 17mm deep, and 25mm high, also centered on the origin but shifted 11mm along the y-axis. Add t...
include <bearing.scad> difference() { union() { cylinder(r=27/2,h=25, center=true); translate([0,-11,0]) cube([27,17,25], center=true); translate([16,-17,8]) rotate([90,0,0]) cube([10,8,5], center=true); translate([16,-17,-8]) rotate([90,0,0]) cube([10,8,5], center=true); } translate([0,0,5])...
glb/cad_0ca7dac54083.glb
Create an endstop holder by starting with a central rectangular base measuring 30mm by 25mm with a thickness of 3mm. Center this base on the origin. Remove two vertical cylindrical holes, each with a radius of 1.6mm and a height of 10mm, positioned at coordinates [12, 9.5, 0] and [12, -9.5, 0]. Add two small rectangu...
EndStopHolder(); module EndStopHolder() { difference() { translate([0,-.5,0]) cube([30,25,3], center=true); translate([12,9.5,0]) cylinder(r=1.6,h=10,center=true, $fn=100); translate([12,-9.5,0]) cylinder(r=1.6,h=10,center=true, $fn=100); } translate([-12.5,-8,-4]) { difference() { cube([5,...
glb/cad_c80da1febd50.glb
Create a belt holder pulley by starting with a central structure composed of a 25mm cube centered at the origin and shifted 11.5mm up along the Z-axis, combined with a cylinder of 12.5mm radius and 25mm height oriented along the Y-axis. Add three rectangular blocks to this form: one 25mm by 5mm by 15mm block centered a...
beltHolder(); module beltHolder() { difference() { union() { translate([0,0,11.5]) cube([25,25,2],center=true); difference() { translate([0,0,10]) rotate([0,90,0]) cylinder(r=12.5,h=25,center=true, $fn=100); translate([0,0,19]) cube([27,25,15],center=true); } translate([...
glb/cad_1bc25b188a5d.glb
Create a Raspberry Pi Model Stand by starting with a central rectangular base measuring 76.2mm by 101.6mm with a height of 3.175mm. From this base, remove several rectangular sections to create ventilation slots: one central slot measuring 44mm by 8.2mm and several smaller square cutouts measuring 3.6mm by 3.6mm posi...
module screwhole() { union() { translate(v=[0, 0, 3.2]) cylinder(h=6.35, r=2.125, center=true, $fn=12); translate(v=[0, 0, 1.6]) cylinder(h=3.35, r1=4, r2=0.65, center=true, $fn=12); } }; module layer1() { translate(v=[38.1, 7, 0.5]) cube(size=[10, 4, 1], center=true); }; module layer2() { union() { ...
glb/cad_5b8eeecce290.glb
Create a BeagleBone Black Stand by constructing a rectangular base with a total footprint of 76.2mm by 101.6mm and a height of 3.175mm. At each of the four corners, create a cylindrical screw hole. Each hole consists of a 12-facet cylinder with a height of 6.35mm and a radius of 2.125mm, topped with a conical transit...
module screwhole1() { union() { translate(v=[0, 0, 3.2]) cylinder(h=6.35, r=2.125, center=true, $fn=12); translate(v=[0, 0, 1.6]) cylinder(h=3.35, r1=4, r2=0.65, center=true, $fn=12); } }; module screwhole2() { union() { translate(v=[0, 0, 3.2]) cylinder(h=6.35, r=2, center=true, $fn=12); transla...
glb/cad_1ed5bee8ec5e.glb
Create a Ramps 1.4 and Arduino holder designed for a 20x20mm frame. Start by creating a rectangular base plate measuring 60mm wide, 113mm long, and 4mm thick. From this base, remove a central rectangular section measuring 55mm by 103mm with a depth of 4mm, leaving a protective outer rim. On the bottom surface of the b...
$fn=20; module beehome (w,l,h,s){ difference (){ cube([w,l,h]); # translate([(w%s)/2,(l%s)/2,0]){ for ( j = [0 : s*1.96 : l] ) { for ( i = [0 : s*3.4 : w] ) { translate([i,j,0])cylinder (h,s,s,$fn=6); translate([i+s*1.7,j+s*0.96,0])cylinder (h,s,s,$fn=6); } } } } } module arm (){ hull() { cube...
glb/cad_283b53ec7f47.glb
Create a MoonWalker foot by constructing a composite base and removing specific mounting holes. Start with a central rectangular base plate measuring 60mm by 10mm with a height of 8mm, centered on the X and Y axes. On top of this base, add a second rectangular slab measuring 60mm by 30mm with a height of 2mm, centered ...
difference(){ union(){ translate([0,5,0]) cube(size=[60,10,8],center=true); translate([0,-5,5]) cube(size=[60,30,2],center=true); translate([30,-5,4]) cylinder(2,15,15,$fn=33); translate([-30,-5,4]) cylinder(2,15,15,$fn=33); translate([32,18,1]) cube(size=[4,75,10],center=true); translate([-32,18,1]) cube(size=[4,7...
glb/cad_b960c1da4aee.glb
Create a MoonWalker motor frame by constructing a base structure from several rectangular blocks. Start with a main rectangular base measuring 70mm in length, 8mm in width, and 8mm in height. Add a second identical 70mm by 8mm by 8mm block positioned 37mm away from the first along the Y-axis. Connect these with a centr...
difference(){ union(){ cube(size=[70,8,8]); translate([0,37,0]) cube(size=[70,8,8]); translate([0,37,0]) cube(size=[27,50,8]); translate([0,0,0]) cube(size=[5,45,8]); translate([65,0,0]) cube(size=[5,45,8]); } translate([35,41,-3]) cylinder(30,1.5,1.5,$fn=130); translate([13.5,41,-3]) cylinder(30,2,2,$fn=130); t...
glb/cad_7445324ade71.glb
Create a MoonWalker frame by starting with a solid rectangular block measuring 18mm wide, 20mm deep, and 6mm high. Center this block on the origin. Remove a vertical cylindrical hole with a diameter of 3mm that passes completely through the center of the block from top to bottom. Next, create a rectangular cutout throu...
difference(){ union(){ translate([-9,-9,5]) cube(18,20,6,$fn=33); } translate([-0,0,-3]) cylinder(50,1.5,1.5,$fn=33); translate([-0,0,12]) cylinder(15,3,3,$fn=33); translate([0,0,17.6]) cube(size=[60,8.5,6],center=true); }
glb/cad_2d971cde9d8e.glb
Create a MoonWalker leg by constructing a rectangular base measuring 120mm in length, 8mm in width, and 6mm in height. At both ends of this base, add a cylinder with a radius of 4mm and a height of 4mm, centered along the width at 4mm and the height at 0mm, with one cylinder positioned at the 120mm mark and the other a...
difference(){ union(){ cube([120,8,6]); translate([120,4,0]) cylinder(6,4,4,$fn=33); translate([0,4,0]) cylinder(10,4,4,$fn=33); rotate([0,3.8,0]) translate([0,0,4]) cube([60,8,6]); } translate([120,4,-2]) cylinder(50,2,2,$fn=33); translate([0,4,-2]) cylinder(50,2,2,$fn=33); }
glb/cad_a2dcfa3b1240.glb
Create a MoonWalker frame by constructing a rectangular hollow base with an outer boundary of 50mm by 50mm and a uniform height of 8mm. The walls of this frame should be 5mm thick. To create the central opening, remove a rectangular section from the middle, leaving a 40mm by 35mm void. Within the remaining walls, place...
difference(){ union(){ cube(size=[45,5,8]); translate([5,38,0]) cube(size=[40,7,8]); translate([0,0,0]) cube(size=[5,45,8]); translate([45,0,0]) cube(size=[5,45,8]); } translate([2.5,30,-10]) cylinder(100,1.5,1.5,$fn=130); translate([2.5,15,-10]) cylinder(100,1.5,1.5,$fn=130); translate([47.5,30,-10]) cylinder(10...
glb/cad_fb23101d7feb.glb
Create a MoonWalker frame by constructing a rectangular base with an outer boundary of 70mm in length, 45mm in width, and 8mm in height. The frame should be hollowed out to create a rectangular ring. To achieve this, remove a central rectangular block measuring 60mm by 37mm by 8mm, positioned 5mm from the left and righ...
difference(){ union(){ cube(size=[70,8,8]); translate([0,37,0]) cube(size=[70,8,8]); translate([0,0,0]) cube(size=[5,45,8]); translate([65,0,0]) cube(size=[5,45,8]); } translate([35,41,-3]) cylinder(30,1.5,1.5,$fn=130); translate([13.5,41,-3]) cylinder(30,2,2,$fn=130); translate([56.5,41,-3]) cylinder(30,2,2,$fn=...
glb/cad_b46d2ce75af5.glb
Create a seat bar bushing consisting of a hollow cylindrical body with a wide base. Start by forming a main cylinder with an outer radius of 7.5mm and a height of 13mm. Attach a larger, thin circular flange at the bottom with a radius of 9.75mm and a height of 1.2mm. Create a central hole through the entire assembly wi...
$fn =360; difference () { union () { cylinder (r=19.5/2,h=1.2); cylinder (r=15/2, h=13); } union () { cylinder (r=13/2,h=14); translate ([0,-4,0]) rotate ([-30,0,0]) cube ([10,1.5,16]); } }
glb/cad_2df5012ed239.glb
Create a gear set for a YRUDS extruder consisting of two separate components: a small drive gear and a larger driven gear. First, create the small drive gear as a double helix gear with 14 teeth and a height of 5mm. This gear sits atop a cylindrical base with a radius of 9mm and a height of 8mm. Drill a central verti...
include <parametric_involute_gear_v5.0.scad> include <mocowanie_m.scad> $fn = 20; translate([-10,0,0]) atak(); translate([40,0,5]) odbiorcza(); module atak(){ union(){ translate([0,0,13]) rotate([180,0,0]) gear_double_helix(14,0,5); difference () { difference () { cylinder(h=8,r=9); cylinder(...
glb/cad_f94c97016b72.glb
Create a gear set consisting of two separate components: a small drive gear and a larger driven gear. For the drive gear, create a double helix gear with 14 teeth and a height of 5mm. This gear sits atop a cylindrical base with a radius of 9mm and a height of 8mm. Bore a central hole through the entire assembly with ...
include <parametric_involute_gear_v5.0.scad> include <mocowanie_m.scad> translate([-10,0,0]) atak(); translate([40,0,5]) odbiorcza(); module atak(){ union(){ translate([0,0,13]) rotate([180,0,0]) gear_double_helix(14,0,5); difference () { difference () { cylinder(h=8,r=9); cylinder(h=20,r=2.5)...
glb/cad_131ea1d8f3af.glb
Create a cube with dimensions 10mm x 10mm x 10mm. From this cube, subtract four separate cylindrical slices to create beveled edges along the top front and back edges. Each bevel should have a radius of 2mm and a length of 10mm. For the first bevel, position the slice at the front right corner, aligned with the edge ...
use <../davel.scad> $fa=3; $fs=0.2; bevel_demo(); module bevel_demo() { difference() { cube([10,10,10]); translate([10,0,5]) #davel_bevel(10, [0,-1,0], [1,0,0], 2); #davel_bevel_pos([10,10,5], 10, [0,1,0], [1,0,0], 2); #davel_bevel_points([0,10,0], [0,10,10], [-1,0,0], [0,1,0], 2); #davel_bevel_p...
glb/cad_880d71b50b84.glb
Create a 3D model consisting of two joined rectangular prisms and a rounded fillet. First, create a rectangular prism with dimensions 10mm in width (X), 5mm in depth (Y), and 10mm in height (Z). Add a second rectangular prism with dimensions 5mm in width, 10mm in depth, and 10mm in height, positioned such that it is ad...
use <../davel.scad> $fa=3; $fs=0.2; buttress_demo(); module buttress_demo() { union() { union() { cube([10,5,10]); translate([0,-5,0]) cube([5,10,10]); } davel_buttress_pos([5,0,5], 10, [0,-1,0], [1,0,0], 2); } }
glb/cad_51b3e3005572.glb
Create a hollow rectangular box with an outer dimension of 10mm width, 13mm length, and 7mm height. The walls should have a thickness of 1.5mm. For the exterior, apply a bevel with a radius of 1.2mm to all edges and corners except for the back face, which should remain sharp. For the interior cavity, create a recess...
use <../davel.scad> $fa=3; $fs=0.15; box_w = 10; box_l = 13; box_h = 7; box_r_out = 1.2; box_r_in = 0.8; box_thickness = 1.5; box_size_outer = [box_w, box_l, box_h]; box_size_inner = [box_w-box_thickness*2, box_l-box_thickness*2, box_h]; demo_box(); module demo_box() { difference() { difference() { cube([...
glb/cad_775cf22bf12d.glb
Create a 3D model consisting of a hexagonal base with a central triangular protrusion. Start by creating a hexagonal prism with a radius of 10mm and a height of 5mm, using 6 facets for the outer perimeter. Subtract a smaller triangular prism from the center of this hexagonal base, with a height of 5.02mm and a radius o...
use <../davel.scad> $fa=3; $fs=0.2; non_rectangular_demo(); module non_rectangular_demo() { union() { difference() { cylinder(r=10,h=5,$fn=6); translate([0,0,-0.01]) cylinder(r=5,h=5.02,$fn=3); ybev = -10*sqrt(3)/2; xbev = -5; #davel_bevel_points([xbev,ybev,0], [xbev,ybev,5], [0,-1,0], [cos(21...
glb/cad_e11c1af10e39.glb
Create a zip tie mount starting with a square base plate 20mm wide, 20mm deep, and 3mm thick. In the center of this base, create a vertical screw hole consisting of a cylinder with a 2.25mm radius that extends through the base, topped by a conical section that flares out from the cylinder to a 4.5mm radius at the top s...
baseWidth=20; baseHeight=3; screwSize=4.5; topHeight=4.5; topBorder=2; topHoleSize=2*screwSize; tieHoleSize=topHoleSize*0.75; topWidth=topHoleSize+2*topBorder; borderTopVertical=topBorder/2; totalHeight=baseHeight+topHeight; $fa=6; $fs=0.4; translate([0, 0, totalHeight]) rotate([180, 0, 0]) mount(); module mount(){...
glb/cad_278906a54f86.glb
Create a restrictor plate for an arcade joystick by starting with a solid cylinder 60mm in diameter and 6mm thick. From this base, remove a central octagonal hole with a radius of 12mm and a height of 8mm to create the primary restriction. Additionally, remove four smaller vertical holes to accommodate screws; each of ...
module base() { cylinder(h=6, r=30, $fn=100); } module screw_hole() { translate([0, 0, -1]) { cylinder(h=8, r=2.25, $fn=100); } translate([0, 0, 4]) { cylinder(h=4, r=3.5, $fn=100); } } module screw_holes() { union() { translate([0, 23.25, 0]) { screw_hole()...
glb/cad_0874ee5dd61a.glb
Create a customizable box and lid set. The box body is a hollow rectangular container with an internal volume of 20mm width, 20mm depth, and 16mm height (based on a 4/5 ratio of a 20mm total height). It features walls 2mm thick with 1mm rounded corners. The base is a solid rounded square 2mm thick, with the walls exten...
$fn = 100; lip_thickness = 1; lip_slack = 0.1; box_width = 20; box_depth = 20; box_height = 20; wall_thickness = 2; wall_radius = 1; ratio = 4/5; module rounded_square(dims, r = 1) { function get_width(dims) = dims[0]; function get_depth(dims) = dims[1]; w = get_width(dims); d = get_depth(dims); po...
glb/cad_c0093a6a1640.glb
Create a random hole mount adapter consisting of two identical, mirrored flat plates. Each plate is 2mm thick. For a single plate, create a central body by taking the convex hull of two cylinders—one with a diameter of 4mm and another with a diameter of 4mm—positioned 50mm apart from each other's centers along the Y-ax...
$fn = 90; Dist1 = 40; Dist2 = 50; Hole1 = 4; Hole2 = 4; Padding = 5; Thickness = 2; Height = 60; minHole = min(Hole1, Hole2); maxHole = max(Hole1, Hole2); actualH = Height + minHole + maxHole; module hole(d = minHole, h = Thickness) { cylinder(h = h, d = d, center = true); }; module adapter() { x = func...
glb/cad_132e7a942149.glb
Create a layout jig for marking a fender washer by constructing two stacked geometric components. First, create a hexagonal prism with a thickness of 5mm and a circumradius of 12.5mm. Centered directly on top of this hexagonal base, add a second, thinner cylindrical volume with a height of 1.2mm and a diameter of 13.76...
POLYGON_SIDES = 6; POLYGON_THICKNESS = 5; POLYGON_RADIUS = 12.5; WASHER_INTERNAL_DIAMETER = 13.76; WASHER_THICKNESS = 1.2; $fn = 100; union() { linear_extrude(height=POLYGON_THICKNESS, center=false) { circle(r=POLYGON_RADIUS,$fn=POLYGON_SIDES); } translate([0,0,POLYGON_THICKNESS]) { cyl...
glb/cad_6440f64346b0.glb
Create a Tea Cup Cover by generating a circular lid with a diameter of 100mm and a base thickness of 2mm. The top surface should feature a radially symmetrical, concave profile that slopes upward from the outer edge toward the center. At the exact center of the lid, place a vertical cylindrical peg with a diameter of 4...
$fn=50; aof = 30; t=[[0,0],for(i=[aof:10:360*1.5]) [i-aof,((cos(i)+1)/(i/6+90))],[360*1.5,0]]; resize([100,100,10]) rotate_extrude() polygon(t); translate([0,0,-2+.001]) cylinder(d=100,h=2); cylinder(r=2.25,h=13); translate([0,0,13]) sphere(r=3);
glb/cad_060b5e2da603.glb
Create a bike belt buckle designed to snap onto a handlebar. Start with a central sphere of radius 21mm. Remove a vertical cylinder of radius 16.8mm and height 84mm from the center. Additionally, remove two cylinders of radius 21mm and height 16.8mm, positioned symmetrically above and below the center at Z offsets of 1...
include <Fontpwthmseg.scad> sphere_rad=21; module ring(){ difference(){ sphere(r=sphere_rad); cylinder(r=0.8*sphere_rad, h=4*sphere_rad, center=true); rotate ([-15, 0,0]) translate([0,0, 0.8*sphere_rad]) cylinder(r=sphere_rad, h=0.8*sphere_rad, center=true); rotate ([15, 0,0]) translate([0,0, -0.8*sphere_rad]) cylind...
glb/cad_f96969cdc555.glb
Create a DIN Rail Clip with a total depth of 20mm. The main body is a vertical plate with a complex profile designed to grip a rail. The profile follows a specific polygon: it starts at [0, 26.18], extends to [4.35, 20], drops to [4.35, 19.25], narrows to [3.35, 19.25], then steps in to [1.85, 19.25] and [1.85, 17.28]....
$fa = 1; $fs = 0.4; br_clamp_w = 1; br_clamp_width = 15; br_clamp_len = 30; br_clamp_d = 2; module slide_in_bracket_h (inv = 0) { br_pin_d = 2; br_pin_x = 0.75; br_clamp_top = br_clamp_len*0.7; br_clamp_top_c = br_clamp_w; br_clamp_o = 1 - inv; br_pins = abs(br_clamp_len / br_pin_d)-1; ...
glb/cad_d45e8d69b7ec.glb
Create a filament rack consisting of a rectangular base plate and a central mounting pillar. Start with a flat rectangular plate measuring 20mm in width, 10mm in height, and 0.5mm in thickness. At the center of this plate, add a vertical octagonal pillar with a radius of 2mm and a height of 10mm. To secure the plate, c...
panelWidth=20; panelHeight=10; panelThick=0.5; difference(){ cube([panelWidth,panelHeight,panelThick]); { cylinder(h=panelThick*2,r=.8,center=true); } translate([18.5,8.5,panelThick/2]) cylinder(h=panelThick*2,r=0.1095*2.4,center=true); translate([18.5,panelHeight-8.5,]) cylinder(h=panelThick*2,r=0.1095*2.4,center...
glb/cad_edf5ddda5d89.glb
Create a replacement hinge peg for a waffle maker. Start with a base cylinder 23.14mm in diameter and 2mm high. On top of this base, center a second cylinder with a diameter of 14mm and a height of 1.32mm. Above that, add a third cylinder with a diameter of 12mm and a height of 11.05mm. Continuing upward, add a fourth ...
$fn=30; c1h = 2; c1d = 23.14; c2h = 1.32; c2d = 14; c3h = 11.05; c3d = 12; c4h = 3; c4d = 14.5; c5h = 2.58; c5d1 = 14.5; c5d2 = 12; ccd = 9; g1 = 3.73; w = 7.7; module piece() { cylinder(r=c1d/2,h=c1h); translate([0,0,c1h]) cylinder(r=c2d/2,h=c2h); translate([0,0,c1h+c2h]) cylinder(r=c3d/2,h=c3h); translate([0,0...
glb/cad_52bb7afbfad7.glb
Create a replacement hinge peg for a waffle maker by stacking a series of concentric cylinders along a central vertical axis. Start with a base cylinder 23.14mm in diameter and 2mm high. On top of this, add a second cylinder 14mm in diameter and 1.32mm high. Above that, place a main shaft cylinder 12mm in diameter and ...
$fn=30; c1h = 2; c1d = 23.14; c2h = 1.32; c2d = 14; c3h = 11.05; c3d = 12; c4h = 3; c4d = 14.5; g1D = 6; c5h = 2.58; c5d1 = 14.5; c5d2 = 12; ccd = 6.5; g1 = 4; w = 7.7; module piece() { cylinder(r=c1d/2,h=c1h); translate([0,0,c1h]) cylinder(r=c2d/2,h=c2h); translate([0,0,c1h+c2h]) cylinder(r=c3d/2,h=c3h); transl...
glb/cad_18e65ef26d0b.glb
Create a Sierpinski 4-Pyramid fractal based on a recursive subdivision of a square-based pyramid. Start with a base pyramid that has a corner-to-corner base width of 50mm and a height of 50mm. For each level of subdivision, divide the pyramid into six smaller sub-pyramids. Four of these sub-pyramids are positioned at...
R=50; olp = .2; DS= 1; Fa = [[0,3,2,1],[0,1,4],[1,2,4],[2,3,4],[3,0,4]]; OA = [olp,0,0]; OB = [0,olp,0]; OC = [-olp,0,0]; OD = [0,-olp,0]; OT = [0,0,olp]; F(A=st(0),B=st(90),C=st(180),D=st(270),T=[0,0,R]); function st(Ang) = R*[cos(Ang),sin(Ang),0]; module F(A,B,C,D,T,d=1,n=DS) { if (n <= 0) { OLP =[OA...
glb/cad_7bae80a7a879.glb
Create a simple disk with a diameter of 100mm and a thickness of 10mm. The disk should be a solid cylinder. Based on the provided configuration, do not include a central hole in this version. Ensure the geometry is a clean, uniform cylinder with flat top and bottom faces.
Diameter = 100; Thickness = 10; Hole_disk = "no"; Diameter_hole = 25; if (Hole_disk=="yes") { difference() { cylinder(h = Thickness, r=Diameter/2); cylinder(h = Thickness, r=Diameter_hole/2); } } else { cylinder(h = Thickness, r=Diameter/2); }
glb/cad_d2ea443c0c9e.glb
Create a Vixen Dovetail Clamp Holder consisting of a curved base, a clamping block, and a tightening knob. First, create the base. If a curved base is required, generate a curved slab with a thickness of 8mm, a width of 34mm, and a length of 70mm, designed to fit a circumference of 930mm. If a flat base is preferred, ...
partNum = 0; baseCircumference = 930; baseThickness = 8; baseLength = 70; baseWidth = 34; endCapThickness = 3; boltLength = 46; boltDiameter = 8.1; boltHeadDiameter = 15; boltHeadThickness = 6; nutDiameterLarge = 15; nutDiameterSmall = 13.1; nutThi...
glb/cad_dd60c540ec6a.glb
Create a curtain glider consisting of a main body and a hook. For the main body, create a rectangular block 14mm wide, 44mm long, and 3mm thick with rounded corners of 3mm radius. Hollow out the center of this block by removing a smaller rounded rectangle 6mm wide, 40mm long, and 3mm thick, leaving a wall thickness of ...
include <roundCornersCube.scad> $fn=100; railHeight = 32; railWidth = 14; gap = 8; rotate([0,90,0]){ union(){ rotate([0,90,0]){ difference(){ roundCornersCube(railWidth,railHeight+12,3,2); roundCornersCube(railWidth-8,railHeight+4,3,2); translate([0, -(railHeight-gap)/2, -1.5]){ cube([10,railHeight-gap,...
glb/cad_45563758b29c.glb
Create a parametric modular bin with an outer footprint of 80mm width, 80mm depth, and 40mm height. The bin features a uniform wall thickness of 2mm. Start with a solid cube of the outer dimensions and remove a central rectangular volume to create the hollow interior. The interior cavity should begin 2mm from the bot...
width = 80; depth = 80; height = 40; wall_thickness = 2; chamfer = 4; module chamferCubeImpl(sizeX, sizeY, sizeZ, chamferHeight, chamferX, chamferY, chamferZ) { chamferX = (chamferX == undef) ? [1, 1, 1, 1] : chamferX; chamferY = (chamferY == undef) ? [1, 1, 1, 1] : chamferY; chamferZ = (chamferZ == undef)...
glb/cad_e642712a52dd.glb
The provided code is a comprehensive OpenSCAD library for a custom font called **"FreeSerif"**. It defines the geometric shapes (glyphs) for a wide range of characters, including punctuation, numbers, uppercase and lowercase letters, and special symbols. ### Key Components of the Code: 1. **Glyph Definitions (`FreeS...
text = "Sven"; handle_length = 20; text_pos_offset = 5; hole_size = 2; d = 24; h = 2.3; handle_width = 15; betweenCharOffset = 7; defaultTextPosOffsetHorizontally = -5; textPosOffsetLengthVertically = 3; textDepth = 1; dHole = hole_size; holeOffset = 3; smooth = 360; module coin() { r = d/2; rHole = dHol...
glb/cad_021e082e954f.glb
Create a parametric inflator nozzle consisting of three stacked concentric sections: a top neck, a middle stem, and a wide base. The top neck is a hollow cylinder with a height of 30mm and an outer radius of 9.17mm. The walls are 1.5mm thick. Above this neck, add a 16mm tall capped tip with a slightly smaller radius ...
$fa = 6; $fs = 0.25; eps = 0.001; up_side_down = true; view_cutout = false; wall_thickness = 1.5; bottom_wall_thickness = 2.66; top_h = 30; top_r_outside = 9.17; top_r = (top_r_outside-wall_thickness*2)/2; middle_h = 15; middle_r_outside = 14.5; middle_r = (middle_r_outside-wall_thickness*2)/2; bottom_h = 15.12; bot...
glb/cad_66ece653a0ac.glb