Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a motor mounting bracket for a waterjet. Start with a main body formed by the union of a rectangular block measuring 55mm x 25mm x 33mm and a cylinder with a radius of 17.5mm and a height of 33mm centered on the same axis. Integrate an intake plate created by the convex hull of two cylinders, each with a radius ...
$fn=72; module motormount(){ difference(){ union(){ hull(){ translate([50,-10,2.5]) rotate([90,0,0]) cylinder(r=2.5,h=50,center=true); translate([-50,-10,2.5]) rotate(...
glb/cad_1afb221375b2.glb
Create an openwaterjet nozzle consisting of a tapered main body and a mounting base with internal stator blades. Start with the main nozzle: a hollow cone 100mm long, tapering from a radius of 46mm at the inlet to 29.75mm (57.5mm diameter) at the exit. Add a 10mm thick fairing cylinder at the base that transitions fr...
$fn=120; EXIT=57.5; LENGTH=100; module blade(){ difference(){ union(){ hull(){ translate([1.5,20,5]) rotate([90,-10,0]) scale([1,1.5,1]) cylinder(r=3,h=41,center=true); translate([4.5,20,1]) ...
glb/cad_f9c2ce37a9e1.glb
Create a 3D architectural model of a building complex called the crestprojectmodel. The overall building footprint is 50,000mm by 35,000mm with a total height of 12,000mm. Construct the exterior shell using walls with a thickness of 500mm. The layout includes a warehouse section with dimensions of 43,000mm by 21,000m...
building_size=[50000,35000,12000]; apartment_depth=7000; apartment_width=5000; hallway_width=2000; A2_sheet=[59400,42000]; warehouse_size=[building_size.x-(apartment_depth+hallway_width), building_size.y-(apartment_depth+hallway_width), building_size.z]; wall_thick=500; half_wall=wall_th...
glb/cad_8b06a7492635.glb
Create a Bowden tube cable guide. Start with a main cylinder that has an outer diameter of 35.5mm and a height of 11.4mm. Remove the bottom half of this cylinder to create a semi-circular C-clamp shape. Hollow out the center of the cylinder with a vertical hole 15mm in diameter. On the flat bottom face, create a circu...
$fn=80; dr=30; delta=0.7; dr1=6.9; dr2=0; dl1=5; dl2=3; dbohr=5.1; dsockel=10; hsockel=1.9; dsenk=10; hsenk=3; h=max(dsockel, dsenk)+delta*2; da=dr+max(dr1, dr2, dl1, dl2)*2+delta*2.5; main(); module main() { difference() { cylinder(r=da/2,h=h, center=1); translate([0,0,-1]) cylinder(r=dr/2,h=h+2, center=...
glb/cad_1aac141521f2.glb
Create a rectangular sensor mount plate with a thickness of 1mm. The overall dimensions of the plate are 33mm in length and 11mm in width. Center three circular holes through the thickness of the plate. Each hole must have a diameter of 3.5mm. Position the first and third holes symmetrically near the ends of the plat...
facets = 180.0; slop = 0.4; ringThick = 3.4; id1 = 41.0; pid1 = id1 + slop; h1 = 3.0; id2 = 39.0; pid2 = id2 + slop; h2 = 15.0; magnetCenterRadius = 37.0; sensorHoleSpacing = 27.0; sensorHoleDia = 3.5; sensorHeight = 11.0; sensorLength = 33.0; sensorBackspace = 8.15; mountHeight = 1.0; mountRecessThick = 1.0; ove...
glb/cad_d3cb98e1c778.glb
Create a battery holder consisting of two rectangular blocks joined together. First, create a large base rectangular prism with a length of 210mm, a width of 69mm, and a height of 125mm. From the top of this base, remove a rectangular section to create a recessed area, leaving a wall thickness of 3mm. The resulting mai...
use <shortcuts.scad>; akkuL=210; akkuLk=175; akkuHk=50; akkuB=69; akkuH=125; rund=10; wand=3; $fn=40; akkuK(); *boxgriff(); D() { minkowski() { boxgriff(); sphere(r=3); } T(akkuL/2, 0, akkuH/2) box(); Tz(-5) Cu([500,200,11]); } module griffmulde() { Tx(20)Cu([1,1,30]); D() { Cy(r=20, h=20); donut(r=23...
glb/cad_9369abd7f1e8.glb
Create a battery holder consisting of two rectangular blocks joined together. First, create a large base rectangular block that is 175mm long, 69mm wide, and 50mm high. Position this block so that its center is offset from the origin. Attached to the top of this base, create a second, thinner rectangular slab that exte...
use <shortcuts.scad>; akkuL=210; akkuLk=175; akkuHk=50; akkuB=69; akkuH=125; rund=10; wand=3; $fn=20; akkuK(); module griffmulde(){ Tx(20)Cu([1,1,30]); D() { Cy(r=20, h=20); donut(r=23, rr=10); Tx(-4)donut(r=15, rr=6.2); } } module boxgriff() { D(){ box2(); Tz(akkuH/2) Tx(255) S([2, 4.6, 4.5]) Rx(90) griffmulde();...
glb/cad_6f06e5d19f34.glb
Create a battery holder consisting of two rectangular sections. First, create a main base block that is 175mm long, 69mm wide, and 50mm high. Attached to the top of this base, create a second rectangular section that is 210mm long, 69mm wide, and 75mm high, but offset it so that it only extends 75mm in height above the...
use <shortcuts.scad>; akkuL=210; akkuLk=175; akkuHk=50; akkuB=69; akkuH=125; rund=10; wand=3; $fn=20; akkuK(); *boxgriff(); D() { scale([1,1,1]) boxgriff(); T(akkuL/2, 0, akkuH/2) box(); Tz(-5) Cu([500,200,11]); } module griffmulde() { Tx(20)Cu([1,1,30]); D() { Cy(r=20, h=20); donut(r=23, rr=10); Tx(-4)do...
glb/cad_e8813be9bf98.glb
Create a 3D block by extruding a specific 2D polygon to a height of 50mm. The polygon is defined by the following vertices in the XY plane: start at (-40, -15), move to (40, -15), then to (40, 15), then to (37, 15), then to (-37, 15), and finally to (-40, 12) before closing the shape back at the start. This results in ...
use <lib/shortcuts.scad> use <lib/mhop_lib.scad> a=80; b=30; e=3; h=50; module Tri(a) { polygon(points=[[0,0], [0, a], [a,0]]); } va=[ [-a/2,-b/2], [a/2,-b/2], [a/2, b/2-e], [a/2-e, b/2], [-a/2+e,b/2],[-a/2,b/2-e] ]; linear_extrude(height=h) polygon(points=va);
glb/cad_08b421767b4a.glb
Create a rounded box with external dimensions of 83mm in length, 120mm in width, and 48mm in height. The walls of the box should have a uniform thickness of 3mm. All vertical corners must be rounded with a radius of 15mm. To construct the walls, create four rectangular slabs: two measuring 73mm by 3mm by 48mm and two...
rounded_box(); module rounded_box ( xsize=83, ysize=120, zsize=48, thick=3 , roundc=15, fn_edge_out=100, fn_edge_in=40, fn_corner_out=100, fn_corner_in=40 ) { translate ([ 0,0,thick/2]) cube([xsize-(2*roundc),ysize-(2*roundc),thick],center=true); translate ([ 0,(ysize/2)-(thick/2),roundc+(zsize-roundc)/2]) cube(...
glb/cad_a4cd213597ff.glb
Create a C-shaped clip with a height of 15mm. Start with a hollow cylinder that has an inner radius of 13mm and an outer radius of 16mm. Cut a 90-degree wedge out of this cylinder to create the open gap. At each end of the resulting C-shape, add a solid semi-circular cap with a radius of 3mm that extends from the inner...
use <lib/shortcuts.scad> $fn=80; clipInnerRad = 26/2; clipThikness = 3; clipHeight = 15; supportWidth = 0; supportHeight = 0.3; bh=clipHeight+2; Ty(clipInnerRad+clipThikness*2/2) Tz(bh/2-1) CuR(clipInnerRad*4, clipThikness*2, bh); rotate([0,0,-90]){ clip(ir=clipInnerRad-supportWidth/2,t=clipThikness+supportWidth...
glb/cad_59b19543eb48.glb
Create a 3D object with a height of 5mm. Start by constructing two concentric rings. The first is a ring with an outer radius of 2.1mm and a wall thickness of 1.5mm. The second is a larger ring centered 3.75mm away from the first along the Y-axis, with an outer radius of 1.65mm and a wall thickness of 1.5mm. Both rings...
$fn=100; r1=4.2/2; r2=3.3/2; d=1.5; h=5; module doppelring() { translate([0,-(r1+r2),0]) ring(r2, 180) square([d,h]); ring(r1) square([d,h]); } difference() { doppelring(); translate([0,0,-1]) cylinder(r=r1, h=h+2); translate([0,-(r1+r2),-1]) cylinder(r=r2, h=h+2); translate([-(r2*1.6/2),-(r1+r2/2),-1]) cube([r2*1.6...
glb/cad_0d268a619e84.glb
Create a bayonet container lid with a round exterior. The lid has an overall height of 4mm and an outer diameter of 87mm. The main body is a cylinder with a central hollow cutout of 41.5mm radius and 1mm depth, leaving a 1mm thick circular base. Along the inner top edge of the lid, create three identical bayonet lock...
_part = "lid"; _insideDiameter = 85/2-1; _interiorHeight = 3; _style = "round"; _numberOfSides = 9; _minimumWallThickness = 1.0; _topBottomThickness = 1.0; _lipHeight = 3.0; _bayonetDepth = 0.8; _partGap = 0.08; _resolution = 60; bayonet_container(); module bayonet_container( _part = _part, _insideDiamete...
glb/cad_c831cc147045.glb
Create a rectangular electronics enclosure with a matching lid. The main box has outer dimensions of 60mm x 200mm and a total height of 81.6mm. The walls are 3.6mm thick, and the bottom base is 1.6mm thick. All four vertical corners are rounded with a 6mm radius. Inside the box, create a hollow cavity starting 1.6mm ...
box_wp(); module box_wp( box_Size_X = 60, box_Size_Y = 200, box_Inner_Height = 80, box_BottomTop_Thickness = 1.6, box_Screw_Corner_Radius = 6, box_Screw_Diameter = 3.2, box_Wall_Thickness = 3.6, barrier_Thickness = 1.2, barrier_Height = 2, barrier_Tolerance = 0.8, ...
glb/cad_6f6d1fb94142.glb
Create a collection of geometric primitives arranged in a grid. The set includes: A cylinder with a radius of 10mm and a height of 10mm. A half-cylinder with a radius of 10mm and a height of 10mm. A cylinder sector with a radius of 10mm and a height of 10mm, spanning from 0 to 90 degrees. A ring with an outer radius o...
show_examples(); module show_examples() place_in_rect(30, 30) { Cy(h = 10); CyH(h = 10); CyH(h = 10, w = 30); CyS(h = 10); CyS(h = 10, w1 = 25, w2 = 75); Cu(10); Ri(h = 10); RiH(h = 10); RiS(h = 10, w1 = 10); RiS(h = 10, w1 = 30, w2 = 300); Sp(); SpH(10, 30, 30); } help(); module help() hel...
glb/cad_ceb65fcbc6a4.glb
Create a geometric model consisting of a square plate with a central spherical indentation. Start by creating a solid cube with a side length of 63mm and a height of 20mm, centered on the origin. From this cube, remove a central cylinder with a radius of 31.5mm and a height of 13.2mm to create a circular void in the mi...
$fn=120; a=63; r=25/2; difference() { teil1(); translate([0,0,-a/2]) cube([a+1,a+1,a], center=true); } module teil1() { intersection() { rotate_extrude() difference() { union() { translate([a/2,-18.4,0]) circle(r=2*r); translate([10,-7,0]) square([15, 10]); translate([0,-5,0]) square([10, 5]); } translate([7,25,0])...
glb/cad_f757b5e49f5f.glb
Create a lock holder for a luggage carrier. Start by creating a main body that is a hull of two circular plates, each 1mm thick, separated by a distance of 62mm along the Z-axis. The first plate has a radius of 10mm and the second has a radius of 6.5mm, both centered on the Z-axis. Subtract a central vertical cylinder...
d=13.9; schlosshalter(d=d); $fn=80; module schlosshalter(d) { l=62; rk=13/2; a=13.5; difference() { hull() { translate ([0,0,0]) platte(rk=rk, rg=10, a=a); translate ([0,0,l]) platte(rk=rk, rg=10, a=a); } ab=a+rk-3.5-5; fuehrung(l, off=15, d=3....
glb/cad_4a68c1b5d54e.glb
Create a cable clamp designed to hold a single cable. Start by creating a main cylinder with a diameter of 11.5mm and a height of 12mm. From the center of this cylinder, remove a smaller concentric cylinder with a diameter of 7.5mm and a height of 12mm to create a ring. To transform this ring into a clip, remove a 12...
cables_count = 1; cables_diameter = 7.5; cables_spacing = 0; thickness = 2; gap = -1; width = 12; screw_diameter = 5.5; len=5; d=20; clamp=1; epsilon = 0.1+0; $fn=64+0; outer = cables_diameter+2*thickness; if(clamp==1) clamp(); else cip(); module clamp() { difference() { clip(); transla...
glb/cad_6adf6a1fb4dd.glb
Create a battery cover for a Canon LP-E12 battery. Start with a main rectangular body measuring 50.4mm in width, 34.3mm in depth, and 11mm in height. Hollow out the center of this body by removing a rectangular volume of 49.4mm by 33.3mm by 10mm, leaving a wall thickness of 1mm on the sides and bottom. On the top face,...
battery_slit_h = 8; tolerance = [0.8, 1, 0]; battery_size = [48.4, 32.3, 12.7] + tolerance; delta = 1; h = 10; hole_w = 25; prism_w = 5; prism_delta = 1.2; cover(battery_size, battery_slit_h, h, delta, hole_w, prism_w, prism_delta); module prism(l, s) { points = [[s/3, 0], [s, 0], [s, s]]; translate([0, 0, s]) rot...
glb/cad_373365322ed2.glb
Create a thin circular cover with a diameter of 22mm and a thickness of 0.4mm. Center a cylindrical hole with a diameter of 2.8mm through the middle of the disc. Finally, create a narrow radial slot 0.1mm wide that cuts from the center hole straight to the outer edge of the disc.
cover_diameter = 22; cover_thickness = 0.4; screw_diameter = 2.8; difference() { hull() rotate_extrude(convexity = 10, $fn=200) translate([(cover_diameter)/2, 0, 0]) circle(d=cover_thickness*2, $fn=200); cylinder(h=cover_thickness+1, d=screw_diameter, $fn=200); cut_thickness = 0.1; translate([-cut_thi...
glb/cad_67434899c15d.glb
Create a seedling pot grid consisting of a 2 by 4 array of interlocking modules. Each individual module is a cube measuring 48mm in width, depth, and 12mm in height, with a wall thickness of 1.6mm. At the center of each module, create a square cutout to accommodate a pot. This cutout should be based on a pot diameter...
$fn=200; pot_d = 40; pot_h = 60; pot_thickness = 1.6; grid_d = 48; grid_h = 12; grid_thickness = 1.6; socket_d = 7; socket_tolerance = 0.45; grid_size = [2, 4]; choice = 3; if (choice == 0) pot(pot_h, pot_d, pot_thickness); else if (choice == 1) pot_cap(pot_thickness, pot_d); else if (choice == 2) tamper(pot_...
glb/cad_55c7a11c89a6.glb
Create a protection case for a glass with a total height of 150mm. The model consists of a hollow base that transitions from a circular bottom into a rounded-square tube. Start with a thin-walled circular base with an outer diameter of approximately 98.6mm. From the bottom, create a curved transition that angles outwa...
total_height = 150; straight_part_starts_at = 55; square_size = 35; size_round_parts = 60; scale_factor_x = 0.74; scale_factor_y = 0.74; d_lower_bottom = 95; c1_height = 3; d_c1 = d_lower_bottom + 7; c2_height = 3; d_c2 = d_c1 + 4; small = true; module Protection () { d_lower_bottom = small ? d_lower_bottom + d...
glb/cad_7d479d60498a.glb
Create a lid for a hard cheese container. Start by creating a solid trapezoidal prism with a height of 120mm, a base width of 90mm, and a top width of 60mm. The prism should have a total thickness of 4.2mm (calculated as 2 * 1.6mm + 0.8mm) and rounded corners with a radius of 5mm. From the top face, remove a smaller t...
module simple_trapezoid(w1, w2, h, center=true) { translate(center ? [-h/2, -w1/2] : [0, 0]) polygon([ [0, 0], [h, (w1-w2) / 2], [h, w2 + (w1-w2) / 2], [0, w1], ]); } module trapezoid_round_edges(w1, w2, h, r=5, center=true) { assert (r <= h/2); trapezoid_positions...
glb/cad_1b5b2efe2ca9.glb
Create a flower-shaped washer with a total height of 1.8mm. Start by creating a main flat cylinder with a radius of 10mm and a height of 1.8mm. Remove a concentric center hole with a radius of 3.3mm. To create the grip pattern on the outer edge, add nine smaller cylinders, each with a radius of 2.5mm and a height of 1....
height = 1.8; outer = 10; inner = 3.3; union() { difference() { cylinder(h=height, r=outer, center=true, $fn=100); cylinder(h=height, r1=inner, r2=inner, center=true, $fn=100); } for (i=[1:9]) { translate([cos(i * 40) * outer * 0.9, sin(i * 40) * outer * 0.9, 0]) cylinder(h=height, r=2.5, center=true, $fn=...
glb/cad_9f81a2a4c498.glb
Create a keyboard case half for a TADA68. Start by creating a solid rectangular block with overall dimensions of 110.6mm in width, 54mm in depth, and 160.4mm in height. Hollow out the center of this block to create a shell with a wall thickness of 2mm. The interior cavity should begin 22mm from the bottom to allow for ...
tada_frame = [106.6, 15, 316] + [0.2, 0.2, 0.4]; key_cap_height = 15; tada_bottom_height = 20; tada_edge = 5; tada_usb_clearance = 18; wall = 2; nib_height = 40; tada_case_half(tada_frame, key_cap_height, tada_bottom_height, tada_edge, wall, tada_usb_clearance, nib_height); module tada_case_half(tada_frame, key_cap_...
glb/cad_8d7f01924651.glb
Create a TADA68 keyboard case consisting of a hollowed rectangular base with rounded outer corners. The outer dimensions are 308.8mm in width and 99.25mm in depth, with a total height of 14mm. The walls are 2mm thick. Inside the case, create a central cutout for the PCB, leaving a 2mm wall perimeter. Within this inter...
use <threads.scad> module pyramid(b_width, t_width, b_depth, t_depth, height) { linear_extrude(height=height, scale=[t_width/b_width, t_depth/b_depth]) square([b_width, b_depth], center=true); } module cutout(b_width, t_width, b_depth, t_depth, b_height, t_height) { union() { cube([t_width,t_depth...
glb/cad_8b573495ec55.glb
Create a cable holder designed to grip a table. Start by creating a rectangular table base measuring 500mm in width, 50mm in length, and 25mm in height. Construct a gripper around this base. The gripper consists of a bottom plate measuring 25mm by 46mm with a thickness of 4mm, two side walls measuring 25mm by 25mm by...
table_height = 25; module Table() { cube([500,gripper_length,table_height], center=true); } gripper_width = table_height; gripper_length = table_height*2; gripper_thickness = 4; module Gripper() { translate([0,-gripper_length/2,table_height/2]) { rotate(90,[0,1,0]) { cylinder(h=gripper_width,d=gripper_thickn...
glb/cad_abc8049f31af.glb
Create a cable holder and gripper assembly. Start by creating a central table base that is 500mm wide, 50mm long, and 25mm high. Construct a gripper frame around this base. The gripper consists of a bottom plate 37.5mm wide, 50mm long, and 5mm thick. Add two vertical side walls to this plate, each 5mm thick and 25mm ...
table_height = 25; gripper_width = table_height*1.5; gripper_length = table_height*2; gripper_thickness = 5; holder_height = 30; holder_width = gripper_length/2; holder_thickness = 4; handle_length = 60+holder_thickness; handle_thickness = 4; module Table() { cube([500,gripper_length,table_height], center=true); }...
glb/cad_9e20e6c0c6fa.glb
Create an LED profile holder consisting of a mounting base and an angled support arm, both with a thickness of 8mm. First, construct the mounting base. Create a flat plate with a complex polygonal footprint that fits a frame of 6.4mm by 40.4mm. Within this base, carve out a central slot for a cable tie that is 3.2mm ...
thickness = 8; base_w = 20; overlap_w = 6; frame_tolerance = 0.4; frame_w = 6 + frame_tolerance; frame_h = 40 + frame_tolerance; tie_tolerance_w = 0.7; tie_tolerance_h = 1; tie_w = 2.5 + tie_tolerance_w; tie_h = 1 + tie_tolerance_h; $fn=50; base(frame_w, frame_h, thickness, base_w, overlap_w, tie_w, tie_h); arm_w =...
glb/cad_e8ab0a7dfda2.glb
Create a 3D-printable refiller tool designed to fit a pot with a 105mm diameter. The main body is a hollow cylindrical pot with a wall thickness of 6mm and a total height of 10mm. Attached to this pot is a pouring beak structure. Start with a circular profile of 7mm radius and extrude it upwards to a height of 30mm, ...
pot_border_thickness=6; pot_diameter=105; gripper_translation=pot_border_thickness/3; height=20; fill_width=14; wall_thickness = 1; skewedness = 6; water_can_size = 12.5; back_wall_height = height/2; beak_scale_factor = 2; width_scale_factor = 2; module beak(t_offset=0) { translate([-skewedness,0,0]) rotate(2...
glb/cad_9b1a6f9e50ab.glb
Create a set of ten plant markers, each consisting of a flat base and a raised character. For each marker, create a base by combining a 10mm by 10mm square with rounded corners (5mm radius) and a thin rectangular stake extending 60mm downwards from the center of the square's bottom edge; the stake should be 5mm wide. T...
show_part = 0; $fn = 200; for (i = [0:4]) { translate([25 * i, 0, 0]) name_tag(chr(65 + i), show_part); } for (i = [5:9]) { translate([25 * (i - 5), 80, 0]) name_tag(chr(65 + i), show_part); } module name_tag(name, show_part=0, height=1.6) { if (show_part == 0 || show_part == 1) { linear_extrude...
glb/cad_2f8849fe831b.glb
Create a key stem replacement for a stackpole switch. Start with a hollow square tube that has an outer dimension of 8.22mm, an inner dimension of 7mm, and a total height of 19.2mm. At the top of the tube, add a 1mm high lip that extends the outer width slightly. On the exterior of the tube, add two locking tabs: one ...
outside=8.22; inside=7; height=19.2; latch_bite=0.65; latch_width=2.6; latch_height=2.3; split_width=1.75; mid_point=10; mid_thickness=1.25; module keyStem(o = 8.22, i = 7, h = 19.2,b = 0.5, bw=2.6, bh=2.3, s = 1.75, m = 10, mt = 1.25 ) {difference() { union() { squareTube(o=o,i=i,h=h); translate([o/2,-b/2,bh/2...
glb/cad_9afa620162b3.glb
Create a series80-ti99-keystemreplacement part consisting of three connected wedge-shaped segments aligned along a central axis. The first segment is a wedge with a base width of 3mm, a length of 10mm, and a height of 1.2mm. Directly attached to the end of this first wedge, add a second identical wedge of 3mm width, 10...
module splitWedge(w=3,l=30,h=1.2) { shape_wedge(w,10,h,w,0.1,1,1); translate([0,10,0]) rotate([0,0,180]) shape_wedge(w,10,h,w,0.1,1,1); translate([0,30,0]) rotate([0,0,180]) shape_wedge(w,50,0.75,w,0.1,1,1); } module shape_wedge(x1,y1,z,x2,y2,x2p = 0.5,y2p = 0.5) { x = (x1-x2) * (x2p - 0.5); y = (y1-y2) * (...
glb/cad_2ab12484e25c.glb
Create a wind sensor enclosure consisting of a rectangular base and a matching lid. Construct the main body as a rectangular box with overall dimensions of 4.75mm in length, 2.25mm in width, and 0.125mm in height. Within this body, create four circular cutouts with a radius of 0.25mm, positioned symmetrically at the ...
$fn = 50; translate(v=[0.00000, 0.00000, 0.88750]) { difference() { difference() { difference() { difference() { difference() { difference() { difference() { difference() { ...
glb/cad_86447d7b9a13.glb
Create a project box for a Blubaru PCB. The main body is a bottom shell with a wall thickness of 2mm and rounded corners with a 2mm radius. The outer dimensions are derived from a PCB size of 79.52mm by 80.01mm, with a total height of approximately 22mm. The bottom shell features a hollowed-out center to accommodate t...
Thick = 2; PanelThick = 2; Filet = 2; Resolution = 50; m = 0.8; PCBFeet = 1; Vent = 1; Vent_width = 1.5; PCBLength = 79.52; PCBWidth = 80.01; PCBThick = 1.6; FootHeight = 6.35 - PCBThick; FootDia = 5.6; Cutout...
glb/cad_3568c6e1ff6c.glb
Create two pump adapters, each consisting of a central cylindrical body with tapered ends and a hollow core. For the first adapter, create a central cylinder 5mm high with a 4mm diameter. Attach a 2.5mm high cylinder to the top with a 2.26mm diameter base tapering to a 1.36mm top, and a 2.5mm high cylinder to the botto...
difference() { union() { cylinder(2.5, 2.26/2, 1.36/2, $fn=200); translate([0,0, -2.5]) cylinder(2.5, 2.0/2, 2.0/2, $fn=200); translate([0,0, -7.5]) cylinder(5, 2, 2, $fn=200); rotate([0, 180, 0]) translate([0,0,9.5]) { cylinder(2.5, 2.26/2, 1.36/2, $fn=200); ...
glb/cad_00ed86604818.glb
Create a hardware mounting bracket by starting with a central cube measuring 29.6mm on each side and 10mm in height. Hollow out the center of this cube by removing a smaller cube measuring 27.6mm per side and 10mm in height, positioned 1mm above the base, to create a thin-walled rim. Further carve out the structure by ...
w = 29.6; rim = 1; h = 10; plate = 1; font = "Liberation Sans"; cube_size = 60; letter_size = 2.5; letter_height = 3; module letter(l) { linear_extrude(height = letter_height) { text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 200); } } color([0.5,0.5,0.5,0.3]) { differ...
glb/cad_192f399d68ec.glb
Create a hardware gasket holder. Start by constructing a main rectangular chamber that is 50mm wide, 55mm deep, and 10mm high, centered on the Y-axis. Hollow out the center of this chamber to create a rim 1mm thick, leaving a central void that is 48mm wide and 45mm deep. At the base, integrate a rectangular plate that ...
w = 50; rim = 1; h = 10; plate = 1; acrylic = 2.3; font = "Liberation Sans"; cube_size = 60; letter_size = 3; letter_height = 3; module letter(l) { linear_extrude(height = letter_height) { text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 200); } } { color([0.7,0.7,0...
glb/cad_0e9cca980b42.glb
Create a 3D model of the scad-lenbok-utils, which consists of a series of five identical, thin, curved plates arranged in a linear row. Each plate is a flat, extruded shape with a height of 5mm. The profile of each plate is defined by a symmetrical, wave-like curve. The curve starts at a point, arcs upward to a peak,...
function BEZ03(u) = pow((1-u), 3); function BEZ13(u) = 3*u*(pow((1-u),2)); function BEZ23(u) = 3*(pow(u,2))*(1-u); function BEZ33(u) = pow(u,3); function PointAlongBez4(p0, p1, p2, p3, u) = [for (i=[0:len(p0)-1]) BEZ03(u)*p0[i]+BEZ13(u)*p1[i]+BEZ23(u)*p2[i]+BEZ33(u)*p3[i]]; function REPEAT_MIRRORED(v) = ["m",v]; func...
glb/cad_8f0624adb324.glb
Create two identical molds for keyboard case tenting feet. Each mold is a rectangular block measuring 25mm wide, 65mm long, and 8mm high. Within each block, carve out four identical negative cavities spaced 15mm apart along the length. Each cavity is formed by removing a central cylindrical shaft with a radius of 2.5...
$fa=1; $fs = $preview ? 5 : 2; boltRad = 5 / 2; nutRad = 9.4 / 2; nutHeight = 3.5; module micro_usb_bracket() { height = micro_usb_socket_height + 0.25; difference() { translate([0, 0, height/2]) roundedcube([micro_usb_screw_sep + 7, 7, height], center = true); translate([0, 8, -pcb_thickness...
glb/cad_f5e5e9a01ebe.glb
Create a mounting plate for a rotary encoder designed for a keyboard PCB. Start with a base plate that has a thickness of 1.5mm. Cut a rectangular opening through the plate to accommodate the encoder footprint. This cutout consists of two stepped rectangular sections: the first section measures 12.1mm by 11.5mm with ...
include <../keyboard-case.scad> include <crkbd-common.scad> theme = 3; top_mount_mcu = false; top_mount_reset = false; window_z = top_mount_mcu ? 13 : 6; $fa = 1; $fs = $preview ? 8 : 2; encoder_base_size = [12.1, 11.5, 1]; encoder_base_size2 = [15.1, 11.5, 1.5]; module encoder_base_cutout() { cube(encoder_base...
glb/cad_2c356258fcb5.glb
Create a mechanical keyboard case for a Corne keyboard. The model consists of a top plate and a bottom case with integrated tenting supports. The top plate is a flat slab with a thickness of 4mm. The bottom case is a hollowed shell with a wall thickness of 2.5mm. The total height of the bottom case is 8.2mm. The bot...
include <crkbd-common.scad> include <../keyboard-case.scad> theme = 3; nrfmicro = false; wall_thickness = 2.5; plate_thickness = 4; depth_offset = 6; top_case_raised_height = 7; bottom_case_height = 8.2 - plate_thickness + 2 + 2; screw_rad = 2.2 / 2; screw_head_rad = 5.4 / 2; screw_head_depth = 0; bottom_screws = t...
glb/cad_c92361abcd20.glb
Create a hue-wall-switch holder designed as a rectangular wall plate. The main body is a rectangular shell with outer dimensions of 86mm width and 146mm height, and a wall thickness of 2.5mm. The plate features two symmetrical rectangular cutouts centered vertically to accommodate light switches. These cutouts are po...
quality = 100; epsilon = 0.001; include <blend.scad> include <hue-holder.scad> x = 86; y = 146; thickness = 2.5; wall = 1; switch_from_border = 42.5; light_switch_height=5.2; cutout_depth=3.5; base_depth = 5; additional_depth=light_switch_height+cutout_depth; magnet_depth=5; screw1_offset = 25; screw2_offset = 60; ...
glb/cad_c05b3e93ac95.glb
Create a hue-wall-switch holder designed as a rectangular blend case with dimensions of 86mm width and 145mm length. The main body should have a wall thickness of 2.5mm and a base depth of 5mm, with an additional depth of 8.5mm added to the main structure. At the top section, create a central cutout for a light switch...
quality = 100; epsilon = 0.001; include <blend.scad> include <hue-holder.scad> x = 86; y = 145; thickness = 2.5; wall = 1; switch_offset=y-25/2-(86-32.5)+25/2; light_switch_height=5.2; screw_switch_offset=30.8-25/2; plug_screw_offset=36; cutout_depth=3.5; base_depth = 5; additional_depth=light_switch_height+cutout...
glb/cad_10250d2f1a9a.glb
Create a hue-wall-switch holder designed as a rectangular faceplate with a total width of 86mm and a height of 205mm. The main body has a thickness of 2.5mm. Along the vertical center, create three identical rectangular cutouts for light switches, positioned at offsets of 30.8mm, 90.5mm, and 165.5mm from the center. ...
quality = 100; epsilon = 0.001; include <blend.scad> include <hue-holder.scad> x = 86; y = 205; thickness = 2.5; wall = 1; switch1_offset=30.8+25/2; switch2_offset=90.5+25/2; switch3_offset=205-40-25/2; light_switch_height=5.2; screw_switch_offset=30.8-25/2; plug_screw_offset=36; cutout_depth=3.5; base_depth = 5; ...
glb/cad_d3400e263b5f.glb
Create a hue-wall-switch holder designed to fit over a wall socket. Start by constructing a main rectangular case with outer dimensions of 86mm by 133mm and a wall thickness of 2.5mm. The case should have a total depth of 13.5mm, consisting of a 5mm base depth and an additional 8.5mm depth for the blend. In the center...
quality = 50; epsilon = 0.001; include <blend.scad> include <hue-holder.scad> x = 86; y = 133; thickness = 2.5; wall = 1; light_switch_height=5.2; cutout_depth=3.5; base_depth = 5; additional_depth=light_switch_height+cutout_depth; magnet_depth=5; screw_offset=17.85; base_offset=-24.45; difference() { union() { ...
glb/cad_a2d280fe8e81.glb
Create a hue-wall-switch holder by starting with a central rectangular block that is 42mm wide, 98mm high, and 6.5mm deep. Integrate this block with a blended base structure that transitions into a case measuring 86mm by 104mm. From the center of the main rectangular block, carve out a recessed cutout that reaches a de...
quality = 50; epsilon = 0.001; include <blend.scad> include <hue-holder.scad> holder_height = 98; additonal_blend = holder_height+6; wall_strength=1; depth = 6.5; cutout_depth = depth - (wall_strength+magnet_depth) ; echo(cutout_depth); holder_offset = 75; difference() { union() { blend(); translate([0, ...
glb/cad_2505116af1a8.glb
Create a 3D model of a French 36-pounder cannon (Canon de 36 livres modèle 1780). The main body is a revolved solid of revolution based on a specific profile. Start by creating the barrel using a profile that begins at the breech with a radius of 0mm and expands to a maximum radius of 615mm at the breech/cascable area...
include <bezier_curve.scad>; include <bezier_smooth.scad>; C36_Fn_MAX= 180; C36_Fn_MIN = 30; C36_Coefficient24 = 49.2299; C36_EchelleDeRestitution = 48; C36_EchelleDeCote = 24; C36_Echelle1 = C36_EchelleDeRestitution/C36_EchelleDeCote ; C36_Echelle = C36_Echelle1 *C36_Coefficient24; C36_Rescale = 1/C36_Echelle; C36_...
glb/cad_5520823756ba.glb
Create a gearbox consisting of a base plate, a cover plate, and a series of interlocking gears. Construct a rectangular base plate 3mm thick with a footprint defined by points at [-54, -20], [-54, 10], [54, 10], and [54, -20]. Create a matching cover plate 3mm thick with the same footprint. Position four cylindrical ...
use <pd-gears/pd-gears.scad> gb_gearbox(base=true, cover=true, gears=true, mirror_x=true, mirror_y=false, printed_rods=false, exit_base=true, exit_cover=false, tnum1=[9, 12, 12], tnum2=[47, 47, 47], cp=[1.5, 1.5, 1.5], pa=[20, 20, 20], holed1=[2, 2, 2], holed2=[2, 2, 2], h1=[9, 5, 5], h2=[3...
glb/cad_1a4d0e90180f.glb
Create a 3D-printer-Oral model by constructing a hollow pyramid with a square base. The outer pyramid should have a base measuring 30mm by 30mm and a height of 50mm, tapering to a single point at the top. Create a matching inner pyramid void with a base of 20mm by 20mm and the same 50mm height to leave a wall thickness...
difference(){ difference(){ union(){ polyhedron( points=[ [15,15,0],[15,-15,0],[-15,-15,0],[-15,15,0], [0,0,50] ], faces=[ [0,1,4],[1,2,4],[2,3,4],[3,0,4],[1,0,3],[2,1,3] ] ); translate([0,0,14]) cube([24,24,2],center=true); } polyhedron( points=[ [10,...
glb/cad_483a449c5ecf.glb
Create a carbonlaser corner bracket by starting with a cube of 10mm x 10mm x 10mm. To this cube, add a mounting tab extending from the top surface; the tab is formed by a hull of a 7mm wide by 1mm thick rectangular base and a scaled sphere, centered and rotated 45 degrees relative to the cube's axes. Refine the geome...
include <parameters.scad> Body(); module Body(){ intersection(){ difference(){ union(){ cube(cornerSize,center = false); rotate([0,0,-45]) translate([-(mooringHoleDiameter + 2*minStructuralThickness+screwHeadDepth)/2,cornerSize/2,0]) {Tab();}; }; translate([-minStructuralThickness-...
glb/cad_3911520872c1.glb
Create a carbonlaser slide carriage. Start with a main body formed by the union of a cylinder with a diameter of 12mm and a height of 20mm, and a rounded box with dimensions 12mm by 20mm by 12mm and a corner radius of 2mm. Integrate a hull that connects a cube of 12mm by 12mm by 12mm with a cylinder of 12mm diameter an...
include <parameters.scad>; slideCarriageWidth = max(slideRodDiameter + (boltType1HeadDiameter*2+wallThicknessMin * 2),slideCarriageSocketDepthMin ) ; slideCarriageHeight = slideRodDiameter + (wallThicknessMin * 2); socketDepth = slideCarriageWidth; View(); module View () { SectionedView(); } module PrintTestFitP...
glb/cad_0460087ae0d9.glb
Create a carbonlaser end support motor side carriage. Start with a central cylindrical socket for a slide rod with a diameter of 8mm and a height of 20mm. Attached to this socket, create a rectangular mounting plate with dimensions 20mm by 30mm and a thickness of 3mm, centered on the socket. In the four corners of th...
include <parameters.scad>; include <624_GT2_BeltOverBearingAdapter.scad>; screwHoleInset = max(mountingScrewHeadDiameter/2, wallThicknessMin); pulleyBearingInset = 1 + motorSidePulleySideClearance; view(); module view() { EndSupportMotorSide(); color("grey") { translate([motorSidePulleyMountTotalThickness/...
glb/cad_880eb2b17924.glb
Create a carbonlaser carriage, a lightweight CNC motion frame component. Start by constructing a main carriage body that is a rounded rectangular block. The overall exterior is defined by the intersection of a bounding box and a sphere to create filleted edges. Within this body, integrate a series of internal filler b...
include <parameters.scad> DrillCarriageA(); DrillCarriageB(); DrillCarriageC(); DrillCarriageD(); module MainCarriage () { intersection(){ minkowski(){ translate([(-crossRodDiameter/2-teflonTapeThickness-wallThicknessMin)+gantryFillet,((mountPlateXLength*2+crossRodDiameter+teflonTapeThickness*2)/-2)+gantryFi...
glb/cad_6c3ac4b78c84.glb
Create a pill-shaped cage with a radius of 50mm and a total height of 150mm. The walls of the cage are formed by a tube with a thickness of 3mm, capped at both ends by hemispherical domes of the same thickness. Cut four circular holes into the body of the cage, each with a radius of 25mm. These holes should be spaced...
module dome(r, thickness) { difference(){ scale([1,1,0.3]) difference(){ sphere(r = r); sphere(r = r - thickness); } translate([0,0,-1*r]) cube([2*r,2*r,2*r], center=true); } } module bowl(r, thickness) { difference(){...
glb/cad_f7fe5527e8a1.glb
Create a ring by rotating a square with a side length of 5mm around a central axis. The square should be positioned 10mm away from the axis of rotation to create a circular torus with a square cross-section. To refine the shape, constrain the resulting ring within a bounding box that is 20mm wide, 100mm deep, and 3mm h...
use <"MCAD/curves.scad"> helix_curve(10,10,10); color("green") rotate_extrude() translate([10,0]) square([5],center=true); intersection(){ translate([0,0,2]) cube([20,100,3], center = true); scale([1,1,0.03]) surface("profile.png", center = true); }
glb/cad_9f3f30590c2d.glb
Create a 3D model consisting of a large ring and a flat circular disc. First, construct a hollow cylinder with an outer radius of 120mm and an inner radius of 110mm, with a total height of 80mm. Position this cylinder so that its central axis is aligned with the Y-axis, rotated 90 degrees, and then truncate the top hal...
color("yellow") intersection(){ translate([0,0,11]) cube([200,200,20], center = true); scale([1,1,0.1]) surface("dickbutt.png", center = true); } color("blue") translate(0,0,-9) cylinder(r=100, h=3, center=true); color("red") translate([0,0,3]) difference(){ cylinder(r=100, h=3, center=true); ...
glb/cad_6315ec99cadb.glb
Create a clamp for a table edge by constructing a main body with an overall width of 15mm, a total depth of 80mm, and a total height of 28.9mm. Start with a rectangular block of these dimensions and remove a central rectangular section from one end to create a C-shaped profile; this cutout should be 15mm wide, 40mm dee...
clamp_size = 5; ledge_height = 18.9; overall_height = ledge_height+(clamp_size*2); dowel_d = 10.25; ledge_depth = 40; dowel_to_edge = 40; overall_depth = ledge_depth + dowel_to_edge; overall_width = 15; minkowski(){ difference(){ union(){ difference(){ cube([overall_width,overa...
glb/cad_84e452dbee3c.glb
Create a 3D model consisting of two distinct geometric components. First, generate a torus-like shape by rotating a 2D polygon around the Z-axis. This polygon is defined by a set of points where the x-coordinates follow the formula $5\cos(i) + 90$ and the y-coordinates follow $35\sin(i) + 35$ for $i$ from 0 to 360 degr...
a = 5; b = 35; list1 = [ for (i = [0:1:360]) [a*cos(i)+a,b*sin(i)+b] ]; echo(list1); rotate_extrude($fn=100) translate([90,0,0]) rotate([0,0,0]) color("gold") polygon( points=list1 ); r = 50; scale([150,100,r]) translate([0,0,0.7]) sphere(1, $fa=5, $fs=0.1);
glb/cad_b698525bfde3.glb
Create two separate flat plates for quadcopter parts. The first plate is a rectangular slab 27mm long, 6mm wide, and 2mm thick. Center this plate on the origin and bore two circular holes through its thickness, each with a radius of 1.5mm. Position these holes along the center longitudinal axis, spaced 21mm apart from ...
entre_axe_plate = 21; plate_hole_rad = 1.5; side = 3; thick = 2; entre_axe_led = 30.5; led_hole_rad = 1.5; led_side = 2; led_side_top = 1; led_height = 10; long_side = entre_axe_plate+2*(plate_hole_rad + side); short_side = 2*(plate_hole_rad+side); translate([0, 0, thick/2]) difference() { cube([long_side...
glb/cad_ef05becf52a2.glb
Create a quadcopter part consisting of a flat base plate and a vertical support structure. Start with a base plate 2.5mm thick, shaped as a polygon with vertices at [-9, 0], [9, 0], [17, 6.5], [17, 17], [-17, 17], and [-17, 6.5]. Remove a central circular hole with a diameter of 6.5mm, a rectangular slot of 6.5mm by 5....
L = 34; l = 18; D = 17; d = 13; G = 6.5; g = 4; m = 15.5; n = 11.25; ant_hole_dia = 6.5; plate_thick = 2.5; translate([0, 0, plate_thick/2]) difference() { linear_extrude(height = plate_thick, center = true, convexity = 10, twist = 0) polygon(points=[[-l/2, 0], ...
glb/cad_9c267910335b.glb
Create a sudoku-box sliding plate mechanism. Start by creating a rectangular plate with a thickness of 2mm, a width of 20mm, and a depth of 20mm. Within this plate, create a grid of holes. The grid consists of 2 columns and 2 rows, with a spacing of 10mm between the centers of the holes. Each hole is a cylinder with ...
include <sharedparams.scad> $fa = 3; $fs = 0.5; slidePlateHoleRadius = pinBottomRadius + slidePlatePinClearance / 2; slideDistance = pinNotchDepth; holeEdgeOffsetX = (slidePlateWidth - (holeGridSizeX - 1) * holeSpacing) / 2; holeEdgeOffsetY = (slidePlateDepth - (holeGridSizeY - 1) * holeSpacing) / 2 - slideDistance ...
glb/cad_8a8865026e2a.glb
Create an ESP32 adapter consisting of a rectangular frame with protruding pins. Start by constructing a central rectangular base that is 22.86mm wide, 18mm deep, and 2mm thick. Along each of the four edges of this base, place a row of 18 small rectangular pins. Each pin must be 0.45mm wide, 2mm deep, and 4mm tall, cent...
translate([-0.2,-.5,-3]) cube([2.5,18,2]); translate([1.27*18-2.3,-0.5,-3]) cube([2.5,18,2]); translate([1.27*18,-4,0]) rotate([0,0,180]) Esp32Adapter(); translate([0,16+4,0]) Esp32Adapter(); translate([-2,-4.6,0]) rotate([0,0,90]) Esp32Adapter(n=20); module Esp32Adapter( n=18, ix=0.45, iy=2, iz=4, p=1.27...
glb/cad_838650e468b3.glb
Create a J105 Shield Base by starting with a central ring. This ring is formed by taking a 36-sided prism with a diameter of 43.5mm and a height of 4mm, and removing a concentric 36-sided inner hole with a diameter of 23.5mm. Constrain the outer boundary of this ring by intersecting it with a cube that is 38mm wide, ...
J105ShieldBase(); module J105ShieldBase( y=38, z=4, d=43.5, id=23.5, id2=4 ){ difference(){ intersection(){ translate([3,0,0]) union(){ cube([y,y,z],center=true); } difference(){ cylinder(z,d1=d,d2=d,$fn=36,center=true); cylinder(z+1,d1=id,d2=id,$fn=36,center=true); } } translate([-i...
glb/cad_ffc72ba5d654.glb
Create a MirrorBase by constructing a central rectangular block and two cylindrical ends. Start with a rectangular prism measuring 45mm in length, 23mm in width, and 20mm in height, centered on the origin. Attach two cylinders to the left and right ends of the block; each cylinder must have a diameter of 23mm and a hei...
include <lib.scad> MirrorBase(); module MirrorBase( y=23, z=20, m=11, ix=45, fn=720 ){ difference(){ union(){ cube([ix,y,z],center=true); translate([ix/2,0,0]) cylinder(z,d1=y,d2=y,$fn=fn,center=true); translate([-ix/2,0,0]) cylinder(z,d1=y,d2=y,$fn=fn,center=true); } translate([ix/2+1,0,...
glb/cad_56b93eeed81b.glb
Create a chassis for an antweight combat robot called patacaRabuda. Start by constructing the exterior shell as a prism with a total length of 100mm and a height of 35mm. The side profile is a polygon defined by points at [0,0], [0,90], [10,100], [35,100], and [35, 20.2] (calculated as 35/tan(30°)), creating a tapered,...
longoBase=90; alto=35; inclinacion=30; thick=2.5; radioRoda=13; anchoRoda=10; anchoBrida=4; thickBrida=1; difference(){ exterior(); interior(3); translate ([-50+2*thick,longoBase-radioRoda*2-4,0]) ocoRoda(); translate ([50-anchoRoda-2-2*thick,longoBase-radioRoda*2-4,0]) ocoRoda(); translate([-23,longoBase-radioRoda-...
glb/cad_fcd8949be7e5.glb
Create a patacaRabuda combat robot wheel by constructing a main outer ring and a central axle. Start with a cylinder 8mm high with a radius of 12mm and a 60-facet resolution. Hollow out this cylinder by removing a smaller concentric cylinder with a radius of 10mm, starting from a height of 3mm and extending to the top....
anchoRoda=8; radio=12; radioEixo=1.7; difference(){ union(){ difference(){ cylinder(r=radio, h=anchoRoda,$fn=60); translate([0,0,3]) cylinder(r=radio-2, h=anchoRoda,$fn=100); } cylinder(r=radioEixo*2.5, h=anchoRoda,$fn=60); } translate([0,0,-1]) eixo(); translate([-0.3,-10,0]) cube([0.6,10,8]); } module e...
glb/cad_49ea8baf7ed4.glb
Create a ktBOX3 by constructing three distinct geometric sections arranged vertically. For the top section, start with a main block 22mm wide, 60mm deep, and 31.5mm high, centered on the X-axis. Attach a second block 22mm wide, 8mm deep, and 50mm high, positioned at the top and rotated 20 degrees along the X-axis. Fr...
gap1 = 0.001; gap2 = 0.002; panel_thick = 2; A = 1; B = 1; C = 1; if( A ){ difference() { union() { translate([-(22-14)/2, -34, 3+5-31.5-2]) cube([22, 60, 31.5]); translate([-(22-14)/2, 30, -25]) rotate([20, 0, 0]) cube([22, 8, 50]); } translate([0, 2, 4]) rotate([-6, 0, 0]) { ...
glb/cad_a6c27d72b2aa.glb
Create a board clip for an Azteeg X5 board to mount onto a 1515 extrusion. Start with a main rectangular plate measuring 101mm in width, 71.5mm in depth, and 5mm in height. From this plate, remove a central rectangular cutout measuring 80.5mm by 55mm with a height of 7mm, positioned to allow for underside cooling. Cr...
$fn=60; show_openbeam_profile = false; enable_stacked_hits = true; rigid_material = false; enable_clips = true; module openbeam() { linear_extrude(rotate = 90, height = 100, center = true, convexity = 10) import (file = "openbeam.DXF"); } module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,18...
glb/cad_b174f91d2adc.glb
Create a cable organizer clip designed for a 20mm extrusion. Start by constructing a main vertical interface plate that is 2mm thick, 15mm long, and 20mm high. Attach a bottom horizontal plate to the base of this interface plate with dimensions of 20mm width, 15mm length, and 2mm thickness. Add a second top horizontal ...
$fn = 100; plate_length = 15; plate_height = 20; plate_width = 20; plate_thickness = 2; num_drills = 1; inset_depth = 1.5; drill_depth = 4; wall_length = 19; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } module openbeam(...
glb/cad_e73f4ec1db4a.glb
Create a cable organizer clip for an extrusion beam. Start with a main body consisting of three rectangular plates: a vertical interface plate measuring 2mm by 25mm by 20mm, a bottom base plate measuring 20mm by 25mm by 2mm, and a top landing plate measuring 20mm by 25mm by 2mm. Connect these with two vertical walls, e...
plate_length = 25; plate_height = 20; plate_width = 20; plate_thickness = 2; num_drills = 1; inset_depth = 1.5; drill_depth = 4; wall_length = 19; module polyhole(h, d) { n = max(round(2 * d),3); rotate([0,0,180]) cylinder(h = h, r = (d / 2) / cos (180 / n), $fn = n); } module openbeam() { lin...
glb/cad_6a7896b83dd7.glb
Create a 3D model of organ parts consisting of a windchest and a bellow. First, construct the windchest as a rectangular block with a height of 200mm. Within this block, create a series of vertical holes to accommodate pipes. Specifically, create six holes with an outer diameter of 11mm and an inner diameter of 8mm, ...
meter_diam = [11, 8]; tubes = [ [11, 8], [11, 8], [11, 8], [11, 8], [11, 8], [11, 8], [16, 12], [16, 12], [8, 6], [8, 6]]; wideOuter = 11.6; narrowInner = 8.2; height = 200; bellow_width = 200; function add2(v) = [for(p=v) 1]*v; tubes_X = [for (i= [0 : len(tubes) -1]) round( add2([ for (j = [0 : i]) ...
glb/cad_cff791c834b8.glb
Create a 3D-printed organ part designed as a hollow connector. Start by constructing the outer shell, which consists of a central cylinder with a radius of 7.5mm and a height of 12.1mm, positioned at Z=11mm. This central cylinder is merged with two flanking cylinders, each with a radius of 7.5mm and a height of 12.1mm,...
outside1=11; inside1=8; outside2=11; inside2=8; outside3=11; inside3=8; difference() { union () { translate ([0,0,outside1]) cylinder(h=4.9+outside1*0.2, r=outside1/2+2); hull() { translate ([outside2/-2-1,0,-4.9-outside1*0.2]) cylinder(h=4.9+outside1*0.2, r=outside2/2+2); translate ([outside3/2+1,0,-4.9-outside1*0.2]...
glb/cad_0938bc4711fb.glb
Create a 3D model consisting of four stacked geometric components aligned along a central vertical axis. At the base, create a blocker part starting with a truncated cone 2mm high with a bottom radius of 3.25mm and a top radius of 3.5mm. Directly above this, add a second truncated cone 4.6mm high with a bottom radius o...
module sphereCap(a = 10, h = 4) { r = (a*a +h*h)/(2*h); translate([0,0,-r+h]) { difference() { sphere(r); translate([0,0,-h]) { cube(2*r,true); } } } } module tube(hauteur, rayon, epaisseur) { difference() { cylinder(hauteur,rayon,rayon); translate([0,0,-1]) { cylinder(hauteur+2,rayon-epais...
glb/cad_12c0b86ec5ec.glb
Create a circular working surface for a 3D printer bed with a radius of 200mm and a thickness of 10mm. To this central disk, add three rectangular support extensions for rods, each 10mm thick. These supports are positioned symmetrically every 120 degrees, extending from the center to a distance of 320mm. On each of th...
use <vcad/vector.scad> use <vcad/transform.scad> working_dim = 400; plywood_thickness = 10; tower_dist = 300; rod_dist = 60; rod_diameter = 12; extra_rod = 20; tower_radius = working_dim/2; p1 = [ tower_dist + extra_rod , (rod_dist/2) + extra_rod]; p2 = [ tower_dist + extra_rod , -(rod_dist/2) - extra_rod]; pp...
glb/cad_ec65f474eb87.glb
Create a detailed 3D model of a vehicle interior cabin. Start with a rectangular floor base measuring 161mm by 300mm. On each side of the floor, create wheel well passages with a radius of 5mm, positioned 78.5mm from the front. Add a rectangular plastic block measuring 19mm by 60mm by 63mm at the rear sides. Construct...
function vopt(param, def1, def2, def3) = ((param != undef) ? param : ((def1 != undef) ? def1 : ((def2 != undef) ? def2 : def3))); function vpoint(size, x, y, z) = let(n = (visnum(size) ? size : undef)) [vopt(x, size[0], n, 1), vopt(y, size[1], n, 1), vopt(z, size[2], n, 1)]; function vcenters(center = false, centerx, c...
glb/cad_f269fb94e5bb.glb
Create a personalized nameplate by starting with a square base of 75mm by 75mm and a height of 3mm. Round the corners of this base using a radius of 10mm. On the top surface of the base, carve out three lines of text. The first line should read "Mr. & Mrs" with a font size of 14mm. Below this, carve the name "Larsen"...
module base(s=50) { h=15; square(s,s,center=true); } module words(txt="Hello", fs=14, s=12, sp=1) { f="Open Sans"; s="style=Bold"; color("black") linear_extrude(6) text(text=txt, size=fs, font=concat(f,":",s), spacing=sp); } module spine(dx=10, dy=10) { l=2; cube([dx,dy,l]); ...
glb/cad_c5c4fa5e6e7e.glb
Create a 3D heart-shaped plaque by starting with a flat heart base that is 100mm in size and 3mm thick. Apply a Minkowski sum with a sphere of radius 5mm to round all edges and corners of the heart. Rotate the heart 45 degrees on the Z-axis. Emboss three lines of text onto the top surface of the heart. The first line s...
module Heart(size=50, $fn=100) { height=10; cylinder(d=size/2,h=height,center=true); } module flat_heart(size=20) { half=size/2; square(size); translate([half, size, 0]) circle(half, $fn=90); translate([size, half, 0]) circle(half, $fn=90); } module t(t, s = 8, style = "") { linear_extrude(...
glb/cad_d45e1d4039da.glb
Create a 3D object by extruding a complex 2D profile to a height of 80mm. The profile is based on a large circle with a 100mm diameter and a 5mm wall thickness. Within this circular ring, remove a rectangular section 100mm wide and 10mm thick, centered and rotated 45 degrees, and remove two smaller rectangular strips, ...
diameter=100; module bottom(){ translate([-60,-20,0]) square([200,20]); } module triangle() { polygon([[30,0],[0,30],[60,30]]); } module base() { union() { translate([0, diameter/2, 0]) difference() { circle(d=diameter, $fn=180); circle(d=diameter-5, $fn=180); translate([-diamete...
glb/cad_7803936709da.glb
Create a 3D object based on a circular ring with an outer diameter of 100mm and a wall thickness of 5mm. The ring is not a complete circle; it is modified by several geometric subtractions and additions. First, create the main ring body by extruding a 2D profile that consists of a 100mm diameter circle with a 95mm diam...
diameter=100; module bottom(){ translate([-60,-20,0]) square([200,20]); } module triangle() { polygon([[30,0],[0,30],[60,30]]); } module heart(s=20) { half=s/2; square(s); translate([half, s, 0]) circle(half, $fn=90); translate([s, half, 0]) circle(half, $fn=90); } module base() { union() { ...
glb/cad_16f2df42c9b4.glb
Create a small hydroponics system lid. Start with a base cylinder that has a radius of 15.85mm and a height of 9mm. Inside this base, create a concentric hollow space using a negative trapezoidal thread that is 8mm long, with a pitch of 2.7mm, a pitch radius of 13.85mm, and a thread angle of 20 degrees. On top of the ...
include <Screw_Library/Thread_Library.scad> $fn=32; $fs=0.75;$fa=5; LidHeight=9; WallThickness=2; NozzleInnerDiameter=4; NozzleOuterDiameter1=7; NozzleOuterDiameter2=5; NozzleHeight=7; TotalHeight = 8; ThreadOuterDiameter=27.7; ThreadInnerDiameter=25.5; ThreadPitch=2.7; ToothHeight=1.35; ProfileRatio=0.4; ThreadAng...
glb/cad_8c703d7bd1ec.glb
Create a 3D cog gear with a total height of 11mm. The gear should have 30 involute teeth and a central hole with a radius of approximately 13.33mm. The structure is composed of 11 stacked layers, each 1mm thick. Starting from the base, each subsequent layer must be translated upward by 1mm and rotated by 0.7 degrees ...
height = 5; type = "Cog"; teeth = 30; scale = 100; hole = "Yes"; holeSize = 0; module gear(number_of_teeth, circular_pitch=false, diametral_pitch=false, pressure_angle=20, clearance = 0) { circular_pitch = (circular_pitch!=false?circular_pitch:180/diametral_pitch); pitch_diameter = number_of_teeth * circula...
glb/cad_cf2eb8e9e5db.glb
Create a nano ROV model consisting of a central chassis and four thruster assemblies. Construct the main chassis as a rectangular base with a central compartment for batteries and electronics. Position four complete thruster units symmetrically around the chassis. Each thruster assembly must include a cylindrical mot...
include <config.scad>; use <propeller.scad>; use <thruster.scad>; use <motor_housing.scad>; use <chassis.scad>; module thruster_Complete() { color("blue") translate([0,0,0]) thruster(w_walls, d_motor_t, h_motor_sup, o_motor, d_thruster,h_thruster, d_screw_p, h_support, w_support); ...
glb/cad_eb9891849d88.glb
Create a communications buoy consisting of two symmetrical cylindrical parts, a base and a top, each 30mm in height. For the base, create a main cylinder with a diameter of 40mm and a height of 40mm. Hollow out the center with a cylinder of 41mm diameter and 4mm height, and a smaller inner cylinder of 23.5mm diameter a...
include <config.scad>; module buoy_base(d_screw_h=3, d_screw_head=6.5){ difference() { union(){ difference() { translate([0,0,40]) rotate([0,0,0]) cylinder(10,25,25); translate([0,0,41]) rotate([0,0,0]) cylinder(10,23.5,23.5); } translat...
glb/cad_94ebaf2aade1.glb
Create a bowden clip for a corexy printer. Start with a main cylindrical body that has an outer diameter of 13.75mm and a total height of 3.6mm. Cut a rectangular slot through the center of the top face, measuring 13.75mm wide by 2.2mm deep. Remove a central vertical cylinder with a diameter of 6.3mm that extends thr...
use <util.scad>; left = -1; right = 1; to_clip_diam = 7.75; to_clip_diam = 6.3; clip_rim_diam = 10.2; clip_rim_diam = 7.3; extrusion_width = 0.5; resolution = 128; module bowden_clip(diam=to_clip_diam,height=1.8) { surround_width = extrusion_width*6; outer_diam = diam + sur...
glb/cad_06ccd7a8da75.glb
Create a Prusa X-end prototype part. Start with a main rectangular block measuring 17mm in width, 39mm in depth, and 58mm in height, centered on the X and Y axes. Subtract a central vertical void from the block that is 10mm wide, 46mm deep, and 28mm high, centered at a height of 30mm. To soften the edges of this void,...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-9,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-17,0]) poly_cylinder(h = 8, r=12.5, $fn=25); translate(v=[-6,-10.6,10]) rotate([0,0,48.2]) cube(size =...
glb/cad_d2875996cbfe.glb
Create a motor mount for an X-axis end carriage. Start with a main base block measuring 17mm by 44mm by 53mm, centered at [-15, 31, 26.5]. Attach a smaller endstop base block measuring 17mm by 18.2mm by 4mm, positioned at [-23.5, -28.5, 58]. On this endstop base, create four holes: two vertical cylinders with a 1mm rad...
use <x-end.scad> module x_end_motor_base(){ x_end_base(); translate(v=[-15,31,26.5]) cube(size = [17,44,53], center = true); } module x_end_motor_endstop_base(){ translate([-23.5,-28.5,58]){ difference(){ cube([17,18.2,4]); translate([-1,10,10])rotate([-45,0,0])cube(20,20,20); ...
glb/cad_32a1a3f86341.glb
Create a Prusa extruder idler by constructing a main body and removing specific internal volumes. Start with a central block that is 18mm wide, 32mm deep, and 2mm thick, and add a larger rectangular section measuring 10mm by 48mm by 7mm centered on the body. Incorporate two rounded bottom edges by adding cylinders with...
module part_body(){ translate([ -7, 4, 6 ]) rotate([0,90,0]) cylinder(r=4, h=21.5, $fn=200 ); translate([ -7, 4, 4 ]) rotate([0,90,0]) cylinder(r=4, h=21.5, $fn=200 ); translate([ 11, 8, 4 ]) cube([3.5,4,6]); difference() { translate([ -7, 0, 4 ]) cube([21.5,5,6]); translate([ -8...
glb/cad_f5f7d7456eb7.glb
Create an ErgoWarp palm rest by constructing a complex organic form based on hand anatomy. Start by generating a main palm structure using a skinning technique over a series of elliptical cross-sections that vary in scale and rotation to create a curved, ergonomic slope. Integrate a pinkie joint section by sweeping a...
use <sweep.scad> use <scad-utils/transformations.scad> use <scad-utils/morphology.scad> use <scad-utils/lists.scad> use <scad-utils/shapes.scad> use <scad-utils/trajectory.scad> use <scad-utils/trajectory_path.scad> use <skin.scad> $fn = 48; step = 5; dMount = 5.1054; dMountMM = 5; dBall = 18; len_ind = 68; len_...
glb/cad_16ef06b982c9.glb
Create a screw tab bracket consisting of a main vertical plate and a base. First, construct a vertical rectangular plate that is 4mm thick, 30mm wide, and 30mm high. Center a circular hole with a diameter of 4mm through the thickness of this plate, positioned 10mm from the bottom edge. For the base, attach a flat recta...
bracket_joint_length = 30; screw_pad_width = 30; screw_pad_thickness = 4; vert_pad_height = 30; vert_pad_thickness = 4; vert_hole_center_height = 10; vert_hole_diameter = 4; include <ScrewTab.scad> make(); module make() { align_vertical = vert_hole_center_height-vert_pad_height/2; screw_tab(8,screw_pad_t...
glb/cad_4a70a26c4fed.glb
Create a Replicator Spool Holder consisting of two separate parts: a wall support panel and a spool mounting assembly. First, construct the wall support panel. Create a rectangular base plate 80mm wide and 4mm deep. Add two vertical side tracks, each 3mm wide and 5mm high, running the length of the base. At the top of...
include <ScrewTab.scad> part = "Spool"; SpoolHoleDiameter = 32.0; SpoolDepth = 75.0; print_part(); module print_part() { if (part == "Both") { WallSupport(); SpoolSupport(); } else if (part == "Wall") { WallSupport(); } else { SpoolSupport(); } } module RoundTopBox(pad, box_l, box_w, box_h, round_r, s...
glb/cad_590cebdf56f4.glb
Create a drying rack with a rectangular footprint measuring 150mm in length and 100mm in width, with a total thickness of 3mm. The main body of the rack should feature a honeycomb pattern across its surface. To define the outer boundary, ensure there is a solid ridge around the entire perimeter with a thickness of 2.5m...
rack_length = 150; rack_width = 100; rack_thickness = 3; rack_mount_height = 50; rack_ridge_thickness = 2.5; use <IllSCAD/libraries/honneycomb.scad> make(); module make() { linear_extrude(rack_thickness) { honeycomb_by_size([rack_length, rack_width], 4, 1, true); difference(){ square...
glb/cad_852ac574e832.glb
Create a pentagonal base plate with a diameter of 50mm and a thickness of 1.5mm. Centered on this base, construct a hollow vertical tube with a height of 40mm. The walls of this tube should be formed by the space between two concentric octagons, one with a diameter of 19mm and the inner one with a diameter of 18mm. As ...
cylinder(d=50,1.5,$fn=5); linear_extrude(height = 40,twist = -180 ){ difference(){ circle(d=19,$fn=8); circle(d=18,$fn=8); } }
glb/cad_866659dd7530.glb
Create a model consisting of a pentagonal base and a twisted hollow tower. Start by creating a flat pentagonal prism with a diameter of 80mm and a height of 2mm. Centered on this base, construct a hollow cylinder with an outer diameter of 31.5mm and an inner diameter of 31mm, giving the wall a thickness of 0.25mm. Extr...
cylinder(d=80,2,$fn=5); linear_extrude(height = 50,twist = -180 ){ difference(){ circle(d=31.5,$fn=12); circle(d=31,$fn=12); } }
glb/cad_35ffdb403452.glb
Create a 3D model of a threaded polygon screw. Start by creating a main cylinder with a height of 10mm and a radius of 10mm. To form the threads, create a profile based on a polygon with a depth of 3mm and a base width of 3mm. Extrude this profile in a helical pattern around the cylinder. The helix should have a pitc...
module thread(height,degree,thickness,od,step){ turns=abs(degree/360); threadheight=abs(height/turns/2); hh=threadheight/thickness; peri=od*3.14159265358979323846; w=sin(90/thickness)*od; stepwidth=step<10?step:10; hps=abs(height/degree*stepwidth); intersection(){ union(){ for(...
glb/cad_c9a6257155b4.glb
Create a cylindrical object centered on the origin. Start by placing a cylinder with a radius of 16mm and a height of 12mm, extending from z = -6mm to z = 6mm. On top of this, add a second cylinder with a constant radius of 10mm and a height of 8mm, positioned from z = 6mm to z = 14mm. To create the central void, remov...
$fn=180; difference(){ union(){ translate([0,0,-6])cylinder(h=12,r=16); translate([0,0,6]) cylinder(h=8,r2=10,r1=10); } rotate_extrude() translate ([16,0,0])circle (d=7); translate([0,0,-18])cylinder(h=136,r=4.4); }
glb/cad_7c692308170b.glb
Create a model consisting of three identical vertical rectangular prisms. Each prism must have a square cross-section of 10mm by 10mm and a total height of 600mm. Position the three prisms vertically so that their center points are arranged at the vertices of an equilateral triangle on the horizontal plane. The dista...
r=150; l=2*r; h=600; a=0;b=0;c=0; rod1=r*[0,1,h/r/2]; rod2=r*[-sqrt(3)/2,-0.5,h/r/2]; rod3=r*[sqrt(3)/2,-0.5,h/r/2]; translate(rod1)cube([10,10,h],center=true); translate(rod2)cube([10,10,h],center=true); translate(rod3)cube([10,10,h],center=true); function car1(a)=r*[0,1,a/r]; function car2(b)=r*[-sqrt(3)/2,-0.5,b/r...
glb/cad_bcfad2b70391.glb
Create a pipette hanger by constructing a central backplate and adding supporting side structures. Start with a main backplate defined as a cube 38mm wide, 31mm deep, and 45mm high, centered on the X and Y axes and shifted 18mm down on the Z axis. Attach two sideboards, each a cube 35mm wide, 2.5mm thick, and 26mm high...
rotate( [ 0, -90, 0 ] ) difference(){ assem1(); } module assem1() { translate([-2,0,0]) topboard(); difference() { union() { back1(); bottom(); } union(){ translate([-2,0,0]) pipette(); cutters(); #translate ([-96,-40,-31])cube ...
glb/cad_c4c6efa080b0.glb
Create a robotic arm base platform by starting with a thin cylinder that has a diameter of 100mm and a height of 4mm. From this main disk, remove several cylindrical holes that pass completely through the height of the platform. First, center a hole with a diameter of 8.1mm exactly in the middle of the disk. Next, plac...
echo(version=version()); BASE_WIDTH = 113.0; BASE_HEIGHT = 53.0; BASE_WALL = 4.0; INNER_RIDGE_HEIGHT = 6.0; INNER_RIDGE_WIDTH = 2.0; PLATFORM_WIDTH = 100.0; PLATFORM_HEIGHT = 4.0; SUPPORT_WIDTH = BASE_WIDTH - INNER_RIDGE_WIDTH * 4; SUPPORT_HEIGHT = 20.0; ROD_WIDTH = 8.1; ROD_DEPTH = 10.0; ROD_PLACEMENT = (BASE_WIDT...
glb/cad_7e764aade963.glb
Create a robotic arm base component called a brako. Start by creating a main cylindrical body with a diameter of 70mm and a height of 25mm. From this cylinder, remove three vertical cylindrical holes that pass completely through the height of the part. The first hole is a central shaft hole with a diameter of 15.2mm....
echo(version=version()); BASE_WIDTH = 113.0; BASE_HEIGHT = 53.0; BASE_WALL = 4.0; INNER_RIDGE_HEIGHT = 6.0; INNER_RIDGE_WIDTH = 2.0; PLATFORM_WIDTH = 100.0; PLATFORM_HEIGHT = 4.0; SUPPORT_WIDTH = BASE_WIDTH - INNER_RIDGE_WIDTH * 4; SUPPORT_HEIGHT = 20.0; ROD_WIDTH = 8.1; ROD_DEPTH = 10.0; ROD_PLACEMENT = (BASE_WIDT...
glb/cad_1bdc60b4bd69.glb