Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a 3D model consisting of nine identical thin square plates, each measuring 30mm by 30mm with a height of 0.6mm. Arrange these plates in a 3x3 grid pattern on the XY plane. The center-to-center spacing between adjacent plates should be 90mm, such that the total footprint of the grid is 180mm by 180mm. Position th... | width = 30;
depth = 30;
layer_height = 0.2;
first_layer_height = 0.2;
nr_of_layers = 2;
box_size = 180;
height = first_layer_height + (nr_of_layers - 1) * layer_height;
translate([-width/2, -depth/2,0]){
cube(size = [width, depth, height], center = false);
for (x=[-1:2:1]){
for (y=[-1:2:1]){
translate([... | glb/cad_dfe387d68bb1.glb |
Create a flat, geometric plate with a total width and length of 200mm and a thickness of 0.25mm. Start with a solid square base of 200mm by 200mm. From this base, remove a smaller square centered within it that measures 98.4mm by 98.4mm, but rotate this cutout four times at 90-degree intervals to create a cross-shaped ... | echo(version=version());
widthSquare = 200;
wallThickness = 0.8;
height = 0.25;
tolerance = 0.5;
union(){
difference(){
cube([widthSquare,widthSquare,height], center=true);
for (x=[0:1:3]){
rotate([0,0,x*90]){
translate([widthSquare/4-wallThickness/4,widthSquare/4-wallThickness/4,0]){
... | glb/cad_b4868b19861a.glb |
Create a filament guide with a rectangular base measuring 20mm wide, 50mm long, and 8mm high. The base should have rounded corners with a radius of 2.5mm. Centered along the length of the block, carve a longitudinal cylindrical channel with a diameter of approximately 2mm (specifically 1.14 times the standard 1.75mm fi... | echo(version=version());
debug = 1;
explode = $preview ? 0.1 : 0.0;
$fn = $preview ? 90 : 360;
tol = 0.2;
rotate([0,0,0]){
translate([0,0,0]){
filamentGuide();
}
}
fgWidth = 20;
fgLength = 50;
fgHeight = 8;
fgRadiusFillet = 2.5;
dFilament = 1.75;
module filamentGuide(){
difference(){
union(){
... | glb/cad_9824056422c3.glb |
Create a linear bearing with a total length of 24mm and an outer diameter of 15mm. Start with a solid cylinder of these dimensions, then remove a central cylindrical hole with a diameter of 8mm running through the entire length.
At both ends of the bearing, create a ring-shaped cutout. These cutouts are 1.1mm wide and... | echo(version=version());
doChamferLobe = false;
SF = 1.0;
d1 = 8;
d2 = 15;
d1tol = 0.0;
B = 24;
B1 = 17.5;
s = 1.1;
dn = 14.3;
cd = 1.5;
ca = 30;
da = 45;
gw = 1.5;
ld = 0.5;
Bel = 36;
lbel = 0.6;
vB = (B + Bel) * SF;
vB1 = (B1 + Bel) * SF;
vBel = Bel * SF;
vd1tol = d1tol * SF;
vd1 = d1 * SF + vd1tol;
vd2 = ... | glb/cad_649de388ba15.glb |
Create a parametric pulley with 60 teeth using a GT2 2mm profile. The main body is a cylinder with a diameter of 20mm and a height of 0mm for the base, though the toothed section has a length of 6.2mm. The teeth are evenly spaced around the circumference.
The pulley features a central hole for a motor shaft with a dia... | number_of_teeth = 60;
profile = 12;
motor_shaft_diameter = 8.2;
toothed_part_length = 6.2;
base_height = 0;
base_diameter = 20;
belt_retainer = 1;
retainer_height_p = 1.0;
belt_idler = 1;
idler_height_p = 1.0;
screws_disposition = 3;
nut_shape = 1;
screw_profile = 4;
nut_shaft_distance = 1.2;
idler_bolt_option = 0... | glb/cad_65b0e58052b0.glb |
Create a lego-sorting-sieve-model consisting of a rectangular perforated plate. Start with a central rectangular slab measuring 300mm wide, 200mm high, and 7mm thick. Within this slab, create a grid of circular holes, each with a diameter of 30mm. The holes should be arranged in a staggered hexagonal pattern where the ... | module holes (width, height, wall_thickness, thickness, hole_diameter)
{
d = (hole_diameter + wall_thickness);
dx = d * cos(60);
dy = d * sin(60);
row_hole_half_count = ceil(width / d / 2) + 1;
row_half_count = ceil(height / d / 2) + 1;
for (row=[0:row_half_count]) {
for (col=[0:row_hol... | glb/cad_e44c2f962a47.glb |
Create a linear gear rack consisting of a rectangular support base with a series of repeating teeth. The support base should have a total width of 11.2mm (calculated as twice the sum of the shaft radius of 3.1mm and the border of 2.5mm).
The rack features 32 teeth. Each tooth is defined by a specific profile: the add... | pi=3.1415926535897932384626433832795;
innerRadius=3.1;
borders=2.5;
diametralPitch=12;
numberOfTeeth=32;
pressureAngle=20*pi/180;
centerAngle=25;
rack(innerRadius,borders,diametralPitch,numberOfTeeth,pressureAngle,centerAngle);
module rack(innerRadius,borders,P,N,PA,CA)
{
a = 1/P;
d = 1.25/P;
multiplier=20;
heig... | glb/cad_9587bc3517fd.glb |
Create a rectangular panel 30mm wide, 50mm high, and 3mm thick, centered on the origin. Integrate a cylinder with an outer diameter of 12mm and an inner diameter of 9mm, extending 20mm in length. Position this cylinder so it is rotated 45 degrees along the X-axis and protrudes 4mm from the back of the panel. Create a h... | overlap=0.001;
$fn=128;
pwidth=30;
pthick=3;
pheight=50;
tlength=20;
tOD = 12;
tID = 9;
tube_protrude=4;
clipfrontdepth=10;
panelwithhole();
module panelwithhole()
{
difference()
{
union()
{
panel();
translate([0,0,-tube_protrude])
rotate([45,0,0])
... | glb/cad_932f1ee8abe5.glb |
Create a rectangular trough with outer dimensions of 65mm in width, 50mm in length, and 12mm in depth. To form the hollow interior, remove a central rectangular block that is 57mm wide and 42mm long, leaving a wall thickness of 4mm on all sides. Position this interior cutout so that the bottom of the trough remains 2mm... | overlap=0.001;
$fn=128;
width=65;
wall=4;
length=50;
depth=12;
trough();
module trough()
{
difference()
{
outer();
inner();
}
}
module outer()
{
cube(size=[width,length,depth], center=true);
}
module inner()
{
translate([0,0,wall/2])
cube(size=[width-wall,length-wall,depth]... | glb/cad_a4f62cafe7b4.glb |
Create a rectangular trough with outer dimensions of 65mm width, 50mm length, and 12mm depth. Hollow out the center to create a basin with walls 4mm thick, leaving a solid base. Position two circular holes with a diameter of 3mm and a depth of 4mm through the side walls; center these holes along the length of the troug... | overlap=0.001;
$fn=128;
width=65;
wall=4;
length=50;
depth=12;
screw=3;
trough();
module trough()
{
difference()
{
outer();
inner();
translate([20,length/2,0])
hole();
translate([-20,length/2,0])
hole();
}
}
module outer()
{
cube(size=[width,length... | glb/cad_50d4427293fe.glb |
Create a rectangular panel 72mm wide, 50mm high, and 2mm thick. Centered on the panel, add a cylinder with an outer diameter of 12mm and a height of 20mm, positioned so that it protrudes 4mm from the back of the panel. Create a coaxial hole through the center of this cylinder and through the panel with a diameter of 9m... | overlap=0.001;
$fn=128;
pwidth=72;
pthick=2;
pheight=50;
tlength=20;
tOD = 12;
tID = 9;
tube_protrude=4;
clipfrontdepth=10;
panelwithhole();
module panelwithhole()
{
difference()
{
union()
{
panel();
translate([0,0,-tube_protrude])
rotate([45,0,0])
... | glb/cad_4b245bc563d7.glb |
Create a Boite-Tournante, a two-part rotating box consisting of a bottom and a top section.
For the bottom section, create a cube 50mm wide, 50mm deep, and 15mm high with rounded corners. Hollow out the center by removing a cylinder with a diameter of 53mm and a height of 50mm, while ensuring the interior walls maint... | module dessous(ep=0.75) {
union() {
difference() {
intersection() {
cube(50,center=true);
cylinder(d1=54.5,d2=59.5,h=15,center=true,$fn=100);
}
intersection() {
cube(50-2*ep,center=true);
cylinder(d1=54.5-2*e... | glb/cad_564101156310.glb |
Create a snowflake-shaped pendant with a total height of 10mm. Start with a central hexagonal prism that has a radius of 11.5mm and a height of 10mm. From the six vertices of this central hexagon, extend six arms outward. Each arm consists of a rectangular block 50mm long, 10mm wide, and 10mm high.
At the end of each... | sh = 10;
wa = 2;
swa = 1 ;
*color("white") cylinder(r=56,h=1,$fn=6);
middlebit = 23;
difference() {
union() {
cylinder(r=middlebit,h=sh,$fn=6);
difference() {
arm();
translate([50,10,4]) rotate([90,0,0]) cylinder(r=2.5,h=20,$fn=100);
}
for (i=[60:60:300]) ... | glb/cad_150ae0d8511b.glb |
Create a Flocon geometric model centered on a flat base. Start with a central square plate measuring 1500mm by 1500mm with a thickness of 25mm.
From this base, remove a series of complex patterns arranged in a hexagonal radial symmetry. Every 60 degrees around the center, create a repeating sequence of five iteration... | module flocon() {
for (a=[0:5]) rotate([0,0,a*60])
for (i=[1:5], j=[0:i-1]) {
translate([j * 50 * sqrt(3), i * 100 - j * 50, 0]) rotate([0,0,55-60*a]) led();
}
rotate([0,0,55]) led();
}
module led() {
difference() {
color("white") cube([50,50,18], center=true);
cylinder(d=45... | glb/cad_96007a16b454.glb |
Create a ball race assembly consisting of two identical rings. Each ring has a height of 6mm and an outer radius of 24mm.
For each ring, create a circular groove (the race) centered at a radius of approximately 5.3mm. This groove is formed by removing a torus-like volume with a cross-sectional radius of 3.15mm (6mm d... | std_data = [6.2, 0.9, 6.0];
function ball_x(bp,d) = (5+d[0]*bp[0]+d[0]/2*bp[1]+d[0]/2*bp[2]);
function ball_y(bp,d) = (5+d[0]*0.866*bp[1]+d[0]*0.866/3*bp[2]);
function ball_z(bp,d) = (d[2]/2+d[1]*bp[2]);
module bb_ball(bd=6.0)
{
sphere(r=bd/2,$fn=20);
}
bd=6.0;
spacing = 1.05;
num_balls = 12;
slack_angle = 10.0;
... | glb/cad_ba47c8896bb1.glb |
Create a battery adapter ring with a height of 3mm. Start with a solid cylinder that has an outer diameter of 26.2mm and a central coaxial hole with a diameter of 14.7mm. Around this central void, create 12 evenly spaced circular holes that penetrate through the entire 3mm height of the ring. Each of these 12 holes sho... | module holey_cylinder( outer_d, inner_d, h, ncircles=12, thickness=2 )
{
circle_angle = 360/ncircles;
circle_d = (outer_d-inner_d-2*thickness)/2;
translate([outer_d/2,0,0])
difference()
{
difference()
{
cylinder( r=outer_d/2, h=h );
cylinder( r=inner_d/2, h=h );
}
for (i=[0:ncir... | glb/cad_91b64f3a87b2.glb |
Create a bearing race by constructing a ring-shaped object centered on the Z-axis. The main body is a torus-like volume created by rotating a square profile around the center. The inner radius of the ring is 4.1mm and the outer radius is 6.1mm, with a total height of 2.5mm.
Cut a cylindrical hole through the center o... | module support_grid( width, height, thickness=1, min_thickness=0, gap_width=0.5, max_gap_height=4 )
{
support_thickness = (min_thickness>0) ? min_thickness : thickness;
hgap_separation = (gap_width+support_thickness);
num_hgaps = floor(((width-hgap_separation)/2) / hgap_separation + 0.99);
hmiddle_gap = width-... | glb/cad_358585554fa8.glb |
Create a 3x3 building block with a total height of 9.5mm. The main body is a rectangular prism with a width and length of 25.45mm (calculated as two 8mm spacings plus a 4.8mm diameter knob and two 1.45mm walls). The block has a hollow rectangular cavity in the center, leaving walls 1.45mm thick and a roof 1.05mm thick.... | width = 3;
length = 3;
thickness = 3;
knob_diameter=4.8+0;
knob_height=2+0;
knob_spacing=8.0+0;
wall_thickness=1.45+0;
roof_thickness=1.05+0;
block_height=9.5+0;
pin_diameter=3+0;
post_diameter=6.5+0;
reinforcing_width=1.5+0;
axle_spline_width=2.0+0;
axle_diameter=5+0;
cylinder_precision=0.1+0;
block(length,width,thi... | glb/cad_543c941e7612.glb |
Create a cable tidy latch consisting of a central body and two symmetrical prongs. The central body is a rectangular block with a width of 12mm, a height of 6mm, and a thickness of 3.5mm. Centered within this body, remove a rectangular slot that is 10.4mm wide and 3.5mm high, leaving thin walls on the sides. At the end... | cable_diameter = 8;
cable_length = 10;
prong_width = 4;
prong_bobble_radius = 3.6;
prong_bobble_eccentricity = 1.0;
latch_body_thickness = 6;
prong_thickness = 4;
latch_prong_thickness = prong_thickness*0.3;
notch_end = 2;
notch_separation = 3;
notch_slack = 0.15;
notch_width = latch_body_thickness + notch_s... | glb/cad_c7c822164003.glb |
Create a mechanical gear assembly called "thingies" consisting of two planetary gear systems (a 60:1 and a 12:1 reduction).
For each system, create a central sun gear, a set of planet gears, and an outer ring gear. The sun gear is a disc with an integrated gear profile and a central axle hole of 5.7mm diameter. If a ... | use <mcad/involute_gears.scad>
module gjs_gear( r, num_teeth, thickness, dp=dp_gear, is_ring=false )
{
pitch=num_teeth/((2*r)*dp);
gear(number_of_teeth=num_teeth,
diametral_pitch=pitch,
gear_thickness=thickness,
rim_thickness=thickness,
hub_thickness=thickness,
bore... | glb/cad_7ea45f7d0a22.glb |
Create a set of mechanical components based on a 1.6mm unit grid.
First, create two types of washers: a smooth washer and a notched washer. Each washer is a cylinder with a height of 3.2mm and a central hole with a radius of 2.56mm. The notched version features a cross-shaped cutout extending from the center to the o... | use <mcad/involute_gears.scad>
lego_unit = 1.6;
lego_height_units = 6;
lego_slat_height_units = 2;
lego_width_units = 5;
lego_axle_hole_radius_units = 3.2;
lego_axle_hole_center_height_units = 3.5;
lego_axle_hole_relief_radius_units = 3.5;
lego_axle_radius_units = 2.;
lego_knob_radius_units = 3;
lego_wall_thickn... | glb/cad_096ecd5ef222.glb |
Create a "thingies" mechanical gear assembly consisting of a sun gear, planet gears, and two concentric rings. Use a general thickness of 2mm for all components.
First, create a central sun gear with 15 teeth and a radius of approximately 3.1mm.
Next, create three planet gear pairs. Each pair consists of two stacked... | x2=0;
x2 = -0.14;
x2 = -0.12;
x2 = -0.5;
x2 = -0.58;
x2 = 0.37;
x2 = 1;
use <mcad/involute_gears.scad>
module gjs_gear( r, num_teeth, thickness, dp=dp_gear )
{
pitch=num_teeth/((2*r)*dp);
gear(number_of_teeth=num_teeth,
diametral_pitch=pitch,
gear_thickness=thickness,
rim_thic... | glb/cad_5983de31857d.glb |
Create a platform level test pattern consisting of several thin rectangular bars. All elements have a uniform height of 0.3mm.
First, create four centered bars that form a square perimeter. Each bar must be 120mm long and 0.95mm wide. Position these bars so they are centered on the origin and rotated at 90-degree inte... | ThreadThick = 0.3;
ThreadWidth = 0.475;
small = (1==0);
BoxSize = small ? 80 : 120;
module ShowPegGrid(Space = 10.0,Size = 1.0) {
Range = floor(50 / Space);
for (x=[-Range:Range])
for (y=[-Range:Range])
translate([x*Space,y*Space,Size/2])
%cube(Size,center=true);
}
ShowPegGrid();
for (Index=... | glb/cad_77ed1231b91b.glb |
Create a rectangular tray for holding small spheres. The tray has a base thickness of 0.6mm and a total height of 6.5mm. The interior of the tray is a recessed cavity designed to hold spheres with a radius of 3.0mm.
Arrange the spheres in a packed grid within the cavity. The spheres are positioned such that they foll... | std_data = [6.2, 0.9, 6.0];
function ball_x(bp,d) = (5+d[0]*bp[0]+d[0]/2*bp[1]+d[0]/2*bp[2]);
function ball_y(bp,d) = (5+d[0]*0.866*bp[1]+d[0]*0.866/3*bp[2]);
function ball_z(bp,d) = (d[2]/2+d[1]*bp[2]);
module bb_ball(bd=6.0)
{
sphere(r=bd/2,$fn=20);
}
module bb_ball_hole(h=1,d=10.0/8/6, ball_radius=3.0)
{
t... | glb/cad_a31d8a2f58f9.glb |
Create a hollowed-out diamond-shaped shell with a flat base. The outer shell is formed by four mirrored wedge-like quarters. Each quarter is defined by a width of 20mm, a body length of 25mm, a peak length of 55mm, and a total height of 30mm. The bottom of the shape is truncated at a height of 15mm to create a flat sur... | module wedge( length, width, height )
{
rotate(v=[0,0,1],a=90)
rotate(v=[1,0,0],a=90)
linear_extrude( height=length,
center=false )
{
polygon([[0,0], [width,0], [0,height]]);
}
}
module diamond_quarter( width=20, ridge_length=5, body_length=25, peak_length=55, height=30,... | glb/cad_02bf574be325.glb |
Create a digital speaker chassis consisting of 21 stacked layers, each 10mm thick. Every layer is a rectangular slab 100mm wide and 600mm high with 10mm rounded corners.
The first layer is a front panel featuring three circular openings of 40mm radius centered at x=50mm and y=100mm, 250mm, and 400mm. Each of these ope... | include <frontpanel.scad>;
thickness = 10;
width = 100;
height = 600;
module base(t, radius)
{
minkowski()
{
translate([radius,radius,0]) cube([100-radius*2,600-radius*2,t],false);
cylinder(h=1,r=radius,false);
}
}
module back()
{
difference()
{
base(10, radius=10);
translate([1... | glb/cad_1f02598a7be2.glb |
Create a linear actuator gear by starting with a hexagonal prism that has a radius of 12mm and a height of 20mm, centered on the origin. Inside this prism, carve out a centered internal metric thread with a diameter of 14mm, a pitch of 4mm, and a length of 60mm, using three starts for the thread. To complete the part, ... | use <threads.scad>
union(){
translate([0,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
difference(){
cylinder(r=12, h=20, center=true, $fn=6);
scale([1.05,1.05,1]) translate([0,0,-30])
metric_thread( diameter=14, pitch=4, length=60,
n_starts =3,
internal=true
);
}
} | glb/cad_69132133abb7.glb |
Create a linear actuator gear by starting with a hexagonal prism that has a radius of 12mm and a height of 20mm, centered on the origin. Inside this prism, create a centered vertical hole with a diameter of 14mm and a length of 60mm, featuring a metric thread with a 4mm pitch and 3 starts. Position two small cylindrica... | use <threads.scad>
union(){
translate([1,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
translate([-1,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
difference(){
cylinder(r=12, h=20, center=true, $fn=6);
scale([1.10,1.10,1]) translate([0,0,-30])
metric_thread( diameter=14, pitch=4, length=60,
n_starts ... | glb/cad_3a52ed387064.glb |
Create a linear actuator gear by starting with a hexagonal prism that has a radius of 12mm and a height of 20mm, centered on the origin. Inside this prism, create a hollow internal metric thread with a diameter of 14mm, a pitch of 4mm, and a length of 60mm, starting from a vertical offset of -30mm. On the top face of t... | use <threads.scad>
union(){
translate([-1.5,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
translate([0,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
translate([1.5,9,10]) cylinder(r=0.5, h=1, center=true, $fn=20);
difference(){
cylinder(r=12, h=20, center=true, $fn=6);
scale([1.15,1.15,1]) transla... | glb/cad_46f969f8f01c.glb |
Create a linear actuator gear consisting of a central vertical axis with several stacked components. Start by creating a central hollow tube with an outer radius of 8.6mm and an inner radius of 7.1mm, extending 44.8mm in height and centered vertically. Around the middle of this tube, place a helical gear with 40 teeth,... | use <involute_gears.scad>
use <threads.scad>
union(){
#translate([0,0,8.4]) difference(){
cylinder(r=8.6, h=44.8, center=true, $fn=100);
cylinder(r=7.1, h=44.8, center=true, $fn=100);
}
difference(){
union(){
scale([0.96,0.96,1]) gear (
number_of_teeth = 40,
circular_pitch=210,
gear_thicknes... | glb/cad_40d832267350.glb |
Create a USB microscope adapter stand. Start with a rectangular base 30mm wide, 58mm high, and 12mm thick. Expand the base by adding blocks to the top and bottom edges (each 15mm high and 22mm thick) and to the left and right sides (each 10mm wide and 22mm thick), creating a larger overall footprint.
On top of this ba... | $fn = 80;
base_width = 30;
base_height = 58;
base_tickness = 12;
base_holes_offset = 8;
base_holes_diameter = 3;
clamp_diameter = 31.5;
clamp_opening = 4;
clamp_tickness = 3;
clamp_height = 14;
base_clamp_offset = 13;
module screw_hole(d = 3, height = 30) {
hull() {
translate([0, -height/2, 0])
... | glb/cad_24aca6eb1b5c.glb |
Create a rectangular plate measuring 168mm by 210mm with a thickness of 10mm. Within this plate, carve out a grid of 20 rectangular recessed pockets arranged in 4 columns and 5 rows. Each pocket should be 42mm wide and 42mm long, with a depth of 9mm. Within each of these pockets, remove a smaller central rectangular se... | rows=5;
cols=4;
rotate([0,0,90]) translate([0,-(rows*42),0]) {
difference() {
for (i = [0:(cols-1)]) {
tx = i * 42;
for (j = [0:(rows-1)]) {
ty = j * 42;
translate([tx,ty,0]){
difference() {
cube([42,42,10]);... | glb/cad_b75b4d526048.glb |
Create a twisted square column by starting with a 10mm by 10mm square centered at coordinates (25, 0) on the XY plane. Extrude this square vertically to a total height of 200mm, applying a continuous 360-degree twist around the Z-axis as it rises, so that the top face is rotated exactly one full turn relative to the ba... | $fn=90;
linear_extrude(height=200, twist=-360)
translate([25,0,0]) square([10,10]); | glb/cad_7b8eddd30a9e.glb |
Create a 30mm cube. From this cube, remove several geometric shapes to create cutouts for M3 hardware.
First, create a vertical hole passing through the center of the X and Y axes (at x=15, y=15) that extends from the top face down through the entire 30mm height. This hole consists of three concentric sections: a cen... | module m3_nut_slot_cutout_v(l=10,z=0,t=1,r=0) {
d=2.5*t;
w=5.5*t;
rotate([r,0,z]) translate([0,-d/2,-w/2]) cube([l,d,w]);
}
module m3_nut_slot_cutout_h(l=10,t=1,r=0) {
d=2.5*t;
w=6*t;
rotate([0,0,r]) translate([-w/2,-d/2,0]) cube([w,d,l]);
}
module m3_nut_cutout_v(l=10,z=0,t=1) {
rotate([0,9... | glb/cad_12fe8d179290.glb |
Create a rectangular grid organizer consisting of eight open-topped compartments arranged in two columns and four rows. The overall footprint is composed of repeating cells, each 40mm wide, 40mm deep, and 20mm high. Each cell is formed by a 20mm high outer shell with a wall thickness of 1.5mm. The interior of each cell... | wall=1.5;
n_x = 2;
n_y = 4;
module base_box(w_x,w_y,h) {
difference() {
cube([w_x,w_y,h]);
translate([wall,wall,.6]) cube([w_x-wall*2,w_y-wall*2,h]);
}
}
for (x=[0:n_x-1],y=[0:n_y-1]) {
t_x = 40*x-x*wall;
t_y = 40*y-y*wall;
echo(t_x,t_y);
translate([t_x,t_y,0]) base_box(40,40,... | glb/cad_9d9ffbb184f4.glb |
Create a hollow cylindrical sleeve with a height of 20mm and an outer diameter of 16mm. The interior should be a concentric cylindrical void with a diameter of 14mm. To create an opening, remove a rectangular section from the side of the cylinder using a block that is 18mm wide, 4mm thick, and 20mm high, centered verti... | height=20;
spacing=2;
$fn=90;
difference() {
union() {
cylinder(h=height, d=16);
translate([0,spacing,0]) cube([18,1,height]);
translate([0,-spacing-1,0]) cube([18,1,height]);
}
cylinder(h=height, d=14);
translate([0,-spacing,0]) cube([height*2,spacing*2,height*2]);
}
translate([... | glb/cad_c64327e955da.glb |
Create a circular disc with a radius of 90mm and a height of 2mm. In the center of this disc, create a cylindrical hole with a diameter of 8.2mm and a depth of 4mm. Around the center, arrange thirteen numbers from 1 to 13, spaced evenly at intervals of approximately 27.69 degrees. Each number should be positioned at a ... | $fn=60;
deg_sep=-360/13;
radius=70;
difference() {
cylinder($fn=180, r=radius+20, h=2);
for(n=[1:13]){
translate([sin(deg_sep*n)*radius,cos(deg_sep*n)*radius,1])
linear_extrude(2) text(text=str(n), size=20, valign="center", halign="center");
}
cylinder(d=8.2, h=4);
} | glb/cad_9b56b2e58406.glb |
Create a stepped gauge tool by constructing a series of rectangular blocks of varying lengths. Start with a base rectangular prism measuring 84mm in length, 20mm in width, and 3mm in height. On top of this base, add a sequence of 14 rectangular steps. Each step should have a width of 20mm and a height of 0.5mm, with th... | step_width=12;
width=20;
step_height=.5;
start_height=3;
end_height=10;
count=end_height-start_height;
difference() {
union() {
translate([0,-6,0])cube([(end_height-start_height+.5)*step_width,7,3]);
for(i = [start_height:step_height:end_height]) {
w = (end_height-i+.5)*step_width;
... | glb/cad_7b8bd74e3a3a.glb |
Create a rectangular storage container with a base thickness of 2mm and outer walls 1mm thick. The overall interior space is divided into a grid of cells, each with a height of 20mm. The grid layout consists of three rows. The first row contains four cells, each 40mm wide and 40mm deep. The second row also contains fou... | thickness_bottom=2;
thickness_outer_wall=1;
thickness_inner_wall=1;
cell_height=20;
cell_width=40;
cell_depth=40;
cell_layout = [
[1,2,3,4]
, [5,6,7,8]
, [9,9,9,9]
];
build_container(thickness_bottom,thickness_outer_wall,thickness_inner_wall,cell_height,cell_width,cell_depth,cell_layout);
function reverse... | glb/cad_a206f4113f06.glb |
Create a 3D model consisting of two distinct parts. First, construct a hollow rectangular box with outer dimensions of 70mm in length, 35mm in width, and 50mm in height. The walls and base of this box should be 1mm thick. On the top face of this box, create a rectangular cutout measuring 50mm by 3mm, positioned 10mm fr... | difference(){
cube([70,35,50]);
translate([1,1,1]){
cube([68,33,48]);
}
translate([10,16,45]){
cube([50,3,10]);
}
}
translate([0,-20,0]) {
difference() {
cube([89,1.6*6+1,40]);
translate([.6,.6,1]) {
for(p=[0:5]) {
translate([0,p*1.6,p... | glb/cad_9674f9ba6aa6.glb |
Create a rectangular plate with a width of 51mm, a height of 30mm, and a thickness of 1.8mm. From this base, remove two small square notches to create cutouts. The first notch is a 2mm by 2mm square with a height of 10mm, rotated 45 degrees and positioned at the origin so that its center aligns with the corner. The sec... | width = 51;
height = 30;
depth = 1.8;
width = 107.5;
height = 48;
depth = 1.2;
difference() {
cube([width,height,depth]);
rotate([0,0,45]) translate([-1,-1,0]) cube([2,2,10]);
translate([width,0,0]) rotate([0,0,45]) translate([-1,-1,0]) cube([2,2,10]);
} | glb/cad_0568be986872.glb |
Create a rectangular hollow shell with an outer dimension of 125mm width, 160mm depth, and 36mm height. The shell should have a uniform wall thickness of 2mm. On the two largest parallel faces, create four circular holes with a diameter of 5mm each; position these holes at the corners of the depth and width, specifical... | wall=2;
depth=160;
hole_d = 5;
hole_spacing = 92.5;
hole_offset = 15+hole_d/2;
width = hole_offset*2+hole_spacing;
height=30+wall*3;
rotate([90,0,0]) union(){
difference() {
cube([width,depth,height]);
translate([wall,0,wall]) cube([width-wall*2,depth,height-wall*2]);
translate([hole_offset... | glb/cad_c51272ab56ee.glb |
Create a rectangular base plate measuring 37mm wide, 80mm long, and 5mm thick. At the center of this plate, add a concentric cylindrical ring with an outer diameter of 44mm and an inner diameter of 34mm, extending 30mm upward. Cut a 180-degree opening out of the top half of this ring to create a U-shaped cradle. Finall... | $fn=180;
difference() {
cube([44/2+15,80,5]);
translate([10,10,0]) cylinder(d=4,h=20);
translate([10,70,0]) cylinder(d=4,h=20);
translate([42/2+5,10,0]) cylinder(d=4,h=20);
translate([42/2+5,70,0]) cylinder(d=4,h=20);
}
translate([10,40,0]) difference() {
cylinder(d=44,h=30);
cylinder(d=34,h=30);
transl... | glb/cad_e3442a2db7f9.glb |
Create a desk frame with an overall width of 125mm, a depth of 160mm, and a height of 41mm. The frame is a hollow rectangular shell with a wall thickness of 2mm.
At each of the four corners, create a cylindrical hole with a diameter of 5mm. These holes should be centered 17.5mm from the side edges and 17.5mm from the... | wall=2;
depth=160;
hole_d = 5;
hole_spacing = 92.5;
hole_offset = 15+hole_d/2;
width = hole_offset*2+hole_spacing;
height=31+wall*3+5;
box_width = width/2-wall*2;
box_height = height - wall*2-1;
echo(height);
echo(box_height);
desk_frame();
module desk_box() {
difference() {
cube([box_width, depth, box_he... | glb/cad_39bfc4874d90.glb |
Create a top plate for an electronics enclosure. Start with a rectangular base measuring 150mm by 100mm with a thickness of 2mm.
At each of the four corners of the base, create a cylindrical hole with a diameter of 1.9mm and a depth of 10mm.
In the center area, create a rectangular cutout measuring 28mm wide by 66mm... | board_height=66+2.27+2.9/2;
bottom_width=18;
board_width=18;
mount_height=70;
mount_width=18;
box_top();
module box_bottom() {
lip=4;
wall=3;
width=150+wall*2;
height=100+wall*2;
depth=30;
difference() {
union() {
difference() {
union() {
... | glb/cad_8d3460486510.glb |
Create two identical mounting plates, each measuring 18mm wide by 70mm high with a thickness of 3mm.
For each plate, center a rectangular cutout for an LCD screen that is 16.5mm wide and 27mm high. At the bottom center of the plate, create a smaller rectangular cutout for a USB port measuring 8.5mm wide and 3.4mm hig... | mount_width=18;
mount_height=70;
mount_thick=3;
top_mount();
translate([40,0]) faceplate();
module post_hole() {
difference() {
cylinder($fn=60, r=1.6,h=4.5);
cylinder($fn=60, d=1.6,h=4.5);
}
}
module faceplate() {
plate_height=63.4-9.16+3.2;
hole_y_off=9.16-1.6;
$fn=60;
tran... | glb/cad_f32a8f56ff34.glb |
Create a holder for dice tubes and miniatures. Start by creating a conical frustum with a height of 70mm, a bottom radius of 33mm, and a top radius of 36mm. At the top of this frustum, add a cylindrical rim with a height of 20mm and an outer radius of 36mm, featuring a concentric hole with a radius of 34mm to create a ... | $fn=360;
bwidth=66;
twidth=72;
sheight=70;
theight=20;
tube_d=26;
mini_d=25.5;
mini_l=43;
holder_2t1m();
rim();
module holder_2t1m() {
difference() {
cylinder(h=sheight,r1=bwidth/2,r2=twidth/2);
translate([0,-11,1]) {
translate([-tube_d/2-2,0,0]) dicode_tube();
translate([... | glb/cad_c048b471092e.glb |
Create a rectangular block measuring 100mm in length, 75mm in width, and 8mm in height. From this block, remove two identical cylindrical channels to create two parallel grooves. Each cylinder must have a radius of 12mm and a length of 120mm to ensure they pass completely through the block. Position the first cylinder ... | translate([-50,-75/2]) {
difference() {
cube([100,75,8]);
rotate([90,0,90]) translate([14,13,-10]) cylinder(h=120,r=12);
rotate([90,0,90]) translate([75-14,13,-10]) cylinder(h=120,r=12);
}
} | glb/cad_bc58d0dd481a.glb |
Create a rectangular base plate measuring 140mm in length, 70mm in width, and 5mm in height. Centered along the width of this base, place two identical vertical hollow tubes. Each tube must have an outer radius of 15mm and an inner radius of 13mm, creating a wall thickness of 2mm, and stand 75mm tall. Position the firs... | translate([-70,-35,0])
union() {
cube([140,70,5]);
translate([35,35]) {
difference() {
cylinder(h=75,r=15);
cylinder(h=75,r=13);
}
}
translate([105,35]) {
difference() {
cylinder(h=75,r=15);
cylinder(h=75,r=13);
}
}
} | glb/cad_4315014660c8.glb |
Create a thin, square plate measuring 100mm by 100mm with a thickness of 0.2mm. | countIdx=0;
size=100;
offset=size+10;
for (i=[0:countIdx])
for (j=[0:countIdx])
translate([i*offset,j*offset,0]) cube([size,size,.2]); | glb/cad_e0b67e090ac4.glb |
Create a rectangular open-top box and a matching flat lid. The box should have outer dimensions of 170mm in width, 150mm in depth, and 200mm in height. The walls of the box must be 1.35mm thick.
For the lid, create a rectangular plate with outer dimensions of 170mm by 150mm and a thickness of 2mm. The lid should feat... | wall_width=.45*3;
lid_tol=.3;
difference() {
cube([170,150,200]);
translate([wall_width,wall_width,wall_width]) cube([170-wall_width*2,150-wall_width*2,600]);
}
module wedge() {
intersection() {
translate([-50,-100,0]) difference() {
cube([50,200,10]);
rotate([0,-atan(.2),0]... | glb/cad_4834dc418695.glb |
Create a grid of 12 identical open-topped boxes arranged in a 3 by 4 layout. Each individual box unit is constructed from walls 1.2mm thick. The outer dimensions of each unit are 48.4mm wide by 48.4mm deep, with a total height of 91.2mm. The interior cavity of each box is 46mm square and 90mm deep. To create the struct... | wall=1.2;
height=90;
width=46;
gap_width=20;
gap_offset_height=20;
gap_top=5;
for (i=[0:3],j=[0:2]) {
translate([(width+wall)*i,(width+wall)*j,0]) ball_box();
}
module ball_box() {
difference() {
cube([width+wall*2, width+wall*2, height+wall]);
translate([wall,wall,wall]) cube([width,width,heig... | glb/cad_9bc248c3da4b.glb |
Create a storage organizer consisting of three identical open-topped rectangular bins arranged side-by-side. Each bin is formed by a hollow rectangular shell with outer dimensions of 133.4mm in length, 47.9mm in width, and 46.5mm in height. The walls of these shells must be exactly 1.2mm thick.
To create the open-end... | wall=1.2;
length=131;
width=45.5;
height=width+1.0;
for (x = [0:3]) {
translate([0,(width+wall)*x,0]) difference() {
cube([length+wall*2, width+wall*2, height]);
translate([wall,wall,wall])cube([length, width, height]);
translate([0, wall+.25*width, wall+.25*height]) cube([wall, width*.5, h... | glb/cad_fddc839da40e.glb |
Create a thin-walled bracket with a thickness of 0.8mm and a total height of 10mm. Construct the main body by extruding a profile that forms a U-shape: start with a vertical rectangle 0.8mm wide and 12mm high, add a horizontal arm 5mm long and 0.8mm thick extending from the top, and a second vertical rectangle 0.8mm wi... | $fn=60;
length=135;
thickness=.8;
difference() {
linear_extrude(10) {
square([thickness,12]);
translate([0,12-thickness,0]) square([5,thickness]);
translate([5-thickness,12-thickness,0]) square([thickness,12]);
translate([-13+5-thickness,24-thickness*2,0]) square([13,thickness]);
... | glb/cad_aa1de301f372.glb |
Create a rectangular box with outer dimensions of 120mm in width, 160mm in depth, and 60mm in height. Hollow out the interior to create two separate side-by-side compartments. To do this, remove two rectangular volumes, each measuring 58mm wide, 158mm deep, and 80mm high. Position the first cutout 1mm from the left and... | difference() {
cube([120,160,60]);
translate([1,1,1]) cube([120/2-2,160-2,80]);
translate([61,1,1]) cube([120/2-2,160-2,80]);
} | glb/cad_c5b8c38cb0c4.glb |
Create a tapered container with a lid. For the main body, construct a conical frustum with a height of 70mm, a bottom diameter of 66mm, and a top diameter of 72mm. This body should have a uniform wall thickness of 2mm, creating a hollow interior. On top of this frustum, add a vertical cylindrical lip with a height of 2... | wall_thickness=2;
bottom_width=66;
top_width=72;
slope_height=70;
lip_height=20;
tolerance=.09;
hole_width=50;
difference() {
cylinder(h=slope_height,d1=bottom_width,d2=top_width);
translate([0,0,wall_thickness])
cylinder(h=slope_height
,d1=bottom_width-wall_thickness*2
... | glb/cad_df986eaefa74.glb |
Create a pencil holder block by starting with a solid rectangular base measuring 166.6mm in width, 21.6mm in depth, and 181mm in height. From this main volume, remove two rectangular slabs to create open channels; each slab must be 165mm wide, 5mm deep, and 180mm high, positioned with a 0.8mm wall thickness between the... | wall = 0.8;
width = 165;
depth = 5;
height = 180;
pencil = 10;
pencil_height = 75;
holders = 2;
pencil_holders = 4;
pencil_space = 20;
full_cube_depth = depth*holders+wall*(holders+1)+pencil+wall*3;
full_cube_width = width+wall*2;
full_cube_height = height+wall;
difference() {
cube([full_cube_width, full_cube_dep... | glb/cad_f266fcb2008a.glb |
Create two identical holders positioned side-by-side with a spacing of 64.88mm between their centers. Each holder is a tapered hollow cylinder with a total height of 36.6mm. The outer wall of the holder starts with a radius of 32.6mm at the base and tapers outward to a radius of 37.6mm at the top. The interior is hollo... | $fn=180;
o = max(62/72,52/62);
o=.88;
echo(o);
r1=31;
r2=36;
wall=1.6;
spacing=72*o+wall;
s_h=30;
holder();
translate([spacing,0,0]) holder();
module holder() {
scale([o,1,1]) {
difference() {
cylinder(r1=r1+wall,r2=r2+wall,h=35+wall);
translate([0,0,wall]) cylinder(r1=31,r2=36,h=35);
}
tra... | glb/cad_536cae3296e6.glb |
Create a rectangular grid organizer with outer dimensions of 121mm width, 163mm depth, and 40mm height. The structure consists of a base shell with a wall thickness of 0.8mm. The interior is divided into a grid of 3 columns and 4 rows. To achieve this, place vertical walls of 0.8mm thickness at intervals of approximate... | depth=163;
width=121;
height=40;
wall=.8;
inner_depth=163-wall*2;
inner_width=121-wall*2;
cols=3;
rows=4;
span_cols=[[0,1],[1,1],[2,1],[3,1],[4,1],[5,1]];
span_rows=[[0,0]];
col_width=inner_width/cols;
row_width=inner_depth/rows;
union() {
difference() {
cube([width,depth,height]);
translate([wall,... | glb/cad_2cb1f1d68290.glb |
Create a rectangular block with a height of 5mm, a width of 131.6mm, and a depth of 60mm. Within this block, carve out a grid of 21 cylindrical holes, each with a diameter of 18.2mm and a depth of 10mm, arranged in 3 rows and 7 columns. Position the holes so that the outer walls of the block are 0.8mm thick and the spa... | d=18.2;
spacing=.4;
wall=.8;
rows=3;
cols=7;
width=wall*2+spacing*(cols-1)+d*cols;
depth=wall*2+spacing*(rows-1)+d*rows;
height=5;
difference() {
cube([width,depth,height]);
for(x=[0:cols-1],y=[0:rows-1]) {
x_off = wall+x*(d+spacing)+d/2;
y_off = wall+y*(d+spacing)+d/2;
translate([x_off,y_off,1]) cylinder($fn=90... | glb/cad_08034c776784.glb |
Create a holder by constructing a main rectangular sleeve with outer dimensions of 102.1mm in width, 12.1mm in depth, and 36.6mm in height. Hollow out the center of this sleeve to create a cavity measuring 100.5mm in width, 10.5mm in depth, and 35mm in height, leaving a wall thickness of 0.8mm on the sides and top/bott... | i_d = 10.5;
i_h = 35;
i_w = 100.5;
wall_thick = .8;
arm_length = 20;
arm_thick = 5;
pad_size = 15;
o_d = i_d+wall_thick*2;
o_h = i_h+wall_thick*2;
o_w = i_w+wall_thick*2;
translate([0, arm_length, 0]) difference() {
cube([o_w, o_d, o_h]);
translate([wall_thick, wall_thick, 2]) cube([i_w, i_d, i_h+100]);
tr... | glb/cad_dedeca54e6dd.glb |
Create a truncated cone with a height of 85mm, a base diameter of 60mm, and a top diameter of 35mm. From the top surface, remove a rectangular block measuring 25mm in width, 15mm in depth, and 25mm in height, centered relative to the top face. The resulting shape should be a hollowed-out conical shell with a rectangula... | $fn=180;
difference() {
cylinder(d1=60,d2=35,h=85);
translate([-25/2,-15/2,-25+85]) cube([25,15,25]);
} | glb/cad_7457d7c9c7e3.glb |
Create a hexagonal honeycomb grid with a total height of 5mm. The overall outer boundary of the model is a regular hexagon with a diameter of 230mm. Within this boundary, create a repeating pattern of hexagonal cells, each with an internal diameter of 10mm and a wall thickness of 1mm. The cells should be arranged in a ... | module hc_column(length, cell_size, wall_thickness) {
no_of_cells = floor(length / (cell_size + wall_thickness)) ;
for (i = [0 : no_of_cells]) {
translate([0,(i * (cell_size + wall_thickness)),0])
circle($fn = 6, r = cell_size * (sqrt(3)/3));
}
}
module honeycomb (length, width, height... | glb/cad_76dde5d77aec.glb |
Create two identical hollow oval-shaped sleeves. For each sleeve, construct a solid capsule-like volume by creating a hull between two cylinders, each with a diameter of 33.3mm and a height of 67mm, positioned 18mm apart center-to-center. Hollow out the center of this volume by removing a smaller hull formed by two cyl... | $fn=60;
l=42;
h=77;
w=23.4;
wall=.45*2;
tol=.1;
difference() {
hull() {
cylinder(h=h-10,d=w+wall*4+tol);
translate([l-w,0,0]) cylinder(h=h-10,d=w+wall*4+tol);
}
translate([0,0,wall]) hull() {
cylinder(h=h-10,d=w+wall*2+tol);
translate([l-w,0,0]) cylinder(h=h-10,d=w+wall*2+to... | glb/cad_811710e6a3e7.glb |
Create a rectangular box with outer dimensions of 200mm in length, 80mm in width, and 40mm in height. Hollow out the center of this box by removing a smaller rectangular volume that is 197mm long, 77mm wide, and 39.4mm high, leaving a wall thickness of 1.5mm on all sides and a base thickness of 0.6mm. On top of this ba... | l=200;
w=80;
l2=170;
w2=65;
h=40;
wall=1.5;
difference() {
cube([l,w,h]);
translate([wall,wall,.6]) cube([l-wall*2,w-wall*2,h]);
}
translate([0,w-wall,0]) difference() {
cube([l2,w2,h]);
translate([wall,wall,.6]) cube([l2-wall*2,w2-wall*2,h]);
} | glb/cad_86880f717dc6.glb |
Create a rectangular plate measuring 210mm in length, 120mm in width, and 1mm in thickness. Remove several cylindrical holes of varying diameters from this plate. Place two holes with a 2mm diameter at the center of the two shorter edges, specifically at coordinates (0, 60, 0) and (210, 60, 0). Create a 5mm diameter ho... | $fn=90;
difference() {
cube([210,120,1]);
translate([0,60,0]) cylinder(d=2,h=10);
translate([210,60,0]) cylinder(d=2,h=10);
translate([200,60,0]) cylinder(d=5,h=10);
translate([200,10,0]) cylinder(d=6,h=10);
translate([10,10,0]) cylinder(d=6,h=10);
translate([105,10,0]) cylinder(d=6,h=10);
... | glb/cad_742b93dc5288.glb |
Create a rectangular block measuring 50mm by 50mm by 100mm. Hollow out the center of the block by removing a smaller rectangular volume of 30mm by 30mm by 95.4mm, positioned 18mm from the X and Y edges and starting 1.8mm from the base. Cut a narrow slot 7mm wide and 25mm long into the side of the block, starting 1.2mm ... | difference() {
cube([50,50,100]);
translate([18,18,1.8]) cube([30,30,100-1.8-.4*6]);
translate([1.2,20,1.8]) cube([7,25,100-1.8-.4*6]);
translate([3,.8,85]) rotate([90,0,0]) linear_extrude(.8) {
text("How");
translate([0,-15,0]) text("Many");
translate([0,-30,0]) text("Months");
... | glb/cad_4611020f5911.glb |
Create a geometric structure consisting of a flat rectangular base and several vertical walls. Start by creating a rectangular base plate measuring 74mm in length, 15mm in width, and 1mm in height. At each end of this base, construct a vertical wall section that is 17mm wide, 15mm deep, and 30mm high. Within each of th... | disp=57;
h=30;
spacer();
translate([0,90,0]) spacer();
cube([disp+17,105,1]);
module spacer() {
translate([0,0,h-1]) {
translate([0,0,1]) difference() {
cube([17,15,15]);
translate([1,0,0]) cube([15,15,15]);
}
translate([disp,0,0]) {
translate([0,0,1]) difference() {
cube([17,15,15]);
translate([1,0,0]) cube([... | glb/cad_adfcbe9cc652.glb |
Create a circular ring with an outer diameter of 22mm and a total height of 7mm. The ring's cross-section is a custom profile: it starts with a base wall 7mm high and 1mm thick, then steps inward to a height of 5mm with a wall thickness of 1mm, and finally extends to a total height of 7mm. To achieve this, create a sol... | $fn=90;
difference() {
rotate_extrude() polygon(points=[
[0,0],
[0,7],
[13,7],
[12,5],
[12,2],
[13,0]
]);
cylinder(h=7,d=22.1);
} | glb/cad_4a9c205142d7.glb |
Create a rounded cube with overall dimensions of 10mm x 10mm x 10mm. The shape should be constructed such that every edge and corner is filleted with a radius of 1mm. Position the center of the object at the coordinates (10, 0, 0) and rotate the entire geometry 45 degrees around the Z-axis. | $fn=180;
rotate([0,0,45], [0,0,0]) translate([10,0,0]) rounded_cube(10,10,10,1);
module rounded_cube(x,y,z,r) {
hull() {
translate([r,r,r]) sphere(r=r);
translate([x-r,r,r]) sphere(r=r);
translate([r,y-r,r]) sphere(r=r);
translate([x-r,y-r,r]) sphere(r=r);
translate([r,r,z-... | glb/cad_51b77d941bf2.glb |
Create a ring-shaped object by rotating a rounded square profile around a central axis. The profile is a square with side lengths of 10mm and corner radii of 1mm. Position this profile so that its center is 30mm away from the axis of rotation. Perform a full 360-degree rotation of this profile to generate a solid torus... | $fn=180;
translate([30,0,0]) rotate_extrude($fn=360) translate([20,0,0]) rounded_square(10,10,1);
module rounded_square(x,y,r) {
hull() {
translate([r,r,0]) circle(r=r);
translate([x-r,r,0]) circle(r=r);
translate([r,y-r,0]) circle(r=r);
translate([x-r,y-r,0]) circle(r=r);
}
} | glb/cad_8516c4328464.glb |
Create a box and a matching lid. For the box, create a cube with outer dimensions of 100mm x 100mm x 98.2mm. Hollow out the center by removing a cube of 96.4mm x 96.4mm x 98.2mm, positioned 1.8mm from each side and 1.8mm from the bottom, leaving walls that are 1.8mm thick.
For the lid, create a base plate that is 100m... | $fa=1;
$fs=.2;
boxsize = 100;
wallthickness = .6*3;
capdepth=5;
tol=.08;
innerbox = boxsize - wallthickness*2;
capbox = boxsize - wallthickness*2 - tol*2;
hole=50;
opening=hole*1.5;
openheight=hole/2;
difference() {
cube([boxsize,boxsize,boxsize-wallthickness]);
translate([wallthickness,wallthickness,wallthi... | glb/cad_d099aeed30dd.glb |
Create a hollow cylindrical ring with a wall thickness of 1mm and a height of 10mm. The ring should have an inner radius of 10mm and an outer radius of 11mm. Ensure the geometry is smooth and circular. | $fn=180;
rotate_extrude()
translate([10,0,0]) square([1,10]); | glb/cad_9647bd1182a9.glb |
Create a rectangular open-top box with outer dimensions of 150mm in length, 80mm in width, and 40mm in height. The box should have a uniform wall thickness of 1.5mm for the sides and a base thickness of 0.6mm. To achieve this, start with a solid block of the outer dimensions and remove a central rectangular volume star... | l=150;
w=80;
h=40;
wall=1.5;
difference() {
cube([l,w,h]);
translate([wall,wall,.6]) cube([l-wall*2,w-wall*2,h]);
} | glb/cad_c7d7814412e4.glb |
Create a rectangular hollow container with an outer length of 148.2mm, a depth of 66.6mm, and a height of 66.6mm. The walls and the base should have a uniform thickness of 1.6mm. To form the interior cavity, remove a central rectangular block measuring 145mm in length, 65mm in depth, and 65mm in height, positioned 1.6m... | length=145;
depth=65;
height=65;
wall=1.6;
spacing=depth+wall;
camfer=.5;
difference() {
union() {
holder();
translate([0,depth+wall,0]) holder();
}
rotate([0,45,0]) translate([-camfer/2,0,-camfer/2]) cube([camfer,200,camfer]);
translate([0,0,height+wall]) rotate([0,45,0]) translate([-... | glb/cad_27b5f4289453.glb |
Create a base plate by extruding a 2mm thick flat shape formed by the convex hull of three 5mm radius circles centered at [0, 75], [150, 0], and [150, 150]. At the position [10, 75], add a hollow cylindrical tube with an outer diameter of 15mm and an inner diameter of 5mm, extending 150mm in height. Tilt this tube 30 d... | angle=60;
$fn=90;
difference() {
union() {
linear_extrude(height=2) {
difference() {
hull() {
translate([0,75,0]) circle(r=5);
translate([150,0,0]) circle(r=5);
translate([150,150,0]) circle(r=5);
}
... | glb/cad_a4557d3867ab.glb |
Create a cylindrical base with a diameter of 25mm and a height of 8mm. Centered within this base, remove a vertical cylindrical hole with a diameter of 7.5mm. This hole should start 1mm above the bottom surface of the base and extend completely through the top, leaving a 1mm thick solid floor at the bottom. | base=25;
hole=7.5;
hole_depth=7;
$fn=180;
difference() {
cylinder(d=base,h=hole_depth+1);
translate([0,0,1]) cylinder(d=hole,h=100);
} | glb/cad_ffdc34589afd.glb |
Create a hollow cylindrical sleeve with an outer diameter of 71.8mm, an inner diameter of 69.8mm, and a height of 18mm. Cut two rectangular slots through the walls of this cylinder: one slot measuring 4mm wide by 10mm long by 3mm deep, centered vertically at a height of 7mm from the base, and a second slot measuring 2m... | id = 69.8;
od = id+2;
h = 18;
$fn=180;
difference() {
cylinder(d=od,h=h);
translate([0,0,1]) cylinder(d=id,h=h);
translate([-2,od/2-5,7])cube([4,10,3]);
translate([-10,od/2-5,7.5])cube([2,10,2]);
}
difference() {
cylinder(d=9,h=h);
cylinder(d=6,h=h);
}
translate([75,0,0]) {
cylinder(d=5.8,h... | glb/cad_740cc85b2c09.glb |
Create a square tray with an outer dimension of 62mm by 62mm and a total height of 15mm. The tray features a central hollowed-out area that is 60mm by 60mm, leaving a wall thickness of 1mm on all four sides. The floor of the tray is 1mm thick, and the interior walls rise to a height of 14mm. Within the floor of the tra... | spacing=30;
hole=7.5;
hole_depth=7;
$fn=60;
x=2;
y=2;
wall_height=7;
wall_width=1;
difference() {
cube([x*spacing+wall_width*2,y*spacing+wall_width*2,wall_width+hole_depth+wall_height]);
translate([wall_width,wall_width,wall_width+hole_depth]) cube([x*spacing,y*spacing,wall_width+hole_depth+wall_height]);
... | glb/cad_f4b72ba87175.glb |
Create a long, thin rectangular bracket with a total length of 180mm and a wall thickness of 0.9mm. The main body is composed of several stacked rectangular sections: a base section 15mm high, a middle wire-guide section 15mm high, and a top section 12mm deep. To form the profile, integrate a 20mm wide lip centered at ... | $fn=60;
length=180;
lip=20;
base_height=15;
base_over=5;
wire_height=15;
top_depth=12;
wrap_height=5;
thickness=.9;
rotate([0,90,0]) translate([-length,0,0]) union() {
difference() {
union() {
union() {
cube([length,thickness,base_height]);
translate([0,-base_ov... | glb/cad_aec7b7539a95.glb |
Create a rectangular base measuring 135mm in length, 25mm in width, and 8mm in height. Along the center of the width, at a height of 21mm, create a series of circular holes with a diameter of 2mm. Position the first hole 5mm from the starting edge. Place subsequent holes every 20mm along the length, and place the final... | $fn=60;
length=135;
difference() {
union() {
cube([length,1,8]);
cube([length,25,1]);
}
translate([5,21,-5]) cylinder(d=2,h=10);
if (length > 20) {
for(i=[1:floor(length/20)-1]) {
translate([20*i,21,-5]) cylinder(d=2,h=10);
}
}
translate([length-5,21,-... | glb/cad_7db6ce3286db.glb |
Create a thin-walled bracket with a total length of 200mm and a thickness of 0.8mm. The structure is formed by three rectangular sections: a base plate measuring 20mm wide by 0.8mm thick by 200mm long, a vertical side wall measuring 0.8mm wide by 20mm high by 200mm long positioned at the 20mm mark on the x-axis, and a ... | $fn=60;
length=200;
thickness=.8;
difference() {
union() {
cube([20,thickness,length]);
translate([20,0,0]) cube([thickness,20,length]);
translate([20,20,0]) cube([20,thickness,length]);
translate([39,20,0]) cube([thickness,20,length]);
}
translate([5,-5,5]) rotate([0,90,90])... | glb/cad_a14099ebd398.glb |
Create a storage cubby with a main outer shell and an internal grid of holes. First, construct the outer shell as a rectangular box with a total width of 62mm, a height of 71mm, and a depth of 42mm. Hollow out the center of this box by removing a smaller rectangular volume of 60mm by 40mm by 69mm, leaving walls that ar... | d=18.2;
spacing=.4;
wall=.8;
rows=6;
cols=3;
width=wall*2+spacing*(cols-1)+d*cols;
depth=wall*2+spacing*(rows-1)+d*rows;
height=5;
cubby_width=60;
cubby_walls=1;
cubby_height=70;
cubby_depth=40;
full_cubby_width=cubby_width+cubby_walls*2;
full_cubby_height=cubby_height+cubby_walls;
full_cubby_depth=cubby_depth+cubby_wa... | glb/cad_dac2450cae3f.glb |
Create a rectangular slab measuring 70mm in length, 10mm in width, and 1mm in height. From this main body, remove two smaller rectangular sections to create cutouts. First, remove a 5mm by 5mm square block positioned 22mm from the left edge and centered along the width. Second, remove a 5mm by 1mm rectangular strip pos... | use <bolt-cutouts.scad>
difference() {
cube([70,10,1]);
translate([22,0,0]) cube([5,5,5]);
translate([20,4,0]) cube([5,1,5]);
} | glb/cad_6ece8c85390d.glb |
Create a rectangular open-top box with outer dimensions of 220mm in length, 142mm in width, and 40mm in height. The box should have a uniform wall thickness of 1.5mm. Inside the main enclosure, add a dividing wall that is also 1.5mm thick and 40mm high, positioned 80mm from one of the shorter ends. This divider should ... | l=220;
w=142;
h=40;
wall=1.5;
difference() {
cube([l,w,h]);
translate([wall,wall,.6]) cube([l-wall*2,w-wall*2,h]);
}
translate([80,0,0]) cube([wall,142,h]);
translate([0,142/2-wall/2,0]) cube([80,wall,h]); | glb/cad_9eae24879c1b.glb |
Create a thin square plate measuring 50mm by 50mm with a height of 0.2mm. Center the plate so that its middle is aligned with the origin of the coordinate system. | cube_size=50;
bed_offset=90;
translate([-cube_size/2,-cube_size/2,0]) {
cube([cube_size,cube_size,.2]);
} | glb/cad_b25eb0ccd90a.glb |
Create a 3D model consisting of two joined rectangular prisms. First, construct a base rectangular block with a width of 25.4 mm, a depth of 152.4 mm, and a height of 140.0 mm. Attached to this base, add a second rectangular block with a width of 88.9 mm, a depth of 76.2 mm, and the same height of 140.0 mm. Position th... | w1=1*25.4;
w2=3.5*25.4;
h=11/2*25.4;
d1=6*25.4;
d2=3*25.4;
cube([w1,d1,h]);
cube([w2,d2,h]); | glb/cad_7242dcc67227.glb |
Create a rectangular open-top container with an outer width of 39.6mm, a depth of 127.6mm, and a height of 21.8mm. The walls should have a thickness of 0.8mm. The container is tilted 5 degrees along the X-axis and is positioned 1.2mm above the base plane. To form the interior, remove a central block measuring 38mm by 1... | b_width = 38;
b_di = 21;
wall = .8;
lift = 5;
b_count = 6;
difference() {
translate([0,0,1.2]) rotate([lift,0,0]) {
difference() {
cube([b_width+wall*2, b_di*b_count+wall*2, b_di+wall]);
translate([wall,wall,0]) cube([b_width, b_di*b_count, b_di*wall*2]);
translate([0,0,... | glb/cad_e6007040b33a.glb |
Create two identical rectangular plates, each 3mm thick. For each plate, create a grid of 12 circular holes, arranged in 3 rows and 4 columns. Each hole must have a diameter of 19mm. The spacing between the holes and between the holes and the outer edges of the plate should be 2mm.
On the first plate, add four cylind... | $fn=90;
hole=19;
spacing=2;
wall=5;
rows=3;
cols=4;
screw_post=1.6;
screw=2;
post=screw*3;
post_height=20;
base_width=wall*2+hole*cols+spacing*(cols-1);
base_depth=wall*2+hole*rows+spacing*(rows-1);
base_height=3;
union() {
base();
translate([wall,wall,0]) post();
translate([wall,base_depth-wall,0]) post()... | glb/cad_6a96fd02781e.glb |
Create a sensor housing consisting of a main box and a matching lid.
Construct the main box as a rectangular shell with outer dimensions of 119.35mm in length, 36.95mm in width, and 22mm in height. The walls should have a thickness of 1.2mm. Apply a 1mm chamfer to all exterior edges of the box. On the bottom exterior... | use<BOSL/masks.scad>
use<ruler.scad>
include<components/magnetic_contact.scad>
include<components/battery_holder.scad>
include<components/mysensor.scad>
BOX_EN = true;
LID_EN = true;
ELECTRONICS_EN = false;
BOX_TRANS = false;
LID_TRANS = false;
BOX_EDGING = "chamfer";
ENGRAVE_L1 = "sensor housing";
ENGRAVE_L2 ... | glb/cad_e7e8a5c71fba.glb |
Create a 3D model of an LCD cover. Start with a main body consisting of a base rectangular slab 155mm wide, 59.8mm deep, and 2mm thick. Add structural walls to the sides and rear, including a rear reinforcement block 110mm wide and 4mm deep.
On the top surface, create a large rectangular cutout for the LCD window mea... | include <bear_logo.scad>
module main_body()
{
difference()
{
union()
{
translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] );
translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] );
translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0])... | glb/cad_f4a10e66718a.glb |
Create a generic 3D model consisting of several thin, extruded elements all with a height of 0.4mm. First, create the text "FULL BEAR" in a bold Helvetica font with a size of 7mm, centered and positioned at coordinates (-71, 51, 0.4) and rotated 180 degrees. Next to it, create the text "PRUSA" in a bold Helvetica font ... | include <bear_logo.scad>
difference()
{
union()
{
translate([-71,51,0.4]) rotate([180,0,0]) linear_extrude(height = 0.4)
{ text("FULL BEAR",font = "helvetica:style=Bold", size=7, center=true); }
translate([-16,51,0.4]) rotate([180,0,0]) linear_extrude(height = 0.4)
{ text("PRUS... | glb/cad_db5cd681bb2e.glb |
Create a 3D model of an LCD cover. Start with a main body consisting of a base rectangular block 155mm wide, 59.8mm deep, and 2mm thick, centered at x=-77, y=-4.5, z=0. Add structural walls by placing two thin rectangular slabs 155mm wide and 2mm thick: one at y=-4.5, z=0 rotated 35 degrees on the X-axis with a height ... | include <bear_logo.scad>
module main_body()
{
difference()
{
union()
{
translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] );
translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] );
translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0])... | glb/cad_9dab796a1c4d.glb |
Create a 3D model of an LCD cover. Start with a main rectangular body measuring 155mm in length, 59.8mm in width, and 2mm in height. Add structural thickness by adding a second rectangular section of 155mm by 2mm by 20.08mm, rotated 35 degrees along the X-axis, and two smaller blocks of 7mm by 5mm by 15mm, also rotated... | include <bear_logo.scad>
module main_body()
{
difference()
{
union()
{
translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] );
translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] );
translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0])... | glb/cad_ae687849306f.glb |
Create a flat, decorative plate for an LCD cover. All elements should have a uniform thickness of 0.4mm. First, add the text "PRUSA" in a bold Helvetica font with a size of 11mm, centered at coordinates (-14, 51, 0.4) and rotated 180 degrees. Next to it, add the text "HALF BEAR" in a bold Helvetica font with a size of ... | include <bear_logo.scad>
difference()
{
union()
{
translate([-71,51,0.4]) rotate([180,0,0]) linear_extrude(height = 0.4)
{ text("HALF BEAR",font = "helvetica:style=Bold", size=7, center=true); }
translate([-14,51,0.4]) rotate([180,0,0]) linear_extrude(height = 0.4)
{ text("PRUS... | glb/cad_d96aca415678.glb |
Create a 3D model of an LCD cover. Start with a main body consisting of a base rectangular slab 155mm wide, 59.8mm deep, and 2mm thick, centered at x=-77, y=-4.5, z=0. Add structural walls by placing a 155mm by 2mm by 11.8mm slab at x=-77, y=-14.7, z=14.2 and another 155mm by 2mm by 17mm slab at x=-77, y=54, z=0. Incor... | include <bear_logo.scad>
module main_body()
{
difference()
{
union()
{
translate( [ -77 , -4.5 , 0 ] ) cube( [ 155 , 59.8 , 2 ] );
translate( [ -77 , -4.5 , 0 ] ) rotate([35,0,0]) cube( [ 155 , 2 , 20.08 ] );
translate( [ -77 , -3.5 , -1 ] ) rotate([35,0,0])... | glb/cad_1ed03441d327.glb |
Create a holder for an E3D Chimera and Cyclops hotend. The main body is a cylindrical shell with a height of 20mm and an outer diameter of 21mm.
At the base, create a central circular opening with a diameter of 3mm. Around this center, place three equidistant mounting holes with a diameter of 5.5mm, each with a depth... | fnx= 256;
fnh= 128;
fnm= 64;
fnl= 32;
$fn= fnm;
printer_nozzle_d= .35;
function compensate(dimension) = dimension * 1.016 + .528;
aqua_h= 20;
aqua_w= compensate(30);
aqua_a= compensate(21);
aqua_p= 6;
aqua_mount_z= 10;
aqua_mount_xy= 9;
aqua_mount_d= compensate(3);
aqua_mount_head_d= compensate(5.5);
aqua_mounta... | glb/cad_3d0b974690a4.glb |
Create a pet-feeder consisting of a tapered central hub with radiating fins. Start by creating a conical frustum with a height of 60mm, a base diameter of 95mm, and a top diameter of 15.4mm. Center this shape vertically. Through the center of this hub, remove a cylindrical hole with a diameter of 5.4mm and a 20-sided p... | axle_diameter = 0.54;
base_diameter = 9.5;
top_diameter = axle_diameter + 1;
height = 6;
nozzle_diameter = 0.04;
servings_per_day = 4;
num_days_capacity = 3;
num_sections = servings_per_day * num_days_capacity;
translate([0,0,height/2]){
difference(){
union(){
cylinder(height, d1=base_... | glb/cad_9cea9a08ab68.glb |
Create a cylindrical asset for laser cutting with a total height of 6mm and a radius of 12.5mm, centered on the origin. Bore a vertical hole through the center of this cylinder with a radius of 1mm and a height of 10mm to ensure it passes completely through the object. Finally, wrap a torus around the outer perimeter o... | $fn=100;
difference() {
cylinder(h = 6, r1 = 25/2, r2 = 25/2, center = true);
cylinder(h =10, r1 = 1, r2 = 1, center = true);
rotate_extrude($fn=100)translate([(25/2)+(1.5/2),0,0])circle(r=2);
} | glb/cad_3661c4303205.glb |
Create a wheel with a total width of 15mm. The main body consists of a rim and a spoke system. The rim is a ring with a height of 5mm and an outer diameter of approximately 97mm (calculated from a 93mm internal tire diameter plus a 4mm cross-section).
The spoke area is designed using a "circlefit" pattern, which cons... | wheelWidth = 15;
tireCSDiameter = 4;
tireID = 93;
tireStretch = 1.01;
rimHeight = 5;
timingHoles = 0;
timingHolePad = [1,0.5,3];
directional = true;
vaneCount = 30;
vaneHeight = 7;
vaneWidth = 1;
vaneLength = 4;
vaneOffset = 1;
treadStyle = "none";
knobSize = [90,1.5,... | glb/cad_f6c4a10dc99b.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.