Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a Tiny Cable Holder designed for a 30x30 aluminum profile. Start with a base rectangular plate measuring 16mm wide, 3mm deep, and 0.3mm thick. On top of this base, add two identical vertical support structures. Each support consists of a 1mm wide by 7mm deep by 2mm tall rectangular block, topped with a 1.5mm wid... | rotate([90,0,0]) {
cube([16, 7, 1]);
translate([3.9, 0, 1]) cube([1, 7, 2]);
translate([3.4, 0, 3]) cube([1.5, 7, 2]);
translate([11.1, 0, 1]) cube([1, 7, 2]);
translate([11.1, 0, 3]) cube([1.5, 7, 2]);
}
cube([16, 3, 0.3]); | glb/cad_65333ad1f063.glb |
Create a battery eliminator for a Canon LP-E6 battery. Start with a main body created by extruding a hull to a height of 57mm. The hull's base profile is defined by a polygon with vertices at [0,0], [0,12], [10,21], [26,21], [37,12], [37,0], and [0,0], with two circular cutouts of radius 10mm centered at [10,11] and [2... | module lpe6()
{
union()
{
difference()
{
linear_extrude(height=57)
{
hull()
{
polygon([[0,0],[0,12],[10,21],[26,21],
[37,12],[37,0],[0,0]]);
translate([10,11,0]) circle(r=10);
translate([27,11,0]) circle(r=10);
}
}
translate([37/2-6/2, -0.1,57-1-6])
cube([6,1.6,6]);
translate([16.5,-0.1,-... | glb/cad_d148dcbe015d.glb |
Create a wrench organizer by starting with a rectangular block measuring 120mm in length, 10mm in width, and 23mm in height.
Carve out a series of slots to hold tools. Each slot is a rectangular prism measuring 12mm wide and 20mm deep, rotated -15 degrees along the Y-axis. Position these slots at the following X-coor... | module wrench_org_in_longs(){
difference()
{
cube([107,10,23]);
translate([10,-1,4]) rotate([0,-15,0]) cube([6.5,12,20]);
translate([22,-1,4]) rotate([0,-15,0]) cube([6.2,12,20]);
translate([34,-1,4]) rotate([0,-15,0]) cube([5.2,12,20]);
translate([46,-1,4]) rotate([0,-15,0]) cube([5.2,12,20]);
translate... | glb/cad_2cf138e36646.glb |
Create two identical rectangular plates. Each plate should be a solid block measuring 40mm in width, 59mm in depth, and 3mm in height. Position the two plates side-by-side on a flat plane. | module tower_shell()
{
difference(){
cube([80,60,110], center=true);
translate([0,0,5.1]) cube([74,54,109], center=true);
translate([5.1,0,-36.0]) cube([74,54,26], center=true);
}
}
module spiral(){
for (i=[1:30])
{
rotate([0,0,10 * i]) translate([0,26,2 * i]) cube([20,60,3], center=true);
}
}
module ramp_1()... | glb/cad_c54523171e8b.glb |
Create a customizable container with a lid. The main body is a rounded rectangular prism with a length of 60mm, width of 40mm, and height of 20mm. The corners should have a radius of 10mm. The walls of the body are 2mm thick, created by hollowing out the center with a smaller rounded rectangular prism that leaves a 2mm... | shape=1;
shell_thickness=20;
corner_resolution=6;
length=60;
width=40;
height=20;
radius=10;
generate_lid=0;
lid_side_cuttout=1;
lid_play=1;
pattern_shape=1;
punch_through=1;
pattern_size=30;
pattern_border_width=10;
box_w = width;
box_l = length;
box_h = height;
lid_w = width + 2*shell_thickness/10 + lid... | glb/cad_65ed225f5ea2.glb |
Create a rounded square plate with a length of 100mm, a width of 80mm, and a thickness of 5mm. To achieve the rounded corners, start with a solid rectangular block of these dimensions and remove material from the four corners using four square-profiled vertical columns with a radius of 6mm. Specifically, place these sq... | long=100;
wide=80;
crv=6;
thk=5;
longx=long-crv;
widey=wide-crv;
translate([0,0,0])rotate([0,0,0]){
difference(){
translate([0,0,0]){
color("chartreuse")cube([longx+crv,widey+crv,thk]);};
translate([0,widey+crv,-.01])rotate([0,0,0])cylinder(r=crv,h=200,$fn=4);
translate([longx+crv,widey+crv,-.01])rotate([0,0,0])cyl... | glb/cad_8385411347fa.glb |
Create a fork bike light mount by constructing a main cylinder with an outer diameter of 30mm and a total height of 50mm. Centered along the vertical axis of this main body, remove a smaller concentric cylinder with a diameter of 16mm and a height of 50mm, but offset it vertically by 2mm so that a wall of that thicknes... | DIAMETER = 30;
LENGTH = 50;
INNER_DIAMETER = 16;
SCREW_DIAMETER = 8;
WALL_THICKNESS = 2;
$fn = 100;
difference(){
cylinder(d=DIAMETER, h=LENGTH, center=true);
translate([0, 0, WALL_THICKNESS])
cylinder(d=INNER_DIAMETER, h=LENGTH, center=true);
translate([0, 0, -0.5 * LENGTH])
cylinder(... | glb/cad_3669b2d77fd8.glb |
Create two herringbone gears for a HE3d extruder with a center-to-center axle distance of 37mm and a gear height of 9mm.
Construct the first gear (motor gear) with 11 teeth. It should feature a central shaft hole with a diameter of 5.5mm. Include a transverse hole for a setscrew, positioned at a distance of 4.5mm from... | include <MCAD/involute_gears.scad>
printing = 1;
distance_between_axles = 37;
gear_h = 9;
gear_shaft_h = 9;
gear1_teeth = 11;
gear1_shaft_d = 5.5;
gear1_shaft_r = gear1_shaft_d/2;
gear1_setscrew_offset = gear_h / 2;
gear1_setscrew_d = 3 / cos(180 / 8) + 0.4;
gear1_setscrew_r = gear1_setscrew_d/2;
... | glb/cad_2da69e0829e4.glb |
Create a protective earbud case holder. Start by constructing a main outer shell as a rectangular block measuring 17mm wide, 23mm deep, and 50mm high. Hollow out the center by removing a smaller rectangular block measuring 20mm wide, 14mm deep, and 60mm high, centered relative to the width and depth, to create a sleeve... | jaws();
for(i=[2:4:46]) translate([0,0,i]) cage_rib();
for(th=[45:20:315]) translate([0,0,2]) cage_spine(2.2,46,th);
module bud_body() {
intersection() {
translate([0,10,0]) rotate([90,0,0]) linear_extrude(20)
polygon([[0,6],[7,0],[11,2],[13,20],[13,44],[0,43]]);
translate([-1,0,0]) rotate([90,0,90]) linear_... | glb/cad_951dc6e04b43.glb |
Create a parametric chassis consisting of a bottom floor and a top cover that fit together. The internal cavity dimensions are 60mm in length, 50mm in width, and 25mm in height. Both the floor and top cover should have walls 1mm thick.
For the floor, create a base plate that extends beyond the internal dimensions to a... | use <MCAD/teardrop.scad>
l = 60;
w = 50;
h = 25;
wall = 1.0;
thickWall = 2.0;
holeWidth = 28;
holeHeight = 20;
floorOverlap = 2.5;
boltRadius = (4.0 / 2);
boltSlantExtraRadius = 0.0;
boltSlantHeight = 1.0;
boltWall = 1.5;
boltIndent = boltRadius*2 + boltWall*2;
boltSides = 12;
extra = 0.5;
boltPositions = [
[-... | glb/cad_78c43e21ac04.glb |
Create a mock boat model for tactile indication. Start by forming the main hull as a vertical cylinder with a radius of 10mm and a height of 15mm. Place a second cylinder of the same radius but with zero height directly on top of the first, effectively creating a solid cylinder 15mm tall. To shape the bow and stern, in... | length1 = 15;
length2 = 15;
rotate([0,0,0]){
difference(){
intersection(){
union(){
cylinder(length1,10,10);
translate([0,0,length1]) cylinder(length2,10,0);
}
translate([-10,0,0])cube([20,10,length1+length2]);
}
translate([-1,-5,10])cylinder(20,2,2);
translate([-1,-5,10])cube([2,20,2]);
translate([6,2,3])... | glb/cad_a2276b711184.glb |
Create a Prusa I3 swing-out fan mount consisting of two main connected sections. First, construct a fan arm by creating a central cylinder with a radius of 10mm and a height of 5mm, centered on the origin. Remove a smaller concentric cylindrical hole with a radius of 2mm and a height of 6mm from this center. Attach two... | module fanarm()
{
difference() {
cylinder(h = 5, r = 10, center = true);
cylinder(h = 6, r = 2, center = true);
}
translate([0, 22, 0])
cube([20, 40, 5], center = true);
translate([60, 02, 0])
cube([20, 80, 5], center = true);
translate([30, 32, 0])
cube([60, 20, 5], center = true);
}
module fan... | glb/cad_d341a38e5af3.glb |
Create a filament extruder bottle strut holder. Start with a central rectangular block measuring 42mm in width, 28mm in depth, and 28mm in height, centered on the origin. Remove a horizontal cylindrical hole with a radius of 7mm that passes through the center of the block along the Y-axis, extending 100mm in length. Re... | use </home/neothefox/src/Thread_Library.scad>
TD=14;
difference()
{
union()
{
cube([TD*3, TD*2, TD*2], center=true);
}
rotate([0,90,0])
translate([0,0,-50])
cylinder(r=TD/2, h=100, $fn=32);
cube([TD*4, TD*3, 3], center=true);
translate([TD*3/2 - 3.3,TD*2/2 - 3.3,0])
cylinder(r=3.3/2, h=50, center=true, ... | glb/cad_4d895615216c.glb |
Create a Parametric Herringbone Gear Set consisting of two gears.
First, create a small gear with 13 teeth. Construct it by mirroring two involute gear halves with a twist, creating a herringbone pattern. The gear should have a total height of 15mm for the gear section and 15mm for the shaft. Center a vertical hole w... | include <MCAD/involute_gears.scad>
generate = 0;
distance_between_axels = 60;
gear_h = 15;
gear_shaft_h = 15;
gear1_teeth = 13;
gear1_shaft_d = 5.25;
gear1_shaft_r = gear1_shaft_d/2;
gear1_setscrew_offset = 5;
gear1_setscrew_d = 3.5;
gear1_setscrew_r = gear1_setscrew_d/2;
gear1_captive_nut_d = 6.2... | glb/cad_1570be99987d.glb |
Create a silicone gasket consisting of two concentric rings. First, construct a wide outer ring with an outer diameter of 40mm, an inner diameter of 33mm, and a height of 2.5mm. Around this ring, add a supporting outer rim that is 4.5mm thick, with an outer diameter of 50mm and an inner diameter of 22mm, and a total he... | r1=16.5;
r2=20 ;
s=2.5;
rs1=r1-5;
rs2=r2+5;
ss=s+2;
difference()
{
cylinder(h=ss,r=rs2,center=true);
cylinder(h=ss+2,r=rs1,center=true);
difference()
{
cylinder(h=s,r=r2,center=true+1);
cylinder(h=s,r=r1,center=true+1);
}
} | glb/cad_9946e33ee219.glb |
Create a Tray Organizer for router bits by constructing a rectangular block with rounded vertical edges. The block should have a total height of 13.4mm, with the base thickness being 1.4mm. The overall footprint is determined by a grid of 4 columns and 3 rows of holes, where each hole has a diameter of 8.2mm and a dept... | _diam = 8.2;
_depth = 12;
_cols = 4;
_rows = 3;
gap = 1.4;
_strShape = "circle";
_rad_rounded_edge = 3;
_add_intersect_holes = 1;
function int_to_bool(n) = n == 1 ? true : false;
module hole(diam, depth, strShape)
{
if(strShape == "circle")
{
cylinder(depth,d=diam, $fn=diam*4);
}
else i... | glb/cad_9b73b78ec7e9.glb |
Create a Drawer Container Generator consisting of a grid of open-topped rectangular bins. The overall footprint of the assembly is 293mm wide by 522mm long with a height of 45mm. Divide this area into a grid of 5 columns and 8 rows.
Each individual bin is a rectangular shell with a wall thickness defined by a 5mm radi... | drawerHeight=45;
drawerWidth=293;
drawerLenght=522;
gridX=5;
gridY=8;
toPrintX=0;
toPrintY=0;
toPrintlink = false;
r=5;
if(toPrintlink){
translate([0,drawerLenght/gridY,0])
link();
}else if(toPrintX==0 ||
toPrintY==0){
printRow(1,1,0,0);
translate([-10,-10,0])
link();
}else{
box(t... | glb/cad_46c13f8c92c2.glb |
Create a union aluminum profile bracket by starting with a square plate measuring 105mm by 105mm with a thickness of 7mm. From this plate, remove a smaller square section measuring 77mm by 77mm from one corner, leaving two perpendicular arms that are each 28mm wide. In the remaining L-shaped body, place four identical ... | module B()
{
difference()
{
cube([105,105,7]);
translate([0,0,-0.1])cube([77,77,7.2]);
translate([90,65,0])A();
translate([90,15,0])A();
translate([65,90,0])A();
translate([15,90,0])A();
}
module A()
{
translate([0,0,3.1])cylinder(4,8.5,8.5);
translate([0,0,-0.1])cylinder(7.2,4.1,4.1);
}
}
B();
transl... | glb/cad_e572340e8d71.glb |
Create a miniature bookcase with the following dimensions based on a 1/12 scale: a total height of 168.33mm, a width of 66.67mm, and a depth of 23.33mm.
Construct two vertical side planks, each 16.67mm deep and 1.33mm thick, positioned at opposite ends of the width. The right plank should have a notch removed from it... | scalefactor = 12;
width = 800/scalefactor;
height = 2020/scalefactor;
depth = 280/scalefactor;
pthick = 16/scalefactor;
shelves = 6;
skirting = false;
sbdepth = 12/scalefactor;
sbheight = 80/scalefactor;
back = true;
bthick = 4/scalefactor;
two = 2/scalefactor;
four = 4/scalefactor;
five = 5/scalefactor;
ten = 10/... | glb/cad_80e1fde80e27.glb |
Create a Parametric Simple Stepper Mount. Start with a rectangular base plate that is 83mm long, 31mm wide, and 5mm thick.
From this base, remove a central rectangular section to create two support rails, each 5mm wide, running the length of the plate. This leaves a central recessed area 21mm wide and 5mm deep.
With... | part_height = 5;
edge_margin = 4;
support_height = 5;
support_width = 5;
stepper_separation = 60;
stepper_adjustment = 5;
motor_shaftsize_d = 30;
motor_shaftsize_r = motor_shaftsize_d/2;
motor_extrashaft = motor_shaftsize_r - 8.45;
angle_stepper = 0;
bolt_margin = 1;
module STEPPER_MOTORHOLES(extra_shafts... | glb/cad_3986da9ed3c3.glb |
Create a Hardware Store Cord Reel Spool Fastener consisting of a handle and a fastener piece. For the handle, create a vertical cylinder with a height of 81mm, a base radius of 14.5mm, and a top radius of 10mm. Hollow out the center of this handle with a vertical hole that starts with a radius of 8mm at the bottom and ... | hole_diameter=9;
slot_width=13;
thickness=7;
length=50;
ramp_angle=5;
handle();
translate([0,20,0])scale([0.86,1,0.86]) fastener();
module fastener() {
intersection() {
difference() {
union() {
translate([0,0,hole_diameter/2]) rotate(v=[0,1,0], a=22.5) rotate(v=[1,0,0], a=-90) cylinder(r=(hole_diameter/2)/... | glb/cad_1e35ffcff71b.glb |
Create a Multirotor Landing Leg with a thickness of 2mm. The main body is a flat, angular plate with a total height of 102mm (90mm plus 12mm for the beam height) and a width of 40mm. The shape is defined by a polygon that extends from the origin to a height of 102mm, then moves left to -40mm, and returns to the origin ... | $fn = 40;
beamhi = 8;
beamwid = 12;
height = 90;
width = 40;
thick = 2;
beam = 8;
holedist = 20;
holedia = 3;
toprightmid = (beam * (width - beam)) / height;
bottommid = (height * beam) / (width - beam);
difference() {
union() {
linear_extrude(height = thick) {
polygon(
points=[
[0, 0],
[0, hei... | glb/cad_ed4ca1a4c08d.glb |
Create a Multirotor Landing Leg with a thickness of 2mm. The main body is a flat plate 40mm wide and 90mm high. The overall footprint is defined by a polygon with vertices at [0,0], [0, 104], [40, 104], [40, 90], and [8, 0]. Within this plate, create a central rectangular cutout that leaves a border of 8mm on the left ... | $fn = 40;
beamhi = 8;
beamwid = 12;
height = 90;
width = 40;
thick = 2;
beam = 8;
holedist = 20;
holedia = 3;
toprightmid = (beam * (width - beam)) / height;
bottommid = (height * beam) / (width - beam);
difference() {
union() {
linear_extrude(height = thick) {
polygon(
points=[
[0, 0],
[0, hei... | glb/cad_dbf87f6a7ca6.glb |
Create a Celtic crown segment consisting of an ornate, interlocking geometric structure. Start with a central base block 30mm wide, 2mm thick, and 20mm deep, with the corners rounded by a 12mm radius sphere.
Integrate three thin rings, each 8mm in radius and 1.5mm thick, positioned along the length of the segment. Ad... | thick=2;
thir=thick/2;
$fa=2;
$fs=.5;
x= [1,0,0];
y= [0,1,0];
z= [0,0,1];
module pipiece(){
translate(z*-thir)
intersection(){
cylinder(r=5,h=thick,center=false);
cube(size=[5,5,5],center=false);
}
}
module hinge(len){
intersection(){
cylinder(r=thir,h=len,center=false);
translate(y*-thir)cube(size=[thi... | glb/cad_5707cd298699.glb |
Create a resin filter funnel consisting of two concentric conical sections with a wall thickness of 2mm. The top section is a cone with a height of 60mm, tapering from a top radius of 60mm down to a middle radius of 14mm. The bottom section is an inverted cone with a height of 20mm, tapering from the middle radius of 1... | top_radius = 60;
middle_radius = 14;
bottom_radius = 12;
thickness = 2;
top_height = 60;
bottom_height = 20;
flute_radius = 2.0;
smoothness = 32;
$fn = smoothness;
module flutes(inner_radius) {
outter_radius = flute_radius + thickness/2;
bend_radius = 5;
bottom_dx = middle_radius - bottom_radius;
bottom_angle ... | glb/cad_6b95123718c8.glb |
Create a centering tool for slotting 6mm axles by constructing a main cylinder with a diameter of 15mm and a height of 40mm. Bore a vertical hole through the center of this cylinder with a diameter of 6.6mm and a height of 45mm to accommodate the axle. To allow access for a saw blade, carve a rectangular slot out of th... | $fn=90;
SIHE=0.6;
difference(){
cylinder(d=15,h=40);
group(){
translate([0,0,-1]) cylinder(d=6+SIHE,h=45);
translate([-25,-0.5,20]) cube([40,1,25]);
}
} | glb/cad_a0107342e0ff.glb |
Create a Bowden Cable Mount for 1.75mm filament. Start with a rectangular base measuring 56mm in length, 30mm in width, and 8mm in thickness, with the four corners rounded to a 3mm radius.
Center two bowden tube terminator holes on the top surface, spaced 19.63mm apart. Each terminator consists of a 6mm diameter bolt... | use <MCAD/nuts_and_bolts.scad>;
height = 56;
width = 30;
depth = 8;
mounting_hole_separation = 46;
mounting_hole_side_offset = 10;
x_carriage_hole_separation = 50;
hotend_separation = 19.63;
x_carriage_hole_offset = x_carriage_hole_separation / 2;
mounting_hole_offset = (mounting_hole_separation / 2);
hotend_off... | glb/cad_f57594827b0a.glb |
Create a RepRapPro Mendel Y Belt Guide by starting with a main cylinder that has a radius of 17.5mm and a height of 4mm. From this base, remove a central vertical cylinder with a radius of 4mm and a height of 3.3mm, and remove a larger concentric cylinder with a radius of 8.5mm and a height of 1mm, positioned 3.3mm abo... | module example002()
difference() {
difference() {cylinder(r=35/2, h=4);
union() {translate([0, 0, 0])
cylinder(r=8/2, h=3.3);
translate([0, 0,3.3])
cylinder(r=17/2, h=1);}
}
translate([-4,0,0])
cube(size = [8,18,4], center = false);
}
example002(); | glb/cad_9dbe81b754a5.glb |
Create a Customizable Ball within Cube by constructing a solid cube with a side length of 22mm, centered on the origin. Carve out a spherical void from the center of this cube with a radius of 14mm. Inside this hollow space, place a solid sphere with a radius of 11mm, centered within the cube. To ensure the model has a... | $fn=100;
cubeSide=22;
sphereRadius=11;
sphereSpaceRadius=sphereRadius+3;
translate([0,0,(cubeSide/2)]) {
difference() {
cube(cubeSide, center=true);
sphere(sphereSpaceRadius);
}
difference() {
sphere(sphereRadius);
translate([0,0,((cubeSide/2)-(cubeSide/2)-sphereRadius)])
#cube([cubeSide,cubeSide... | glb/cad_11d93a58cae5.glb |
Create a Scalpel Handle consisting of a grip and a blade attachment head.
The grip is a rounded rectangular prism 100mm long, 9mm wide, and 3mm thick. Along the top and bottom surfaces of the grip, starting 10mm from the head, create 10 pairs of transverse cylindrical ridges. Each ridge is a semi-cylinder with a radi... | width = 2.4;
length = 17.75;
height = 2.4;
totH = 3;
totCubeH = totH/2;
cubeh=height/2;
catchW=.75;
catchL = 8.5;
catchH = .55;
catchBodyW = 4.5;
handleW = 9;
handleL = 100;
handleH = totH;
ridgeOffset = 10;
ridgeDist = 2.5;
ridgeR = .7;
numRidges=10;
scalpelHandle();
module scalpelHandle(){
translate([60,-65,totCu... | glb/cad_7b3c48a678ed.glb |
Create a Basehugger marker for tabletop miniatures. Start by creating a low-profile circular base hugger with a height of 3mm and an outer diameter of 29mm. Hollow out the center of this base with a cylinder of 25mm diameter to create a ring wall 2mm thick. Cut a small rectangular notch out of the side of this ring to ... | s = 2;
baseD = silhouetteBase(s);
baseZ = 3;
wall = 2;
flagX = 14;
flagY = 22;
flagZ = 1.5;
pole = silhouetteHeight(s);
surcharge = 0.5;
renderHugger = true;
renderPole = true;
renderBubble = true;
renderFlag = false;
flip = true;
$fn = 60;
if(renderHu... | glb/cad_5e85d4f16e45.glb |
Create a Customizable Coil Filament Support consisting of a tapered cylindrical base with a central bearing housing. Start by creating a main body as a cylinder with a height of 12mm, a bottom radius of 26mm, and a top radius of 27mm.
Hollow out the center of this body by removing a cylinder with a radius of 4mm and ... | support_diameter=53;
support_taper=1;
bearing_external_diameter=19;
bearing_internal_diameter=8;
bearing_height=7;
cd_width=(((support_diameter+support_taper)-bearing_external_diameter)/2)/2;
Support();
module Support(){
support_height=bearing_height+5;
support_radius1=(support_diameter-support_taper)/2;
suppor... | glb/cad_01361eccb1e1.glb |
Create a Pan/Tilt head for a DSLR camera consisting of a pan base and a tilt mechanism.
For the pan unit, create a rectangular base plate 88mm by 127mm with a height of 12mm. Center a vertical shaft hole with a diameter of 12mm and a depth of 2.5mm. Add a top plate of the same dimensions with four 5mm diameter screw ... | $fs = 0.1;
rotate([0,180,0])translate([0,0,-100]){
translate([16.0, 16, 0])
{
translate([-35,-145,-126])rotate([90,0,180]) outer_tilt_right_mount();
translate([-35,90,-126])rotate([90,0,180]) outer_tilt_nema_mount();
translate([-18,80,-142])rotate([90,0,0]) inner_tilt_mount();
translate([-18,-120,-142])rotate([90,... | glb/cad_cb63f7feb1df.glb |
Create a hollow easter egg model. The outer shape is a prolate spheroid with a maximum width of 10mm and a total height of 15mm. The shell must have a uniform wall thickness of 0.44mm throughout the body. To ensure stability, create a reinforced flat base by adding a bottom section with a thickness of 1.6mm. The final ... | use <MCAD/regular_shapes.scad>
$fn=100;
width = 10;
height = 15;
thickness = 0.44;
bottom_thickness = 1.6;
rotate_extrude(angle=360)
{
eggShell(width,height,thickness);
intersection()
{
translate([-width/2,0])
square([width,bottom_thickness]);
eggShell(width,height,bottom_thickness);
... | glb/cad_eb182e8ba024.glb |
Create a stencil and its corresponding imprint for the word "Test" using the "Saira Stencil One" font.
First, create the imprint by extruding the text "Test" to a height of 4mm. The text should have a font size of 36mm and be centered. Apply a small negative offset of -0.175mm to the 2D profile of the text before ext... | part = "les_deux_model";
my_fn=32;
texte = "Test";
police = "Saira Stencil One";
taille_police=36;
haut_extrusion=4;
tolerance_emboitement=0.35;
vec_for_debug_var = [
["Version OpenSCAD", version()]
,["part", part]
,["my_fn", my_fn]
,["texte", texte]
,["police", police]
,["taille_police", ... | glb/cad_5a81b48f77e2.glb |
Create a Tin Lid designed to fit a can with a 75mm diameter. Start by creating a flat, circular disc with a diameter of 78.4mm and a thickness of 1.6mm.
On top of this disc, center a concentric cylindrical ring. This ring should have an inner diameter of 75.4mm and an outer diameter of 78.4mm, with a total height of ... | TinDia=75;
LipHeight=3.5;
LipThickness=0.8;
Thickness=1.6;
Tolerance=0.2;
OuterQuality=100;
do4lugs=false;
easyOpen=false;
doIt(false);
RidgeHeight=Thickness;
OuterRadius=TinDia/2+Thickness+Tolerance;
InnerRadius=TinDia/2+Tolerance;
RidgeRadius=InnerRadius-LipThickness;
OuterHeight=Thickness+LipHeight+Tolerance*... | glb/cad_bc07eb66bf38.glb |
Create a socket for an ISS wrench by first constructing a solid outer body. This body is formed by the convex hull of two spheres: one with a radius of 14mm centered at [0, 0, 13] and another with a radius of 14mm scaled to 70% on the Z-axis centered at [0, 0, 4]. Within this volume, remove four vertical cylinders of r... | module socket() {
difference() {
hull() {
translate([0,0,13]) scale([1,1,0.2]) sphere(r=14,$fn=60);
translate([0,0, 4]) scale([1,1,0.7]) sphere(r=14,$fn=60);
for(a=[-1,1]) for(b=[-1,1])
translate([a*6,b*6,-10]) cylinder(r=2,h=15,$fn=16);
}
translate([0,0,14.7+5]) cube([30,30,10... | glb/cad_4f1a96a321df.glb |
Create a Bracket1 mount consisting of a flat rectangular base with two upright side holders. The baseplate should be 40mm long, 12mm wide, and 4.5mm thick, with rounded ends. At each end of the baseplate, create a vertical cylindrical hole 3mm in diameter that passes through the 4.5mm thickness.
Position two upright h... | base_width = 12;
base_length = 40;
base_height = 4.5;
fillet = 2;
base_side_height = 17;
base_side_top = 12.5;
base_side_spread = 16;
base_side_hole = 6;
base_holder_space = 5.4;
base_side_width = (base_width - base_holder_space) / 2;
rf = fillet/2;
screwhole_size = 3;
module screwhole(width, height) {
translate([0... | glb/cad_219fb7a19746.glb |
Create a 3D pixel art model of a Pac-Man character. The model is composed of a grid of small cubes (pixels), each measuring 3.5mm x 3.5mm. The overall dimensions of the character are 14 pixels wide by 15 pixels high.
The character is constructed using three different heights to create a layered effect:
1. Base layer: ... | part = "HFull";
show_details = 0 ;
nesting_tolerance = 0.35 ;
pixel_h = 1.00 ;
layer_h = 0.20 ;
pixel_size = 3.5 ;
pixel_size_x = pixel_size ;
pixel_size_y = pixel_size ;
pixel_spacing = 0.00 ;
modeCouleurHeigth = 1 ;
LayerNumC00 = 0 ;
LayerNumC01 = 1 ;
LayerNumC02 = 2 ;
methoderendue0 = 0 ;
transparentPi... | glb/cad_357ca4b6da80.glb |
Create a customizable desk hook by constructing a series of connected rectangular prisms, all with a consistent height of 40mm. Start by placing a base block 10mm wide, 50mm deep, and 40mm high. Attach a second block of 40mm width, 10mm depth, and 40mm height, positioned so its front face aligns with the first block's ... | deskwidth = 39;
module deskhook()
{
cube([10,50,40]);
translate([10,40,0]) cube([40,10,40]);
translate([50,-10,0]) cube([10,60,40]);
translate([40,-10,0]) cube([10,10,40]);
translate([-1*(deskwidth+10),0,0]) cube([deskwidth+10,10,40]);
translate([-1*(deskwidth+10),10,0])cube([10,40,40]);
}
deskhook(); | glb/cad_c1a349a6c380.glb |
Create a build plate holder consisting of a triangular arrangement of three support arms. Each arm is 8mm thick. At two corners of the triangle, place vertical cylindrical pegs with a radius of 3mm and a height of 19mm. Between these pegs, connect the structure with a rectangular block measuring 29mm by 9mm by 19mm, wi... | module m3Shaft()
{
cylinder(r=1.7,h=4,$fn=100);
}
module m3Head()
{
cylinder(r=3.25,h=4,$fn=6);
}
module springDepresion()
{
difference()
{
cylinder(r=5,h=6,$fn=100);
cylinder(r=3.5,h=6,$fn=100);
}
}
module buildPlate()
{
difference()
{
union()
{
translate([113.6,0,0])cube([60,2,10]);
translate([0,2... | glb/cad_be96fa84da18.glb |
Create a windup lamp knob consisting of a central shaft and a T-shaped handle. Start by creating a main cylinder for the shaft with a diameter of 7mm and a length of 20mm. At the end of this shaft, add a rectangular block measuring 7mm wide, 14mm high, and 14mm deep. Attached to the sides of this block, center two oppo... | module windup_lamp_knob()
{
lamp_screw_diameter = 2.8;
lamp_screw_hole_depth = 14;
key_shaft_diameter = 7;
key_shaft_length = 20;
key_handle_outer_diameter = 20;
Key_handle_inner_hole_diameter = 10;
translate([0, 0, 3]){
rotate([0,90,0]){
difference() {
union() {
cylinder(key_shaft_length,... | glb/cad_bfdc6e037056.glb |
Create a Drill Jig Bearing and Bolt Retainer by starting with a central rectangular block measuring 43mm in width, 23mm in depth, and 13mm in height, centered on the origin. Add two vertical rectangular pillars to the left and right ends of this block; each pillar must be 14mm wide, 23mm deep, and 21mm tall, positioned... | difference()
{
union()
{
translate([0,0,4+2.5]) cube([33+10,13+10,8+5], center=true);
translate([-(33+10)/2,-(13+10)/2,-20]) cube([5+9, 13+10, 21]);
translate([((33+10)/2)-(5+9),-(13+10)/2,-20]) cube([5+9, 13+10, 21]);
translate([((33+10)/2)-33-10, ((13+10)/2)-5, -20]) #cube([33+10, 5, 21]);
}
translate([0... | glb/cad_c355b9aa9196.glb |
Create a fridge freezer drawer door catch. Start by constructing a hollowed-out rectangular base with rounded ends. The outer dimensions should be 32mm long, 12mm wide, and 12mm high. The outer corners must have a radius of 3mm. Create a hollow interior by removing a centered volume that leaves a wall thickness of 3mm,... | $fn=64;
cylinder_diamter = 8;
total_width = 12;
stem_diameter = 2.4;
stem_height = 2;
stem_width = total_width - 4;
corner_radius = 3;
inner_width = 26;
wall_strength = 3;
inner_corner_radius = corner_radius - wall_strength;
inner_inner_width = inner_width - (wall_strength * 2);
connector_cube_width = 5;
connector_... | glb/cad_459753e0f9af.glb |
Create a parametric button by starting with a main solid cylinder 30mm in diameter and 2mm high. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a 26mm diameter and a height of 0.1mm, positioned 1.9mm from the base, leaving a thin 2mm rim around the edge and a 1.9mm thick floor at ... | r1 = 15;
r2 = 13;
r3 = 6;
r4 = 1.4;
h1 = 2;
h2 = 1.9;
count = 4;
difference() {
cylinder( r = r1, h = h1, $fn=80 );
translate( v=[0,0,h2] ) {
cylinder( r=r2, h=(h1-h2+0.1), $fn=80 );
}
for( i = [0:count] ) {
rotate( i*360/count, [0,0,1]) {
translate( v=[ r3,0,0] ) {
cylinder( r = r4, h = h1, $fn=8 );... | glb/cad_7a203874f367.glb |
Create a rectangular block with dimensions of 30mm in length, 10mm in depth, and 10mm in height. From the top surface of this block, remove three distinct screw holes aligned along the center of the depth axis (5mm from the edge).
The first hole is a DIN34811 M3 screw hole positioned 7.5mm from the left edge. The sec... | include<screw_holes.scad>
object_length = 30;
object_depth = 10;
object_height = 10;
difference() {
cube([object_length, object_depth, object_height]);
translate([object_length/4, object_depth/2, 0]) screw_hole(DIN34811, M3, object_height);
translate([object_length/4 * 2, object_depth/2, 0]) screw_hole(IS... | glb/cad_82781d92b9dd.glb |
Create a MOST Delta Z-Probe for small switches. Start with a central vertical rectangular pillar measuring 3mm wide, 10mm deep, and 44mm tall, centered on the X and Y axes. At the bottom of this pillar, create a cutout by removing a volume formed by the convex hull of two cylinders, each with a 1mm radius and 4mm heigh... | union() {
difference() {
cube(size = [3,20,10], center = true);
hull() {
translate([0,3,0])
rotate([0,90,0])
cylinder(h = 4, r=1, center = true, $fn=46);
translate([0,6,0])
rotate([0,90,0])
cylinder(h = 4, r=1, center = true, $fn=46);
}
hull() {
translate([0,-6,0])
rotate(... | glb/cad_f133c3461988.glb |
Create a protective electronics box for an Arduino Micro with overall dimensions of 49mm in length, 24mm in width, and 10mm in height. The main body is a hollow rectangular shell with a wall thickness of 3mm.
At the rear of the box, construct a vertical tower centered along the width. This tower is 30mm wide, 25mm hi... | module Box_Arduino_micro(l,w,h,spessore,torretta)
{
function r_from_dia(d) = d / 2;
module rotcy(rot, r, h) {
rotate(90, rot)
cylinder(r = r, h = h, center = true);
}
size = 10;
hole = 4;
centro = l/2;
cy_r = r_from_dia(hole);
cy_h = r_from_dia(size * 2.5);
difference()
{
translate([l/2,w,(25)/2])... | glb/cad_0b479e738a9f.glb |
Create a coxa joint component for a hexapod robot leg. Start with a central rectangular block that is 23mm wide, 35mm high, and 12mm thick. From this block, remove a large central rectangular section measuring 18mm wide, 27mm high, and 13mm deep to create a U-shaped fork.
Within the remaining walls of the fork, carve... | include <servo.scad>
include <servo_arm.scad>
module coxa(servo_height = 27, servo_clearance = 7) {
arm_thick = 4;
servo_width = 12;
flange_length = 3;
base_thick = 4;
root_radius = 4;
block(servo_width);
rinforzo(servo_width);
translate([0, -36, 0]) block(servo_width);
fork_width = servo_width + flange_lengt... | glb/cad_b8969b2eea04.glb |
Create a robot femur component. Start by constructing a central body that is 40mm long, 12mm wide, and 5mm thick. From this central rectangular block, remove a cylindrical cutout with a radius of 30mm centered 31mm away from the origin along the Y-axis. At each end of the central body, add a cylinder with a radius of 6... | include <servo_arm.scad>;
module body(thickness, center_to_center, width) {
difference() {
translate([0,0,thickness/2]) union() {
difference() {
cube([center_to_center, width, thickness], center = true);
translate([0,-31, -.1]) cylinder(r=30, h=thickness+.3, center = true);
}
for(x = [+center_to_ce... | glb/cad_cb493ab4aaa9.glb |
Create a peace sign emblem with a total diameter of 75mm and a uniform thickness of 4mm. Start by constructing a circular ring with an outer radius of 37.5mm and an inner radius of 33.75mm.
Inside the ring, add a central vertical rectangular beam that is 5mm wide and 71.25mm tall, centered on the origin. From the cen... | $fn=64+0;
diameter=75;
rim=10;
thickness=4;
beamw=5;
angle=33;
attach_radius=3;
attach_hole=1;
circular=1;
factor=1.618;
r=diameter/2;
module attach() {
difference() {
cylinder(r=attach_radius,h=thickness,center=true);
cylinder(r=attach_hole,h=thickness+1,center=true);
}
}
module ring() {
diff... | glb/cad_d218841e55a7.glb |
Create a hard drive holder by starting with a solid rectangular block measuring 73mm wide, 66.5mm high, and 80mm deep. Carve out five identical rectangular bays for 2.5-inch drives, each measuring 70mm wide, 10mm high, and 80mm deep. Position these bays so they are centered along the width and spaced vertically with 1.... | bays = 5;
hd_width=70;
hd_height=10;
wall = 1.5;
box = 80;
difference() {
cube(size = [hd_width + 2*wall, (bays+1)*wall + hd_height*bays, box]);
for( i = [0:bays-1] ) {
translate([wall, wall + i * (hd_height + wall),wall])
cube(size = [hd_width, hd_height, box]);
}
translate([(hd_width + 2*wall)/2... | glb/cad_9d8481d14302.glb |
Create an Eggbot Mug Adapter starting with a base cylinder 100mm in diameter and 5mm in height. Carve a conical void out of the center of this cylinder, starting from a point at the center of the base and widening to a radius of 50mm at the top surface. Within the remaining solid material of the disk, create two perpen... | diam=100;
g=3;
rt=2;
rad=diam/2;
difference(){
union(){
cylinder(h=5, r=rad);
difference(){
union(){
translate([-rad,-g/2,0])
cube([diam,g,rad-1]);
translate([-g/2,-rad,0])
cube([g,diam,rad-1]);
}
cylinder(h=rad, r1=0, r2=rad);
}
}
translate([10,10,-5])
cylinder(h=15, r=rt);
translate([10,-10,-5])
cylinder(h=15, r=r... | glb/cad_aa8994044616.glb |
Create an Eggbot Mug Adapter by starting with a base cylinder that has a radius of 50mm and a height of 5mm. From this base, remove a cone that shares the same 50mm radius at the bottom and tapers to a point at a height of 50mm. To complete the part, create four vertical holes with a radius of 2mm each, passing through... | diam=100;
g=3;
rt=2;
rad=diam/2;
intersection(){
union(){
translate([-rad,-g/2,0])
cube([diam,g,rad-1]);
translate([-g/2,-rad,0])
cube([g,diam,rad-1]);
}
translate([0,0,2])
cylinder(h=rad, r1=rad, r2=0);
}
difference(){
cylinder(h=5, r=rad);
union(){
translate([10,10,-5])
cylinder(h=15, r=rt);
translate([10,-10,-5])
... | glb/cad_8121c508a855.glb |
Create an Eggbot Mug Adapter by starting with a main cylinder that is 25mm tall with a radius of 20mm. From this main body, remove a central vertical hole with a radius of 4mm that starts 16mm up from the base and extends through the top. Additionally, remove four vertical holes, each with a radius of 2mm, positioned s... | rt=2;
rv=4;
difference(){
cylinder(h=25, r=20);
union(){
translate([0,0,16])
cylinder(h=10, r=rv);
translate([10,10,-5])
cylinder(h=35, r=rt);
translate([10,-10,-5])
cylinder(h=35, r=rt);
translate([-10,10,-5])
cylinder(h=35, r=rt);
translate([-10,-10,-5])
cylinder(h=35, r=rt);
translate([10,10,23])
cylinder(h=3, r=rt... | glb/cad_f6e36592101e.glb |
Create a curvy bracelet by extruding a 2D pattern to a height of 8mm. The pattern is based on two concentric rings of circular loops.
First, establish an inner ring of 16 circles, each with a radius of 6mm, centered at a distance of 36mm from the origin. Second, establish an outer ring of 16 circles, each with a radi... | ir = 30;
or1 = 6;
or2 = 8;
segments = 16;
h = 8;
perim = 0.7;
$fn=64;
ang1 = 360 / segments;
cr1 = ir + or1;
o = cr1 * sin(ang1/2);
a1 = or1 + or2 - perim;
a = sqrt(a1*a1 - o*o);
cr2 = cr1 * cos(ang1/2) + a;
delta = asin((cr2 * sin(ang1/2)) / a1 );
tau = atan(o / (sqrt(a1*a1 - o*o)));
a2 = cr1 / cos(ang1/2... | glb/cad_6344df9f0f81.glb |
Create a PanelDue enclosure for a 7-inch integrated controller and display. Start by constructing a main rectangular box with a wall thickness of 2.4mm and a base thickness of 2mm. The outer dimensions should be based on the 7-inch integrated PCB size (approximately 186mm x 106.5mm) plus a 1mm clearance on all sides. R... | DisplayType=7;
BoardVersion=3.0;
Lid=0;
Lip=0;
SD_card=1;
RelieveOverhang=10;
screw=false;
Encoder=false;
Itead43=(DisplayType==1);
Itead50=(DisplayType==2);
Other43=(DisplayType==3);
Other50=(DisplayType==4);
Other70=(DisplayType==5);
Integrated50=(DisplayType==6);
Integrated70=(DisplayType==7);
Integrated = (I... | glb/cad_584f9c19b127.glb |
Create a Triggerpoint Massage Tool consisting of a central sphere and three radiating petal-like arms. Start with a central sphere with a radius of 1.875mm, positioned so its center is 16.875mm above the base plane.
Construct three identical arms extending from this center. Each arm is formed by the convex hull of th... | height = 45;
diameter = 15;
$fn = $preview ? 16 : 128;
hull() {
translate([0,0,- diameter/2 + height]) sphere( r = diameter/2);
translate([0,0, (height-diameter)/2]) sphere( r = diameter/8);
}
base_diameter = max(50, min(height*0.75, 80));
distance = base_diameter/2;
upper_diameter = diameter/8;
upper_distance = up... | glb/cad_2e8c5342d70f.glb |
Create a customizable bombilla straw by constructing a long, hollow cylinder. The main body should be 180mm long with an outer diameter of 6mm and a wall thickness of 2.8mm. The inner bore should be a centered cylinder that runs almost the full length of the straw, leaving a small closed section at one end. At the bott... | straw_height=6;
straw_width=11;
thickness=2.8;
straw_length=180;
hole_radius=.8;
resolution=50;
$fn=resolution;
offset=straw_width-straw_height;
outer_rad=straw_height/2;
inner_rad=outer_rad-(thickness/2);
hole_spacing=hole_radius*3.2;
rotate([90,0,90]){
difference(){
hull(){
cylinder(h=straw_length,r=outer_rad);
... | glb/cad_f727f2905f1f.glb |
Create a 2.5" to 3.5" HDD adaptor with a base plate measuring 146.05mm in length and 101.6mm in width. The base plate has a thickness of 2mm. Along the two long edges, add side walls that are 7mm wide and 11.5mm high.
From the base plate, remove a central rectangular cutout measuring 17mm by 34mm at the front edge, an... | drive_height = 7;
sliders = "small";
bed_height = 2;
wall_width = 7;
drive_connecting_screwhead_height = 2.5;
cutout1_length = 45;
cutout1_width = 45;
cutout2_length = 35;
cutout2_width = 28;
cutout2_x_offset = 41;
cutout3_length1 = 17;
cutout3_width2 = 34;
drive_hole_x_offset = 3.9 + (cutout3_length1 / 2);
driv... | glb/cad_eed169d4796f.glb |
Create a regular icosahedron, a convex polyhedron composed of 20 equilateral triangular faces with 12 vertices. The shape should be constructed such that five triangles meet at every vertex. Ensure the geometry is perfectly symmetrical, with all edge lengths equal and all interior angles consistent, resulting in a unif... | r = sqrt(3 / (1 + 2*sqrt(5)/5) - 1);
for (j = [0, 180]) rotate([0, j, 0])
for (i = [0:4]) rotate([0, 0, i * 360 / 5])
for (k = [0, 1]) rotate([0, -atan(r) - 2*k*atan(r/2), 0])
rotate([0, 0, 180*k]) cylinder(1, 0, r, $fn=3); | glb/cad_da2995195f99.glb |
To make this code functional in OpenSCAD, you need to define the **global variables** that the modules rely on. The script you provided contains the logic (modules) and the data (thread table), but it is missing the "configuration" section where you specify the dimensions of your jar.
Add the following block to the **... | thread="G1";
sides=120;
chamfer=1.0;
wall=3.5;
knurled="yes";
knurl_depth=1.0;
knurls=50;
object_scale = 1;
show_top="yes";
threaded_top_height=6.1;
unthreaded_top_height=4.2;
show_bottom="yes";
threaded_bottom_height=4.1;
unthreaded_bottom_height=16.0;
$fn=120;
safety=.01;
function __THREADLIB_VERSION() = 0.... | glb/cad_25fe5bc5363f.glb |
Create a robot wheel rim with a main body consisting of a hollow cylinder with an outer diameter of 50mm and a width of 21mm. The cylinder wall thickness is 3mm. Add two outer rim collars and two inner rim collars, each 1.6mm wide and 2mm high, centered on the cylinder's faces.
Integrate a central mounting wall 3mm th... | tire_inner_dia = 50.0;
rim_sitting_width = 21.0;
rim_collar_height = 2.0;
rim_collar_width = 1.6;
inner_rim_collars = "true";
inner_rim_collar_dist = 3.0;
rim_thickness = 3.0;
rim_mounting_wall_thickness = 3.0;
rim_mnt_wall_offset = 6.5;
mount_type = "bldc";
center_hole_dia = 10.0;
bldc_mounting_screw_dia = ... | glb/cad_8070f7eebb75.glb |
Create a pair of symmetrical bull or demon horns. For a single horn, start with a circle of radius 20mm. Extrude this circle linearly to a height of 80mm. During the extrusion, apply a total twist of 180 degrees over the full height, using 20 slices to ensure a smooth transition. As the shape extrudes, scale the cross-... | $fn=1;
x=[1,0,0];
y=[0,1,0];
z=[0,0,1];
pi=3.1415926;
$fn=100;
n=30;
v=0;
module horn(){
linear_extrude(height = 80,
center = false, convexity = 10,
twist = 180, slices = 20, scale = .0)
translate(x*15)dial();
}
translate(x*-45)horn();
translate(x*45) mirror(x) horn();
module dial(){
circle(r=20);
} | glb/cad_d0516ae7a42e.glb |
Create a tamperproof insert for a socket by starting with a thin circular base that is 0.9mm thick, with a bottom diameter of 36mm and a top diameter of 38mm. In this base, create three circular holes, each 6mm in diameter and 3mm deep. Position two of these holes along the Y-axis, each 9.5mm from the center, and the t... | $fn=50;
union(){
difference(){
cylinder(d1=36,d2=38,h=0.9);
translate([0,9.5,-1])cylinder(d=6,h=3);
translate([0,-9.5,-1])cylinder(d=6,h=3);
translate([-10.5,0,-1])cylinder(d=6,h=3);
}
translate([12,0,0])cylinder(d1=5,d2=4,h=6);
translate([12,0,6]) sphere(d=4);
} | glb/cad_efeac19c4709.glb |
Create a parametric figure riser. Start by constructing a hollow cylinder with an outer diameter of 122mm and a total height of 104mm. This cylinder should have a wall thickness of 5mm, creating a raised lip around the perimeter. Remove a central cylindrical core with a diameter of 118mm and a height of 100mm, leaving ... | rise = 100;
base_dia = 117;
lip_height = 4;
lip_thickness = 5;
rest_thickness = 5;
brace_thickness = 10;
edge_reduction = 2.5;
union(){
difference(){
union(){
difference(){
cylinder((rise+lip_height), d=(base_dia+lip_thickness));
cylinder((rise+lip_height), d=(b... | glb/cad_cce67205845f.glb |
Create a Huawei HG8010 mounting bracket. Start with a base plate 1.2mm thick. The main body is a hull formed by two circles with a diameter of 11.1mm, spaced 47mm apart along the X-axis. Extend this plate from the second circle into a rounded protrusion to accommodate a dust cap holder.
On the base plate, create three... | layer_height = 0.2;
$fa=1;
$fs=layer_height;
test = false;
tol = layer_height;
wall = 1.2;
fastener_dia = 3;
FiberOpticDustCap = [3.9, 9];
cap_holder = FiberOpticDustCap;
l_sh_max = 52.0;
l_sh_min = 42.0;
l_lh_min = 38.4;
l_dia_max = 13.75;
w_box = 69;
h = [3.55, 2.5 ];
w = (l_sh_max+l_sh_min)/2;
d = [w-l_l... | glb/cad_79ae56feb0d7.glb |
Create a Parametric Offset Keyhole Hook for a Honeycomb Storage Wall. Start by creating a hexagonal insert plug based on a structure of one cell. Centered on this plug, construct a two-tiered cylindrical hook. The first tier is a cylinder with a diameter of 10mm and a height of 2mm. Directly on top of this, add a secon... | total_width = 278.5;
keyhole_small_diameter = 5;
keyhole_small_width = 1.5;
keyhole_large_diameter = 10;
keyhole_large_width = 2.0;
$fa = 8;
$fs = 0.25;
tolerance = 0;
decoration = false;
structure = [[2]];
hsw_horizontal_distance_unit = 40.88;
include <hws_openscad_attachments_and_connectors/hws_insert_util.scad>
m... | glb/cad_49cdadfc27a5.glb |
Create a sewing machine thread holder attachment consisting of a circular base and a vertical stem. Start by creating a flat, cylindrical base with a diameter of 60mm and a height of 1mm. Centered on top of this base, add a vertical cylinder with a radius of 2.5mm and a total height of 90mm. To transition between the b... | $fn=32;
stem_radius = 2.5;
stem_height = 90;
base_radius = 30;
base_height = 1;
fillet_radius = 3;
slope_cylinder_height = 3;
translate([0, 0, base_height]) union() {
rotate_extrude() translate([stem_radius, 0, 0]) difference() {
square([fillet_radius, fillet_radius]);
translate([fillet_radius, fil... | glb/cad_01afdd52f72a.glb |
Create a wall mount for a honeycomb storage wall. Start by creating a rectangular base block that is 47mm long, 22mm wide, and 2mm high.
From this base, remove a central rectangular volume to create a recessed pocket for an adhesive strip. This pocket should be 45mm long and 20mm wide, with a depth of 1.5mm. Position... | powerstrip_width = 20;
powerstrip_length = 45;
powerstrip_thickness = 1;
powerstrip_padding = 1;
powerstrip_padding_open_top = false;
$fa = 8;
$fs = 0.25;
tolerance = 0;
decoration = false;
structure = [[2],[1]];
hsw_horizontal_distance_unit = 40.88;
powerstrip_block_width = powerstrip_width + powerstrip_padding * 2... | glb/cad_4a32305ed573.glb |
Create a square spacer for a printer enclosure. Start by creating a solid cube with a width and length of 50mm and a height of 2mm. Center the cube on the origin. Remove a cylindrical hole from the exact center of the cube that passes completely through the 2mm thickness, with the hole having a radius of 3.5mm. Ensure ... | thickness = 2;
difference() {
cube([50, 50, thickness], center=true);
cylinder(r=3.5, h=thickness, $fn=255, center=true);
} | glb/cad_342c1ec0985c.glb |
Create a door stop for a printer enclosure. Start with a base rectangular block that is 3mm thick, 14mm deep, and extends 12mm beyond the front section. At the outer end of this base, integrate a cylindrical protrusion with a 14mm diameter and 3mm height, and center a 3.5mm ISO screw hole through this cylinder.
Build ... | include<openscad-screw-holes/screw_holes.scad>;
base_thickness = 3;
base_extend = 12;
base_depth = 14;
fillet_radius = 5;
center_gap = 6;
magnet_thickness = 3;
magnet_width = 20;
magnet_height = 10;
magnet_cover = 1;
front_thickness = magnet_thickness + (2 * magnet_cover);
front_width = center_gap / 2 + magnet_width... | glb/cad_51f4336f416f.glb |
Create a glass pane holder for a printer enclosure. Start with a base rectangular block that is 23mm wide, 27mm deep, and 12mm high. The base has a thickness of 3mm.
On the top surface of the base, add a handle protrusion that extends 20mm outward. This handle is a rectangular strip 20mm long and 3mm thick, angled up... | handle_pertrusion = 20;
base_thickness = 3;
handle_angle = 120;
handle_length = 20;
handle_thickness = base_thickness;
handle_z_offset = handle_thickness * sin(90 - (180 - handle_angle));
glass_pane_thickness = 2;
glass_pane_holder_thickness = 2;
magnet_thickness = 3;
magnet_width = 20;
magnet_heigth = 10;
magnet_co... | glb/cad_29e84bf9dbe3.glb |
Create a screwdriver holder for a honeycomb storage wall consisting of a base plate and five vertical arms.
Start with a base plate 2mm thick. The plate's total width is the sum of the widths of the five arms (calculated as shaft width plus 6mm for padding on each side), and its depth is 31mm. Round the corners of th... | include<openscad-screw-holes/screw_holes.scad>;
$fn=32;
arm_y_distance = 25;
plate_z = 2;
plate_rounding = 7;
arm_rounding = 2;
screw_driver_handle_padding = 3;
arm_thickness = 3;
arm_offset = 0;
plate_y = arm_y_distance + arm_thickness *2;
plate_padding_x = 3;
plate_padding_y = 5;
main_outer_side = 12.99;
grid_spac... | glb/cad_1a5115ee21e1.glb |
Create a drawer divider joint in the shape of an X. Start with a central cube measuring 11.6mm by 11.6mm by 40mm. To this central block, add four identical arms extending from the center to the four sides. Each arm is a rectangular block 12mm wide and 40mm high.
Within each of these four arms, carve out a centered re... | joint_height = 40;
joint_width = 16;
rail = 3.8;
fillet = 0;
shape = "X";
wall_thickness = 2;
tolerance=0.02;
fillet_radius = min(wall_thickness/2 - 0.001, fillet);
wall = wall_thickness - fillet_radius;
d = rail + wall * 2;
h = joint_height - fillet_radius*2;
t = 0.005;
module Centroid(){
cube([
d,
... | glb/cad_7fa07839c237.glb |
Create a rectangular drawer divider with overall dimensions of 113mm in width, 40mm in depth, and 3.8mm in height. The object should be a solid block where every edge and corner is rounded with a fillet radius of 0.5mm. | width = 113;
depth = 40;
height = 3.8;
fillet = 0.5;
$fn=$preview ? 32 : 64;
fillet_radius = min(height/2 - 0.001, fillet);
translate([fillet_radius,fillet_radius,fillet_radius])
minkowski(){
cube([width-fillet_radius*2, depth-fillet_radius*2, height-fillet_radius*2]);
sphere(r=fillet_radius);
} | glb/cad_3748f46e40d3.glb |
Create a Lumia Mount for Motorbikes by constructing a hollowed-out rectangular sleeve designed to hold a phone. The main body is based on dimensions of 10mm width, 68.4mm height, and 134.6mm depth.
Start with a solid block of these dimensions and round the vertical edges using a hull of two cylinders placed at the to... | holder_part_a(1,6.84,13.46);
module lumia(x,y,z)
{
$fn = 24;
delta = 0.05;
radius = 0.5 * x;
offset_y = 0.5 * y - radius + delta;
hull()
{
translate([0, -offset_y ,0]) cylinder( h = z + delta, r = radius + delta, center = true);
translate([0, offset_y ,0]) cylinder( h = z + delta, r = radius + delta, center ... | glb/cad_42b3233d5541.glb |
Create a bolt hobber tool consisting of two mirrored base plates. For one plate, start with a primary structure that combines a cylinder of radius 9mm and height 4mm at the origin with a rectangular block measuring 18mm by 26mm by 4mm positioned at x=-9, y=-30. Add a second rectangular block measuring 22mm by 21mm by 1... | module right(){
difference(){
union(){
translate([0,0,0]) cylinder(h=4,r=9,$fn=20);
translate([40,-15,-9]) cube([15,36,7]);
translate([27,-21,0]) cylinder(h=4,r=7,$fn=6);
translate([-9,-30,0]) cube([18,26,4]);
translate([33,-30,-8]) cube([22,21,12]);
translate([40,18,-2]) cube([15,3,6]);
translate([... | glb/cad_1575740a5653.glb |
Create a window blinds model consisting of a rectangular outer frame and a series of internal slats.
First, construct the frame as a hollow rectangular ring with outer dimensions of 230mm by 230mm and a thickness of 2mm. The inner opening of this frame should be 150mm by 150mm, created by applying a 40mm padding from... | windowWidth = 230;
windowHeight = 230;
framePadding = 40;
frameThickness = 2;
blindThickness = 1.6;
frameBlindsOverlap = 4;
blindCount = 20;
magnetCountPerSide = 0;
magnetThickness = 3;
magnetDiameter = 10;
hideMagnet = true;
magnetTolerance = 1;
frameLipThickness = 0;
module __Customizer_Limit__ () {}
bl... | glb/cad_02590368dffb.glb |
Create a tool holder for pliers consisting of a base plate and a vertical support structure. Start with a base plate that is 3mm thick. The base is formed by the convex hull of three cylinders, each with a radius of 3mm, positioned to create a flat mounting surface.
From this base, extend a vertical wall upward to a ... | screw_holes = 3;
tool_handle_thickness=11;
tool_handle_inside_gape=10;
thickness=3;
$fn=40;
rotate([90,45,0]){
difference() {
union() {
hull(){
translate([0,0,0])cylinder(h=thickness,r=screw_holes);
translate([(tool_handle_thickness*2)+(screw_holes*1.5)+tool_handle_inside_gape,0,0])cylinder(h=thickness,r=screw_holes)... | glb/cad_2ca7d9b4cb75.glb |
Create a Thickness Reference model consisting of six rectangular blocks of varying heights, arranged in two rows of three. Each block has a width of 18mm and a depth of 39mm.
For each block, create a rectangular base and a centered vertical hole with a radius of 1.75mm that passes completely through the shape. On the... | include <bitmap.scad>
print="model";
module reference_box(height,description,descsize,lettersize,border,hole,holeradius) {
if (hole == 0) {
cube([lettersize*8+border*2, descsize*(lettersize*8)+(2*border)+(2*hole*holeradius),height]);
color([255,0,0])
translate([
(lettersize*8+border*2)/2,
... | glb/cad_6e1d6d04756a.glb |
Create a wiring guide block by starting with a centered rectangular prism measuring 34mm wide, 36mm deep, and 20mm high. Remove a large central hole from the top face by creating a cylinder with a 6mm radius and 100mm height, tilted at a 35-degree angle relative to the horizontal plane. Additionally, create two side-en... | $fn=30;
rotate([0,180,0])
difference() {
translate([0,0,10.1])
cube([34,36,20], center=true);
translate([0,5,0])
rotate([35,0,0])
cylinder(r=6, h=100,center=true);
translate([14,0,10])
sideScrewM3();
translate([-14,0,10])
sideScrewM3();
}
module sideScrewM3() {
difference() {
rot... | glb/cad_4e817a761153.glb |
Create a wiring guide block by starting with a central body formed from the convex hull of three cylinders and a rectangular prism. The prism is 36mm wide, 8mm deep, and 8mm high, centered at [0, 0, 10]. The three cylinders have radii of 7mm and heights of 23mm, 20mm, and 25mm respectively, positioned and rotated to cr... | $fn=30;
include <hex_nut.scad>
rotate([90,0,0])
difference() {
hull() {
translate([0,0,10])
cube([36,8,8], center=true);
hull() {
translate([-2,5,-8])
rotate([100,0,-10])
cylinder(r=7,h=23, center=true);
translate([0,18,-8])
rotate([80,0,0])
cylinder(r=7,h=20, center=true);
transl... | glb/cad_03ab6725d8eb.glb |
Create a customizable wall bracket by constructing a three-dimensional L-shaped support structure. Start with a vertical front arm that is 8mm wide, 8mm deep, and 35mm tall. Connect this to a horizontal base arm that extends 58mm in length (50mm spacing plus 8mm width) and is 8mm wide and 8mm thick. At the junction whe... | esp = 50;
larg = 8;
rounded = true;
altsup = 35;
$fn = 60;
module suporte() {
color("red")
translate([0, 0, larg])
cube([larg, larg, altsup]);
color("yellow")
translate([0, esp+larg, -(altsup)/2])
cube([larg*2, 3, altsup+larg*2]);
color("brown")
cube([larg, esp + larg, la... | glb/cad_fcef8cd1f33b.glb |
Create a Customizable Round Clip holder consisting of a mounting bracket and a series of circular clips.
First, create the mounting bracket as a rectangular base with a thickness of 3mm and a height of 20mm. Extend the base by 20mm beyond the center of the first and last clips on each side. Drill two mounting holes w... | clipNumber = 1;
clipSpacing = 30;
clipInnerDiameter = 20;
clipWidth = 20;
clipWallThickness = 2;
clipOpeningAngle = 100;
bracketThickness = 3;
mountEarsLength = 20;
mountHoleOffset = 5;
mountHoleDiameter = 3;
$fs = 0.25;
module roundClip() {
difference() {
cylinder(r = (clipInnerDiameter/2 + clipWallThickne... | glb/cad_cad268abb863.glb |
Create an exploded soccer ball based on the geometry of a truncated icosahedron. The model is composed of a series of thin prisms arranged in a spherical layout. Construct 20 hexagonal prisms and 12 pentagonal prisms, each with a height of 0.3mm. The hexagonal prisms should have a circumradius of approximately 0.54mm a... | module cells() {
r = sqrt(3 / (1 + 2*sqrt(5)/5) - 1);
for (j = [0, 180]) rotate([0, j, 0])
for (i = [0:4]) rotate([0, 0, i * 360 / 5])
for (k = [0, 1])
rotate([0, -atan(r) - 2*k*atan(r*cos(180/3)), 0])
rotate([0, 0, 180*k])
rotate([0, 0, 30])
translate([0, 0, 0.3]) cylinde... | glb/cad_1870d395087c.glb |
Create a Drawing Robot Pen Holder designed to hold a marker and a micro servo.
Start with a base plate 1.5mm thick. The main body is a composite shape: a circle with a radius of 42.5mm (marker radius 10mm plus 2.5mm thickness) merged with a rectangular area for the servo. This area is defined by a rectangle 14.75mm w... | th = 2.5;
fn = 32;
sp = 0.4;
wallOffset = 18;
markerD = 20;
markerR = markerD/2;
markerTipD = 6;
markerTipR = markerTipD/2;
markerTipOffset = 30;
cdTh = 1.2;
cdInnerD = 15;
cdInnerR = cdInnerD/2;
cdOuterD = 120;
cdOuterR = cdOuterD/2;
microH = 12.25;
microW = 22.5;
microL = 22.5;
m... | glb/cad_cbbb280ba88f.glb |
Create a parametric filament guide consisting of a main body with a mounting base and a guiding channel. Start with a rectangular base measuring 24mm by 24mm with a height of 8mm. On one end, extend the body to create a channel that is 36mm long and 4mm wide, with rounded ends.
Within this channel, carve out a center... | holeRadius = 2.0;
channelLength = 36.0;
tSize = 8-holeRadius;
difference () {
union () {
cube(size=[24,24,8]);
polyhedron(points=[[0,0,0],[0,24,0],[-12,12,0],[0,0,8],[0,24,8],[-12,12,8]],
triangles=[[0,2,1],[3,4,5],[0,5,2],[0,3,5],[0,1,4],[0,4,3],[1,2,5],[1,5,4]]);
translate([-channelLength-holeRadius... | glb/cad_1d6d303182c6.glb |
Create a Feeder Clamp with a conical filament driver. Start by constructing a base consisting of three stacked plates: two outer plates with a thickness of 5.75mm and one inner plate with a thickness of 3.75mm. The outer plates follow a specific polygonal profile with a total diameter of 40mm, while the inner plate is ... | use <polyScrewThread.scad>
use <knurledFinishLib.scad>
outer_plate_width = 5.75;
inner_plate_width = 3.75;
total_width = 2*outer_plate_width + inner_plate_width;
total_d = 40;
margin_h = 5;
nut_d = 16.75;
nut_outer_d = 2*sqrt(pow(nut_d/2,2) + pow(total_width/2,2)) + 4;
nut_h = 6.15;
clamp_d = 14.5;
clamp_mid_d = 2*sq... | glb/cad_7fee97840047.glb |
Create a Super8 film reel cover by constructing a low-resolution cylindrical container with a radius of 38.5mm and a height of 15mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 37mm, starting from a height of 2mm from the base and extending to the top, which leaves ... | difference() {
difference() {
cylinder(r=38.5, h=15);
translate([0,0,2]) {
cylinder(r=37,h=15);
}
}
cylinder(r=16, h=3);
} | glb/cad_0ac9d2a30b3b.glb |
Create a Universal Tri-Bahtinov Mask consisting of a thin circular plate and a retaining ring.
The main plate has a thickness of 2mm and a diameter of 100.5mm. On this plate, create a Tri-Bahtinov pattern based on a clear aperture of 80mm. This pattern consists of three identical 120-degree sectors arranged around th... | tri_bahtinov = 1;
lensFocalLength = 400;
lensDiameter = 100.5;
lensAperture = 80;
centerHoleDiameter = 0;
ringHeight = 15;
handleHeight = 0;
bahtinovFactor = 150;
ringTabInterference = .2;
maskThickness = 2;
ringThickness = 3;
ringPieces = 3;
ringPiece = 30;
ringRotation = 0;
handleDiameter = 5;
minGapWi... | glb/cad_8b045c46607d.glb |
Create a drink coaster by first constructing a circular base with a total diameter of 80mm. The main body should have a flat bottom section 1.2mm thick, extending to an outer rim that is 3mm wide and 6mm high.
On the top surface of the base, add a grid of small cylindrical studs, each with a diameter of 4.8mm and a h... | ID = 80;
bottom_thickness = 1.2;
rim_width = 3;
rim_thickness = 6;
nubbin_height = 2.4;
nubbin_diam = 4.8;
nubbin_pitch = 8.0;
eps = 0.1;
color("cyan") rotate_extrude($fa=1) {
polygon([
[0,0],
[0, bottom_thickness],
[0.5 * ID, bottom_thickness],
[0.5 * ID, rim_thickness],
... | glb/cad_207d2bf13746.glb |
Create a Prusa i2 X-End for #10-24 or M5 leadscrews. The model consists of a main body with a length of 40mm and a height of 12.4mm.
At the center, create a rod mount featuring a horizontal hole with a diameter of 8.4mm (8mm rod diameter plus 0.2mm clearance) that runs through the length of the body. Incorporate a ro... | use <jonaskuehling-default.scad>
include <lm8uu-holder-slim_double-vertical.scad>
rod_dia = 8;
rod_dist = 50;
zrod_leadscrew_dist = 30;
clearance = 0.2;
wall = 3;
wall_thin = 3;
xend_body_length = 40;
m3_screw_dia = 3.4;
m3_screw_head_dia = 6.6;
m3_screw_head_height = 3;
m3_nut_wrench_size = 8.5;
m3_nut_height = 3;
... | glb/cad_ad75db6ca349.glb |
Create a wall mount for a Fritzbox 5530 consisting of two main components: a mounting bridge and a set of support pins.
First, create the mounting bridge as a rectangular frame. The outer dimensions of the frame are 120mm wide by 100mm deep with a height of 12mm and a wall thickness of 3mm. The center of the frame is... | pindist=153;
m4hole=3.9;
m4depth=6;
mountheight=12;
mountwidth=120;
mountvh=100;
mountdia=9;
wall=3;
bridge=true;
pinoffset=(mountwidth-pindist)/2;
$fn=100;
module screwhole(sdia=4,slen=5,hdia=10,hlen=3,prelength=40) {
cylinder(d=sdia,h=slen, $fn=50);
translate([0,0,(slen-hlen)])
cylinder(d1=sdia,d2=... | glb/cad_b18f46b2035f.glb |
Create a Kossel Mini Cross-brace Bracket designed to secure a rod to a 15mm extrusion. Start by creating a main body that is a hull of a cylinder with a radius of 12.1mm and a height of 50mm, and a rectangular block measuring 40mm by 15mm by 3.6mm positioned at an offset of 44.6mm from the center. Rotate this entire as... | angle=-20.86344843327723;
rod=19.2/2;
offset=35+rod;
clamp_angle=40;
thick=2.5+rod;
tall=50;
module left() {
difference() {
hull() {
rotate([0,angle,0])
translate([0,0,-8])
cylinder(r=thick,h=tall);
translate([-25,offset,-2])
cube([40,15,3.6]);
}
rotate([0,angle,0]) {
translate([0,0,-10]) {
#cylinder(r=rod,h=... | glb/cad_6ff6cd621e5c.glb |
Create a door handle for an Ikea Enhet mirror door. Start by constructing a base plate that is 44mm wide, 3mm thick, and 57mm tall. This base is formed by joining a rectangular section measuring 44mm by 3mm by 10mm, positioned at the top, to a larger rectangular section measuring 44mm by 37mm by 3mm, positioned at the ... | difference() {
union()
{
translate(v = [-2, 14, -10]) {
cube(size=[44,3,10], center = false);
}
translate(v = [-2, -20, 0]) {
cube(size=[44,37,3], center = false);
}
translate(v = [0, -20, 0]) {
hull(){
cylinder(h=3, d=4, center=f... | glb/cad_533a957b2422.glb |
Create a 1-gang light switch plate. Start with a solid rectangular plate measuring 69.85mm wide, 114.3mm high, and 6.35mm thick. Round all four corners with a radius of 3.175mm.
Hollow out the back of the plate by removing a smaller rectangular section from the center, leaving a wall thickness of 1.5875mm around the p... | joinfactor = 0.125;
goldenratio = 1.61803399;
gThickness = 1/4 * 25.4;
gRoundingRadius = 1/8/2*25.4;
gStandardWidth = 2.75*25.4;
gStandardHeight = 4.5 * 25.4;
gFixtureHoleDistance = 2.375*25.4;
gFixtureHoleIR =5/32/2*25.4;
gFixtureHoleOR = 6.75/2;
gLightSwitchHeight = 0.942*25.4;
gLightSwitchWidth = 0.406 * 25.4;
... | glb/cad_f8ac7a48bb2e.glb |
Create a 3D model of the text "curvyText();" using a bold Courier New font. First, generate the text as a flat 2D shape with a height of 12mm, then linearly extrude it to a thickness of 6mm. Apply a wedge-shaped transformation to this extrusion so that the text fans out from a central point, creating a curved effect.
... | CurvyWord="curvyText();";
Ri=5;
Ro=6;
L=1000;
Th=12;
$fn=40;
curvyText(W=CurvyWord, RI=Ri, RO=Ro, S=L, TH=Th);
module curvyText(W, RI, RO, S, TH){
difference(){
wedgeText(T=W, H=RO, TH=TH);
rotate([0,90,0]){
cylinder(r=RI, h=S, center=true);
tube(OD=(RO*2)+S, ID=RO*2, H=S);
}
}
}
module wedgeText(T, H... | glb/cad_4feeb9d60313.glb |
Create a tube coupling consisting of three stacked coaxial sections with a wall thickness of 1.5mm throughout. Start with a bottom cylindrical tube that has an outer diameter of 69mm and a height of 5mm. On top of this, add a conical connector section with a height of 25mm that transitions linearly from an outer diamet... | thickness=1.5;
d1=69;
h1=5;
d2=90;
h2=10;
c_ht=25;
$fn=90;
assemble();
module tube(d,h) {
rad=d/2;
difference() {
cylinder(h=h,r=rad);
cylinder(h=h,r=rad-thickness);
}
}
module connector(){
difference() {
cylinder (h=c_ht,r1=d1/2,r2=d2/2);
cylinder (h=c_ht,r1=d1/2-thickness,r2=d2/2-thickness);
}
}
module ass... | glb/cad_0da7328ab4d1.glb |
Create an endstop holder for a microswitch. Start with a base composed of a cylinder with a radius of 7.15mm and a height of 10mm, using 20 facets. Merge this with two rectangular blocks: one measuring 15.5mm by 14.3mm by 10mm centered on the cylinder, and another measuring 35mm by 4mm by 10mm extending from the side.
... | include <configuration.scad>
module endstop(){
outer_diameter = m8_diameter/2+3.3;
screw_hole_spacing = 9;
opening_size = m8_diameter-1.5;
difference(){
union(){
translate([outer_diameter, outer_diameter, 0]) cylinder(h =10, r = outer_diameter, $fn = 20);
translate([outer_diameter, 0, 0]) cube([15.5,outer_diame... | glb/cad_544318e0ba43.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.