Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a bowden mount for an E3D-v6 hotend designed to hold two 40mm fans. Start by constructing a main fan holder block measuring 40mm wide, 42.41mm deep, and 5mm thick, with an additional base plate extending to 6.41mm thickness. Center a large circular cutout with a 34mm diameter through this block. Add four mounti...
fansize = 40; bottom_angle = 15; side_angle = 70; bracket_height = cos(45) * fansize; bottom_opening = 10; vertical_bend = 2/3 * bracket_height; fan_mounting_hole_offset = 4; fan_mounting_hole_diameter = 4.3; additional_height = (bracket_height - bottom_opening) * tan(bottom_angle); side_position = -(bracket_height - ...
glb/cad_91c38ada5bed.glb
Create a bowden mount for an E3D-v6 hotend. Start with a main body composed of two rectangular blocks, each measuring 30mm by 4mm by 33.5mm, positioned 44.3mm apart along the y-axis. Connect these with a central rectangular block measuring 12.7mm by 48mm by 10.5mm, positioned at a height of 23mm. Add two angled suppor...
use <mount.scad> module fanslot() { cube([3, 7, 28.5]); } translate([0, 0, 33.5]) rotate([0, -180, 0]) difference() { union() { translate([0, 0, 0]) cube([30, 4, 33.5]); translate([0, 44.3, 0]) cube([30, 4, 33.5]); translate([0, 0, 23]) cube([12.7, 48, 10.5]); ...
glb/cad_7e852b1eba4d.glb
Create a Prusa i3 rework bowden mount for an E3D-v6 hotend. Start with a base square plate measuring 40mm x 40mm x 8mm. In this base, create four vertical bolt holes with a diameter of 4.3mm and a 20-facet resolution, positioned at coordinates (8.5, 8.5), (8.5, 31.5), (31.5, 8.5), and (31.5, 31.5). To accommodate nuts,...
module hotend_opening() { translate([-0.1, 0, 0]) rotate([0, 90, 0]) cylinder(d = 16, h = 3.9); translate([3.6, 0, 0]) rotate([0, 90, 0]) cylinder(d = 12, h = 6.2); translate([9.6, 0, 0]) rotate([0, 90, 0]) cylinder(d = 16, h = 3.2); } union() { difference() { cube([40, 40, 8]); trans...
glb/cad_5abe72d961f9.glb
Create a Customizable Profile Triangle by constructing a hollowed equilateral triangular prism with a height of 30mm. The outer boundary should be an equilateral triangle with a side length of 10mm. To create the walls, remove a smaller concentric equilateral triangle from the center, leaving a uniform wall thickness o...
side_length = 10; height = 30; wallthickness = 1; scale = (side_length*(sqrt(3)/2)-(3*wallthickness))/(side_length*(sqrt(3)/2)); linear_extrude(height=height) difference(){ polygon(points=[[-side_length/2,-tan(30)*side_length/2],[side_length/2,-tan(30)*side_length/2],[0,side_length/2/cos(30)]]); scale([scale,scale,0]...
glb/cad_2d7fc2639a66.glb
Create a Customizable Profile Circle by constructing a hollow cylinder. Start with a solid outer cylinder that has a diameter of 10mm, a height of 30mm, and a high facet resolution for a smooth circular finish. Center this cylinder on all axes. To create the hollow interior, remove a smaller concentric cylinder from th...
diameter = 10; height = 30; wallthickness = 1; difference(){ cylinder(h=height,d=diameter,center=true,$fn=100); cylinder(h=height,d=diameter-2*wallthickness,center=true,$fn=100); }
glb/cad_dd2caccb36fb.glb
Create a square profile by constructing a rectangular prism with a length of 10mm, a width of 10mm, and a height of 30mm. Hollow out the center of this prism by removing a smaller rectangular prism from the interior, leaving a wall thickness of 1mm on all four sides. The inner cutout should maintain the full height of ...
length = 10; width = 10; height = 30; wallthickness = 1; difference(){ cube(size=[length,width,height],center=true); cube(size=[length-2*wallthickness,width-2*wallthickness,height],center=true); }
glb/cad_7bd3538395a9.glb
Create a customizable magnet holder pin. Start by creating a main cylindrical body with a diameter of 4.6mm and a height of 2.5mm. Inside this body, remove a central cylindrical core with a diameter of 3.03mm and a height of 2.03mm, starting from the base, to create a hole for a magnet. On top of the main body, add a c...
$fn= $preview ? 200:1000; ph=2.5; pd=4.6; ct=1; cd=5.6; md=3; mh=2; translate([0,0,ph+ct]) rotate([0,-180,0]) union() { translate([0,0,ph-.01]) cylinder(ct,d1=cd,d2=cd); difference() { cylinder(ph,d1=pd,d2=pd); translate([0,0,-.02]) cylinder(mh+...
glb/cad_96f9d3783d98.glb
Create a customizable electrical junction box consisting of a main box and a matching lid. The main box is a rectangular shell with external dimensions of 90mm length, 70mm width, and 30mm height. The walls and the floor are 2mm thick, and all vertical corners have a radius of 8mm. The floor is a solid plate 3mm thic...
$fn = 90; PartSelection = 0; Length = 90; Width= 70; Height = 30; CornerRadius = 8; TopAndBottomHeight = 3; WallThickness = 2; Tolerance = 0.1; EdgeRadius = 1; WallHeight = 5; EnableKnobs = true; VentN = 3; VentSkew = 2; VentDiameter = 1.5; VentSpacing = 5; VentPaddingY = 8; VentPaddingX = 15; EnableV...
glb/cad_9aa256062e47.glb
Create a Customizable Slide Rule Ring by constructing a hollow cylindrical band with a height of 6mm. The band should have an inner circumference of 58.5mm and a wall thickness of 2mm. The overall shape of the ring body is a hexagonal prism (using a 6-facet resolution for the cylinders). On the outer surface of the ri...
inner_circumference = 58.5; overall_height = 6; thickness = 2; point_protrusion = 0.9; base=6; is_bare_ring = 0; module __End_Configuration__() {} inner_r = inner_circumference/2/PI; outer_r = inner_r + thickness; actual_protrusion = (thickness >= point_protrusion) ? point_protrusion : thickness; module Rule_Li...
glb/cad_e08818caedab.glb
Create a 3D model of a stylized number zero. The overall height of the figure is 100mm and its thickness is 25mm. Construct the main body as a hollow cylinder with an outer radius of approximately 28.57mm and an inner radius of 15mm, creating a wall thickness of approximately 13.57mm. The cylinder should be sliced or...
letter_height = 100; letter_width = 25; letter_space = 15; wall_thickness = 0.4; $fa = 1; translate([0, letter_height / -2, 0]) difference() { union() { translate([0,0,0]) rotate ([0,0,0]) union() { difference() { difference () { cylinder(r=20/70*letter_height, h=letter_width); cylinder(r=20/70*letter_...
glb/cad_4c7d976599f4.glb
Create a door mount for a gate by starting with a main cylinder that has a diameter of 47mm and a total height of 16mm. From this main body, remove a smaller concentric cylinder from the center that is 41mm in diameter and 10mm high, positioned 3mm from the bottom base. Additionally, remove a central cylindrical core w...
material_thickness = 3; part_width = 41; part_thickness = 10; screw_width = 5; difference() { cylinder(h=(part_thickness + (2 * material_thickness)) , d=(part_width + (2 * material_thickness)), center=false, $fn=100); translate([0,0,material_thickness]) cylinder(h=part_thickness, d=part_width, center=false, $fn=10...
glb/cad_93e57b99b664.glb
Create a ROV Bilge Pump Thruster Propeller consisting of a central hub and two symmetrical blades. Start with a central cylindrical hub that has a total height of 10mm. The inner core of this hub is a cylinder with a radius of 7.6mm and a height of 1.8mm. Above this core, add a larger cylinder with a radius of 10mm t...
res=90; basecapR1=18.5/2; basecapR2=10; basecapBase=4; baseCube=8; baseCubeHei=5; clearanceHole=5/2; retainThick=2; retainWallHei=2; lipRad=3.4; lipHei=1.8; topcapR2=basecapR2; topcapBase=3.4; topCube=baseCube; topCubeHei=baseCubeHei; topBoltRad=11.2/2; topBoltHei=1; topcapR1=topBoltRad+1; bladeCylOut=basecapR2; b...
glb/cad_bd5eae836c38.glb
Create a 3-blade ROV bilge pump thruster propeller. The propeller consists of a central hub and three symmetrical blades. The hub is composed of two cylindrical sections: a lower inner cylinder with a radius of 7.8mm and a height of 10mm, and a larger middle cylinder with a radius of 10mm and a height of 6mm. The t...
res=90; basecapR1=18.5/2; basecapR2=10; basecapBase=4; baseCube=8; baseCubeHei=5; clearanceHole=5/2; retainThick=2; retainWallHei=2; lipRad=3.4; lipHei=1.8; topcapR2=basecapR2; topcapBase=3.4; topCube=baseCube; topCubeHei=baseCubeHei; topBoltRad=11.2/2; topBoltHei=1; topcapR1=topBoltRad+1; bladeCylOut=basecapR2; b...
glb/cad_ff5eaaa815f6.glb
Create a Craftbot door panel hinge consisting of two stacked cylinders. First, create a tall, thin base cylinder with a radius of 1.5mm and a height of 56mm. Directly on top of this base, centered at the 55mm mark along the vertical axis, place a shorter, wider cylinder with a radius of 4mm and a height of 4mm. Ensure ...
$fn=100; union() { translate([0,0,55]) cylinder(h = 4, r=4, $fa = 1, center = false); cylinder(h = 56, r=1.5, $fa = 1, center = false); }
glb/cad_64f8a3a5ab31.glb
Create a Craftbot door panel hinge by starting with a rectangular block 30mm wide, 13mm deep, and 60mm high. From this block, remove a large cylindrical section with a 14mm radius that runs the full height of the part, centered such that the cylinder's edge aligns with the back of the block, creating a deep semi-circul...
$fn=100; translate([13,0,0]) union() { translate([15,-16,0]) difference() { translate([-15,3,0]) cube(size = [30,13,60], center = false); translate([0,0,-1]) union() { cylinder(h = 200, r=14, center = false); translate([-1,-40,0]) cube(size = [94,54,200], center = false); translate([-14,-34,0]) cube(size = ...
glb/cad_39c757b57927.glb
Create a door panel hinge by constructing a vertical rectangular plate 10mm wide, 50mm deep, and 70mm high. Attached to this plate, create a complex hinge mechanism. Start with a cylinder 19mm high with a 6mm radius, centered 6mm from the plate's side edge and 6mm from its front edge, positioned 20.5mm above the base. ...
$fn=100; translate([6,-6,0]) difference() { union() { translate([0,0,20.5]) { difference() { cylinder(h = 19, r=6, $fa = 1, center = false); translate([0,0,-2]) cylinder(h = 50, r=1.55, $fa = 1, center = false); } rotate(a=[0,0,-84]) translate([0,-6,0]) { difference() { cube(size = [13,...
glb/cad_10e6189468e4.glb
Create a Skadis Universal ring holder consisting of a mounting plate and a cylindrical ring. Start with a mounting plate that is 15mm wide, 4.7mm thick, and 33mm tall. In this plate, create two rectangular slots for hooks: one 4.3mm wide by 10mm tall positioned 20mm from the bottom, and another 4.3mm wide by 4mm tall a...
DISTANCE=5; RING_R = 10; RING_THICKNESS = 5; RING_HEIGHT = 10; CUTOUT = 0; THICKNESS=4.7; HOLE_WIDTH=4.3; FILET_R=2; $fn=60; CUTOUT_OFFSET=sqrt(pow(RING_R,2) - pow(0.5*CUTOUT,2)); assert(DISTANCE > 0, "Distance must be positive"); assert(CUTOUT <= 2*RING_R); assert(RING_HEIGHT <= 20); module skadis_universal()...
glb/cad_9f7b4a0bac53.glb
Create a stand for a Gear Heart by constructing two hollow, nested elliptical shells. First, create a hollow elliptical cylinder with a height of 15mm, an outer radius of 10mm, and a wall thickness of 0.2mm. Scale this shape uniformly by 1 along the X and Z axes, but scale it by 1.3 along the Y axis to create an oval f...
scale([1,1.3,1]) { difference() { cylinder(15,20,10, $fa=1); cylinder(15,19.8,9.8, $fa=1); } translate([0,0,15]) difference() { cylinder(15,10,20, $fa=1); cylinder(15,9.8,19.8, $fa=1); } }
glb/cad_4dceca4720e5.glb
Create a Z Upright Power Supply Mount by starting with a solid rectangular block measuring 46mm in width, 24mm in depth, and 10mm in height. From this block, remove a central rectangular section to create a U-shaped channel that is 40mm wide, 20mm deep, and 10mm high, leaving walls that are 3mm thick on each side. Cu...
boltsize=5; screwsize=4.5; screwhead=7; thick=3; ythick=4; x=40; y=20; z=10; difference () { translate([ 0, 0, 0 ]) body(); translate([ 0, 0, 0 ]) cut(); } module body () { cube([x+thick+thick,y+ythick,z]); } module cut () { translate([ thick, 0, 0 ]) cube([x,y,z]); translate ([0,4.5,0]) translate([ 0, -2*...
glb/cad_2c946948bb38.glb
Create a chopstick consisting of a long, slender rod with a specialized connector at one end. The main body of the rod is 180mm long. For the first third of its length, create a tapered section that transitions from a radius of 1.5mm at the tip to a radius of 3mm. The remaining two-thirds of the rod should maintain a c...
$fn=4; module chopstick(len) { difference() { union() { cylinder(r1=1.5, r2=3, h=len/3); translate([0,0,len/3]) cylinder(r=3, h=2*len/3); } rotate([0,0,45]) translate([1.8,0,90]) cube([2,10,len], center=true); } } module connector_female(len, h, w) { difference(){ union(){ translate([0,0,w/3]) cube([len, h, ...
glb/cad_b953aa99faa6.glb
Create an open-ended wrench for 39mm nuts. Start by forming the main body as a union of a cylinder with a radius of 32mm and a height of 6mm, and a rectangular handle measuring 40mm by 39mm with a height of 8mm, positioned to extend from the cylinder. At the head of the wrench, create a hexagonal cutout with a width ac...
$fn = 50; use <write.scad> union(){ difference() { translate([5, 0, 0]) cylinder(h = 6, r = 32); translate([-40, -19.5, -1]) cube([40, 39, 8]); translate([0, 0, 2]) rotate([0, 0, 30]) Hexagone(cle=39,h=12); } translate([23, -15, 0]) cube([80, 30, 6]); translate([104, 0, 0]) cylinder(h = 6, r = 15); } translate([...
glb/cad_ffdba8879d87.glb
Create an open-ended wrench for 42mm nuts. Start with a base handle and head assembly that is 6mm thick. The main body consists of a cylinder with a 35mm radius centered at (5, 0, 0) and a rectangular block measuring 40mm by 42mm by 8mm positioned from (-40, -21, -1). At the head of the wrench, create a hexagonal cut...
$fn = 50; use <write.scad> union(){ difference() { translate([5, 0, 0]) cylinder(h = 6, r = 35); translate([-40, -21, -1]) cube([40, 42, 8]); translate([0, 0, 2]) rotate([0, 0, 30]) Hexagone(cle=42,h=12); } translate([24, -15, 0]) cube([80, 30, 6]); translate([104, 0, 0]) cylinder(h = 6, r = 15); } translate([10...
glb/cad_840f4af41eec.glb
Create a Christmas Cookie Gift Box consisting of a main container and a matching lid. The main container is a rectangular box with external dimensions of 120mm in length, 74mm in width (calculated as 120/1.618), and 35mm in depth. The walls should be 0.85mm thick. All exterior corners and edges must be rounded with a...
LEN=120; WID=LEN/1.618; DEP=35; R1=5; RW = 0.85; echo(LEN,WID,DEP); translate([0,0,1]) difference(){ minkowski(){ smoothBox(1,0); translate([0,0,-0.01]) cylinder(h=0.01,r=RW,$fn=8); } smoothBox(0,1); } translate([0,WID+5]) { LE = 1.6; linear_extrude(1) translate([R1...
glb/cad_187a555170c5.glb
Create a square rounded profile by constructing a hollow rectangular tube with rounded corners and ends. The outer shell should have a length of 20mm, a width of 10mm, and a total height of 30mm. The outer corners must be rounded with a radius of 2mm. To create the hollow interior, remove a centered rectangular section...
length = 20; width = 10; height = 30; radius = 2; wallthickness = 1; difference(){ hull(){ translate([(length-2*radius)/2,(width-2*radius)/2,0]) cylinder(h=height,d=2*radius,center=true,$fn=100); translate([-(length-2*radius)/2,(width-2*radius)/2,0]) cylinder(h=height,d=2*radius,center=true,$fn=100); translate(...
glb/cad_93237e281f87.glb
Create a sailboat hull by constructing two mirrored halves along the Y-axis, shifted 3000mm from the center. The hull is formed by a series of interconnected planks, each 18mm thick, spanning between five bulkheads. The bulkheads are defined by the following X, Y, Z coordinates (in mm): 1. Stem: [862, 25, 970], [566, ...
Thickness=18; Chines=6; Bulkheads=5; Offset=3000; Bulkhead= [ [ [ 862, 25, 970], [ 566, 25,1180], [ 220, 25,1527], [ 51, 28,1854], [ 0, 28,2108], [ 0, 30,2373]], [ [1828, 25, 364], [1828, 188, 842], [1828, 666,1077], [1828, 794,1411], [1828, 810,1820], [1828, 764,2182]], [ [3611...
glb/cad_9c302bd4a8f4.glb
Create an LCD mount consisting of two primary components: a base and a mounting bracket. First, construct the base by creating a hull between two low-resolution cylinders with a radius of 5.2mm and a height of 3.6mm, positioned 39mm apart on the X-axis and 22.35mm apart on the Y-axis. Within this base, create a centr...
cylinderfn = 0.1; wall_width = 0.6*6; xtraspace = 0.5; metalscrew_r = 2.8/2-0.4; m3_r = 3.2/2+.025; m3_nut_r = (6.08+0.2)/2; m3_nut_hight = 2.4+0.5; *lcdholder_base(); lcdholder_mount(); module lcdholder_base() { difference() { union() { hull() { translate([0,0,0]) fncylinder(r=(wall_width+m3_r), h=wall...
glb/cad_d74ee85e6737.glb
Create a Customizable Profile System consisting of two identical structural columns positioned side-by-side. Each column is 30mm tall. The base geometry of a single column is a complex profile created by taking a 12mm by 12mm square and removing material to create a series of internal channels and voids. Specifically...
height = 30; size = 4; s = size/8; union(){ for (z = [1, 2]) { rotate([0,0,90*z]) translate([-15*s,-15*s,0]) scale([s,s,1]) union(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([6,6,height]...
glb/cad_2e30466e7e27.glb
Create a Customizable Profile System with a total height of 30mm. The base shape is a cylinder with a radius of 17mm (calculated as 3.4 multiplied by a size factor of 5). From this main cylinder, remove a complex internal pattern that repeats every 90 degrees around the Z-axis. The void pattern consists of several in...
height = 30; size = 4; s = size/8; difference(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15*s,-15*s,0]) scale([s,s,1]) union(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([...
glb/cad_9587c8f6023e.glb
Create a Customizable Profile System with a total height of 30mm. The object consists of two identical structural units rotated 90 degrees relative to each other. For each unit, construct a primary volume by forming a hull around a cylinder with a 3mm radius, and two 6mm cubes positioned at [9,0,0] and [9,9,0], all e...
height = 30; size = 8; s = size/8; for (z = [1, 2]) { rotate([0,0,90*z]) translate([-15*s,-15*s,0]) scale([s,s,1]) union(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([6,6,height]); tra...
glb/cad_828cde4b3df2.glb
Create a Customizable Profile System with a total height of 30mm. The object is based on a repeating four-fold rotational symmetry. For one quadrant, construct a solid shape by taking the convex hull of a cylinder with a 3mm radius, and two 6mm cubes positioned at coordinates (9,0,0) and (9,9,0). From this solid, remov...
height = 30; size = 8; s = size/8; scale([s,s,1]) union(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([6,6,height]); translate([9,9,0]) cube([6,6,height]); translate([0,9,0]) cube([6...
glb/cad_373568ddfd45.glb
Create a Customizable Profile System with a total height of 30mm. The object is composed of three identical segments rotated 90 degrees around the Z-axis to form a symmetrical trilobed structure. For each segment, start with a base shape formed by the convex hull of a cylinder with a 3mm radius and two 6mm cubes posi...
height = 30; size = 8; s = size/8; scale([s,s,1]) union(){ for (z = [1, 2, 3]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([6,6,height]); translate([9,9,0]) cube([6,6,height]); translate([0,9,0]) cube([6,6,...
glb/cad_12c1b281f639.glb
Create a Customizable Profile System with a total height of 30mm. The object is based on a repeating four-fold rotational symmetry. For one quadrant, construct a solid shape by creating a hull that encompasses a cylinder with a radius of 3mm, and two cubes of 6mm by 6mm positioned at coordinates (9,0,0) and (9,9,0). Fr...
height = 30; size = 6; s = size/8; scale([s,s,1]) union(){ for (z = [1, 2, 3, 4]) { rotate([0,0,90*z]) translate([-15,-15,0]) difference(){ hull(){ translate([3,3,0]) cylinder(h=height,r=3,$fn=100); translate([9,0,0]) cube([6,6,height]); translate([9,9,0]) cube([6,6,height]); translate([0,9,0]) cube([6...
glb/cad_41bcb0ced280.glb
Create a Y idler for a Prusa i3 Steel printer. Start with a main body consisting of a rectangular block combined with a smaller rectangular extension. The overall structure should accommodate two 624 ball bearings and a 20-tooth GT2 pulley. Create a central cylindrical cutout with a radius of 6.5mm and a height of 10m...
wall_width = 0.5*6; cylinderfn = 0.1; m5_r = (8.63+0.2)/2; m5_hole_r = 5.5/2; m5_h = 4; m3_r = 3.2/2; m3_nut_r = 6.08/2; m3_nut_width = 5.5; m3_nut_hight = 2.4+0.5; belt_h = 1.38; bearing_r = 13/2; bearing_w = 10; bearing_cr = 4/2; tensioner_tolerance = 0.3; pulley_r = 13/2; mountholespace = 12.6; mountholesof...
glb/cad_4cdae6b9c779.glb
Create a Valentine's Day Cup by constructing a tapered hollow vessel with a handle. The main body is a 48-sided polygon prism with a height of 65mm. The outer diameter is slightly tapered, increasing slowly from the base toward the top to ensure stability during printing. The interior is hollowed out by a cylinder with...
include <ArchitectsDaughter.scad> include <ArchitectsDaughter_interface.scad> start = 0; sc = 0.8; side = 5; cz = 2.75; num = 11; hl = 8; htad = 1.8; mark = 2; translate([0,0,5*num]) mirror([0,0,1]) difference() { union() { rotate([0,0,-39*(360/48)+180/48]) handle(); for (k = [7:-1:0]) { translate([0,0,-(num-9-k)*...
glb/cad_6d22afcca30c.glb
Create a circular RPG miniature marker with a total height of 4mm. The main body is a shallow dish designed to hold a 25mm diameter base. The bottom of the marker is a flat disk with a radius of 12.8mm (25.6mm diameter). From this base, a rim extends upwards and outwards. The inner wall of the rim starts at a radius o...
BASE_DIAMETER = 25; TOTAL_HEIGHT = 4; RIM_DEPTH = 2; MIN_THICKNESS = 0.4; SLOT_THICKNESS = 10; DUPLICATES = 1; SLOP_TOTAL = 0.6; SLOP = SLOP_TOTAL/2; BASE_RADIUS = BASE_DIAMETER / 2; BASE_HEIGHT = TOTAL_HEIGHT - RIM_DEPTH; H = sqrt(SLOP*SLOP + BASE_HEIGHT*BASE_HEIGHT); THETA = 90 - atan(SLOP / BASE_HEIGHT) - as...
glb/cad_450379203b79.glb
Create a Ramps 1.4 and Smart LCD controller box enclosure. Start with a base plate measuring 53.3mm by 101.64mm with a thickness of 1.6mm. On this base, add a USB port block measuring 12mm by 16.5mm by 10mm, positioned at [10, -7, 0.5]. Create a power port cutout by placing a 9mm by 14mm by 9mm block at [41, -2, 0.5]...
$fn = 24; module arduinomega() { union() { color([0.1,0.35,0.5]) translate([0,0,-1.6]) cube([53.3,101.64,1.6]); translate([10,-7,0.5]) color([0.8,0.8,0.8]) cube([12,16.5,10]); translate([41,-2,0.5]) difference() { color([0,0,0]) cube([9,14,9]); translate(v=[4.5,5.9,5.5]) rotate(a=[90,0,0]) cylinder(r=3,h=...
glb/cad_4379f83cc9d1.glb
Create a bracket for a Ramps 1.4 controller box. Start with a base plate formed by a 2D polygon with vertices at [0,0], [33,0], [33,4.5], [0,20], [3,3], [3,15.5], [26,5.3], and [26,3], extruded to a height of 7mm. At one end of the bracket, add a cubic connector block measuring 7mm by 5mm by 7mm, positioned at [26, -...
extra_radius = 0.1; m3_nut_od = 6.1; m3_nut_radius = m3_nut_od/2 + 0.2 + extra_radius; m3_washer_radius = 3.5 + extra_radius; m3_major = 2.85; m3_radius = m3_major/2 + extra_radius; m3_wide_radius = m3_major/2 + extra_radius + 0.2; module bracket() { linear_extrude(height=7) polygon(points=[[0,0],[33,0],[33,4.5],...
glb/cad_425e77a82c4a.glb
Create a Ramps 1.4 Smart LCD Controller Box enclosure. The main body is a rectangular case with a width of 65mm, a height of 45mm, and a length of 125mm (115mm plus a 10mm fan height). The case has rounded corners with a radius of 4mm. On the top face, create a series of ventilation slits. These are rounded slits meas...
use <ramps.scad> use <bracket.scad> $fn=20; c=false; th=2.0; fanh=10.0; length=115 + fanh; width=65.0; height=45.0; fh=2.0; mrlh=2.0; mrh=2.0; rmh=2.0; rth=th+1; mrw=3.0; mrd=2.0; soh=6.0; ch=5.0; cd=11.0; cw=17.0; case_height=60; case_radius=4; extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major/2 + extra_r...
glb/cad_4674b0112138.glb
Create a complete X Axis for a Prusa i3 Steel printer consisting of several distinct components. First, construct the X carriage. Create a main body with a length of 31mm and a height of 45mm. Incorporate two cylindrical pipes with an outer radius of 9.95mm and an inner radius of 7.95mm, positioned at the top and bott...
xaxis_rod_distance = 45; wall_width = 2; z_smooth_threaded_distance = 17; cylinderfn = 1; smoothrod_r = 8/2; bushing_r = 7.95; bushing_l = 25; m5_r = 8.63/2; m5_hole_r = 5.5/2; m5_h = 4; m3_r = 3.2/2; m3_head_r = 6.2/2; m3_nut_r = 6.08/2; m3_nut_width = 5.32; m3_nut_hight = 2.4+0.5; m3_washer_r = 7/2; belt_h = 1....
glb/cad_eeca49c5d089.glb
Create a Y motor spacer for a Prusa i3 Steel by starting with a solid rectangular block measuring 11.25mm in width, 40mm in length, and 8.65mm in height. From this main volume, remove a smaller rectangular section to create a deep channel. This cutout should be 7.92mm wide, 40mm long, and 8.65mm high, positioned so tha...
difference() { cube([4.65+3+3.2,40,8.65]); translate([4.65,-3-3,0]) cube([4.72+3+3,40,8.65]); translate([4.65,-3,0]) cube([3.2,40,8.65]); }
glb/cad_7c735356974e.glb
Create a Mini Kossel Hot End Dual Fan mount designed for a J-Head hot end. Start by creating a main housing that incorporates a central vertical cylinder with a radius of 8mm and a height of 30mm to accommodate the hotend barrel. Around this, build a fan shroud for a 40mm fan. The shroud consists of a rectangular blo...
extra_radius = 0.1; m3_major = 2.85; m3_radius = m3_major/2 + extra_radius; m3_wide_radius = m3_major/2 + extra_radius + 0.2; air_tube_outside_radius = 12/2; air_tube_bezel_width = 1.2; barrel_radius = 8; barrel_height = 30; hotend_height = 10; groove_radius = 6; groove_height = 4.6; fan_offset = 15; duct_wall_thi...
glb/cad_509c8a11b28a.glb
Create a Rumba electronics box consisting of a main body and a separate lid. For the main body, create a rectangular shell with outer dimensions of 78mm x 138mm and a height of 63mm. The walls should be 3mm thick. The interior is hollowed out, leaving a 3mm floor. At the four corners of the base, integrate cylindrica...
cylinderfn = 0.1; wall_width = 0.5*6; rumba_xtra = 0; rumba_x = 75; rumba_y = 135; rumba_z = 60+wall_width; rumba_z_spacing = 5; rumba_doubleopening = true; rumba_makefanhole = true; m3_r = 3.2/2; m3_nut_r = (6.08+0.2)/2; m3_nut_hight = 2.4+0.5; metallscrew_r = 2.8/2; fan_r = 60/2; fan_screws_r = 4.4/2; fan_offset_...
glb/cad_641adbaacc12.glb
Create a practice roller hockey puck by starting with a solid cylinder 38mm in radius and 25mm in height. Carve out three spherical cavities, each with a radius of 16mm, arranged in an equilateral triangle around the center. Position the center of these cavities 21mm from the central axis of the cylinder, with one cavi...
h_puck=25; r_puck=38; offset=21; r_roller=15; gap=1.0; r_cavity=r_roller+gap; difference(){ translate([0,0,-h_puck/2])cylinder(h_puck,r_puck,r_puck); translate([offset,0,0])sphere(r_cavity); translate([-offset*sin(30),-offset*cos(30),0])sphere(r_cavity); translate([-offset*sin(30),offset*cos(30),0])sphere(r_cavity); }...
glb/cad_c55b7675ced7.glb
Create a Y belt fastener for a 3D printer bed. Start by constructing a base consisting of two identical fastener units joined by a central bridge. Each unit is formed by the hull of two cylinders with a radius of 5.04mm and a height of 4.8mm. Between these units, create a rectangular slot for the belt that is 7.8mm w...
wall_width = 2; cylinderfn = 0.1; m3_r = 3.2/2; m3_nut_r = (6.08)/2; m3_nut_r_small = (5.5)/2; m3_nut_hight = 2.4; m3_washer_r = 7/2; belt_interlocked_double_thickness = 3; belt_width = 6.3; y_beltfastener_holes_distance_x = 24; y_beltfastener_holes_distance_z = 17.5; y_beltfastener_distance_from_bed = 19.28; y_be...
glb/cad_8bb6fbcacb82.glb
Create a locking brick for a monitor stand by starting with a rectangular base that is 64mm long, 9mm wide, and 0.8mm high. Apply a 2mm radius fillet to all edges and corners of this base to soften the geometry. From this main body, remove a rectangular section to create a central hole that is 34.5mm long, 5.5mm wide, ...
difference() { minkowski() { translate([-15,-1.5,0])cube([64,9,0.8]); sphere(r=2,h=1); } translate([0,0,-3])cube([34.5,5.5,8]); }
glb/cad_18cc62522888.glb
Create a money sign symbol by combining three primary geometric components. First, construct a base element by taking a sphere with a radius of 10mm and removing a central vertical cylinder with a radius of 4mm and a height of 20mm, centered at the origin, and further removing a 10mm by 10mm by 30mm rectangular block t...
$fn=100; module h(){ difference(){ sphere(r=10); translate([0,0,-10])cylinder(h=20,r=4); translate([0,0,-10])cube([10,10,30]); } } union(){ h(); rotate([0,0,180])translate([-13,0,0])h(); translate([-12,-1.5,-10])cube([37,3,20]); }
glb/cad_90be07dd81ea.glb
Create a cube with a length, width, and height of 10mm each. Center the cube on the origin of the coordinate system.
box_l = 10; box_w = 10; box_h = 10; cube([box_l, box_w, box_h], center = true);
glb/cad_db24e09f85f0.glb
Create a cube with dimensions of 10mm in length, width, and height, centered on the origin. From this cube, remove a cylindrical volume to create a rounded edge. The cylinder should have a radius of 2mm and a length exceeding 10mm to ensure it fully clears the sides of the cube. Position and rotate this cylinder so its...
pad = 0.1; box_l = 10; box_w = 10; box_h = 10; round_r = 2; smooth = 360; difference() { cube([box_l, box_w, box_h], center = true); translate([0, -box_w/2+round_r, box_h/2-round_r]) { rotate(a=[0,90,0]) cylinder(box_l+4*pad,round_r,round_r,center=true,$fn=smooth); } }
glb/cad_13aab96405b8.glb
Create a Basic Round block by starting with a cube that is 10mm in length, width, and height. To round one set of parallel edges, remove material from the sides of the cube using a cylinder with a radius of 2mm and 45 facets. Position this cylinder so that it runs the full length of the 10mm cube, centered along the le...
pad = 0.1; box_l = 10; box_w = 10; box_h = 10; round_r = 2; smooth = 45; translate([0, -box_w/2+round_r, box_h/2-round_r]) { difference() { translate([0,-round_r+pad,round_r+pad]) cube([box_l+2*pad, round_r*2+pad, round_r*2+pad], center = true); rotate(a=[0,90,0]) cylinder(box_l+4*pad,round_r,round_r,center...
glb/cad_b3de744882b6.glb
Create a cube with dimensions of 10mm in length, width, and height, centered on the origin. To create a rounded edge along one of the top edges, remove a section of the cube's volume using a combination of a smaller rectangular block and a cylinder. Specifically, position a rectangular block of 10.2mm by 4.2mm by 4.2mm...
pad = 0.1; box_l = 10; box_w = 10; box_h = 10; round_r = 2; smooth = 45; difference() { cube([box_l, box_w, box_h], center = true); translate([0, -box_w/2+round_r, box_h/2-round_r]) { difference() { translate([0,-round_r+pad,round_r+pad]) cube([box_l+2*pad, round_r*2+pad, round_r*2+pad], center = true); ...
glb/cad_2f9d99cce91b.glb
Create a rounded cube with overall dimensions of 10mm x 10mm x 10mm. To achieve the rounded edges, start with a base cube of 10mm on all sides and apply a rounding radius of 2mm to every edge. Ensure that the curved sections of the edges and the corners are smooth, using a facet resolution of 45 for any cylindrical geo...
pad = 0.1; box_l = 10; box_w = 10; box_h = 10; round_r = 2; smooth = 45; difference() { cube([box_l, box_w, box_h], center = true); translate([0, -box_w/2+round_r, box_h/2-round_r]) { difference() { translate([0,-round_r-pad,round_r+pad]) cube([box_l+2*pad, round_r*2+pad, round_r*2+pad], center = true); ...
glb/cad_5ef3330e9011.glb
Create a rounded cube with overall dimensions of 10mm x 10mm x 10mm. Every edge of the cube must be rounded with a radius of 2mm. To achieve this, ensure that all twelve edges are rounded using cylindrical surfaces and all eight corners are rounded using spherical surfaces with a 2mm radius, resulting in a smooth, cont...
pad = 0.1; box_l = 10; box_w = 10; box_h = 10; round_r = 2; smooth = 45; difference() { cube([box_l, box_w, box_h], center = true); translate([0, -box_w/2+round_r, box_h/2-round_r]) { difference() { translate([0,-round_r-pad,round_r+pad]) cube([box_l+2*pad, round_r*2+pad, round_r*2+pad], center = true); ...
glb/cad_2b2b7021cde3.glb
Create a mobile phone stand consisting of three connected plates. Start with a rectangular base plate 75mm wide, 80mm long, and 3mm thick. At the rear edge of the base, attach a back support plate that is 75mm wide, 3mm thick, and 110mm long, angled upwards from the base at 23 degrees. At the front of the base, attac...
lay_flat = "yes"; width = 75; base_length = 80; back_length = 110; front_length = 62; phone_space = 16; back_angle = 23; base_tickness = 3; back_thickness = 3; front_thickness = 3; retainer_length = 8; front_angle = 37; module stand() { cube([width,base_length,base_tickness]); translate([0,base_length,...
glb/cad_5e08dd1d7764.glb
Create a corner bracket for a box with a total outer footprint of 8mm by 8mm and a total height of 16mm. Start with a base plate that is 8mm wide, 8mm deep, and 1mm thick. In the center of this base plate, at coordinates (6mm, 6mm), add a small circular hole with a radius of 1mm. Build the vertical walls rising from t...
ThicknessPrint=1; ThickPlexiglass=3; Height=10; ExtraSide=2; Holes=1; HeightSide=Height+ThickPlexiglass*2; Side=ThicknessPrint*2+ThickPlexiglass*2; calc1=Side+ExtraSide-ThicknessPrint; calc2=ThickPlexiglass+ThicknessPrint; calc3=ThicknessPrint*2; calc4=ThickPlexiglass-ThicknessPrint; calc5=Side+ExtraSide-ThicknessPri...
glb/cad_ec10b5f9e790.glb
Create an impossible table repair model consisting of two identical table units. For each unit, start with a square table top measuring 55mm by 55mm with a thickness of 5mm. On each table top, place two legs. One leg must be a full leg, and the other must be a broken leg. The legs have a square cross-section of 5mm b...
length = 55.0; width = 55.0; thickness = 5.0; leglength = 40.0; brokenlength = 4.5; legwidth = 5.0; holedia = 0.8; holedist = 1.5; $fn=20; linear_extrude(height=thickness) square([length, width], center=true); difference() { union(){ translate([length/2-legwidth*1.02, width/2-legwidth*1.02, thickne...
glb/cad_3c08193a3e17.glb
Create a Printrbot Direct Drive to Bowden Extruder Adapter by starting with a solid cylinder 16mm tall with a radius of 8mm. Bore a central hole through the entire height of the cylinder with a radius of 0.975mm. At the bottom of the cylinder, create a conical recessed opening that transitions from a radius of 3.5mm at...
Ubis_Radius = 8; Adapter_Height = 16; Filament_Radius = 1.75/2; Big_Clearance = 0.15; Little_Clearance = 0.1; M5_MinR = 2.1; M5_Depth = 10; $fn = 128; difference() { difference() { difference() { difference() { cylinder(r=Ubis_Radius, h=Adapter_Height); translate([0,0,-1]) cylinder(r=Filament_Radiu...
glb/cad_8b19b4b2f17e.glb
Create a MK5 Wade's-Style Tensioner consisting of a mount and a tensioner arm. First, create the mount as a block measuring 55mm x 52mm x 25mm. Remove a central cylinder with a radius of 8.65mm to accommodate the motor drive shaft. Add four mounting holes with a radius of 2.1mm: two positioned at [15.5, 15.5, 0] and ...
ch=55; idler_bolt_hole_r = 2.1; idler_bolt_offset_y = 16; idler_bolt_offset_z = 6; idler_m8_r = 4; idler_608_r = 13; idler_608_h = 8; module mk5wademount() { difference() { cube([55,52,25]); translate([20,30,0]) { cylinder(r=17.3/2, h=ch, center=true); translate([15.5,15.5,0]) { translate([1,1,5+2.5]) { c...
glb/cad_1cea1a71f141.glb
Create a customizable drill hole cover consisting of a wide base and a central plug. Start by creating a flat circular base with a diameter of 14mm and a height of 0.6mm. Centered on this base, add a vertical cylinder with a diameter of 5mm and a height of 12mm. At the top of this vertical cylinder, add a smaller cappi...
outer_diameter=14; outer_height=0.6; inner_diameter=5; inner_height=12; upper_cylinder_diameter=6; upper_cylinder_height=2; incision=1.6; difference(){ union(){ linear_extrude(height=outer_height) circle(outer_diameter); translate([0, 0, outer_height]) linear_extrude(height=inner_height) circle(i...
glb/cad_23c7bf58793a.glb
Create a parametric funnel consisting of a wide conical body and a narrow stem. Start with a top ring that is 2mm thick with an outer diameter of 58mm (50mm intake plus 8mm ring width). From this ring, extend a main cone 35mm in height that tapers from the 50mm intake diameter down to a 15mm exit diameter. Attached t...
EnableHangingLoop = true; EnableTipAngleCut = true; FunnelTopRingWidth = 8; FunnelTopRingThickness = 2; MainConeIntakeDiameter = 50; MainConeHeight = 35; TipOutputDiameter = 10; TipIntakeDiameter = 15; TipHeight = 25; FunnelTickness = 2; HangingLoopDiameter = 10; HangingLoopScrewHole = 6; TipAngle = 45; $f...
glb/cad_67f5759b6ff5.glb
Create a KryoFlux Enclosure consisting of a base and a lid. The base is a rectangular box with an outer footprint of 85mm by 57mm and a floor thickness of 2.5mm. The walls are 18.5mm high. On the two long sides, the walls are solid except for a 26mm wide gap centered on one side to allow access to a reset button and LE...
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); } mountR = 2.4; spearR = 1; spearInsertR = 1.5; boardWidth = 80; boardBreadth = 51; sideSpace = 1; enclosureThickness = 2.5; enclosureThick = enclosureThickness + sideSpace; encWidt...
glb/cad_509bf54421bc.glb
Create a KryoFlux Enclosure consisting of a base and a lid. The base is a rectangular tray with a floor thickness of 2.5mm and total external dimensions of 82mm by 53mm. The walls are 2.5mm thick and 19.1mm high. On one of the long walls, create a rectangular cutout 26mm wide and 13.1mm high, starting 31mm from the sid...
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); } mountR = 2.4; spearR = 1; spearInsertR = 1.5; boardWidth = 80; boardBreadth = 51; sideSpace = 1; enclosureThickness = 2.5; enclosureThick = enclosureThickness + sideSpace; encWidt...
glb/cad_18a00e12d0f0.glb
Create a keychain tag consisting of a base plate and raised text. The base plate is a rectangular slab with a thickness of 1.0mm and rounded corners with a radius of 4.0mm. The top surface of the plate features a recessed area 0.6mm deep, leaving a raised outer frame with a thickness of 1.0mm. At the top left of the p...
use <write/Write.scad> quality=30; build_lug=1; plate_thickness = 1.0; label_thickness = 0.6; frame_thickness = 1.0; text_line_1 = "OpenSCAD"; font_height = 6; label_font="orbitron.dxf"; frame_width = 2.0; frame_space = 2.0; frame_rounding_inner = 2.0; frame_rounding = frame_rounding_inner + frame_width; hole_dia...
glb/cad_38c7ec57efa2.glb
Create a Candy Box consisting of a hollowed spherical base with a cylindrical top. The main body is a sphere with a diameter of 112.5mm and a wall thickness of 2.5mm. At the top of the sphere, create a circular opening with a diameter of 100mm. Extend the walls of this opening vertically to form a short cylindrical n...
quality=30; size=100; wall_thickness=2.5; count=6; twist=180; ratio=.7; d4=size; d3=d4+wall_thickness; d2=d3/sqrt(1-ratio*ratio); d1=15; r1=d1/2; r2=d2/2; r3=d3/2; r4=d4/2; echo(d1,d2,d3,d4,d1+d2); thread_height=(d4>20?d4/6:20/6); height=d2*ratio; gn=twist/360; a_step=360/quality; z_step=height/quality/gn; ta...
glb/cad_4767e6222414.glb
Create a vertical can dispenser consisting of a main cylindrical body and a separate cap. Construct the main body as a hollow cylinder with an interior diameter of 75mm and a total interior height of 200mm. The walls should be 4mm thick, and the bottom base should be 3mm thick. At the bottom of the cylinder, create a...
eps=0.1; id=75; ih=200; ch=20; wt=4; bt=3; ct=3; clh=4; ctol=0.1; sc=1; soh=20; sot=0.1; det_f=100; det_p=30; $fn=$preview ? det_p : det_f; if(sc>1){ Section1 (id,wt,bt,(floor(ih/sc)+(ih%sc))+clh,ch,sc,soh,sot); SectionLast (id,wt,floor(ih/sc),soh,sot); } else{Section1 (id,wt,bt,ih+clh,ch,sc,soh,s...
glb/cad_42999cc86f55.glb
Create a puff pastry roller consisting of a main cylinder with a diameter of 36mm (40mm minus two 2mm dough thickness offsets) and a height of 60mm. Bore a central hole through the entire length of the cylinder with a diameter of 24mm. To reduce friction, remove 2mm of material from the top and bottom edges of this inn...
dm=40; innendm=24; hoehe=60; teig=6; cutterWidth=2; deckelh = 5; verbinder=15; verbnase=3; cntGridCutters = 8; anzscharten = round(hoehe/8); schnitte=hoehe/2; segmente=3; rolltol=1; $fn=100; showDeckel = false; showGriff = false; showRoller = true; withSideCutters = false; withCuttingStraight = true; withCuttingD...
glb/cad_f879d2fb1b92.glb
Create a radiator diffuser consisting of a top platform supported by legs. First, create the top platform as a rectangular slab with a width of 65mm, length of 80mm, and thickness of 10mm. Within this slab, create a hexagonal grid pattern of holes. Each hexagonal hole should have a radius of 5mm, with a 5mm gap betwe...
module hexgrid(r, grid, w, l, t) { $fn = 6; r = 5; grid = 5; inr = r * 2 / sqrt(3); dv = r * 3/2 + grid; dh = inr * 2 + grid * 2; for (x=[0:w/dh]) for (y=[0:l/dv]) translate([x*dh - w/2,y*dv -l/2,0]) cylinder(h=t, r=r, center=true); for (x=[0:w/dh]) for (y=[0:l/dv]) translate([x*dh - w/2 + d...
glb/cad_ed22a28502b1.glb
Create an AMDi iAdapter AAC replacement hinge bracket. Start with a base that is 21.4mm long, 16mm wide, and 5mm thick. The front of the base should be a semi-circle with a 16mm diameter, while the back is a rectangle. On the base, create a tapered screw hole centered on the semi-circular end, transitioning from a di...
lower_screw_top = 8.1; lower_screw_bottom = 4.2; lower_thickness = 5; base_length = 21.4; base_width = 16; gusset_length = 16; gusset_thickness = 3; top_height = 19.43; top_cyl = 14.5; $fn = 60; difference() { union() { difference() { linear_extrude (lower_thickness) hul...
glb/cad_98a283c54917.glb
Create an Arm Spork prosthetic cuff. Start by constructing a tapered hollow cylinder with a wall thickness of 2mm. The cylinder should have a length of 60mm, with the larger base circumference at 130mm and the smaller wrist-end circumference at 100mm. At the wrist end, integrate a spherical spoon head with a radius o...
$fn = 60; tau = 6.283185; elbow_c = 130; wrist_c = 100; forearm_l = 70; pinky_c = 90; thickness = 2; cutout_adjustment = thickness; dome_adjustment = .6; cuff_elbow_inner_r = elbow_c / tau; cuff_wrist_inner_r = wrist_c / tau; cuff_length = forearm_l - 10; cutout = (pinky_c / tau) * 2; cutout_dome = cuff_el...
glb/cad_b900ee4b1ef8.glb
Create a 3D model of a beveled geometric shape with a total height of 10mm. The base profile is formed by the union of three rectangles: one centered rectangle measuring 8mm by 30mm, a second rectangle measuring 35mm by 8mm rotated 30 degrees around the center, and a third rectangle measuring 30mm by 8mm shifted 15mm u...
bevel_extrude_example(); module bevel_extrude_example() { bevel_extrude(height=10,bevel_depth=2,$fn=16) example_shape(); } module example_shape() { union() { square([8,30],true); rotate(30) square([35,8],true); translate([0,15]) square([30,8],true); } } module bevel_border(size=1) { difference() { ...
glb/cad_fd0563a96cd9.glb
Create a PCB case consisting of a hollow rectangular base and a matching flat lid. For the base, create a rectangular block with outer dimensions of 74.5mm by 64.5mm and a height of 18mm. Hollow out the center to create a cavity 70.5mm long, 60.5mm wide, and 16mm deep, leaving a wall thickness of 2mm. In the floor of t...
$fn=50; length=70.5; width=60.5; height=15.5; wall=2; floor=1; socket=1.5; pcbwidth=1.5; borecenter=4; r=1.5; module casebot1() { difference() { translate([-wall,-wall,0]) cube([length+2*wall,width+2*wall,height+floor+socket]); translate([0,0,floor]) cube([length,width,height+socket]); translate([-3,15,flo...
glb/cad_97821aa998e3.glb
Create an AnkerMate M5C Filament Guide consisting of a square base plate and an angled guide tube. Start with a square base plate measuring 40mm by 40mm with a thickness of 1.6mm. Centered on this plate, create four circular mounting holes, each 4.25mm in diameter, spaced 36mm apart from one another in a cross pattern....
tube_id=4.1; tube_t=3; tube_h=26; tube_offset_h=2; tube_angle=55; tube_stop_id=2; tube_stop_h=4; tube_stop_offset=0; plate_x=40; plate_y=40; plate_z=1.6; plate_hole_d=4.25; plate_hole_spacing=36; tube_d=tube_id+2*tube_t; $fn=100; union() { color("green", 0.4) difference() { translate(...
glb/cad_4bf728dcccf1.glb
Create a case for an AVR component tester consisting of a bottom and top section. For the bottom section, create a rounded rectangular base with a footprint of 83.4mm by 83.4mm and a wall thickness of 1.2mm. The floor is positioned 4mm below the PCB plane. At the four corners, create mounting pedestals centered 71.8m...
pcb = [80.4, 80.4, 1.4]; pcb2floor = 4.0; pcb2roof = 18.5; pcbmnts = 71.8; pcbmntdia = 3.2; pcbmnthead = 6.2; pcbmntthreads = 2.5; breakaway = 0.3; lcdframe = [71.2, 24.0, 3.8]; window = [65.0, 15.0]; window_dy = pcb[1]/2 -43.8 +4.7+lcdframe[1]/2; charger = [pcb[0]/2, -pcb[1]/2+9.2+9.0/2 - 1, 6.5]; charger_dia = 8.5; b...
glb/cad_6a89621f8b05.glb
Create a Wensi PV layer holder, which is a rectangular base with rounded corners and a total height of 6mm. The main body has an overall length of 64mm and a breadth of 68mm. Carve out three distinct compartments from the top of the base. First, create a central rectangular cutout for the PV cell measuring 49mm by 58m...
a_bit=0.1; clearance=1; wall_t=3; separation=3; z_resolution=0.30; mouse_ear_diameter=20; pv_l=49; pv_b=58; pv_h=2; pcb_l=35; pcb_b=30; pcb_h=5; post_d1=3; post_d2=post_d1; post_d3=2; post_h=3; post_x1=3; post_y1=32; post_x2=29; post_y2=32; post_x3=16; post_y3=8; scap_l=20; scap_b=22; scap_h=10; total_l=pv_l+pcb_l...
glb/cad_96886d3e19b7.glb
Create a Wensi PV layer holder by starting with a main rounded rectangular body measuring 66mm in length, 68mm in width, and 6mm in height. The corners of this main body should be rounded with a radius of 4mm. At each of the four corners of the base, add cylindrical "mouse ear" tabs with a diameter of 20mm and a height...
a_bit=0.1; clearance=1; wall_t=3; separation=3; z_resolution=0.30; mouse_ear_diameter=20; pv_l=49; pv_b=58; pv_h=2; pcb_l=35; pcb_b=30; pcb_h=5; post_d1=3; post_d2=post_d1; post_d3=2; post_h=3; post_x1=3; post_y1=32; post_x2=29; post_y2=32; post_x3=16; post_y3=8; scap_l=20; scap_b=22; scap_h=10; total_l=pv_l+pcb_l...
glb/cad_3265ffdb68a4.glb
Create a Customisable Block Mount designed to hold a rectangular object. Start by creating a solid outer shell with a total height of 103mm, a width of 33mm, and a length of 87mm. The shell should have rounded corners with a radius of 5mm. Hollow out the center to create a cavity with a wall thickness of 3mm. The top ...
$fn = 100; innerHeight = 100; innerLength = 81; innerWidth = 29; thickness = 3; cornerRadius = 5; shelfDepth = 5; screwThickness = 4; counterSinkDepth = 2; counterSinkDiameter = 6; module outer() { hull() { translate( [ -thickness + cornerRadius, -thickness + cornerRa...
glb/cad_1284c90f6d3e.glb
Create a camera rail thumb screw consisting of a tiered cylindrical knob with a central hexagonal hole. Start by creating a hexagonal base with a height of 4mm and a diameter of approximately 8.08mm (calculated as 7mm divided by the sine of 60 degrees). On top of this base, add a cylinder with a diameter of 14mm and a ...
precision = 100; pi = 3.1416; slice = 0.1; nudge = 0.00001; bolt_head_diameter = 7; bolt_head_height = 4; bolt_diameter = 4; knob_inner_diameter = bolt_head_diameter * 2; knob_outer_diameter = bolt_head_diameter * 3; knob_height = 8.1; n_knob_nubs = 9; knob_cutout_rad = knob_outer_diameter * pi / 24; thumb_screw(); ...
glb/cad_352823c4b689.glb
Create a Camera Rail Part consisting of a central base and several attached geometric components. Start with a square base plate measuring 20.1mm by 20.1mm with a height of 4.05mm, and remove a central vertical cylinder with a radius of 2.1mm. Add four identical rectangular slot plugs measuring 5.4mm by 5.68mm by 10m...
module base() { difference() { translate([-10.05,-10.05,0]) cube([20.1,20.1,4.05]); translate([0,0,-0.5]) cylinder(5,2.1,2.1,$fn=60); } } module slotplug() { slottop=10; translate([-10,-10,0]) union(){ translate([-0.05,10-5.68/2,4]) cube([5.4, 5.68, 10]); } } module slider() { union() { t...
glb/cad_271b53d1c9b1.glb
Create a set of 9 identical hollow cylindrical posts for a camera rail, arranged in a 3x3 grid with 10mm spacing between their centers along both the X and Y axes. Each post must be 11.2mm tall with an outer diameter of 3.6mm and a centered inner hole with a diameter of 2.8mm that passes completely through the length o...
$fn=32; module post(d,h) { difference(){ cylinder(h,d/2+0.8,d/2+0.8); translate([0,0,-0.2]) cylinder(h+0.4,d/2,d/2); } } for (x = [0 : 3]) { for( y = [0 : 3]) { translate([x*10, y*10, 0]) post(2.8,11.2); } }
glb/cad_9dab82d28191.glb
Create a Camera Rail Part by starting with a base plate measuring 71mm by 65mm with a thickness of 2mm. Extend the height of the plate to 9mm along the two shorter 65mm edges and the two longer 71mm edges to create a shallow rectangular tray. Cut several rectangular openings into this structure: a 10mm by 16.4mm hole...
height=9; $fn=32; module post(){ difference() { translate([0,0,2]) cylinder(3,3,3); translate([0,0,-0.5]) cylinder(6,1.4,1.4); } } module cone() { union(){ translate([0,0,-0.599]) cylinder(1,2.2,2.2); translate([0,0,0.4]) cylinder(2,2.2,0); translate([0,0,0]) cylinder(3,1.4,1.4); } } dif...
glb/cad_3996262b601d.glb
Create a Camera Rail Part by constructing a base rectangular frame and adding vertical walls. Start with a base plate measuring 55mm by 42mm with a thickness of 2mm. Build up the perimeter and interior with walls of varying heights: the outer boundary walls should be 18mm high, while specific interior sections and supp...
x=51; y=38; w=2; h=16; $fn=32; difference() { union() { cube([x+2*w,y+2*w,w]); cube([w,y+2*w,h+w]); cube([w*2,y+2*w,7]); cube([x+2*w,w,h+w]); cube([x+2*w,w*2,7]); translate([0,y+w,0]) cube([x+2*w,w,h+w]); translate([0,y,0]) cube([x+2*w,w*2,7]); translate([x+w,0,0]) cube([w,y+2*w,h...
glb/cad_eb8a85531ae5.glb
Create a camera rail part by starting with a base shape formed by the convex hull of three cylinders, each with a radius of 12mm and a height of 10mm. Position one cylinder at the origin, one at x=15mm, and one at x=-15mm, all aligned along the z-axis. From this solid, remove a central hexagonal hole with a flat-to-fla...
$fn=64; module hex(w,h) { b=w/2; a=tan(30)*b; for (x = [ 0 : 5] ) { rotate([0,0,x*60]) translate([a*-1,0,0]) cube([2*a,b,h]); } } difference() { union(){ hull() { cylinder(12,16,10); translate([15,0,0]) cylinder(12,10,10); translate([-15,0,0]) cylinder(12,10,10); } } trans...
glb/cad_85f5c25e8b01.glb
Create a camera rail part by constructing a base and a central protrusion. Start with a base formed by the convex hull of three cylinders, each 10mm in radius and 10mm in height, positioned at the origin and at x=15mm and x=-15mm. Add a vertical protrusion to this base by creating a convex hull between a cylinder of 10...
$fn=64; difference() { union(){ hull() { cylinder(16,10,10); translate([15,0,0]) cylinder(12,10,10); translate([-15,0,0]) cylinder(12,10,10); } hull() { translate([0,0,15]) cylinder(15,10,10); translate([0,0,40]) sphere(5); } } translate([15,0,-1]) cylinder(14,2.7,2...
glb/cad_f363da63380d.glb
Create a Camera Rail Part by starting with a solid rectangular base measuring 55mm by 42mm with a height of 2mm. On top of this base, add a rectangular wall frame that is 51mm by 38mm with a wall thickness of 2mm and a height of 3mm, leaving a hollow center of 47mm by 34mm. From this combined structure, remove several ...
x=51; y=38; w=2; $fn=32; difference() { union() { cube([x+2*w,y+2*w,w]); translate([0,0,1.99]) { difference() { translate([2,2,0]) cube([x,y,3]); translate([3,3,0]) cube([x-2,y-2,3.1]); } } } translate([3,5,-0.1]) cube([13.6,7,3]); translate([6.8,3.5,-0.1]) cube([4.5,...
glb/cad_5c91b1dc9fc0.glb
Create two separate components for a camera rail system. The first component is a rectangular block measuring 20mm wide, 35mm long, and 4mm high. Remove a central rectangular channel 6mm wide and 3mm deep that runs the full 35mm length of the block. At the center point of the length (17.5mm), create two circular holes ...
module slot(l) { polyhedron( points=[[0.3,0,0],[13.7,0,0],[13.7,l,0],[0.3,l,0], [3.3,0,3.9],[10.7,0,3.9],[10.7,l,3.9],[3.3,l,3.9]], faces=[[0,1,2,3],[7,6,5,4],[3,7,4,0], [1,5,6,2],[4,5,1,0],[2,6,7,3], ] ); } module tooth(length) { union() { for (y= [0:2:length]) { tr...
glb/cad_b2de54566ee5.glb
Create a camera rail part by constructing a main cylinder with a diameter of 15mm and a height of 5mm. On top of this base, add a second cylinder with a diameter of 2.55mm and a height of 4mm, centered on the same axis. To create the hollow interior, remove a central cylindrical core with a diameter of 17.7mm and a hei...
$fn=32; difference() { union() { cylinder(15,5,5); translate([0,0,14.95]) cylinder(2.55,5,4); } translate([0,0,-0.1]) cylinder(17.7,2.75,2.75); }
glb/cad_ab48bef8a1cb.glb
Create a camera rail part by starting with a base composed of two joined rectangular blocks: one measuring 56mm by 43mm by 4mm, and a second overlapping block measuring 14mm by 60mm by 9mm positioned at the side. From this combined mass, remove several geometric voids. First, create a central circular hole with a diame...
$fn=32; difference() { translate([-35,-21,0]) difference() { union() { translate([0,-0.5,0]) cube([56,43,4]); translate([0,0-9,0]) cube([14,60,9]); } union() { translate([35,21,-0.5]) cylinder(5,3.5,3.5); translate([35,21,1.5]) cylinder(3,11.5,11.5); } } translate([15....
glb/cad_cffd160765ce.glb
Create two identical camera rail parts. For each part, start with a base rectangular plate measuring 27.8mm by 28mm with a thickness of 1.5mm. On top of this base, add a second rectangular block measuring 27.8mm by 1.5mm by 4mm, positioned at a height of 0.5mm and offset 7.5mm along the width of the base. From this co...
$fn=32; difference(){ union() { cube([12.8+15,28,1.5]); translate([0,7.5,0.5]) cube([12.8+15,1.5,4]); } translate([6.2-3.25+15,5,-0.5]) cylinder(3,1.4,1.4); translate([6.2+3.25+15,5,-0.5]) cylinder(3,1.4,1.4); translate([6.2,22,-0.5]) cylinder(3,2.2,2.2); translate([12.8+15,28,-0.5]) cylinder(3,16...
glb/cad_c1e21ef574ee.glb
Create a set of nine identical camera rail buttons arranged in a 3x3 grid with 10mm spacing between their centers along both the X and Y axes. Each individual button is composed of two concentric cylinders sharing the same center point. The first is a narrow base cylinder with a radius of 3.2mm and a height of 3.2mm. T...
module button() { $fn=32; union() { translate([0,0,0]) cylinder(0.8,3.2,3.2); translate([0,0,0.7]) cylinder(4.5,2.5,2.5); } } for (x = [0 : 3]) { for( y = [0 : 3]) { translate([x*10, y*10, 0]) button(); } }
glb/cad_61f94aed90b9.glb
Create a camera rail part consisting of two primary components. First, create a rectangular block measuring 16.8mm wide, 60mm long, and 4mm thick. From this block, remove three rounded rectangular slots, each 4.2mm wide, 5mm long, and 10mm deep with a corner radius of 2.1mm. Position these slots centrally along the wid...
$fn=64; rotate([0,-45+180,0]) { difference() { cube([16.8,60,4]); translate([5,30-25,-0.5]) roundedcube(4.2,5,10,2.1); translate([5,30-2.5,-0.5]) roundedcube(4.2,5,10,2.1); translate([5,30+20,-0.5]) roundedcube(4.2,5,10,2.1); } translate([14,0,1.2]) rotate([0,45,0]) { cube([65,60,4]); translate([2,0...
glb/cad_cfde980286be.glb
Create a Camera Rail Part by starting with a rectangular base measuring 40mm in length, 20mm in width, and 4mm in height. From this base, remove two rounded rectangular slots: one positioned at x=30mm, y=7.5mm, and another at x=-2mm, y=7.5mm, both with dimensions of 12mm by 5mm and a height of 6mm, using a corner radiu...
$fn=32; length=150; difference() { cube([40,20,4]); translate([30,7.5,-1]) roundedcube(12,5,6,2); translate([-2,7.5,-1]) roundedcube(12,5,6,2); translate([32.5,10,3]) cylinder(4,4.5,4.5); translate([7.5,10,3]) cylinder(4,4.5,4.5); } translate([0,0.5,0]) leg((length-20)/2); translate([40,19.5,0]) rotate([0,0...
glb/cad_ce7db8e47fab.glb
Create a camera rail part by starting with a rectangular block measuring 31mm wide, 75mm long, and 10mm thick, with all four vertical corners rounded to a 3mm radius. Centered on the top face, create a large vertical cylindrical hole with a diameter of 14mm and a depth of 6mm. Directly beneath this hole, create a small...
$fn=64; difference() { union() { roundedcube(31,75,10,3); translate([15.5,37.5,0]) cylinder(7,19.5,15.5); } translate([15.5,37.5,4]) cylinder(7,10.5,10.5); translate([15.5,37.5,-0.5]) cylinder(11,5,5); translate([15.5,22.5,-0.5]) cylinder(11,2,2); translate([15.5,37.5+30,0]) screwhole(); trans...
glb/cad_9a3184ab2f1e.glb
Create a 2D fox logo composed of three stacked layers, each 3mm thick. For the bottom layer, create a central circle with a radius of 50mm. Add a second shape to this layer by intersecting a 50mm radius circle centered at [0, 50, 0] with another 50mm radius circle centered at [50, -40, 0], then mirror this intersecti...
layer1Height = 3; layer2Height = 3; layer3Height = 3; animation_rotation = false; $fn = 50; is_animated = animation_rotation; $vpt = is_animated?[0, 0, 0]:[]; $vpr = is_animated?[60, 0, animation_rotation?(365 * $t):45]:[]; $vpd = is_animated?500:[]; fox(); module fox() { color("white") linear_extrud...
glb/cad_98b88a11e442.glb
Create a flying propeller disk with a total height of 10mm and an outer diameter of 125mm. Start by forming a circular outer rim that is 0.8mm thick. In the center, create a central axis hub with a radius of 3mm and a height of 10mm, featuring rounded spherical edges. Add three integrated blades extending from the cen...
$vpd=300; height = 10; diameter = 125; rim_thickness = .8; blade_count = 3; blade_angle = 30; blade_thickness = .5; thole = 13.1; FlyingDisk(); module Rim(diam=100,high=10,thick=2){ $fa=1; difference(){ cylinder(h=high,d=diam); translate([0,0,-.5]) cylinder(h=high+1,d=diam-thick*2); } } ...
glb/cad_7233b03041bc.glb
Create a Parametric Groovemount for an E3D v6 hotend. Start with a main body formed by the hull of a 40mm by 25mm by 5.7mm centered box and a slightly smaller 40mm by 25mm by 4mm box offset 2mm below it, with two cylinders of radius 4mm and height 9.7mm centered at x=25mm and x=-25mm on the z-axis. From this body, re...
$fn=60; inner_radius = 12; slack = 1; i = (inner_radius + slack) / 2; outer_radius = 16; o = outer_radius / 2; hight = 6; h = hight - 0.3; centerdistance = 50; cd = centerdistance; s = 1; module head() { cylinder(h,i,i); translate([0,0,h]) cylinder(5,o,o); translate([0,0,-h]) cylinder(h,o,o); } module block(...
glb/cad_34cbd045ffd6.glb
Create a Wrap Bracelet Crafting Jig by starting with a central cube measuring 30mm x 31mm x 25mm. Carve out several rectangular sections to create the functional slots and openings. First, remove a central block of 19mm x 34mm x 19mm. Next, create two thin horizontal slots, each 40mm wide and 2mm thick with a height of...
difference () { cube([30,31,25], center=true); translate ([-2,0,0]) cube([19,34,19], center=true); translate ([1,-2.5,15.5]) cube([40,2,10],center=true); translate ([1,2.5,15.5]) cube([40,2,10],center=true); translate ([-18,-2.5,0]) cube([10,2,40],center=true); translate ([-18,2.5,0]) cube([10,2,40],center=tru...
glb/cad_847e99a3137a.glb
Create a Wrap Bracelet Crafting Jig by starting with a central solid cube measuring 36mm x 31mm x 25mm. Carve out a large rectangular void from the center measuring 19mm x 34mm x 19mm. Remove two thin rectangular slots, each 40mm x 2mm x 10mm, positioned symmetrically 2.5mm above and below the center along the Z-axis. ...
difference () { cube([36,31,25], center=true); translate ([-4,0,0]) cube([19,34,19], center=true); translate ([0,-2.5,15.5]) cube([40,2,10],center=true); translate ([0,2.5,15.5]) cube([40,2,10],center=true); translate ([-21,-2.5,0]) cube([10,2,40],center=true); translate ([-21,2.5,0]) cube([10,2,40],center=tru...
glb/cad_3a11781dd079.glb
Create a Wrap Bracelet Crafting Jig by starting with a solid rectangular block measuring 29mm wide, 31mm deep, and 23mm high, centered on the origin. Carve out the interior to create a hollowed-out tray and specific slots. Remove a central rectangular volume of 19mm wide, 34mm deep, and 23mm high, positioned at x=-2, y...
difference () { translate ([0,0,0]) cube([29,31,23], center=true); translate ([-2,0,3]) cube([19,34,23], center=true); translate ([11,-2.5,4]) cube([16,2,20],center=true); translate ([11,2.5,4]) cube([16,2,20],center=true); translate ([1,-2.5,-14.5]) cube([40,2,10],center=true); translate ([1,2.5,-14.5]) cube([40...
glb/cad_ba0d633ae722.glb
Create a Wrap Bracelet Crafting Jig by starting with a central solid block measuring 36mm wide, 31mm deep, and 23mm high, centered on the origin. From this main volume, remove several rectangular sections to create a hollowed-out frame. First, carve out a central void measuring 19mm wide, 34mm deep, and 23mm high, cent...
difference () { translate ([2,0,0]) cube([36,31,23], center=true); translate ([-2,0,3]) cube([19,34,23], center=true); translate ([13,-2.5,4]) cube([16,2,20],center=true); translate ([13,2.5,4]) cube([16,2,20],center=true); translate ([3,-2.5,-14.5]) cube([40,2,10],center=true); translate ([3,2.5,-14.5]) cube([40...
glb/cad_dce32e71007f.glb
Create a lid for a pentagonal container based on a pentagonal antiprism. The main body is a solid polyhedron with a height of 5mm. The bottom face is a regular pentagon with a radius of 24.5mm, and the top face is a regular pentagon with a radius of 30mm, rotated such that the vertices of the top face are offset from t...
five(); module eight() { union() { solid_lid(r1=30,r2=24.5,h=5,n=8); translate([0,0,11]) sphere(r=8,$fa=20,$fs=7); } } module five() { union() { solid_lid(r1=30,r2=24.5,h=5,n=5); translate([0,0,11]) sphere(r=8,$fa=20,$fs=11); } } function cylinder_pt(r, h, angle) = [r * cos(angle), r * sin(angle), h]; func...
glb/cad_4d24050db7cc.glb
Create a Lego Manifold MK1 by arranging 16 identical building blocks in a full 360-degree circular ring. Each individual block is a 1x2 brick with a height of 9.5mm, featuring two cylindrical knobs on top with a diameter of 5mm and a height of 2mm, spaced 8mm apart. The blocks are positioned such that they are rotated ...
knob_diameter=5.0; knob_height=2; knob_spacing=8.0; wall_thickness=1.15; roof_thickness=1.05; block_height=9.5; pin_diameter=3; post_diameter=6; reinforcing_width= wall_thickness*1; axle_spline_width=2.0; axle_diameter=5; cylinder_precision=0.6; hollowbottom=true; legoManifold5(16,360); module legoManifold1(numberOfM...
glb/cad_b2e7f2322b70.glb