Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create an RV Shower Hose Bracket consisting of a flat rectangular base and a circular retaining ring. Start with a rectangular base 67.5mm long and 3mm thick. Center two circular screw holes through this base, each with a diameter of 5mm, spaced 45mm apart from center to center. Attached to the top of this base, center...
FINALRENDER = 1; $fa = FINALRENDER ? 2 : 6; $fs = FINALRENDER ? .5 : 1; RING_DIAMETER = 32; BRACKET_LENGTH = 67.5; SCREW_SPACING = 45; SCREW_DIAMETER = 5; PART_THICKNESS = 3; module base() { linear_extrude(PART_THICKNESS*2+SCREW_DIAMETER) square([BRACKET_LENGTH,PART_THICKNESS], true); } module ring() { trans...
glb/cad_8f4115f8bccc.glb
Create a parts cup for a 3D printer. Start by forming a solid composite shape consisting of a cylinder with a radius of 27.5mm and a height of 30mm, joined to a rectangular block that is 55mm wide, 40mm long, and 30mm high. From this combined volume, remove a spherical void with a radius of 25.5mm, centered at the coor...
height = 30; width = 55; length = 40; panel_thickness = 6.3; cup_radius = width/2; $fn = 100; difference() { union() { translate([cup_radius, 0, 0]) cylinder(r = cup_radius, h = height); cube([width, length, height]); } translate([cup_radius, 0, cup_radius + 2]) sphere(r = cup_radius...
glb/cad_d4e76386e776.glb
Create a MIC CHK clip, a flat geometric handle with a thickness of 5mm. Start with a main body consisting of a rectangular bar 93mm long and 17mm wide, capped at both ends by semicircles with a radius of 8.5mm to form a capsule shape. From the bottom edge of this capsule, remove four circular holes to create finger s...
include </Users/mileslightwood/Documents/MakerBot/Models/lib/shapes.scad> $fn = 60; HALF = 2; DOUBLE = 2; FUDGE = 0.01; thickness = 5; fingers_offset = 21; module cup() { rotate([0,90,0]) color(B) difference() { cylinder(103, 83/HALF, 56/HALF, true); cylinder(105, (83/HALF)-2, (56/HALF)-2, tru...
glb/cad_d1e2083783d5.glb
Create an "Impossible" Dovetail Joint puzzle by starting with a central cube measuring 60mm on all sides. Position this cube so its center is at the origin, but offset it 10mm upward along the Z-axis. Carve three identical dovetail-shaped slots into the cube. Each slot is defined by a trapezoidal profile with a wide ...
module dovetail1 () { translate([-45,45,10]) rotate([90,0,45]) linear_extrude (height=180) polygon (points=[[-15,-15],[-5,15],[5,15],[15,-15]], paths= [[0,1,2,3]],convexity=1); } module dovetail2 () { translate([-45,45,10]) rotate([90,0,45]) linear_extrude (height=180) polygon (points=[[15.2,15.2],[5.2,-15.2],[-5.2,-1...
glb/cad_1b16ab8c3392.glb
Create a 3D symbol consisting of a central cross, a surrounding ring, and four triangular accents. Start by placing a vertical rectangular bar 4mm wide, 52mm tall, and 5mm thick, intersecting it with a horizontal rectangular bar 32mm wide, 4mm tall, and 5mm thick to form a cross. Surround this cross with a thin ellip...
union(){ difference(){ translate([0,0,2.5]) difference(){ cylinder(r=10, h=5, center=true); cylinder(r=7, h=6, center=true); } translate([0,0,-2]) cube([12,12,8 ]); } difference(){ translate([0,16,2.5]) difference(){ cylinder(r=8, h=5, center=true); cylinder(r=5, h=7, center=true); }...
glb/cad_c2f2b87cfd63.glb
Create a phone stand by constructing a series of intersecting rectangular prisms. Start with a base block measuring 6mm in width, 6mm in depth, and 1mm in height. Position a vertical rectangular slab measuring 1mm in width, 6mm in depth, and 3.5mm in height so that it stands upright, but rotate it 30 degrees backward a...
sfn = 30; translate ([ 1, 1, .7]){ rotate ([ 0, -10, 0]){ cube ( [1, 6, 4]); } } translate ([ 1, 1, .7]){ cube ([2, 6,1]); } translate ([ 2.5, 1, 1.7]){ cube ([ .5, 6, .5]); } translate ([ 1, 1, 0]){ cube ([ 2, 1, .7]); } translate ([1, 6, 0]){ cube ([ 2, 1, .7]); } difference () { rotate ([ 0, 30, 0]){ translate ([ ...
glb/cad_6f4de94628c5.glb
Create a 4WD Badge by constructing a flat plate with a stylized vehicle silhouette and two wheels. Start with a base plate approximately 120mm wide and 40mm high. At the bottom left and bottom right, add two thick cylinders to represent wheels. Each cylinder should have a diameter of approximately 30mm and a height o...
fudge = 0.1; module poly_path5(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[46.999500,61.769500],[49.973344,61.469619],[52.744125,60.609641],[55.252219,59.249061],[57.438000,57.447375],[59.241844,55.264080],[60.604125,52.758672],[61.465219,49.990646],[61.765500,47.01950...
glb/cad_8c1a012563dc.glb
Create a pole adapter consisting of a cylindrical base and a vertical tab. Start with a main cylinder that has a diameter of 19.75mm and a height of 13mm. On top of this cylinder, add a circular head with a diameter of 22mm and a thickness of 4mm. Centered on top of the head, extend a rectangular tab upwards. This ta...
module fillet(r, h) { translate([r/2, r/2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); } } module curvedFillet(r_curve, r_fillet, fn) { difference() { rotate_extrud...
glb/cad_a859aa4b066a.glb
Create an end-fly top adapter for a caravan pole fitting. Start with a solid rectangular block measuring 16.5mm in width, 40mm in depth, and 32mm in height. Apply 3mm radius fillets to the four vertical edges of the block. On the side face, create a semi-cylindrical track cutout with a radius of 8mm, centered at a he...
module fillet(r, h) { translate([r/2, r/2, 0]) difference() { cube([r + 0.01, r + 0.01, h], center = true); translate([r/2, r/2, 0]) cylinder(r = r, h = h + 1, center = true); } } module curvedFillet(r_curve, r_fillet, fn) { difference() { rotate_extrud...
glb/cad_72a7fd6fb73d.glb
Create a Compass Badge by constructing a flat, stylized compass rose emblem. The overall design is a composite of several thin, extruded polygonal shapes that form a central star-like figure with radiating points. Start by creating a central square base of 24mm by 24mm with a thickness of 1mm. On top of this base, add...
fudge = 0.1; module poly_rect6919(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-3.073490,-4.195520],[5.974740,3.535810],[4.971930,4.709430],[-4.076300,-3.021900],[-3.715745,-3.821174],[-3.073490,-4.195520]]); } } module poly_path6913(h) { scale([25.4/90, -25.4/90, ...
glb/cad_6fe0c8540c13.glb
Create an Acer C720 Power Holder by starting with a main rectangular block measuring 55mm in length, 12mm in width, and 10mm in height, applying a corner radius of 3mm to its edges. From this main body, remove a large rectangular section from the bottom center to create a cavity, specifically removing a block 27mm long...
include <roundCornersCube.scad> difference() { translate([-1,0,0]) { roundCornersCube(55,12,10,3); } translate([-22,-5,-3.5]){ color([0,0,1]) cube([27,20,7.5]); } translate([-30,-5,-2.5]){ cube([13.9,20,5.7]); } } difference() { translate([8,6,-0.05]){ cube([13.9,12,3]); } translate([8...
glb/cad_8a997da1a139.glb
Create a buildplate model for a Duplicator 4. Start by constructing a main plate as a prism with a height of 155mm, a width of 270mm, and a thickness of 20mm. The profile of this plate is defined by a polygon with vertices at [0,0], [270,0], [250,20], and [0,20]. Add four cylindrical supports to the underside of the ...
x=270; x_bp=150; y=155; z=20; angle=45; letter_height=1; spring_height=10; spring_diameter=10; A=[0,0]; B=[x,0]; C=[x-z,z]; D=[0,z]; XZ=[A,B,C,D]; sx=47; sy=71; screw_positions = [[sx,sy],[-sx,sy],[-sx,-sy],[sx,-sy]]; for(i=[0:3]){ translate([0,0,0]+[screw_positions[i][0],screw_positions[i][1],-1.001*spring_height...
glb/cad_068dc716449b.glb
Create a Work Mate Block, a small geometric clamping insert. Start with a central rectangular body that is 4.5mm long, 3.5mm wide, and 2mm high. Modify this body by intersecting it with two identical cubes of the same height, each 6.75mm long and 3.5mm wide, but rotated 45 degrees relative to each other around the Z-ax...
include <./wk_peg.scad> length=4.5; width=3.5; width_top=2.2; height=2.0; height_notch=.8; offset=[0,-.5,height/2]; module make_block(){ difference(){ difference(){ union(){ translate([length/3,0,0])rotate([0,0,45]) cube([length*1.5,width,height],center=true); translate([-length/3,0,0])rotate([0,0,-45]) cube([length*...
glb/cad_aa5ffba6fd8e.glb
Create a Work Mate Block by starting with a central rectangular prism measuring 4.5mm in length, 3.5mm in width, and 2.0mm in height. Center this block on the origin. From this main body, remove a wedge-shaped section by intersecting it with a cube of the same height and width, rotated 45 degrees along the X-axis and...
include <./wk_peg.scad> length=4.5; width=3.5; width_top=2.2; height=2.0; height_notch=.6; offset=[0,-.5,height/2]; module make_block(){ difference(){ difference(){ cube([length,width,height],center=true); } translate([0,-2.2,.6])rotate([45,0,0])cube([length+.01,width,height],center=true); } } module make_routes(){...
glb/cad_2bde5d522f92.glb
Create a Work Mate Block bowl by combining a hollowed hemispherical basin with a mounting peg. First, construct the bowl by creating a sphere with a radius of 4.3mm and subtracting a smaller concentric sphere with a radius of 4mm to create a shell. Flatten this shell by scaling it to 50% of its height along the Z-axis ...
include <./wk_peg.scad> length=4.5; width=3.5; width_top=2.2; height=2.0; height_notch=.8; module make_bowl(){ difference(){ scale([1,1,.5]){translate([0,0,4]){ difference(){ sphere(r=4.3); sphere(r=4); } } } translate([0,0,3])cylinder(6,8,8); } } module bowl(){ union(){ make_bowl(); rotate([180,0,0])make_peg(); } ...
glb/cad_2b220c8de135.glb
Create a Work Mate Block consisting of a rectangular base with an integrated peg and a retaining clamp. Start by creating a rectangular base block that is 20mm long, 12mm wide, and 10mm high. At one end of this base, integrate a vertical peg designed to fit into a workbench hole; the peg should be a cylinder with a dia...
$fs=.1; include <3rdhandbase.scad>; include <wk_peg.scad>; include <hex.scad>; module build_holder(){ difference(){ base_block(); make_base(); } } module base_block(){ translate([-offset_pillar,0,-height/2])cube([length_lower,width_lower+1,2*height],center=true); translate([2*length_lower/6,0,-height])cube([length_lo...
glb/cad_d28f743ab1eb.glb
Create an iPad Wall Mount designed to hold a tablet with dimensions of 241mm length, 171mm width, and 8mm thickness. The mount is a hollowed-out frame consisting of a bottom support and two side walls. Construct the main body using hexagonal profiles with a radius of 8mm. The bottom horizontal section should be 243mm ...
module iPad(length, width, thickness, res=64){ difference(){ union(){ cube(center=true,[length-(thickness*2),width-(thickness*2), thickness]); translate([0,-(width-(thickness*2))/2,thickness/2]) rotate([0,90,0]) cylinder(center=true, h=length-(thickness*2), r=thickness, $fn=res); translate([0,(wid...
glb/cad_625d2d9243cb.glb
Create a MakerFarm i3V ATX PSU mount consisting of a central back plate and two supporting side flanges. The main back plate is a rectangular slab 3mm thick, based on standard ATX dimensions, shifted 1mm forward to ensure a proper fit. Extend the structure with two side support panels that are 3mm thick and 40mm high...
include <ATX back plate.scad> $fn = 18; platet = 3; module flange(l,h,t) { hull() { translate([0,l,0]) cube([t,0.001,t]); cube([t,t,h]); } } i3v_platet = platet; i3v_splatet = platet; i3v_plateh = 40; i3v_screwt = 6; holesp = 50; difference() { union() { translate([0,1,0]) atx_back_plate...
glb/cad_7cd7ecaa4bab.glb
Create a rolling deck by starting with a rectangular base block that is 110mm long, 50mm wide, and 5mm thick. Carve a rectangular slot out of the top surface to create a channel. This slot should be 56mm long, 5mm wide, and 7mm deep. Position the slot so that it is centered along the width of the block, starting 1mm fr...
difference() { cube([110,50,5]); translate([-1,22.5,-1]) cube ([56,5,7]); }
glb/cad_1a3cc2603369.glb
Create a Parametric Tetrahedron Apex designed to join three tubes. Start by creating three hollow cylinders, each with an outer diameter of 34mm (24mm inner diameter plus 5mm wall thickness on each side) and a length of 100mm. Arrange these cylinders so their axes meet at a central point, each separated by 120 degrees ...
Pipe_ID = 24; Pipe_Thk = 5; Pipe_Rot = 0; Pipe_Res = 48; Ht = 100; CutHt = 25; NutHt = 46; Slot_Wid = 2; M3 = 3.5; Zrot = 35.26438971; Pipe_OD = Pipe_ID + Pipe_Thk + Pipe_Thk; Pipe_Rad = Pipe_OD / 2; echo("Pipe_Rad = ",Pipe_Rad); Tan35 = tan(Zrot); Cos35 = cos(Zrot); Sin35 = sin(Zrot); echo("Tan35 = ",Tan35);...
glb/cad_4974ee2f6226.glb
Create a Parametric Tetrahedron Top corner support. The part is designed to connect a cylindrical pipe to a rectangular base with mounting legs. Start with a central cylindrical socket with an outer diameter of 34mm (Pipe_ID 24mm plus 5mm wall thickness on each side) and a height of 25mm. The socket should be hollowed...
Pipe_ID = 24; Pipe_Thk = 5; Pipe_Res = 48; Pipe_Rot = 0; Wid = 40.23; Ht = 25.0; B_Ht = 2; S_Ht = 6; M5 = 5.5; L_Ht = 23; L_Thk = 5; L_Out_Len = 15; L_Out_X_Offset = 10; L_In_X_Offset = 10; L_M5_Z_Offset = 7.75; L_In_Len = 15; Slot_Wid = 2; M3 = 3.5; Uggy_Y = 4; Uggy_Z = 4; Pipe_OD = Pipe_ID + Pipe_...
glb/cad_6eaeeb7a4720.glb
Create a Parametric Tetrahedron Top corner support. Start with a central base block that is 30mm long, 40.23mm wide, and 2mm high. On top of this base, center a vertical cylindrical housing with an outer diameter of 27.8mm (based on a 17.8mm pipe diameter plus 5mm wall thickness) and a height of 25mm. This housing shou...
Pipe_ID = 17.8; Pipe_Thk = 5; Pipe_Res = 48; Pipe_Rot = 0; Wid = 40.23; Ht = 25.0; B_Ht = 2; S_Ht = 6; M5 = 5.5; L_Ht = 23; L_Thk = 5; L_Out_Len = 30; L_Out_X_Offset = 10; L_In_X_Offset = 10; L_M5_Z_Offset = 7.75; L_In_Len = 30; Slot_Wid = 2; M3 = 3.5; Uggy_Y = 1; Uggy_Z = 4; Ht2 = Ht / 2; Pipe_OD =...
glb/cad_9da8fcc5f646.glb
Create a Parametric Tetrahedron Apex designed to join three tubes. Start by creating three cylinders, each with an outer diameter of 28.7mm and a length of 100mm. Position these cylinders so their axes intersect at a single central point, angled 120 degrees apart and tilted at approximately 35.26 degrees from the horiz...
Pipe_ID = 18.7; Pipe_Thk = 5; Pipe_Rot = 0; Pipe_Res = 48; Ht = 100; CutHt = 20; NutHt = 55; Slot_Wid = 2; M3 = 3.5; Zrot = 35.26438971; Pipe_OD = Pipe_ID + Pipe_Thk + Pipe_Thk; Pipe_Rad = Pipe_OD / 2; echo("Pipe_Rad = ",Pipe_Rad); Tan35 = tan(Zrot); Cos35 = cos(Zrot); Sin35 = sin(Zrot); echo("Tan35 = ",Tan35...
glb/cad_fe59b8809363.glb
Create a Parametric Tetrahedron Top corner support. Start with a base block that is 40.23mm wide, 25mm high, and 2mm thick. On top of this base, create a transition that leads to a cylindrical socket. This socket must accommodate a pipe with an outside diameter of 34mm (24mm pipe diameter plus 5mm wall thickness on all...
Pipe_ID = 24; Pipe_Thk = 5; Pipe_Res = 48; Pipe_Rot = 0; Wid = 40.23; Ht = 25; B_Ht = 2; S_Ht = 12; M5 = 5.5; L_Ht = 23; L_Thk = 5; L_Out_Len = 25; L_Out_X_Offset = 0; L_In_X_Offset = 20; L_M5_Z_Offset = 7.75; L_In_Len = 15; Slot_Wid = 2; M3 = 3.5; Uggy_Y = 4; Uggy_Z = 4; Pipe_OD = Pipe_ID + Pipe_Th...
glb/cad_c9c616c8c809.glb
Create a Nexus Player Wall Mount. Start with a main cylindrical body 120mm in diameter and 20mm high. Hollow out the center to create a ring with a wall thickness of 6mm. Within this ring, carve out a central cylindrical cavity 120mm in diameter and 20mm deep, leaving a base thickness of 6mm. In the center of this ba...
res = 120; bodyDiameter = 120; bodyHeight = 20; buttonDiameter = 15; lightDiameter = 1.5; lightOffset = bodyDiameter/2 - 8; indent = 1; portBottom = 63; portBottomAdjust = 47; portTop = 68; portTopAdjust = 10; portHeight = 5; portRound = 3; mountThick = 6; mountHeight = 18; fudgeFactor = 0.2; srewShaftD = 3.57; sre...
glb/cad_0a813fa9cd2f.glb
Create a Floating Photo Frame consisting of a square base and a central supporting pillar. Start by constructing a flat square frame with an outer width of 60mm and a thickness of 1mm. This frame should have a hollow center and a grid-like structure created by removing a smaller central square of 50mm, leaving a border...
rod_height = 35; rod_diameter=5; base_diameter = 20; frame_width=60; $fn=60; rod_half=rod_height/2; quarter_frame=(frame_width-(rod_diameter*3))/2; difference() { cube([frame_width,frame_width,1], center=true); cube([frame_width-(rod_diameter*2),frame_width-(rod_diameter*2),1], center=true); } cube([fram...
glb/cad_427144fa3640.glb
Create a bike stem phone mount consisting of a rectangular block with a central cylindrical cutout. Start with a solid rectangular base measuring 40mm in width, 43mm in depth, and 22mm in height. Remove a central cylinder with a radius of 17.5mm running through the depth of the block to accommodate a handlebar stem. To...
LimX = 130; hLimX = LimX/2; LimY = 69; hLimY = LimY/2; LimZ = 13; hLimZ = LimZ/2; InFlatX = 102; InFlatY = 40; InRadX = 30; ClaspDia = 9; ClaspRad = ClaspDia/2; usbX = 12; volX = 35; pwrY = 12; audY = 6; OffsetH = 12; BaseX = 40; hBaseX = BaseX/2; BaseID = 35; BaseY ...
glb/cad_7ab0da043f2a.glb
Create a Curtain Rail Clip with a main body thickness of 2.13mm. The base is a flat plate 10.22mm wide and 48.99mm long. The front of the plate is square, while the rear end is rounded with a radius of 5.11mm. Cut two semi-circular notches into the plate, each with a radius of 2.6mm; position the first notch center a...
width = 10.22; body_thick = 2.13; length = 48.99; pos_y1_notch = 28; pos_y2_notch = 35; pivotc = 8; pivot_cap_len = 2.75; pivot_cap_base = 2.3; pivot_d = 4.8; bump_y1 = 23.77; bump_y2 = 28.81; bump_w = 2.84; bump_thick = 0.67; latch_y2 = length; latch_length = 7.77; latch_y1 = latch_y2 - latch_length; latch_thick = 3....
glb/cad_d35c972a4b46.glb
Create a bike computer quarter-turn out-front handlebar mount. Start with a main cylindrical body 36mm in diameter and 10mm high. Subtract a concentric cylinder from the center with a diameter of 26mm and a height of 100mm to create a hollow tube. Within this tube, create a lip by adding a cylindrical ring with a diame...
$fs = 1; $fa = 6; module index(inflate = 0) { xoffset = 20; difference() { hull() { scale([1,1,1]) holderBody(); translate([xoffset,0,0]) cylinder(d=10, h=10, center=false); } shell(); translate([xoffset+1,0,0]) cylinder(d=3, h=100, center=true); } } ...
glb/cad_4026552a016f.glb
Create a bike computer quarter-turn out-front handlebar mount. Start with a central ring designed to clamp onto a 32.2mm diameter handlebar, with a total ring thickness of 12mm. The ring should have a wall thickness of 2.5mm. Extend a mounting arm forward from the ring. The arm's geometry is based on an octagonal prof...
use <outer.scad> handleBarD = 32.2; thick = 2.5; width = 12; direction = -1; armThickness = 12; desiredGapBetwComputerAndHandlebar = 8; computerDims = [12, 62, 42]; offsetFromHandlebar = computerDims[1]/2 + desiredGapBetwComputerAndHandlebar; mountY = offsetFromHandlebar + handleBarD/2; shellD = 36; gap = 1; big = 1000...
glb/cad_42eb9b2df31f.glb
Create a power supply cover by starting with a centered rectangular block measuring 122mm x 100mm x 49mm. Hollow out the interior by removing a rounded cube of 116mm x 100mm x 43mm with a corner radius of 3mm, shifted 5mm along the Y-axis. Open the front and bottom faces by removing two centered rectangular volumes: on...
include <MCAD/roundedcube.scad>; rotate([-90,0,0]) union() { difference() { cube([122,100,49],center=true); translate([0,-5,0]) roundedcube([116,100,43],true,3); translate([0,-38,0]) cube([116,51,60],center=true); translate([0,-38,-10]) cube([...
glb/cad_e2fb89dff8bb.glb
Create a blender bolt by starting with a base cylinder 29mm in diameter and 5mm in height. Centered on top of this base, add a second cylinder 23mm in diameter and 10mm in height. At the top of this assembly, create a square head by placing a cube 14mm wide, 14mm deep, and 1.5mm thick, centered horizontally. To finish ...
include <threads.scad> difference() { union() { cylinder(h=5,d=29,$fn=360); translate([0,0,5]) cylinder(h=10,d=23,$fn=360); minkowski() { cylinder(r=2,h=2,$fn=4,center=true); translate([0,0,16.75]) cube(size=[14,14,1.5],center=true); } translate([0,0,18.5]) metric_thread (diameter=17.5, pitch=2.9, l...
glb/cad_73f2831f6e0d.glb
Create a Blade 180QX Landing Gear consisting of two symmetrical curved side frames connected by horizontal struts. First, construct two identical side frames. Each frame is based on a semi-circular arc with an outer radius of 4mm and an inner radius of 1.2mm, extending from a height of -30mm to 0mm. The bottom of eac...
boegen(); boegen2(); bo(); kufen(); module festteil(){ cube([41.4,3,1.7]); translate([0,23.1,0]) cube([41.4,3,1.7]); translate([0,-10,0]) cube([4.2,46.2,1.7]); translate([37.2,-10,0]) cube([4.2,46.2,1.7]); translate([1.6,1.3,1.7]) cube([1,22,1.6]); translate([38.8,1.3,1.7]) cube([1,22,1.6]); bo1(2.2,1.6,1.2); bo1(...
glb/cad_03d40cd576f1.glb
Create a drill holder consisting of a circular base and a sliding carriage mechanism. Start with a main cylindrical base that has an outer diameter of 130mm and a height of 25mm. In the center of this base, create a vertical cylindrical hole with a diameter of 70mm. On opposite sides of the base, centered at 46mm from...
a=70; b= 130; c = 25; d=50 ; e=16 ; n1=5; n2=5; n3=15; f= 43; g=20 ; $fn=100; module osnovanie(){ cylinder(n1,d1=b,d2=b,center); translate([0,0,n1]) cylinder(n2,d1=b-10,d2=b-10,center); translate([0,0,n1+n2]) cylinder(n3,d1=b-20,d2=b-20,center); translate([0,-46,0]) cylinder(d,d1=e+10,d2=e+10,center); translate([...
glb/cad_14d470722733.glb
Create a protective cover for an ultrasound probe, consisting of two matching halves (top and bottom) that hinge together to form a hollow box. The internal cavity should be sized to fit a probe with dimensions approximately 30mm x 20mm x 85mm, with walls 3mm thick. For the bottom half, create a hollowed-out shell wit...
model_to_protect = "2p1"; part_to_render = 1; include_tbar_suppport = true; clearance = 1.0; felt_lining_thickness = 1.0; wall_thickness = 3.0; hinge_wire_thickness = 1.0; hinge_inside_diameter = hinge_wire_thickness + 0.5; hinge_outside_diameter = 6.0; hinge_clearance_diameter = hinge_outside_diameter + 1.0; hinge_x...
glb/cad_331c97c37616.glb
Create a solar cell holder by starting with a centered rectangular base measuring 160mm by 91mm with a thickness of 5mm. Carve out a central rectangular opening of 152mm by 82mm and a depth of 3mm to create a shallow tray. To create the side supports, remove two rectangular sections from the interior of the tray: one...
difference(){ cube([160,91,5],true); translate([0,0,2]) cube([152,82,3],true); translate([5,-35,-3]) cube([65,70,7]); translate([-70,-35,-3]) cube([65,70,7]); translate([32.5,-80,2]) cube([8,160,1.5]); translate([-40.5,-80,2]) cube([8,160,1.5]); translate([32.5,-80,-3.5]) cube([8,160,1.5]); translate([-40.5,-80,...
glb/cad_f094a1e95343.glb
Create a wheelchair simulation model for a dog with a width of 152.4mm (6 inches), height of 203.2mm (8 inches), and length of 355.6mm (14 inches). Construct the main frame using cylinders with an inner radius of 9.525mm and an outer radius of 15.05mm. The frame consists of two parallel side rails running the length ...
part = "wheelchair_sim_"; A = 6; B = 8; C = 14; D = 11; wheel_diameter = 4; screw_diameter = 0.25; tube_outer_radius = 0.375; $fn=60; inner_radius = tube_outer_radius * 25.4; screwsize = screw_diameter * 12.7; wheelsize = wheel_diameter * 12.7; bar = D > 10; ...
glb/cad_83176c2d0326.glb
Create a simple case for an ESP8266 moisture sensor board by starting with a solid rectangular base measuring 85mm by 89mm with a height of 2mm. From this base, carve out a central rectangular recessed area measuring 81mm by 85mm with a depth of 2mm, positioned 2mm from the left and bottom edges. Within this recessed a...
cube([85,89,2],center=false); difference(){ translate([2,2,2]) cube([81,85,2],center=false); translate([4,4,2]) cube([77,81,2],center=false); translate([85-61-3,2,2]) cube([3,85,2],center=false); translate([85-21-3,2,2]) cube([3,2,2],center=false); translate([85-34-3,2,2]) cube([3,2,2],center=false)...
glb/cad_aa5ce30c2b15.glb
Create a simple case for an ESP8266 moisture sensor board by starting with a solid rectangular block measuring 85mm in width, 89mm in depth, and 30mm in height. Hollow out the interior to create a main compartment for the board measuring 59mm by 85mm by 28mm, positioned 2mm from the front, side, and bottom edges. Adjac...
difference() { cube([85,89,30],center=false); translate([2,2,2]) cube([59,85,28],center=false); translate([63,2,2]) cube([20,85,28],center=false); translate([61,60,12]) cube([2,6,18],center=false); translate([21,0,20]) cube([3,2,10],center=false); translate([34,0,20]) cube([3,2,10],center=false)...
glb/cad_bae8dac806f5.glb
Create a protective phone case for an iPhone 5 with a wall thickness of 1.8mm. The main body should be a rounded rectangular shell with a tapered side profile of 3 degrees for better grip. The outer dimensions should be approximately 64.5mm wide and 129.8mm long, with a corner radius of 9.28mm. On the back panel, crea...
primary_color="red"; iphone_version = 1; case_thickness = 1.8; type_of_case = 3; include_hooks="no"; input = "no_input"; image_scale=115; offX = 0; offY = 0; image_rotation =0; pattern_shape = 30; pattern_radius =15; pattern_overlap = 60; pattern_rotation = 10; pattern_thickness = 4; mashup_type=1; index_i=1...
glb/cad_f78b12f56938.glb
Create a cooling fan and blower mount for a hotend. Start with a main body that features a central cylindrical cutout with a diameter of 25mm to accommodate the heatsink. Around this, build a 40mm fan mount consisting of a 40mm by 40mm by 6mm block. Integrate two side-mounting arms that curve to follow the profile of...
heatsinkDiameter = 25; clampLength = 30; zProbeScrew = 0; zProbeScrewHeight = 12; doubleSideFan = 0; % union() { cylinder(30, heatsinkDiameter / 2, heatsinkDiameter / 2, $fn = 200); translate([0, 0, 30]) cylinder(6, 3, 3); translate([-14.5, -10, 36]) cube([20, 20, 10]); translate([0, 0, 46]) cylinder(4, 3,...
glb/cad_e6b7f472bca5.glb
Create a thin glass or mirror sheet replicator bed holder consisting of two separate clips: a front clip and a back clip. For the front clip, create a base rectangular block 118mm wide, 56mm deep, and 9mm thick. On top of this base, add a glass top holder that is 118mm wide, 5mm deep, and 3mm high. From this combined ...
glasthickness= 2.5; feetdiameter= 22.24; feetholedepth= 2.5; notchdepth= 2; notchwidth= 1.5; frontfeetdistancefromtheside= 5; frontfeetdistancefromthefront= 29; backfeetdistancefromtheback= 23; frontfeetdepth= 53; backfeetdepth= 50; distancebetwenpieces= 20; glastopholderdepth= 2; glastopholderheight= 3; bedthickness=...
glb/cad_3300a2dc993a.glb
Create a universal spool holder by starting with a truncated cone that is 20mm high, with a base diameter of 65mm and a top diameter of 30mm. Center the cone on the Z-axis. Remove a cylindrical hole from the center of the cone with a diameter of 22.3mm and a height of 8mm to accommodate a bearing, and remove a smaller ...
bearing_d = 22.3; bearing_h = 8; max_d = 65; min_d = 30; cone_h = 20; bearing_inner_max = 14; $fa = 1; $fs = 1; difference(){ translate([0,0,cone_h/2]) cylinder(r1 = max_d/2, r2 = min_d/2, h = cone_h, center=true); translate([0,0,bearing_h/2-.1]) cylinder(r=bearing_d/2, h=bearing_h, center=true); cylinder(r...
glb/cad_3f963a01c225.glb
Create a window frame for a wooden windmill with a total depth of 9mm. The main outer structure is a rectangular frame with a rounded top. The base is a rectangle 49mm wide by 64mm high with a wall thickness of 2mm. The top of the frame is a semi-circle with a radius of 24.5mm and a thickness of 2mm. Inside this frame...
$fn=50+0; depth = 9; thick = 2; border = 4; transomD = 2; transomW = 2; squareW = 45; squareH = 60; circleH = 19; transomO1= 22; transomO2= 46; difference(){ square(squareW+2*thick,squareH+thick,depth+thick); translate([0,0.01,0.01]){square(squareW,squareH,depth+thick+0.02);} } difference(){ ...
glb/cad_6cbf247d3f06.glb
Create a RAMPS 1.3 electronics case bottom. Start with a solid rectangular base measuring 100mm wide, 70mm deep, and 2mm high. Hollow out the center to create a bathtub shape by removing a rectangular volume that leaves a wall thickness of 2mm on the sides and bottom. At each of the four corners, create a rounded ext...
include <parameters.scad> include <grid.scad> include <ramps.scad> use <printer_mount.scad> module bottom() { difference() { cube([case_width, case_depth, 2*case_wall]); translate([case_wall, case_wall, case_wall]) { cube([case_width-2*case_wall, case_depth-2*case_wall, case_wall]); } for (x=[...
glb/cad_fff906d81809.glb
Create a RAMPS 1.3 case mount. Start by constructing a base rectangular plate with dimensions of 100mm width by 60mm depth and a thickness of 4mm. Within this base, create a recessed mount interface by removing a central rectangular area, leaving a border of 2mm walls around the perimeter and forming a cross-shaped rid...
include <parameters.scad> use <grid.scad> module mount_interface(increase) { translate([2*(case_wall-increase), case_depth/2-(case_wall+increase), 0]) { cube([case_width-4*(case_wall-increase), 2*(case_wall+increase), case_wall]); } translate([case_width/2-(case_wall+increase), 2*(case_wall-increase), 0]) { ...
glb/cad_8af9d9fbf2d1.glb
Create a RAMPS 1.3 electronics case consisting of four vertical walls and four corner struts. The walls should have a thickness of 2mm and a height of 54mm. Construct two opposite walls: one spanning the width minus the corner radii, and another spanning the depth minus the corner radii. The width wall should feature...
include <parameters.scad> include <ramps.scad> module sides() { difference() { union() { fan_side(); rst_side(); pwr_side(); nul_side(); corner_struts(); } translate(case_arduino_offset) { #electronics(); } } } module corner_struts() { for (x=[0:1]) { for(...
glb/cad_8076edde7f69.glb
Create a flat spring consisting of a continuous, serpentine strip of material with a uniform thickness of 1mm and a total depth of 4mm. The spring is composed of 15 repeating coils. Each coil is formed by two semi-circular arcs with a radius of 1mm, connected by straight segments. The overall width of the spring is 10...
width = 10; spring_count = 15; depth = 4; stub_length = 5; radius = 1; thickness = 1; $fn = 100; module spring_maker(radius = 5, thickness = 5, depth = 20, width = 40, spring_count = 21, end_len = 30){ module arc_maker(radius, thickness, depth){ difference(){ linear_extrude( depth, cente...
glb/cad_8fada52699da.glb
Create a windmill wing by forming a convex hull around three specific cylindrical elements. First, place a cylinder with a radius of 3mm and a height of 25mm, centered at the coordinates (20, 25, 0). Second, add a cylinder with a radius of 5mm and a height of 5mm, centered at (0, 0, 5) and rotated 90 degrees along the ...
hull() { translate([20,25,0]) #cylinder(3,25,25,center); translate([0,0,5]) rotate([90,0,0]) cylinder(5,5,5,center); translate([0,500,0]) cylinder(1,2,2,center); }
glb/cad_cc95226a2029.glb
Create a Windmill Wing by forming a convex hull around three specific circular profiles. First, place a circle with a diameter of 60mm centered at coordinates (30, 30, 0) on the XY plane. Second, place a circle with a diameter of 16mm centered at (0, 0, 8) and oriented parallel to the XZ plane. Third, place a circle wi...
wingWtip = 7; WingWnose = 30; WingMont = 8; WingL = 500; hull() { translate([WingWnose,WingWnose,0]) cylinder(0.2,WingWnose,WingWnose,center); translate([0,0,WingMont]) rotate([90,0,0]) cylinder(10,WingMont,WingMont,center,$fn=70); translate([0,WingL,0]) cylinder(0.2,wingWtip,wingWtip,center); }
glb/cad_99e0eeaa027d.glb
Create a table leg clamp by starting with a solid rectangular block measuring 111mm in length, 56mm in width, and 20mm in height, applying a 5mm radius to all exterior corners. Carve out two identical square voids from the top of the block to accommodate table legs; each void must be 51mm wide, 51mm deep, and 20mm high...
include <MCAD/shapes.scad>; include <MCAD/materials.scad>; leg_width = 51; leg_radius = 1; clamp_height = 20; clamp_radius = 5; thickness = 5; module leg() { translate([0, 0, -0.5]) roundedBox(leg_width, leg_width, clamp_height+1, leg_radius); } module screw_hole() { cylinder(h=10, r=4); translat...
glb/cad_5a776cd39e1f.glb
Create a glass holder for a Kossel Mini by designing a cylindrical support base with a diameter of 20mm and a total height of 6mm. Start with a solid cylinder of 20mm diameter and 6mm height. From this base, remove a large cylindrical section to create a space for the glass plate; this cutout should have a diameter o...
diam_ext_support=20; epaisseur_sur_vitre=3; encoche_percent=0.5; epaisseur_sous_vitre=0; vis_diam=4; vis_tete_diam=8; vitre_diam=200; vitre_haut=3; artefact=0.05; globalView=0; module support_vitre() { position_encoche=diam_ext_support/6; difference() { union(){ cylinder(h=epaisseur_sur_vitr...
glb/cad_51cfe573a414.glb
Create a Kossel mini autoprobe retract screw end cap consisting of a wide base and a narrower vertical stem. Start by creating a cylindrical head with an outer diameter of 15mm and a height of 7mm. This head should be hollowed out by a central vertical hole with a diameter of 6mm, leaving a bottom wall thickness of 1mm...
tete_diam_ext=15; tete_diam_int=6; tete_hauteur=7; corps_diam_int=3.2; corps_hauteur=12; corps_epaisseur=3; encoche_hauteur=4.0; epaisseur=1; artefact=0.05; module tete() { difference() { cylinder(h=tete_hauteur,d1=tete_diam_ext,d2=corps_diam_int+2*corps_epaisseur,$fn=100); hauteur_interieur=tet...
glb/cad_4f64f78275fb.glb
Create two identical clamp components for a bowden tube system. Each clamp starts with a central body consisting of a truncated cone that transitions from a bottom radius of 9mm to a top radius of 6mm over a height of 32mm. The base of the clamp is a 6mm thick slab, 46mm wide and 12mm deep, centered under the cone. Add...
bowden_tube_diameter = 4.5; bowden_jaw_bottom = 18; bowden_jaw_bottom_E = 15; bowden_jaw_top = 12; jaw_height = 32; body_height = 6; hotend_holder_width = 22; hotend_screw_diameter = 4; hotend_diameter = 16.4; hotend_height = 4.76; hotend_screws_spacing = (hotend_diameter/2); zipties_width = 3; zipties_depth = 2; cl...
glb/cad_6b3196ece346.glb
Create a Clip on pipe SoapBar holder. Start by designing a C-shaped clip intended to snap onto a pipe with a 22mm diameter. The clip should have a height of 20mm and a wall thickness of 2.2mm. To ensure a secure fit, add small cylindrical caps with a diameter of 2.42mm at both ends of the clip. The clip's opening shoul...
$fa=5; $fs=0.5; pd=22; ct=2.2; eccf=1.1; ch=20; ca=120; sl=80; sw=60; ht=3; hh1=5; hh2=2; bottom_height=1; w1=4*(pd/4+ct); difference() { union() { difference() { cylinder(h=ch,d=pd+ct*2); translate([0,0,-1]) linear_extrude(height = ch+2) polygon(points=[ [0,0],[-w1*cos(90+ca/2),-w1*sin(90+ca/2...
glb/cad_1a0cf97af00b.glb
Create a Kossel Glass Bed Support by starting with a base block 40mm wide, 10mm deep, and 7mm tall, centered on the origin. Carve a semi-circular cutout from the top of this block to accommodate a glass bed with a radius of 85mm and a thickness of 3.5mm, leaving a wall thickness of 5mm around the outer edge. On the t...
bd = 170; bt = 3.5; sr = 1.87; ff = 0.1; lh=0.2; $fn=180; intersection () { translate([0,bd/2,0]) cylinder(r=bd/2+5, h=10, center=true); union () { difference () { union() { translate([-20,-5,-bt]) cube([40,10,bt*2]); translate([-11,-2,bt]) cube([2,4,2]); translate([9,-2,bt]) cube([2,4,2]); } translate([0,bd/2,bt/...
glb/cad_5a7f70d48ab1.glb
Create a Kossel Glass Bed Support mount. Start with a central rectangular block 40mm wide, 15mm deep, and 6mm high. Modify the front edge of this block by removing a semi-circular cutout with a radius of 15mm and a height of 8mm, centered along the front width. At each far end of the block, create a vertical screw sli...
sr=1.87; nr=3.3; mw=40; $fn=90; difference() { union () { translate([-mw/2,0,0]) cube([mw,15,6]); translate([mw/2-8,-16,0]) cube([8,16,6]); translate([-mw/2,-16,0]) cube([8,16,6]); difference () { translate([-mw/2+8,-8,0]) cube([8,8,6]); translate([-mw/2+16,-8,3]) cylinder(r=8,h=6,center=true); } ...
glb/cad_c1b5cb924301.glb
Create a dog wheelchair simulation model based on the following dimensions: a dog width of 6 inches, height of 8 inches, and length of 14 inches. Construct the main frame using cylinders with an inner radius of 9.525mm and an outer radius of 15mm. The frame consists of a rectangular base with a length of 304.8mm (12 ...
part = "wheelchair_sim_"; A = 6; B = 8; C = 14; D = 11; wheel_diameter = 4; screw_diameter = 0.25; tube_outer_radius = 0.375; $fn=60; inner_radius = tube_outer_radius * 25.4; screwsize = screw_diameter * 12.7; wheelsize = wheel_diameter * 12.7; bar = D > 10; ...
glb/cad_c5a975592095.glb
Create a Flexible Koni Shock Adjuster Joint consisting of two identical cylindrical components. For each component, create a main cylinder with a radius of 11mm, a height of 20mm, and a 25-facet resolution. Bore a central vertical hole through the cylinder with a radius of 3.5mm and a height of 35mm. On the side of the...
$fn=25; D=22; include<ujoint.scad>; ujoint(D=D); translate([0,0,D+5]) { difference(){ cylinder(r=D/2,h=20); translate([0,0,3]) cylinder(r=7/2,h=35); translate([0,0,13]) rotate([0,90,0]) cylinder(r=1.5,h=D,center=true); } } translate([0,0,-10]) difference(){ cylinder(r=D/2,h=10); union(){ translate([0,0...
glb/cad_6f74ede816dc.glb
Create a 90-degree aluminum extrusion angle bracket. Start with a base L-shaped structure formed by two plates of 3mm thickness. The bottom horizontal plate is a rectangular block measuring 20mm by 40mm with a height of 20mm. The vertical wall rises from one edge of this base, also 20mm thick and 20mm high. In the bot...
size_x = 1; size_y = 2; size_z = 1; incremental_supports = 1; alignment_studs = 1; slot_holes = 1; hole_d = 5.2; plate_thickness = 3; side_thickenss = 3; base_size = 20; alignment_stud_diameter = 5; alignment_stud_height = 1; slot_length = 4; difference() { union(){ difference(){ cube...
glb/cad_6c24a289a19b.glb
Create a Hatchbox Spool Holder for a Creator Forge Pro. Start by constructing a plate holder consisting of three joined rectangular blocks: one main block measuring 40mm x 3mm x 50mm, a second block measuring 3mm x 16mm x 50mm positioned at x=30, and a third block measuring 46.5mm x 3mm x 50mm positioned at x=26, y=13....
$fa=1; $fs=0.5; unit = 1; spool_width = 63.5; spool_hole_diameter = 31; spl_l=spool_width*unit; spl_d=spool_hole_diameter*unit; $fn=48*2; spl_r=spl_d/2*1; plt_w=spl_d*1.5*1; module plt_hld() { color( "Red", 1) cube([40,3,50]); color( "Green", 1) translate([30,0,0]) cube([3,16,50]); color( ...
glb/cad_77f57f75da20.glb
Create a customizable stitch marker by designing a flat, C-shaped ring with a thickness of 0.5mm. Start with a solid circular disk that has a radius of 3.3mm. From this disk, remove a concentric inner circle with a radius of 2.2mm to create a ring. To transform this ring into an open clip, remove a rectangular slot fro...
$fn = 50 + 0; needle_size = 3.5; width = 2; thickness = 0.5; clearance = 0.5 + 0; radius = (needle_size / 2 + width + clearance) / 0.9; slot_width = 1 + 0; linear_extrude(height = thickness) { difference() { union() { circle(r=needle_size / 2 + width + clearance ); hull() { translate([radius * 0.9 - wid...
glb/cad_f445487a2f71.glb
Create a Hephestos 2 X-axis DC motor adapter. Start with a base plate that is a cylinder with a radius of 11mm and a height of 14mm. At the top of this base, add a square platform 21mm wide, 21mm deep, and 3mm thick, centered on the cylinder. At the four corners of this square platform, position four small cylinders wi...
$fn=30; rotate([180,0,0]) difference() { union() { cylinder(r=22/2,h=17-3,$fn=180); translate([0,0,16-3]) hull() { translate([15,15]) cylinder(r=5,h=3); translate([-15,15]) cylinder(r=5,h=3); translate([15,-15]) cylinder(r=5,h=3); translate([-15,-15]) cylinder(r=5,h=3); } } hull() { cylinder(r=12/2,h=20); tr...
glb/cad_fff9dc7b0e46.glb
Create a Boarding Screwdriver handle by constructing a composite cylindrical body with a total height of 70.3mm. Start with a thin circular base disk 36mm in diameter and 0.8mm thick. Above this, build a main body that transitions from a base radius of 6.5mm to a top radius of 11.5mm over a height of 5mm, then continue...
hex_l=26; hex_r=8/2; body_l=48.5; body_r=11.9/2; ideal=6.3; comp=ideal/0.866025404; echo(comp); indent_d=2; indent_r=6; handle_r=23/2; difference(){ union(){ cylinder(r=18,h=0.8); cylinder(r1=handle_r-5,r2=handle_r,h=5); translate([0,0,hex_l+body_l-5])cylinder(r1=handle_r,r2=handle_r-5,h...
glb/cad_7c0df19bb7ac.glb
Create a 3D model of a dog tag shaped like a bone with a thickness of 2mm. The main body consists of a central rectangular bar 50mm long and 35mm wide. At each end of this bar, create a rounded bulb shape formed by two overlapping circles, each with a radius of 10mm, positioned vertically so that their centers are 15mm...
dog_name_text_box = "Paco"; thickness_text_box = 2; dogs = ["Paco", "Pepper", "Taz"]; numDogs = 3; $fn=100; module bone(name) { assign(l = 50) assign(r = 10) translate([r, 0, 0]) difference() { union() { bone_ends(r, l); square([l, 3.5 * r]); } assign(theta = asin(1 / 2)) assign(h = sin(theta) * r)...
glb/cad_184c1ddceaf1.glb
Create a Makergear M2 E3D and V3b filament drive mount consisting of two mirrored drive sections. For each section, create a base block 20mm high. Incorporate a drive gear cutout with a radius of 6.27mm. Add a bearing housing featuring a cylindrical hole with a radius of 2.5mm and a recessed area for a bearing with a...
$fn = 100; nozzleRadius = 0.4 / 2; layerHeight = 0.25; M3Radius = 3 / 2 + nozzleRadius; M4Radius = 4 / 2 + nozzleRadius; M4NutRadius = (6.9 + 2 * nozzleRadius) / (2 * cos(30)); M4NutHeight = 3.15 + layerHeight; shell = 3; filaRadius = (2 + layerHeight) / 2; screwSpacerE3D = 19.92; heightE3D = 20; baseLengthE3D = 28;...
glb/cad_1224c920dff7.glb
Create a spool mount by starting with a central rectangular block measuring 7mm in width, 60mm in length, and approximately 26mm in height. Pierce this block with two cylindrical holes, each 6mm in diameter and 10mm in depth, positioned 22mm away from the center along the length of the block. Attached to one end of thi...
spool_start_x = 40; rotate([30,0,0]) rotate([0,90,0]) cylinder(r=30/2,h=spool_start_x + 95 + 20,$fn=6); difference(){ translate([0,0,0]) cube([7,60,30*cos(30)], center=true); for(i = [-1, 1]) { translate([0, i*22,0]) rotate([0,90,0]) cylinder(r=6/2, h=10, center=true); } } translate([spool_start...
glb/cad_8f4bea75af0e.glb
Create an Optical Table Mount consisting of a rectangular block with a central hole. The main body is a rectangular prism measuring 48.28mm in length, 10mm in height, and 7mm in thickness. At the exact center of this block, create a vertical cylindrical hole with a radius of 3.675mm (approximately 1/4" diameter plus ...
$fs=0.10; tol=1.0; r_screw = (6.35+tol)/2; gap = 25.4; spacing = 1.414; h_plate=10; t_plate=7; l_screw = gap*spacing; l_plate=l_screw+4*r_screw; l_cutout = l_screw-4*r_screw; t_cutout=3; module zhole(x,y,z,rad,height) { translate([x,y,z]) { cylinder(r=rad, h=height, center=false); } } module rectangle(x,y,z) {...
glb/cad_4ef69a631746.glb
Create a traffic cone model consisting of a hollow truncated cone sitting on a square base. Start by constructing a solid square base 38mm wide and 28mm deep with a thickness of 1mm. Centered on this base, create a truncated cone with a height of 35mm, a bottom radius of 15mm, and a top radius of 5mm. To make the cone ...
$fn=120; difference(){ union(){ translate([-14,-19,0]) cube(size=[28,38,1]); translate([-19,-14,0]) cube(size=[38,28,1]); translate([-14,14,0]) cylinder(r=5,h=1); translate([-14,-14,0]) cylinder(r=5,h=1); translate([14,-14,0]) cylinder(r=5,h=1); translate([14,14,0]) cylinder(r=5,h=1); cylinder(r1=15,r2=5,h=35); } c...
glb/cad_63d81c11218e.glb
Create a cable organiser clamp by starting with a solid rounded rectangular base measuring 61mm in length, 56mm in width, and 20mm in height, with a corner radius of 5mm. From this base, remove a central rectangular void measuring 51mm in length, 51mm in width, and 21mm in height, which has a corner radius of 1mm. This...
include <MCAD/shapes.scad>; include <MCAD/materials.scad>; leg_width = 51; leg_radius = 1; clamp_height = 20; clamp_radius = 5; thickness = 5; module leg() { translate([0, 0, -0.5]) roundedBox(leg_width, leg_width, clamp_height+1, leg_radius); } module screw_hole() { cylinder(h=10, r=2); translat...
glb/cad_7edcfdca79a2.glb
Create a 3D model of a cube with a side length of 20mm. Centered on the cube, add a cylinder that acts as a wheel; this cylinder should have a radius of 10mm and a total height of 22mm, oriented so that it extends 1mm beyond each opposite side face of the cube. Finally, bore a vertical hole through the center of the to...
cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; difference() { union() { translate([0, 0, cube_size/2]) cube([cube_size,cube_size,cube_size], center=true); ...
glb/cad_bca3204dab3f.glb
Create a 3D model of a geometric solid with overall dimensions of 10mm in width, 10mm in depth, and 10mm in height. The shape is a polyhedron defined by six vertices. Construct the object by defining a base rectangle on the XY plane with corners at [0, -10, 0] and [0, 10, 0], and an upper edge extending to [0, -10, 60]...
X=10; Y=10; Z=10; cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; module object1(scale) {polyhedron(points = [[0, -10, 60], [0, 10, 60], [0, 10, 0], [0, -10, 0], [60, ...
glb/cad_4f7169628e34.glb
Create four identical cylindrical standoffs for a Softrock Ensemble RXTX case. Each standoff should be a hollow cylinder with an outer diameter of 6mm and a height of 20mm. The center of each standoff must feature a coaxial hole with a diameter of 4mm that runs through the entire length of the cylinder. Position the fo...
difference(){ translate([10,0,0]) cylinder(20,3,3); translate([10,0,-1]) cylinder(22,2,2); } difference(){ translate([20,0,0]) cylinder(20,3,3); translate([20,0,-1]) cylinder(22,2,2); } difference(){ translate([30,0,0]) cylinder(20,3,3); translate([30,0,-1]) cylinder(22,2,2); } difference(){ translate([40,0,0...
glb/cad_b7f60adb9692.glb
Create a rectangular prism with a width of 20mm, a length of 30mm, and a height of 10mm.
X=20; Y=30; Z=10; echo(version()); cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; module triangle(scale) {polyhedron(points = [[0, -10, 60], [0, 10, 60], [0, 10, 0],...
glb/cad_9cd5a106478f.glb
Create a 3D model of a right triangular prism. The prism should have a length of 60mm along the x-axis, a width of 20mm along the y-axis (extending from -10mm to 10mm), and a height of 60mm along the z-axis. The shape is defined by a triangular cross-section in the YZ plane that extends linearly along the X axis, resul...
X=1; Y=1; Z=1; echo(version()); cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; module triangle(scale) {polyhedron(points = [[0, -10, 60], [0, 10, 60], [0, 10, 0], [0...
glb/cad_948fa7d0f051.glb
Create a simple dose with a cover consisting of a hollow spherical base and a matching lid. For the base, create a sphere with a 50mm diameter and a wall thickness of 2.5mm. Cut the sphere in half along the horizontal plane and remove the top hemisphere. From the center of the remaining bottom bowl, remove a cylinder w...
$fn=100; module vaza() { union() { intersection() { difference() { sphere (d=50, center=true); sphere (d=45, center=true); translate ([0,0,15]) cylinder (d=35, h=50, center=true); translate ([0,0,26]) cylinder (d=50, h=20, center=true); } translate ([0,0,30]) cub...
glb/cad_3795edbb05e6.glb
Create a 3D model of a right-triangular prism. The prism should have a base that is an isosceles triangle with a width of 20mm and a height of 60mm. The thickness of the prism along its Z-axis should be 10mm. Ensure the vertices of the triangular base are positioned such that the 20mm side is the base of the triangle a...
dx=0; dy=0; dz=0; x0=10; y0=10; z0=10; sx=(dx+x0)/x0; sy=(dy+y0)/y0; sz=(dz+z0)/z0; echo(version()); cube_size = 20; hole_diameter = 2.5; hole_radius = hole_diameter/2; hole_depth = 1; show_wheels = "yes"; wheel_thickness = 1; function BEZ03(u) = pow((1-u), 3); bing = 3+4; baz = 3 / hole_depth; module triangle...
glb/cad_7e39abf76651.glb
Create a standalone hard drive bracket consisting of four identical H-shaped modules aligned in a row. Each H-shaped module is composed of two outer rectangular pillars and one central connecting bar. Specifically, create two outer pillars measuring 4mm in width, 21mm in length, and 4mm in height. Connect these two pil...
module ha001(){ union() { translate ([0,0,0]) cube([4,21,4]); translate ([4,7,0]) cube([4, 7,4]); translate ([8,0,0]) cube([4,21,4]); } } ha001(); translate ([0,25,0]) ha001(); translate ([0,50,0]) ha001(); translate ([0,75,0]) ha001();
glb/cad_cba71b0afb95.glb
Create a standalone hard drive bracket by constructing a long, narrow base and adding vertical supports at each end. Start with a central rectangular bar measuring 4mm wide, 165mm long, and 16mm high. At both ends of this bar, add vertical rectangular blocks that are 12mm wide, 4mm deep, and 34mm high. To create the in...
module hh001() { difference () { union() { translate([0,0,0]) cube([12,4,34]); translate([4,4,4]) cube([4,4,26]); translate([4,8,0]) cube([4,8,34]); translate([4,16,0]) cube([4,131,16]); translate([4,147,0]) cube([4,8,34]); translate([4,155,4]) cube([4,8,26]); translate([0,159,0]) cube([1...
glb/cad_c529f1fcfbfd.glb
Create a mouthpiece for a Joyetech Delta 16 by constructing a vertical hull that connects a circular base to two small circular points at the top. The base should be a cylinder with a radius of 4.4mm and a height of 5mm. At the top of the model, 30mm above the base, position two small cylinders, each with a radius of 2...
difference() { hull() { cylinder(5,4.4,4.4); translate([-2,0,30]) cylinder(1,2,2); translate([2,0,30]) cylinder(1,2,2); } cylinder(55,1.5,1.5); }
glb/cad_054a7816097f.glb
Create two interlocking snap-together units for a 3D chain link. Each unit is based on a flat blank with a thickness of 2mm. To form the base geometry of a unit, start with the intersection of a 30mm cube and a sphere with a 20mm radius. From this shape, remove a concentric inner sphere with a 19mm radius and four cy...
dcdb = acos(sqrt(2/3)); dce = asin(sqrt(2/3)); ce = sqrt(30*30/2); $fn=30; module guide(){ difference(){ intersection(){ cube(30,30,30,center=true); sphere(20); } sphere(19); rotate([dce,0,45],[0,0,0]) cylinder(80,3,3,center=true); ...
glb/cad_241f7dc775ea.glb
Create a glue spatula tool with a total length of 60mm and a uniform thickness of 1.2mm. The main body is a flat blade that tapers in width from 15mm at the base to 5mm at the tip. At the wide base, center a circular hole with a radius of 4mm, positioned 10mm from the top edge. Along the sides of the blade, create two ...
thickness = 1.2; height = 60; hole_distance_from_top = 10; indent_distance_from_bottom = 15; thickness2 = thickness / 2; rotate([0, 90, 0]) difference() { cylinder(r1 = 5, r2 = 7.5, h=height); translate([-10 - thickness2, -8, -0.5])cube([10, 16, height+1]); translate([0 + thickness2, -8, -0.5])cube([10, 16 ,heig...
glb/cad_791b39126f24.glb
Create a wall mount for a ceiling fan controller. Start with a solid rectangular base block measuring 83mm wide, 95mm deep, and 45mm high. From the center of this block, remove a trapezoidal volume to create the controller insert. This cutout should be 53mm wide at the top, tapering down to 40mm wide at the bottom, w...
controlTopWidth = 53.0; controlBotWidth = 40.0; controlDepth = 80.0; controlHeight = 40.0; wallWidth = 15.0; cubeWidth = wallWidth + controlTopWidth + wallWidth; cubeDepth = controlDepth + wallWidth; cubeHeight = controlHeight + 5; module base_block() { color("cyan") cube([cubeWidth, cube...
glb/cad_4358fb656bb5.glb
Create a Test Nut Hole size device by starting with a rectangular block measuring 40mm in length, 8mm in width, and 6mm in height. Within this block, create five hexagonal holes, each with six sides, centered 4mm from the short edges and spaced 8mm apart from center to center along the length. The holes should be cente...
$fn=6; numbolts = 5; difference () { cube([numbolts*8,8,6]); for (f=[0:numbolts-1]) { translate([(f*8)+4,4,3]) cylinder(r=3*(1+(f*0.05)),h=6,center=true); } }
glb/cad_36baeca65e65.glb
Create a plotter pen adapter by constructing a hollow cylinder with an outer diameter of 11.5mm and a total height of 16mm. The interior should be hollowed out using two different diameters to create a stepped internal cavity. First, create a central hole with a diameter of 9.85mm that runs through the entire length of...
include <common.scad>; body_outer_diameter = 11.5; body_inner_diameter = 9.85; body_inner_diameter_2 = 10.25; difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=16, $fn=80); } translate([0,0,-25]) cylinder(d=body_inner_diameter, h=50, $fn=80); translate([0,0,0]) cyli...
glb/cad_ca67c0a6d67d.glb
Create a plotter pen adapter by constructing a hollow cylinder with an outer diameter of 11.5mm and an inner diameter of 9.75mm. The main body of the cylinder should have a total height of 16mm. Ensure the walls are smooth and the interior is a clear, open bore extending through the entire length of the part to accommo...
include <common.scad>; body_outer_diameter = 11.5; body_inner_diameter = 9.75; difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=16, $fn=80); } translate([0,0,-25]) cylinder(r=body_inner_diameter/2, h=50, $fn=80); }
glb/cad_e7c5ef417367.glb
Create a plotter pen adapter by constructing a hollow vertical cylinder. The main body should have an outer diameter of 11.6mm and an inner diameter of 9mm. The total height of the object is 50mm, though the wall thickness varies: the bottom 20.7mm of the cylinder maintains the 11.6mm outer diameter, while the upper se...
include <common.scad>; body_outer_diameter = 11.6; body_inner_diameter = 9; translate([0,0,37]) rotate(a=[0,180,0]) { difference() { union() { translate([0,0,27.3]) band(); translate([0,0,27.3 - 11]) cylinder(r=body_outer_diameter/2, h=20.7, $fn=50); } cylinder(r=bo...
glb/cad_205f1b4c47b6.glb
Create a plotter pen adapter by constructing a main cylindrical body with an outer diameter of 11.5mm and a total height of 18.5mm. Inside this cylinder, remove a hexagonal hole with a diameter of 8.3mm that extends from the bottom up to a height of 2mm. From that 2mm mark, continue the hexagonal void upward, but trans...
include <common.scad>; body_outer_diameter = 11.5; body_inner_diameter = 8.3; body_height = 13.5; translate([0,0,33.5]) rotate([180,0,0]) translate([0,0,15]) difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=body_height + 5, $fn=80); translate([0,0,-15]) cylinder(r=body_...
glb/cad_ed9535683b3a.glb
Create a plotter pen adapter by constructing a hollow cylinder with an outer diameter of 11.5mm and a total height of 18.5mm. Remove a central cylindrical hole with a diameter of 6mm that runs through the majority of the length. At the top of the object, create a narrower circular opening by increasing the diameter of ...
include <common.scad>; body_outer_diameter = 11.5; body_inner_diameter = 6; body_height = 13.5; translate([0,0,15]) difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=body_height + 5, $fn=80); translate([0,0,-15]) cylinder(r=body_outer_diameter/2, h=body_height + 5, $fn=8...
glb/cad_934391885dc6.glb
Create a plotter pen adapter consisting of a hollow cylindrical body. The main body should have an outer diameter of 11.5mm and a height of 18.5mm. Bore a central hole through the entire length of the cylinder with a diameter of 6.5mm. Additionally, create a narrower cylindrical cutout with a diameter of 4mm that exten...
include <common.scad>; body_outer_diameter = 11.5; body_inner_diameter = 6.5; body_height = 13.5; translate([0,0,33.5]) rotate([180,0,0]) translate([0,0,15]) difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=body_height + 5, $fn=80); translate([0,0,-15]) cylinder(r=body_...
glb/cad_31883b8215b6.glb
Create a plotter pen adapter by constructing a hollow cylinder with an outer diameter of 12.75mm and an inner diameter of 11mm. The main body of the cylinder should have a total height of 10mm. Ensure the walls are uniform and the interior is a clean, circular bore that runs completely through the center of the object ...
include <common.scad>; body_outer_diameter = 12.75; body_inner_diameter = 11; difference() { union() { band(); cylinder(r=body_outer_diameter/2, h=10, $fn=80); } translate([0,0,-25]) cylinder(r=body_inner_diameter/2, h=50, $fn=80); }
glb/cad_04b893e2c461.glb
Create a Tormach TTS ER20 Collet Wrench designed for 30mm hex collet nuts. Start by forming the main head as a cylinder with a diameter of 45mm and a height of 22mm. Extend this head by adding a rectangular block measuring 45mm wide, 60mm long, and 6mm thick, positioned on top of the cylinder starting at a height of 16...
$fn=90; iota = 0.1; a = 31; b = a / 1.7320508; module hex30() { rotate([0,0,0]) translate([-a/2,-b/2,-iota]) cube([a,b,8+iota]); rotate([0,0,60]) translate([-a/2,-b/2,-iota]) cube([a,b,8+iota]); rotate([0,0,120]) translate([-a/2,-b/2,-iota]) cube([a,b,8+iota]); } module head() { difference() { union() { cylinde...
glb/cad_0fb679706d48.glb
Create a TTS to R8 collet rack adapter. Start with a central vertical cylinder 20.8mm high with a diameter of 24mm. Add a wider cylindrical cap on top with a diameter of 38mm and a height of 5mm, positioned so its base is 0.5mm above the main cylinder's base. At the bottom, add a tapered cylindrical base 4mm high that ...
iota=0.1; $fn=90; module collet_rack() { difference() { translate([-100,-100,0]) cube([200,200,20.8]); translate([0,0,-iota]) cylinder(d=25.48,h=20.8+iota*2); } } module adapter() { difference() { union() { translate([0,0,0.5]) cylinder(d=24,h=20.8+2*iota); translate([0,0,20.8+.5]) cylinder(d=38,h=5); ...
glb/cad_daef8ef7ece4.glb
Create a Heated Build Platform Wedge Removal Tool by constructing a right-triangular prism. The prism should have a length of 70mm and a width of 50mm. The thickness of the tool must be 4mm. Orient the geometry so that it forms a wedge shape, tapering from the full 4mm thickness down to a sharp edge along its length.
maxThickness = -4; length = 70; width = 50; rotate(a=[90, 90, 90]) { linear_extrude(height = width, center = true, convexity = 10, twist = 0) polygon(points=[ [0,0], [maxThickness, length], [0, length] ], paths=[[0,1,2]]); }
glb/cad_0812ff9afe1f.glb
Create a belt tensioner consisting of a series of concentric, curved wall segments. The overall height of the main body is 7.6mm. Construct the shape using a series of arcs with a central radius of 3mm. First, create a curved base section with a wall thickness of 1.6mm and an arc angle of 105 degrees. Build upon this...
$fn=512; arc=105; wall=1.6; belt=1.8; ri=3; h=6+wall; module bow(r1,r2,h,arc){ difference(){ cylinder(h=h,r=r2); translate([0,0,-0.1])cylinder(h=h+0.2,r=r1); translate([-r2,0,-0.1])cube([2*r2,2*r2,h+0.2]); rotate([0,0,180-arc])translate([-r2,0,-0.1])cube([2*r2,2*r2,h+0.2]); } } union(){ bow(r1=3-1.6,r2=3...
glb/cad_0af2395fb179.glb
Create a Parametric Carriage Base for V-Slot Printers. The object is a flat base plate with a height of 6mm. The main body is a symmetrical, elongated shape resembling a dog bone. At each end, create a circular mounting area with a diameter of 30mm. Within these circular ends, center two holes along the longitudinal ...
include <Delta_Traxxas_Carriage.scad>; W_X_Offset = 39.9; W_Y_Offset =16; L_Offset_Top = 11.3; L_Offset_Bot = 11.3; Ht = 6; M5 = 5.5; M5_ECC = 7.5; M5_Res = 24; ECC_Right = 1; FlushTop = 0; FlushBottom = 0; FlushSides = 0; Corner_OD = 30; UpChamfer_OD = 10; SideChamfer_OD = 12; Ledge_On = 1; Carriage_O...
glb/cad_87fb7bba540a.glb
Create a hollow rectangular crate with an outer length of 52mm, an outer width of 52mm, and a height of 50mm. The walls and the base should have a uniform thickness of 1mm. Perforate the five visible faces of the crate with a grid of circular holes, each with a diameter of 5mm. On the bottom face, arrange the holes i...
inside_length = 50; inside_width = 50; height = 50; wall_thickness = 1; hole_d = 5; outside_length = inside_length + (wall_thickness * 2); outside_width = inside_width + (wall_thickness * 2); num_x_holes = floor(inside_length/(hole_d+2)); x_offset = inside_length/num_x_holes; x_start = (x_offset * num_x_holes / ...
glb/cad_945db75eca86.glb
Create a parametric desk sign tilted at a 60-degree angle. The main body is a rectangular plaque 113mm long, 35mm wide, and 2mm thick, with rounded corners created by a 5mm radius. Emboss two lines of text onto the face of the plaque: the top line reading "3D Print Training" and the bottom line reading "10:00 This Frid...
text_line_1="3D Print Training"; text_line_2="10:00 This Friday"; sign_length=113; stand_angle=60; radius=5; $fn=10; rotate([stand_angle,0,0]) { sign(line1=text_line_1, line2=text_line_2); stand(); } module sign(line1="Line1", line2="Line2") { difference() { translate([-4,-6,-radius]) minkows...
glb/cad_04ed7f96f1c8.glb
Create a Modern Robotics Tetrix Sensor Mount consisting of a 90-degree L-shaped bracket. Start with a horizontal base plate measuring 35mm by 32mm with a thickness of 3.5mm. Attach a vertical wall measuring 35mm wide, 3.5mm thick, and 35.5mm high, positioned so it extends from the edge of the base to form a right angle...
difference () { union () { cube ([35,32,3.5],center=true); translate ([0,17.5,16]) cube ([35,3.5,35.5],center=true); } translate ([12,12,0]) cylinder (h=5,d=4,$fn=20,center=true); translate ([-12,12,0]) cylinder (h=5,d=4,$fn=20,center=true); translate ([...
glb/cad_b27a8a8bb3f7.glb
Create a knurled knob with a height of 5.35mm and a radius of 14.5mm. The main body is a cylinder with a central vertical hole of 5.2mm diameter. To accommodate a nut, create a hexagonal cutout in the center with a point-to-point diameter of 11.2mm. To create the knurled grip, remove 20 small cylindrical notches from t...
knob_radius = 14.5; dent_radius = 2; knob_height = 5.35; num_dents = 20; dent_offset = 1; nut_hole_radius = 2.6; nut_size_radius =5.6; module knob() { translate([0, 0, 0]) { difference() { cylinder(h = knob_height, r = knob_radius); for (i = [0:(num_dents - 1)]) { translate([sin(360*i/num_dents)*(knob_radiu...
glb/cad_7feffcad1172.glb