Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a support base for an alpha Stirling engine. Start with a central vertical plate that is 25mm thick and 50mm high. On this plate, create two cylindrical housings for syringes, positioned symmetrically along the Y-axis at an offset of 30mm from the center (60mm apart). Each housing consists of an outer cylinder w... | $fa = 1;
$fs = 0.5;
d_tube = 15.5;
e_silicone = 2;
epaisseur = 25;
epaisseur_plaque = 5;
entraxe = 60;
fraisage = 5;
ep_rect = 10;
d_trou = 2;
hauteur = 50;
ecrou_diameter = 7.5;
width = 3;
ecrou_width = 3 ;
e_base = 5;
module pied() {
difference() {
union() {
translate ([0, -(entraxe)/2, epaisseur/2]) rotate(... | glb/cad_f12f96e2f548.glb |
Create a support for an alpha Stirling engine. Start with a central body formed by the union of a cube and a cylinder. The cube is 40mm wide, 14mm deep, and 20mm high, centered on the Z-axis. The cylinder has a radius of 10mm and a height of 20mm, also centered.
Subtract a central vertical hole with a radius of 2.5mm ... | h =3;
d_roulement = 8;
d_axe = 5;
d_support = 20;
entre_axe = 80;
largeur = 20;
hauteur = 45;
largeur_base = 50;
longueur_base = 50;
e_base = 5;
module support() {
union () {
difference() {
corps();
translate([0,0, -largeur/2-3 ]) tore();
translate([0,0, largeur/2+3 ]) tore();
translate([hauteur-5... | glb/cad_f2db4034cc04.glb |
Create a customizable stamp by starting with a rectangular base block that is 40mm long, 10mm wide, and 10mm high. Centered on the top face of this block, add raised 3D text that reads "enter text here". The text should be 10mm in size, scaled down to 40% of its original width, and extruded to a height of 5mm. Ensure t... | text="enter text here";
letter_size=10;
length=40;
width=10;
height=10;
cube([length,width,height],true);
translate([length/2 -length/15,-1.5,height/2 -2.5])
{
linear_extrude(5)
{
scale(0.4)
{
mirror(0,90,0)
{
text(text,size=letter_size);
};
... | glb/cad_2f27debfb8f1.glb |
Create a Mini Extended Spool Holder by constructing a base and a supporting arm. Start with a rectangular base measuring 30mm wide, 43mm long, and 3mm thick. On top of this base, add a second rectangular section measuring 30mm wide, 33mm long, and 3mm thick, aligned to one edge.
At the far end of the base, create a v... | rotate([0,-90,0]) {
cube([30,43,3]);
translate([0,0,3])
cube([30,33,3]);
translate([3,27,-4])
cube([24,3,4]);
translate([3,20,-4])
cube([24,7,3]);
translate([3,20,-2.5])
rotate([0,90,0])
cylinder(r=1.5, h=24, $fn=16);
translate([0,33,3])
rotate([0,90,0])
cylinder(r=3, h=30, $fn=32);
translate([0,43,1.5])
rotate([... | glb/cad_fc2562eb2836.glb |
Create a parametric case designed for a power supply unit with an internal volume of 76mm width, 136mm length, and 14mm height. All walls and panels must have a uniform thickness of 3mm.
Construct a rectangular bottom panel with overall dimensions of 88mm by 142mm (internal width plus four times the thickness, and int... | thickness = 3;
w = 76.0;
d = 136.0;
h = 14.0;
rad=thickness;
tab = h/2;
rib = d*0.8;
slot = w*0.8;
separation = 5.0;
module createSubtractor(h,radius) {
difference(){
cube([radius+0.1,radius+0.1,h]);
cylinder(h=h,r=radius+0.1,$fn = 25);
}
}
in3D=false;
DXF=false;
module case_bottom(){
difference(){
translat... | glb/cad_184f8e57c86f.glb |
Create a Decoratable Photo Frame designed for a 100mm by 148mm photo. The main body consists of two identical frame halves that join to form a rectangular border with a thickness of 10mm and a border width of 10mm. The inner opening should have rounded corners with a 3mm radius, while the outer corners have a 13mm radi... | $fn = 60;
MODEL = "all";
PHOTO_WIDTH = 100;
PHOTO_HEIGHT = 148;
PHOTO_BORDER = 4.5;
FRAME_SPLIT = 0.618;
FRAME_BORDER = 10;
FRAME_THICKNESS = 10;
FRAME_INNER_CORNER_RADIUS = 3;
FRAME_OUTER_CORNER_RADIUS = FRAME_INNER_CORNER_RADIUS + FRAME_BORDER;
FRAME_INNER_WIDTH = PHOTO_WIDTH - 2 * PHOTO_BORDER;
FRAME_INNE... | glb/cad_e2af6718f707.glb |
Create a paperweight by starting with a sphere of 40mm radius. Create a hollow shell for this sphere by removing a concentric inner sphere with a radius of 39mm.
The outer surface of this shell is further modified by a heightmap pattern. Depending on the desired version, apply a scaled surface map—either a maze, a wo... | mark = 1;
rs = 40;
difference()
{
intersection()
{
difference()
{
sphere(r=rs,center=true,$fn=100);
intersection()
{
difference()
{
sphere(r=rs+1,center=true,$fn=100);
sphere(r=rs-1,center=true,$fn=100);
}
if (mark==1)
pattern_01();
else
if (mark==2)
pattern_02();
else
if (mark==3)
pattern_03();
}
}
translate... | glb/cad_906dda40124c.glb |
Create a closure disc for a paperweight by constructing a thin, solid cylinder. The cylinder must have a radius of 36mm and a height of 2mm. Ensure the circular faces are smooth by using a high facet resolution of 72 fragments. | cylinder(r=36,h=2,$fn=72); | glb/cad_f6b51afb729e.glb |
Create three identical linkage arm segments, each spaced 16mm apart along the Y-axis. For each segment, start with a central circular hub with a radius of 2.325mm and a thickness of 1.75mm. Drill a 3.3mm diameter hole through the center of this hub.
From the center of this hub, extend three rectangular arms. The first... | numcopies = 3;
shiftx = 0;
shifty = 16;
$fa = 5;
$fs = 0.4;
tz = 1.75;
tx = 3;
trim = 1.75;
clr = 0.15;
l1 = 8;
phi1 = 0;
l2 = 20;
phi2 = 120;
l3 = 20;
phi3 = -120;
daxle0 = 3;
daxle1 = 3;
daxle2 = 3;
daxle3 = 3;
daxle_0 = daxle0+2*clr;
daxle_1 = daxle1+2*clr;
daxle_2 = daxle2+2*clr;
daxle_3 = daxle3+2*clr;
m... | glb/cad_25ab8c4f5480.glb |
Create a captive bolt holder consisting of two main components: a base and a top lock. For the base, start with a cylinder 20mm in radius and 8mm high. Remove a hexagonal hole from the center of this cylinder with a radius of 6.5mm and a height of 5.1mm, starting 3mm from the bottom. Add a second cylinder on top of the... | $fn = 60;
lockable_base();
translate(v = [0, 40, -8])
top_lock();
module top_lock() {
difference() {
intersection() {
difference() {
union() {
translate(v = [-20, -7.5, 8])
cube(size = [40, 15, 5]);
translate(v = [0, 0, 8])
cylinder(h = 5, r = 13);
}
translate(v = [0, 0, 5])
... | glb/cad_056145535c96.glb |
Create a 1-axis ankle board by starting with a solid hemisphere that has a radius of 150mm. Slice this hemisphere in half along its center to create a semi-spherical dome. From the center of the flat base, remove a cylindrical core with a radius of 155mm and a height of 7.5mm to flatten the bottom. At the very top cent... | r=150;
a=10;
b=16;
x=20;
ankle_board_uni();
module ankle_board_uni(){
difference(){
rotate([90,0,0])cylinder(h=2*r*.9,r=r, center=true, $fn=200);
translate([0,0,(r+5)/-2])cube([r*2.3,r*2.3,r+5],center = true);
translate([0,0,-2])cylinder(r+5,(a+1)/2,(a+1)/2);
translate([0,0,r-(r-x)])hexagon(r+5,(b+1)/2);
}
}
module ... | glb/cad_e95bd05ea9bd.glb |
Create a Fast Release Earbud Wrap Designer card. Start with a rectangular base measuring 50.8mm by 88.9mm (business card size) with corners rounded to a 6.35mm radius.
On the face of the card, create two circular holes for earbuds with a radius of 6.3mm. Position these holes such that they are aligned horizontally. B... | preset = "Default";
card_size = "Custom";
custom_height = 80;
custom_width = 50;
custom_corner_radius = 3.4;
winding_notch_location = "Right";
slot_width = 3.3;
earbud_radius = 6.3;
more_winding_notches = false;
slide_notch = "None";
slide_notch_tab = false;
center_holes = false;
extra_jack_notches = false;... | glb/cad_e04e00246797.glb |
Create a cloud-shaped cookie cutter with a total width of 60mm. The base shape is a 2D cloud formed by the union of four circles: one at [15%, 22%, 15%], [37%, 25%, 25%], [65%, 22%, 20%], and [85%, 20%, 15%] of the total width, with the bottom edge flattened to create a straight base.
Construct the cutter using three ... | Width = 60;
$fn = 16;
Object = "cloud";
circle1 = [15, 22, 15];
circle2 = [37, 25, 25];
circle3 = [65, 22, 20];
circle4 = [85, 20, 15];
Flat_Bottom = true;
Cloud_Number = 0;
Max_Width = 180;
Min_Width = 50;
Filename = "FalconHeavy.png";
clouds = [ 0,
[circle1, circle4, circle2, circle3],
[[11, 15, 11],... | glb/cad_f2a2a3927da7.glb |
Create a Magnetic Joint effector base. Start with a main cylindrical body that has a radius of 40mm and a height of 8mm. Remove a concentric inner cylinder with a radius of 30mm and a height of 8mm from the center. To accommodate the hotend, create a central hole with a radius of 20mm and a height of 10mm, centered ver... | $h = 8;
$r_sphere = 6.35;
$rod_spacing = 52.0;
$rod_offset = 33;
$mount_screw_r = 2.2;
$mount_magnet_r = 3.0;
$ball_screw_r = 1.55;
$ball_screw_nut_r = 2.8;
effector();
module effector() {
difference() {
union() {
difference() {
translate([0,0,-$h/2]) cylinder(r=40,h=$h,$fn=32);
for(i = [0:2]) rotate([0,0,... | glb/cad_a19d36713707.glb |
Create a rover wheel with an outer diameter of 32mm and a total width of 20mm. Start with a central hub that is 10mm thick and has a diameter of 5.8mm. The hub must have a 3mm diameter hole running through its center, featuring a 2.4mm flat side to accommodate a motor shaft.
Extend six spokes from the hub to the outer... | diameter = 32;
wheel_width = 20;
width = 1.6;
shaft_dia = 3;
flat_dia = 2.4;
hub_thick = 10;
hub_dia = shaft_dia+width*2;
num_spokes = 6;
num_treads = 24;
tread_depth = 0.75;
spoke_length = (diameter - hub_dia) / 2;
module center_box(x,y,z) {
translate([0,0,z/2])
cube([x,y,z],center=true);
}
module hu... | glb/cad_372ec8689761.glb |
Create a rover wheel with an outer diameter of 32mm and a total width of 20mm. Start with a central hub 10mm thick and 5.2mm in diameter. The hub must have a 3mm diameter hole running through its center, with a 2.4mm wide flat section cut into the hole to accommodate a motor shaft.
Extend 6 spokes radially from the hu... | diameter = 32;
wheel_width = 20;
width = 1.6;
shaft_dia = 3;
flat_dia = 2.4;
hub_thick = 10;
hub_dia = shaft_dia+width*2;
num_spokes = 6;
num_treads = 24;
tread_depth = 0.75;
spoke_length = ((diameter-width*2)- hub_dia) / 2;
fdm_flat = 2;
module center_box(x,y,z) {
translate([0,0,z/2])
cube([x,y,z],center... | glb/cad_6522d4f78711.glb |
Create a parametric tube connector consisting of two mirrored barbed ends joined by a central hexagonal coupling. The entire object is centered around a continuous hollow bore with a diameter of 1.2mm.
Each barbed end is composed of five stacked coaxial segments. Starting from the outer tip, create a small cylinder, f... | $fn = 150;
id1 = 3.2;
id2 = 6.4;
echo(id1=id1);
echo(id2=id2);
tube_i_d = 1.5;
d1_1 = 1.4;
d2_1 = tube_i_d;
h1 = .1;
h2 = .6;
d2_3 = 1.5 * d2_1;
h3 = 1.6;
d2_4 = .8 * d2_3;
h4 = 1.8;
scale_fact5 = 1.7;
d1_5 = d2_4;
d2_5 = d2_4 * scale_fact5;
h5 = (d2_5 - d1_5) / 2;
d_trough = 1.2;
h_all_barb = h1 + h2 + h3 + h4 + h... | glb/cad_f0a71b33b883.glb |
Create a Z-axis holder for a 10mm rod and a 22x20mm round nut. Start with a central rectangular block measuring 30mm in height, 41mm in width, and 34mm in depth (calculated from the nut diameter plus a 6mm distance on each side).
At the center of this block, create a cylindrical void with a diameter of 22mm and a hei... | include <MCAD/shapes.scad>
height = 30;
width = 41;
distance = 6;
nut_diameter = 22;
nut_height = 20;
rod_diameter = 13;
screw_spacing = 29;
screw_diameter = 5;
screw_head = 11;
screw_level = 8;
block_width = 8;
$fn = 48;
difference()
{
cube( [ nut_diameter+distance*2, width, height ], center = true );
rot... | glb/cad_7bcb15a60732.glb |
Create a Z-axis holder for a 10mm rod and a round nut. Start with a central rectangular block that is 41mm wide and 30mm high.
In the center of this block, create a vertical cylindrical cutout with a diameter of 22mm and a height of 20mm to house the round nut. To accommodate the rod, create a larger cylindrical void... | include <MCAD/shapes.scad>
height = 30;
width = 41;
distance = 6;
nut_diameter = 22;
nut_height = 20;
rod_diameter = 13;
screw_spacing = 29;
screw_diameter = 5;
screw_head = 11;
screw_level = 8;
block_width = 8;
$fn = 48;
difference()
{
cube( [ nut_diameter+distance*2, width, height ], center = true );
rot... | glb/cad_96a2bcb89496.glb |
Create an Anker to Lemonzero connector with a uniform thickness of 5mm. Start with a central rectangular bar measuring 73mm wide, 5mm deep, and 5mm high.
At both the left and right ends of this bar, construct symmetrical holding structures. On each end, add a rectangular block that is 8mm wide and 17mm deep, extendin... | xsize = 8;
zsize = 5;
wlemonzero = 73;
ylemonzero = 17;
wanker = 72;
yanker = 15.5;
ranker = 1.75;
ysize = 5;
ycatch = 4;
xcatch = 4;
translate([0,0,0]) cube([wlemonzero, ysize, zsize]);
translate([wlemonzero, -ylemonzero, 0]) {
cube([xsize, ylemonzero+ysize, zsize]);
translate([-xcatch, -ycatch, 0]) cube([xsize + ... | glb/cad_d51bcf9769e3.glb |
Create a Cubic Fractal by recursively placing smaller cubes on the faces of larger ones. Start with a central parent cube measuring 200mm on all sides. In each recursive step, generate six child cubes, each with a side length equal to approximately 41.42% of the parent cube's size. Position these child cubes so they ar... | recursion=3;
base_size=200;
fract(rec=recursion, size=base_size);
module fract(pos=[0,0,0], size=200, rec=2, dir=-1) {
newsize=size*0.41421356;
distance=(newsize+size)/2.001;
translate(pos) cube(size,center=true);
if(rec>0) {
if(dir!=1) {
fract(pos+[distance,0,0],newsize,rec-1,0);
}
if(dir!=0) {
fract... | glb/cad_89102c56bc46.glb |
Create a Customizable Drawer Guide bracket. Start with a base rectangular plate 55mm wide, 45mm high, and 15mm deep. Round the top two corners of this plate using a radius of 27.5mm.
At the top center of the plate, create a rectangular cutout for the guide. This cutout should be 22mm wide and 8mm high, positioned 6mm... | guideWidth = 22;
guideHeight = 8;
guideClearance = 6;
guideMount = 12;
bracketWidth = 55;
bracketHeight = 45;
bracketDepth = 15;
bracketThickness = 5;
screwDiameter = 4;
bracketBelowShelf=(bracketHeight-guideClearance*2-guideHeight);
intersection() {
union() {
cylinder(h=bracketDepth,r=bracketWidth/2,cente... | glb/cad_772ac0e89148.glb |
Create a Printrbot X idler pulley designed to hold a 608 bearing. Start with a central cylindrical cavity for the bearing with an outer diameter of 22mm and a width of 7mm. Build a pulley body around this, featuring a belt channel 5mm wide. The pulley should have flanges that extend to a total diameter of 24.5mm and a ... | bearingsize = 22;
bearingwidth = 7;
bearingclampsize = 0.5;
bearingclamps = 3;
bearingclampangle = 60;
pulleythick = 1;
pulleyflangesize = 2.5;
beltwidth = 5;
$fn = 90;
module beltpulley() {
difference() {
union() {
translate([0, 0, pulleythick / 2]) cylinder(h = pulleythick, r = bearingsize / 2 + pulleyflanges... | glb/cad_18b7617159cd.glb |
Create a RecycloHippo dehumidifier reservoir. Start by constructing a hollow cylindrical hull with an outer diameter of 95mm, a height of 50mm, and a wall thickness of 1.8mm.
At the base of the cylinder, create a mesh screen with a thickness of 3mm. This screen should feature a grid of threads 0.45mm wide with 2mm sp... | $fn=30;
include <meshscreen.scad>;
d=95;
h=50;
hull_thickness=0.45*4;
mesh_h=3;
layer_h=0.3;
mesh_thread_w=0.45;
mesh_space=2;
mesh_border=10;
cross_w=10;
cross_h=mesh_h+1;
leg_h=100;
leg_d=6;
leg_conn_h=10;
leg_conn_do=10;
leg_conn_di=leg_d-0.25;
reservoir();
module printplate(){
reservoir();
trans... | glb/cad_bcfdd5049f7c.glb |
Create a Spring Foot consisting of two separate cylindrical components: a base and a top cap. For the base, create a cylinder with a diameter of 24mm and a height of 5mm. Remove a central vertical hole with a diameter of 11.25mm that passes through the center, leaving a ring-like shape. For the top cap, create a cylind... | $fn = 100;
foot_diameter = 24;
spring_diameter = 11.25;
frame_thickness = 12;
module bottom(){
translate([-15,0,-5])
difference() {
cylinder(h = 5, r = foot_diameter/2, center = true);
translate([0,0,1]) cylinder(h = 3, r = spring_diameter/2, center = true);
}
}
module top(){
translate([15,0,0]) difference... | glb/cad_8ba87d6f6a34.glb |
Create a 3D model of a USB cable plug consisting of two joined rectangular prisms. First, create a smaller rectangular base with a width of 6.85mm, a depth of 6.03mm, and a height of 2.3mm. Directly attached to the back of this base, create a larger rectangular body that is 9.35mm wide, 19.88mm deep, and 6.95mm high. P... | interface=[6.85,6.03,2.3];
plug=[9.35,19.88,6.95];
interface_position=[(plug[0]-interface[0])/2,0,(plug[2]-interface[2])/2];
plug_position=[0,interface[1],0];
module usbCable()
{
union()
{
translate(interface_position) cube(size=interface, center=false);
translate(plug_position) cube(plug);
}
}
usbCable(); | glb/cad_e05b8bac74b2.glb |
Create a secure mount for a Tiva C Series LaunchPad. Start with a solid rectangular base measuring 60.87mm in width, 71.03mm in length, and 19.23mm in height.
In the center of this base, carve out a rectangular well measuring 47.87mm by 68.03mm that extends through to the bottom. Within this main volume, remove the s... | include <config.scad>
use <launchpad.scad>
use <USBcable.scad>
mount=[board[0]+5,board[1]+5,board[2]+header[2]+5];
well=[board[0]-3,board[1]-3,mount[2]];
well_position=[(mount[0]-well[0])/2,(mount[1]-well[1])/2,0];
int_attach1_position=[12,0,0];
int_attach2_position=[mount[0]-12,0,0];
int_attach3_position=[mount[0]/2,... | glb/cad_05c3e74ef0ce.glb |
Create a 3D mockup of a Tiva C Series LaunchPad microcontroller board. Start by creating a main rectangular base board. On top of this base, add two rectangular headers at their respective positions. Include a rectangular USB port section and a debug interface section, both positioned on the top surface of the board. F... | include <config.scad>
module launchPad()
{
union()
{
cube(size=board, center=false);
translate(header1_position) cube(size=header, center=false);
translate(header2_position) cube(size=header, center=false);
translate(usb_position) cube(size=usb, center=false);
translate(debug_position) cube(size=debug, center=f... | glb/cad_36b2e60cfbbd.glb |
Create a Spritzstruder paste extruder component. Start by creating a main cylindrical body with a radius of 20mm and a height of 4mm.
Position a pinion gear with 3 teeth, a pitch diameter of 15mm, and a face width of 11mm at the center, but rotate the entire assembly 120 degrees around the Z-axis. Add a cylinder with... | use <rack_and_pinion.scad>
difference(){
rotate([0,0,120])difference(){
union(){
translate([0,0,6]) pinion(3,15,11,7);
cylinder (6,10,10,$fn=100);
}
union(){
translate([4.5,-2.7,-0.5])cube(size=[2.5,5.4,3], center=false);
translate([2,0,3]) rotate([0,90,0]) union(){
rotate([0,0,360/6/2])cylinder(10,1.9,1.9... | glb/cad_729bf96af77b.glb |
Create a Spritzstruder paste extruder component by starting with a combined base consisting of a pinion gear and a cylinder. The pinion should have a radius of 6mm and 7 teeth, rotated 180 degrees around the Z-axis. Merge this with a cylinder that has a radius of 12mm and a height of 12mm.
From this combined volume, ... | use <rack_and_pinion.scad>
difference(){
union(){
rotate([0,0,360/18/2]) pinion(4,60,6,7);
rotate([0,0,0])translate([0,0,6])cylinder(4.5,12,12,$fn=80);
}
rotate([0,0,0])translate([0,0,-1])cylinder(22,4.1,4.1,$fn=80);
translate([0,0,5]) cylinder(5.6,r=13.1/2/sin(60), $fn=6, center=false);
translate ([0,0,-1])... | glb/cad_a1737e4f22ca.glb |
Create a Spritzstruder paste extruder component by starting with a main cylinder that has a radius of 20mm and a height of 10mm. Rotate this entire assembly 120 degrees around the Z-axis. Within this cylinder, integrate a pinion gear that has 4 teeth, a pitch diameter of 12mm, a width of 10mm, and a pressure angle of 4... | use <rack_and_pinion.scad>
difference(){
rotate([0,0,120])difference(){
union(){
translate([0,0,7]) pinion(4,12,10,4);
cylinder (7,10,10,$fn=100);
}
union(){
translate([3,-2.7,-0.5])cube(size=[3,5.4,7], center=false);
translate([2,0,3.5]) rotate([0,90,0]) union(){
rotate([0,0,360/6/2])cylinder(10,1.9,1.9,$... | glb/cad_3a2442a202aa.glb |
Create a Spritzstruder plunger by combining a rack and a mounting block. Start with a linear rack featuring 22 teeth, a circular pitch of 3mm, a width of 11mm, and a base thickness of 6mm. Attached to the top of this rack, position a rectangular block measuring 11mm wide, 6mm high, and 15mm long, starting at a coordina... | use <rack_and_pinion.scad>
union(){
rack(3,22,11,6);
translate([-11*3+1,3,11])rotate([0,90,180])cube(size=[11,6,15]);
difference(){
union(){
translate([22*3/2,-1,11/2])rotate([0,90,0])cylinder (3,7.5,7.5,$fn=40);
translate([22*3/2+3,-1,11/2])rotate([0,90,0])cylinder (2.8,4.85,4.85,$fn=40);
translate([22*... | glb/cad_a5ad0dd5d6bf.glb |
Create a customizable comb with a bow-shaped handle and a teeth section. The overall body is a rounded, elongated shape with a maximum height of 6mm and a minimum height of 1mm.
The handle area has a depth of 25mm, while the teeth section has a depth of 20mm. Between these two sections, leave a gap of 5mm. The teeth ... | profile = "none";
wedge_profile = "teeth";
shape = "bow";
max_height = 6;
min_height = 1;
teeth_depth = 20;
handle_depth = 25;
handle_teeth_gap = 5;
tooth_width = 1;
tooth_gap = 1.5;
teeth_side_margin = 5;
number_of_teeth = 60;
corner_radius = 8;
personal_text = "personal_text";
text_teeth_margin = 2;
fo... | glb/cad_635d6f841241.glb |
Create a tripod foot for a Logitech C210 webcam. Start by constructing a base plate that combines a rectangular section and a semi-circular end. The base should be 35mm wide and 50mm long, with a thickness of 1.5mm. The rectangular portion is 35mm by 25mm, which then transitions into a semi-circle with a radius of 25mm... | hull() {
cube([35, 50, 1.5]);
translate([35,25,0]) linear_extrude(height=1) circle(r=25, $fn=96);
}
difference() {
translate([7, 20,0]) cube([10,10,40]);
translate([12,31,34])
rotate([90,0,0])
linear_extrude(height=12)
circle(r=2, $fn=96);
} | glb/cad_c90a8f3f184a.glb |
Create a Modular Desk Tidy consisting of a hexagonal hollow tower. The main body is a hexagonal prism with a diameter of 55mm (vertex to vertex), a height of 20mm, and a wall thickness of 2mm. The center is hollowed out from the bottom, leaving a 2mm thick floor.
The six exterior vertical faces are configured for inte... | module_diameter=55;
module_height=20;
module_wall=2;
slot_height=18;
clearance=0.3;
face_1="lug";
face_2="lug";
face_3="lug";
face_4="slot";
face_5="slot";
face_6="slot";
module endcustomizer() {}
sp=0.1;
module tidy(diameter, height, wall, fv) {
distance_to_edge=(diameter/2)*cos(30);
difference() {
... | glb/cad_96131a4b81b5.glb |
Create a Banana Plug Splitter by starting with a solid rectangular block measuring 20mm in width, 11mm in depth, and 15mm in height. Remove two vertical cylindrical holes, each with a radius of 4mm and a height of 16mm, positioned at the center of the depth (5.5mm) and placed 2mm from each of the 11mm side faces. Carve... | $fn=96;
difference() {
cube([20, 11, 15]);
translate([2, 5.5, -0.1]) cylinder(r=4, h=16);
translate([18, 5.5, -0.1]) cylinder(r=4, h=16);
translate([8.5, 3, -.1]) cube([3, 5, 16]);
translate([10,-2,-2]) rotate([10,0,0]) cylinder(r=4, h=15);
translate([10,13,-2]) rotate([-10,0,0]) cylinder(r=4, h=15);
} | glb/cad_7cbdd5417e44.glb |
Create a mobile phone holder desk stand consisting of a flat base and an angled backplate. Start with a rectangular base plate measuring 70mm in length, 60mm in width (40mm central width plus 10mm margins on each side), and 2mm in thickness.
At one end of the base, attach a vertical riser that is 5mm thick and 18.8mm... | include <MCAD/triangles.scad>;
thickness=5;
angle=60;
wid=40;
len=30;
hei=15;
base_len=70;
hole_up=25;
hole_sep=20;
hole_d=2.8;
phone_l=150;
phone_w=70;
phone_h=8;
cable_hole_w=16;
h1=wid/2-hole_sep/2;
h2=wid/2+hole_sep/2;
difference() {
union() {
translate([0,0,hei])rotate([0,-angle,0]) cube([len,wid,thickne... | glb/cad_a27691c94bad.glb |
Create a Piggybank Snap Plug consisting of a circular base with four integrated snap-fit pins. Start by creating a thin cylindrical disc with a radius of 18mm and a height of 1mm. Around the perimeter of this disc, position four rectangular pins equally spaced every 90 degrees. Each pin should be 2mm wide, 3mm deep, an... | useTolerance = true;
HTolerance = 0.5;
VTolerance = 0.25;
rotate([0,180,0]) {
difference() {
if (useTolerance) {
translate([0,0,-1]) rotate_extrude() translate([(31/2)-VTolerance,0,0])circle(r=2,$fn=100);
} else {
translate([0,0,-1]) rotate_extrude() translate([(31/2),0,0])circle(r=2... | glb/cad_6e9a50880c89.glb |
Create a Customizable FitBit Flex Arc Band. Construct a solid, curved arc with a height of 12.5mm (calculated from the band width plus walls). The arc should be based on a wrist circumference of 185mm, stretched by a factor of 1.25 to create an elliptical profile. The band thickness is 7mm, with a wall thickness of 10m... | wristLenMM = 185;
wristLenIn = 0;
part = 5;
stretch = 1.25;
bandOpenRatio = 0.8;
bandThick=7;
bandWall = 10;
support=0;
flexTweakR = 1.5;
flexTweakX = 0;
clearance=.25;
clearanceFactor=clearance/10;
wristLength = wristLenMM + wristLenIn*24.5;
linkLen = 13;
$fn=16;
linkHeight=7;
pi=3.14159;
wristLen = wrist... | glb/cad_3d32d81fbdec.glb |
Create a Tube Cap by constructing a solid cylinder with a diameter of 14.75mm and a total height of 16mm. Hollow out the center of this cylinder to create a cavity with a diameter of 13.1mm, which is derived by subtracting a wall thickness of 0.825mm from each side of the outer diameter. This interior hole should have ... | cap_diameter=14.75;
wall_thickness=0.825;
outer_height=16;
inner_height=12;
$fn=100+0;
difference() {
cylinder(r=cap_diameter/2,h=outer_height,center=true);
translate([0,0,(outer_height-inner_height)/2+.1])
cylinder(r=cap_diameter/2-wall_thickness,h=inner_height+.05,center=true);
} | glb/cad_451fef431df0.glb |
Create a Universal Spacer consisting of a central octagonal column with an integrated support structure. The main body is an octagonal prism with a height of 25mm and a flat-to-flat diameter of 8mm. Drill a vertical hole through the center of the entire assembly with a diameter of 3.25mm.
To create the support legs, d... | spacer_shape = 2;
hole_diameter = 3.25;
spacer_diameter = 8;
spacer_height = 25;
support_angle = 20;
support_height = 25;
spacer_diameter_outer = spacer_diameter * 1/cos(180/8);
support_width = tan(support_angle) * (support_height) + spacer_diameter_outer/2;
support_thickness = spacer_diameter_outer * sin(180/16)... | glb/cad_da916e2541e5.glb |
Create a rechargeable battery holder with a honeycomb structure. The holder should have a total height of 30mm and wall thickness of 1.5mm.
Construct a grid of hexagonal cells arranged in 3 rows and 4 columns, where odd rows contain one fewer cell than even rows. Each hexagonal cell must have an interior diameter of ... | rows = 3;
columns = 4;
walls = 1.5;
cell_interior = 15.2;
hole_fraction = 0.5;
height = 30;
with_frame = true;
module honeycomb(rows, columns, cell_interior, walls, height) {
for (i = [0 : rows - 1]) {
linear_extrude(height=height) {
for (j = [0 : (columns - 1 ... | glb/cad_8bf5f43c43b7.glb |
Create a spaceship model starting with a central cylindrical body that has a radius of 5mm and a height of 40mm. On top of this cylinder, add a conical nose cone with a base radius of 5mm and a height of 20mm, tapering to a point.
At the base of the main body, attach three small conical engine nozzles. Each nozzle sh... | $fa = 0.5;
$fs = 0.1;
rocket(rad=5, len=40, scale=1);
*for (rad=[3:2:7]) {
for (len=[20:15:50]) {
translate([rad*15-20, len*2-15, 0]) {
rocket(rad, len, scale=1);
}
}
}
module rocket(rad = 5, len = 40, scale = 1) {
groundheight = 3;
scale(scale) {
translate([0,0,groundheight]) {
tr... | glb/cad_b1871afcdfa8.glb |
Create a cylinder bead by constructing a solid cylinder with a length of 15mm and a radius of 3.75mm, using a resolution of 50 facets to ensure a smooth circular profile. Bore a concentric cylindrical hole through the entire length of the bead with a radius of 1.875mm, using a resolution of 45 facets for the inner surf... | beadlen=15;
beadrad=beadlen/4;
hole=beadrad/2;
bead();
module bead() {
difference() {
cylinder(beadlen, beadrad, beadrad ,$fn=50 );
cylinder(2*beadlen+2, hole, hole, center=true, $fn=45 );
}
} | glb/cad_0158563ad07e.glb |
Create a round bead by constructing a sphere with a radius of 20mm. The sphere should have a faceted surface resolution of 45 fragments. Bore a vertical cylindrical hole through the center of the sphere from top to bottom with a radius of 5mm, also using a facet resolution of 45. Ensure the hole is completely clear thr... | beadrad=20;
hole=beadrad/4;
bead();
module bead(){
translate([0,0,(sqrt((beadrad*beadrad)-(hole*hole)))]) {
beadmodule();
}
}
module beadmodule() {
difference() {
sphere( beadrad ,$fn=45 );
cylinder(2*beadrad+1, hole, hole,center=true, $fn=45 );
}
} | glb/cad_75435e5b5928.glb |
Create a star-shaped bead by extruding a five-pointed star polygon to a thickness of 5mm, centered on the Z-axis. The star should have a total diameter of 20mm from point to point. The geometry of the star is defined by points extending from the center to a radius of approximately 10.81mm for the outer tips and approxi... | starlenght=20;
starT=5;
hole=2.5/2;
starlen=starlenght/1.85;
starbead();
module starbead() {
difference() {
translate([0,0,starT/2]) star();
translate([-starlen,starlen/2,starT/2]) rotate(a=[90,0,90]) cylinder(2*starlen, hole,hole, center = false, $fn=45 );
}
}
module standstar() {
rotate(a=[90,0,0]... | glb/cad_6a149d8365fd.glb |
Create a heart-shaped bead with a total length of 20mm and a maximum thickness of 10mm. The main body is formed by joining two symmetrical, mirrored halves. Each half is a linear extrusion of a heart-like profile, resulting in a solid heart shape that is 10mm thick at its center.
To create the bead's hollow center, re... | heartlen=20;
heartT=heartlen/2;
hole=heartT/5;
heartbead();
module heartbead() {
difference() {
heart();
Thick();
cylinder(1.5*heartlen, hole, hole, center = false, $fn=45 );
}
}
module heart() {
union() {
rotate(a=[0,270]) {
translate([0,0,-heartT/2]) {
halfheart();
}
}
... | glb/cad_de3bb3fda51b.glb |
Create a six-sided die by starting with a cube that has a side length of 30mm. Apply a fillet to all edges and corners with a radius of approximately 4.28mm (30/7mm) to create a rounded box.
On each face of the cube, create circular indentations in the form of hemispherical pits to represent the pips. Each pip should ... | len=30;
dice(len);
module dice(len=30) {
$fs=0.1;
difference() {
translate([len/2,len/2,len/2]) {
roundedBox([len,len,len],len/7, false);
}
dots(len);
}
}
module dot() {
sphere(len/10);
}
module dots(len) {
rotate(a=[-90,0,90]) {
translate([0,-len,-len]) {
one();
}
}
... | glb/cad_f89705bc6bb4.glb |
Create a pair of sports glasses consisting of three circular lens frames and two straight temple arms. Each lens frame is a hollow ring with an outer diameter of 55.5mm, an inner diameter of 47.5mm, and a thickness of 5mm. Position two of these rings side-by-side with their centers spaced 65mm apart along the X-axis. P... | gdiam=47.5;
tsize=125;
pd=65;
th=4;
lscales=150;
gheight=5;
$fn=64;
module EyeCylinder()
{
difference()
{
cylinder(d=gdiam+th*2, h=gheight);
LensHole();
}
}
module LensHole()
{
translate([0,0,-.1])
cylinder(d=gdiam, h=gheight*2.2, center=true);
}
module ... | glb/cad_e42013113503.glb |
Create a star dice by starting with a cube that has a side length of 30mm and rounded corners with a radius of approximately 4.28mm (len/7).
On each face of the cube, carve out star-shaped indentations to represent the numbers one through six. Each star should have a diameter of approximately 8.57mm (len/7) and a dep... | len=30;
starlen=len/7;
dice(len);
module dice(len=30) {
$fs=0.1;
difference() {
translate([len/2,len/2,len/2]) {
roundedBox([len,len,len],len/7, false);
}
dots(len);
}
}
module dot() {
rotate(a=[0,90,0]) {
star();
}
}
module dots(len) {
rotate(a=[-90,0,90]) {
translate([0,-... | glb/cad_60fc4dcd81a2.glb |
Create a heart dice by starting with a cube that is 30mm on all sides. Round the edges and corners of the cube with a radius of approximately 4.3mm.
On each face of the cube, carve out heart-shaped indentations to represent the numbers one through six. Each heart should be 6mm in length and 6mm in depth. Position the ... | len=30;
heartlen=len/5;
heartT=heartlen;
dice(len);
module dice(len=30) {
$fs=0.1;
difference() {
translate([len/2,len/2,len/2]) {
roundedBox([len,len,len],len/7, false);
}
dots(len);
}
}
module dot() {
translate([0,0,-heartlen/2]) {
heart();
}
}
module dots(len) {
rotate(a=[-... | glb/cad_931daac88783.glb |
Create a twisted, star-shaped vase with a total height of 100mm. The base is a star polygon with 8 points and an outer diameter of 50mm. As the shape rises, it should twist a total of 100 degrees across its height.
The profile of the vase is dynamic: the diameter varies sinusoidally, reaching a pinch point at the neck... | ground_plate_thickness = 5;
basediameter = 50;
wall_thickness = 4;
height = 100;
star_points = 8;
indent = 0.8;
solid = 1;
delta_h = 1;
pinch = 0.4;
twist = 100;
function dia... | glb/cad_3fc796a724cb.glb |
Create a Prusa i3 JTech Laser Mount consisting of a carriage base, a laser seat, and an endstop bracket.
Start with a carriage base: a 40mm x 40mm x 7mm cube. Subtract four hexagonal holes with a radius of 2mm, centered at coordinates (±11.5, ±11.5). Within these holes, create hexagonal recesses for M4 nuts with a fl... | function apothem(r,n) = r*cos(180/n);
function circumrad(a,n) = a / cos(180/n);
M3_nut_h = 2.5;
M3_flat_width = 5.47;
M3_nut_rad = circumrad(M3_flat_width / 2, 6);
M3_rad = circumrad(1.5,6);
M4_nut_h = 3.0;
M4_flat_width = 6.9;
M4_nut_rad = circumrad(M4_flat_width / 2, 6);
M4_rad = circumrad(2,6);
endstop_h = 15;
en... | glb/cad_611cbd3c2a63.glb |
Create an optical endstop flag by constructing a series of joined rectangular prisms and a cylinder, all with a uniform thickness of 1mm. Start by creating a base rectangular prism measuring 10mm wide, 20mm long, and 1mm high, positioned so it extends from Y=0 to Y=-20mm. Attach a second rectangular prism of the same 1... | alt = 1;
long = 20;
gros = 10;
difference(){
union(){
color("yellow") translate([0, -long, 0]) cube([gros,long,alt]);
color("green") translate([0, 0, long]) cube([gros,long+gros,alt]);
cube([gros,alt,long]);
color("red") translate([0, 10, 0]) cube([gros,alt,long]);
color("red") translate([0, 25, 0]) cu... | glb/cad_6ca8bc93522e.glb |
Create an Optical Endstop Flag for a Prusa i3 Rework. Start with a rectangular base measuring 16mm wide, 15mm deep, and 10mm high. On the top surface of this base, center a cylinder with a radius of 5mm and a height of 2mm. Within this cylinder, create a concentric circular hole with a radius of 4.2mm that extends thro... | long = 15;
gros = 10;
alt = 2;
difference() {
union() {
color("red") translate([3, 18, 6.5]) rotate([0,90,0]) cube([alt,long,gros]); color("green") translate([8, 15,0]) cylinder(h = 10, r=8, $fn = 50);
color("black") cube([16, 15, 10]);
color("blue") translate([8,long+18,alt+2.5]) cylinder(alt, r=... | glb/cad_a5ca87a03ce2.glb |
Create an optical endstop flag by constructing a base rectangular block 40mm long, 25mm wide, and 5mm thick. On top of this base, add a second rectangular slab that is 20.5mm long, 25mm wide, and 2mm thick, positioned to start 2mm from the front edge of the base. Integrate a cylinder with a radius of 12.5mm and a heigh... | alt = 2;
long = 35;
gros = 25;
module stopper(){
difference(){
union(){
cube([long+5,gros, 5]);
translate([alt, 0, 0]) rotate(a=[0,-90,0]) cube([long/2+3,gros,alt]);
color("green") translate([alt, gros/2, long/2+3]) rotate(a=[0,-90,0]) cylinder(h = alt, r = gros/2, $fn= 30);
}
color("blue") translate([28,... | glb/cad_37770665b067.glb |
Create a vibration dampener consisting of a hollowed-out oval base and a mounting attachment. Start by creating a thick-walled oval shell with an outer length of 100mm, a width of 46mm, and a height of 30mm. The wall thickness of this shell should be 2.6mm.
Integrated into the top of this oval shape, center a cylindr... | mountType=2;
dampenerLength=100;
dampenerHeight=30;
dampenerWidth=46;
dampenerStrength=2.6;
mountHeight=12;
mountLength=40;
holeSize=6;
module squareMount(){
linear_extrude(dampenerWidth)polygon(points=[[0,mountHeight],[0,0],[mountLength,0],[mountLength,mountHeight],[mountLength+3,mountHeight],[mountLength+3,-d... | glb/cad_c591531ec244.glb |
Create a decorative coin with a diameter of 35mm and a thickness of 5mm. The main body is a cylinder with a milled edge, created by removing 48 evenly spaced rectangular notches around the perimeter, each measuring 1mm by 47mm by 20mm, centered on the edge.
On the bottom face, add a 2.5mm thick raised decoration in th... | difference()
{
difference()
{
coin(35,5,0.5);
serrate(17.5,47,1,1,20);
}
union()
{
hypocycloid(10.5,1.75,2.5);
translate([0,0,3.5])
epicycloid(1,8,5);
}
}
module coin(db,thick,tradius)
{
tr = thick - 2*tradius;
l1=(db - 2* tradius)/2;
n1 = 5;
rotate_extrude (convexity = 10,$fn=100)
translate([0,tradius,0... | glb/cad_3a5ebc1f93bd.glb |
Create an oscilloscope probe holder consisting of a flat rectangular base plate with four integrated vertical probe slots. The base plate is 10mm thick and extends between two mounting points. At each end of the plate, create a cylindrical mounting boss with a radius of 5mm and a centered hole with a radius of 2mm and ... | probeHolderFinal(
4,
10,
true,
true
);
module probeHolderFinal(pcs, probeH, enforced, rotated){
if (rotated){
rotate(a=[-90,0,0]) probeHolder(pcs, probeH, enforced, true);
}else{
probeHolder(pcs, probeH, enforced, false);
}
}
module probeHolder(pcs, probeH, enforced, rotated){
holeR = 2;
... | glb/cad_c1b00cfdd76a.glb |
Create a parametric motor mount for a Berd-Air MAX pump. Start by creating a main body that is 68mm high and 60mm long. The profile of this body is a custom polygon that wraps around a mounting board; it should be 5.5mm thick where it meets the board and extend 25mm beyond the board's edge.
Within this body, carve ou... | board_thick = 5.5;
velcro_width = 20;
velcro_thick = 2;
tol = 0.2;
seg = 64;
screw_dia = 3;
screw_head_dia = 5.4;
nut_width = 5.38;
nut_thickness = 1.5;
small_dia = 37.6;
large_dia = 60;
small_h = 68;
large_h = 44;
lead_thick = 7.6;
side_ext = 3;
holder_length = 60;
ext_depth = 25;
base_thick = 3;
function a... | glb/cad_47c0920c1ba7.glb |
Create a Parametric NATO/Picatinny Rail consisting of a base and a profiled top. Start with a rectangular base body measuring 20mm wide, 5mm high, and a total length of 45.15mm. Centered on top of this base, add a secondary rectangular prism measuring 15.6mm wide and 3.53mm high, extending the full length of the rail.
... | nslots = 5;
hasbase = true;
hbase = 5;
wbase = 20;
nholes = 2;
dhole = 6;
dholetol = 0.2;
holedist = 30;
dhead = 12;
dheadtol = 0.2;
hhead = 4;
railoffset = 5;
eps = 0.01;
deps = 2 * eps;
$fn = 64;
difference ()
{
translate ([railoffset, 0, 0])
nato_rail (nslots, hasbase, hbase);
translate ([... | glb/cad_4e85b74ec822.glb |
Create a NATO/Picatinny rail mount. Start by constructing a base body that is 20mm wide and 5mm high, extending along a length of 10mm per slot plus an additional 10mm. On top of this base, center a rectangular riser that is 15.6mm wide and 3.53mm high.
The top profile of the rail is a prism defined by a polygon with ... | nato_rail (1, true);
module nato_rail (n, has_base)
{
ws = 5.35;
h0 = 5;
h1 = 3.53;
h2 = 5.87;
h3 = 3;
w0 = 20;
w1 = 15.6;
l = 10 * (n + 1) - ws;
translate ([0, 0, - h0])
rotate ([90, 0, 90])
translate ([0, 0, -l/2])
... | glb/cad_9fb8d9b86f79.glb |
Create a MendelMax Opto Endstop Holder by starting with a base rectangular block 20mm wide, 50mm deep, and 5mm thick. On the top surface of this base, add a smaller rectangular block 10mm wide, 10mm deep, and 3mm thick, positioned from 10mm to 20mm along the depth and 2mm up from the base. Attach a vertical wall 40mm w... | module mount()
{
union()
{
difference()
{
translate ([0,0,0]) cube([20,50,5]);
translate ([0,3,2]) cube([10,15,3]);
}
difference()
{
translate ([0,10,2]) cube([10,10,3]);
translate ([-1,12,7.5]) rotate ([0,90,0]) cylinder(11,6,6);
}
cube([40,3,20]);
translate ([10,3,5])
difference()
{
... | glb/cad_451ddc0a12b3.glb |
Create a Y min opto endstop holder by starting with a base plate 5mm thick. Form the main body by joining a 20x50x5mm rectangular block with a 55x20x5mm rectangular block meeting at a right angle, and add a cylinder with a 10mm radius and 10mm height centered at the end of the extended section at position [55, 10, 0]. ... | module mount()
{
union()
{
cube([20,50,5]);
cube([55,20,5]);
translate([55,10,0]) cylinder(5,10,10);
difference()
{
translate ([0,0,0]) cube([30,30,5]);
translate ([30,30,-1]) cylinder(7,10,10);
}
}
};
module text()
{
union()
{
translate ([0,0,0]) rotate([0,0,45]) cube([5,2,0.6]);
translate ... | glb/cad_44e69f5f9c32.glb |
Create a Z min opto endstop holder by constructing a base plate 5mm thick. Form the main body by joining a 20x50x5mm rectangular block with an 85x20x5mm rectangular block extending from its side, and capping the far end of the extension with a semi-cylinder of radius 10mm and height 5mm.
Remove several cylindrical ho... | module mount()
{
union()
{
cube([20,50,5]);
cube([85,20,5]);
translate([85,10,0]) cylinder(5,10,10);
difference()
{
translate ([0,0,0]) cube([30,30,5]);
translate ([30,30,-1]) cylinder(7,10,10);
}
}
};
module text()
{
union()
{
translate ([-3,-3,0]) cube([6,2,0.6]);
translate ([-1.6,-2.5,0])... | glb/cad_32a2bebd4419.glb |
Create a DIN 35 x 7.5 mm top hat rail with a total length of 100mm and a wall thickness of 1mm. The profile consists of a central flat section 12.5mm wide, flanked by two symmetrical side sections. Each side section begins with a 5.5mm flat segment that transitions via a 90-degree curve (with a 24-facet resolution) int... | use <MCAD/triangles.scad>
use <MCAD/2Dshapes.scad>
use <../GreenEllipsis/slots.scad>
skip=false;
length = 100;
slot_width = 6.3;
slot_length = 18;
slot_spacing = 25;
thickness = 1;
part_1_length = 4;
part_2_length = 5.5;
part_3_length = 12.5;
fudge=0.001;
module side(width, height) {
cube([width, thickness, hei... | glb/cad_8eae73ef535e.glb |
Create a Rubik's Cube support by constructing a hollowed triangular prism. Start by creating a solid 3-sided pyramid (a cylinder with 3 facets) with a radius of 40mm and a height of 13.33mm. To create the hollow interior, center a second 3-sided pyramid with the same dimensions and radius, but position it 8mm lower alo... | O = 0;
T = 40;
$fn = 100;
haut = 16.5;
base = 0;
color("Red")
difference(){
translate ([O, O, O])
cylinder (T, T, T/3, $fn=3);
translate ([O, O, -8])
cylinder (T, T, T/3, $fn=3);
if (base){
translate ([O, O, O-T/1.5])
sphere (T/1, center=true);
};
tra... | glb/cad_475ffbc7c3fd.glb |
Create a motorbike phone and Qi charger mount consisting of two interlocking parts.
First, create a main base body. The core is a rectangular block with dimensions 1.7cm height, 7.9cm width, and 15.1cm length. Within this block, carve out a central cavity to fit a phone of 0.84cm x 7.0cm x 14.2cm. On the rear side, i... | bezel_w = 0.75;
bezel_l = 0.5;
bezel_h = 0.45;
qi_radius = 3.45;
qi_bezel = 0.2;
qi_bezel_h = 0.25;
qi_height = 1.1 + qi_bezel_h;
holder_part_a(0.84,7.0,14.2);
translate([0,0,2])holder_part_b(0.84,7.0,14.2);
module phone(x,y,z)
{
$fn = 12;
delta = 0.05;
radius = 0.5 * x;
offset_y = 0.5 * y - radius + delta;
hu... | glb/cad_31ffd4ed288f.glb |
Create a motorbike phone and Qi charger mount consisting of two interlocking parts. The main body is a rectangular shell with overall dimensions of 1.7cm height, 7.6cm width, and 14.8cm length.
Inside this shell, create a central cavity to hold a phone measuring 0.8cm by 6.8cm by 13.9cm. The shell should feature a la... | bezel_w = 0.75;
bezel_l = 0.5;
bezel_h = 0.45;
qi_radius = 3.45;
qi_bezel = 0.2;
qi_bezel_h = 0.25;
qi_height = 1.1 + qi_bezel_h;
holder_part_a(0.8,6.8,13.9);
module phone(x,y,z)
{
$fn = 12;
delta = 0.05;
radius = 0.5 * x;
offset_y = 0.5 * y - radius + delta;
hull()
{
translate([0, -offset_y ,0]) cylinder( h... | glb/cad_7451d6ea60a5.glb |
Create a drain cover with a total diameter of 38mm. Start by forming the main body as a combination of a cylinder and a sphere. Create a cylinder with a bottom radius of 17.5mm and a top radius of 18.5mm, reaching a height of 10mm. Place a sphere with a radius of 19mm centered at a height of 12mm and intersect it with ... | diameter=38;
scale(diameter/36.25,[1,1,1])
difference(){
union(){
intersection(){
cylinder(r1=35/2,r2=37/2,h=10,$fn=50);
translate([0,0,12])
sphere(19,$fn=50);
}
translate([0,0,10])
cylinder(r1=37/2,r2=39/2,h=1.5,$fn=50);
}
translate([0,0,20])
sphere(35.5/2,$fn=100);
for (r=[0:40:359]){
rotate(r... | glb/cad_24eaac5d5b1d.glb |
Create a Dial Indicator Mount by constructing a main block and removing specific volumes. Start with a base rectangular volume 12mm wide, 27.3mm deep, and 8mm high. Add a second rectangular section on top of the base, measuring 12mm wide, 27.3mm deep, and 7mm high, but offset it so it begins 3.5mm from the bottom edge.... | translate([0, -3.5-20.3/2, 12+3.5])
rotate([0, 90, 0])
difference() {
union() {
translate([0, 0, 8]) cube([12, 3.5*2+20.30, 3.5*2]);
cube([12, 3.5, 8]);
translate([0, 3.5+20.30, 0]) cube([12, 3.5, 8]);
translate([12, 0, 8-24.16-3.5]) cube([3.5, 3.5*2+20.30, 3.5*3+24.16]);
translate([0, 3.5, 8-24.16-3.5]) cube([12,... | glb/cad_30e2701689c6.glb |
Create a bed leveling nut trap by constructing a base block and removing specific internal volumes. Start with a solid form composed of two intersecting rectangular prisms: one measuring 33mm by 6mm by 11.73mm and another measuring 33mm by 8.5mm by 11.73mm, both centered and aligned along the same axis. Integrate a cyl... | in_h = 4.73;
in_w = 26;
nut_h = 3;
nut_w = 8.5;
bolt_w = 4.8;
offset = 1;
thickness = 3.5;
difference() {
rotate([-90, 0, 0])
difference() {
union() {
translate([0, 0, offset])
cube([in_w+2*thickness, 6, in_h+2*thickness], center=true);
translate([0, 8.5/2, offset])
cube([in_w+2*thickness, 8.5, in_h+2*thick... | glb/cad_43fdef1a5c8c.glb |
Create a Prusa Air 2 foot by starting with a base cylinder that has a radius of 16mm and a height of 5mm. On top of this base, add a conical section that transitions from a bottom radius of 16mm to a top radius of 10mm over a height of 10mm. Finally, carve a rectangular slot out of the center of the top surface; this c... | cylinder ($fn = 64,h=5,r=16);
difference() {
translate ([0,0,5])cylinder ($fn = 64,h=10,r1=16, r2=10);
translate ([0,0,12.1])color("red") cube (size=[15,6,6], center=true);
} | glb/cad_2f3eddaa13bc.glb |
Create a Rostock Bowden clamp with a central base and a vertical conical riser. Start with a central rectangular base measuring 46mm in length, 12mm in width, and 8mm in height. At the center of this base, add a cylindrical section with a radius of 11mm and a height of 8mm. Rising from this center, construct a tapered ... | module clamp(h, base){
difference(){
union() {
translate([2.625,0,0]){
cylinder(r1=4.5, r2=3.5, h=h);
translate([0, 0, base]) cylinder(r1=10, r2=0, h=12, center=true);
translate([0, 0, base/2])
cylinder(r=11, h=base, center=true);
}
translate([0, 0, base/2]) {
cube([46, 12, base], ce... | glb/cad_e02433f71da2.glb |
Create a cellphone microscope lens holder. Start with a main rectangular arm that is 65.3mm wide, 10mm deep, and 2mm thick. At both ends of this arm, add vertical side clasps that are 2mm wide, 10mm deep, and 17.4mm high (calculated as the phone depth of 13.7mm plus two times the arm thickness). Connect the top of thes... | use <utils/build_plate.scad>
phoneWidth = 65.3;
phoneDepth = 13.7;
lensDiameter = 6.5;
lensDepth = 3;
lensOffset = 32.65;
armThick = 2;
armWidth = 10;
clipLength = 10;
build_plate_selector = 0;
build_plate_manual_x = 100;
build_plate_manual_y = 100;
build_plate(build_plate_selector,build_plate_manual_x,build_p... | glb/cad_d68da2026913.glb |
Create a four-pronged knob with a total height of 20mm. Start by creating a main outer cylinder with a radius of 45mm and a height of 20mm. Hollow out the center of this cylinder by removing a concentric cylinder with a radius of 39mm, starting from a height of 6mm from the base.
In the center, create a solid vertical... | thickness=20;
outer_r=45;
knob_r=35;
bolt_r=4.6;
wall_thickness=6;
square_ratio=1.5;
union(){
difference(){
cylinder(r=bolt_r+wall_thickness,h=thickness);
intersection(){
translate([0,0,wall_thickness])cylinder(r=bolt_r,h=thickness);
translate([-square_ratio*.5*bolt_r,-bolt_r*2,wall_thickness])cube([square_... | glb/cad_9da5188ed4d9.glb |
Create a Corner Block for joining 20mm x 20mm aluminum tubes. Start by creating a solid rectangular block measuring 30mm wide, 60mm long, and 30mm high. From this main body, remove a central rectangular section to create a hollow channel measuring 20mm wide, 61mm long, and 20mm high, positioned 5mm from the side walls ... | module corner(){
difference(){
cube([30,60,30],center=false);
translate([5,31,5])
cube([20,61,20],center=false);
}
}
rotate([0,0,0])
corner();
rotate([270,180,270])
corner();
rotate([0,270,270])
corner(); | glb/cad_11f11a962052.glb |
Create a 3D model of a spider named "Doodle." Start by creating a base underside consisting of a cylinder with a radius of 7mm and a height of 6mm. For the main body, position an ellipsoid centered above the base; this body should be created by scaling a sphere with a radius of 4mm by a factor of 2 along the X and Y ax... | translate([0,0,3.73])
union()
{
legs();
translate([0,0,2.7])
rotate([0,-22,37.5])
scale(1.25)
body();
translate([0,0,-3.7])
underside();
translate([9,2.5,2.8])
rotate([0,0,45])
feelers();
translate([5,6,2.5])
rotate([0,0,45])
feelers();
}
module legs()
{
for (r=[0,75,116,156,197... | glb/cad_afa1d7b40ce6.glb |
Create a SpaceTime-Helix control panel as a rectangular plate measuring 160mm wide, 180mm high, and 3mm thick.
Cut four identical fader assemblies into the plate. Each assembly consists of a central slot 3mm wide and 110mm long with semi-circular ends, flanked by two 4mm diameter screw holes spaced 120mm apart. Posit... | width = 160;
height = 180;
thickness = 3;
fader_slot_length = 110;
fader_slot_width = 3;
fader_screw_hole_distance = 120;
fader_screw_hole_diameter = 4;
fader_distance = 20;
poti_hole_diameter = 11;
encoder_hole_diameter = 7.5;
button_hole_diameter = 12.5;
rotary_switch_screw_hole_diameter = 10.5;
rotary_switch_st... | glb/cad_51a90a2bcf2a.glb |
This OpenSCAD code describes a complex 3D model of a commemorative keychain or plaque. The design is composed of a teal-colored rectangular base with several extruded gold-colored elements.
### Design Breakdown:
1. **The Base:**
* A teal-colored rectangular plate serves as the foundation.
* It features a... | size_x = 200;
size_y = 300;
hole = 1;
radius = 10;
h = 10;
difference(){
union(){
translate([0,0,h/6])
cube([size_x,size_y, h/3], center = true);
if (hole==1){
translate([ 0, size_y/2+radius/2, h/6])
cylinder(h = h/3, r=radius*2, center=true);
}
}
if (hole==1){
translate([ 0, size_y/2+radius/2,... | glb/cad_c5e554f781b1.glb |
Create a rounded wall for calibration by extruding a thin, rounded square profile to a height of 10mm. The outer boundary of the shape should be a square with a total size of 30mm by 30mm, featuring rounded corners with a radius of 5mm. To create the wall, remove an inner rounded square area that is offset inward by 0.... | size = 30;
height = 10;
thickness = .5;
roundness = 5;
$fs = 0.01;
module round_square(size_, round_) {
half_round = round_ / 2;
centering = (-(size_ - (round_ * 2)) / 2);
translate([centering, centering]) {
minkowski() {
circle(round_, center = true);
adjusted_size = size_ - (round_ * 2);
... | glb/cad_c43fd59ac128.glb |
Create a Parametric Geneva Mechanism consisting of a star wheel, a moon wheel, and a base plate.
First, create a star wheel with a height of 6mm. It consists of a central cylinder with a radius of approximately 21.65mm and a bottom spacer disk. Cut a central arbor hole with a 4mm diameter through the entire height. Fo... | geneva_printable_wheels();
geneva_printable_base();
$fn=100;
test_count=5;
test_radius = 25;
test_pin = 10;
module geneva_screen_demo() {
translate([geneva_center_distance(moon_radius=test_radius, count=test_count),0,0])
rotate([0,0,180+atan(geneva_star_radius(moon_radius=test_radius, count=test_count)/test_radiu... | glb/cad_3c0a50f02184.glb |
Create a Customizable Organizer Drawer with an overall footprint of 160mm width, 140mm length, and 18mm height. The structure consists of a base plate 0.8mm thick, with walls of the same 0.8mm thickness extending upwards to create a grid of cells. Arrange the internal walls to form a grid of 8 cells along the width and... | width = 160;
length = 140;
height = 18;
wall_thickness = 0.8;
cells_x = 8;
cells_y = 3;
merged_cells = [];
thickness = wall_thickness;
module organizer_drawer(w, l, h, x_count, y_count, merged=[]) {
cell_cube = [(w-thickness)/x_count-thickness,
(l-thickness)/y_count-thickness,
... | glb/cad_30d91ee3fb27.glb |
Create a cone with a height of 70mm and a circular base with a diameter of 40mm. The shape should taper smoothly from the flat base to a single point at the top. Ensure the circular base has a high facet resolution to appear smooth. | height = 70;
bottom_diameter = 40;
cylinder (height,bottom_diameter/2,0,$fn=200); | glb/cad_8824381505f6.glb |
Create a hollow cylindrical container with an outer diameter of 30mm and a height of 15mm. The walls should be 10mm thick, leaving a central circular void with a diameter of 10mm. The interior of this void is not a simple hole but is shaped as a concave, bowl-like depression. This internal cavity is formed by rotating ... | $fa=0.01;
list = [ for (x = [0 : 1 : 400]) [ 200*sqrt((1-(x/100-2)*(x/100-2)/4)*(1-0.2*(x/100-2))),x ]];
points = concat(list, [[0,400]]);
difference() {
cylinder(10,15,15,true,$fn=200);
scale([0.1,0.10,0.175])
rotate_extrude($fn=200)
polygon(
points
);
} | glb/cad_235cc688a8fc.glb |
Create a hollowed-out cylinder with an outer diameter of 30mm and a height of 10mm. To create the interior cavity, remove a sphere with a radius of 20mm, positioned so that its center is 20mm above the base of the cylinder. Ensure the cylindrical surfaces are rendered with high resolution for a smooth finish. | difference(){
cylinder(10,15,15,true,$fn=200);
translate([0,0,20])
sphere(20, $fn=400);
} | glb/cad_e0ad9655e226.glb |
Create a cylindrical base with a radius of 15mm and a height of 10mm. Centered within this base, carve out a void created by an ellipsoid. This ellipsoid should have a radius of 20mm in both the X and Y axes, and be scaled to a height of 35mm along the Z axis. Position the ellipsoid so that its center is 35mm above the... | difference() {
cylinder(10,15,15,true,$fn=200);
translate([0,0,35])
scale([1.0,1.0,1.75]) sphere(r=20, $fn=400);
} | glb/cad_6c937ce0cf36.glb |
Create an ovoid geometry by rotating a specific 2D profile around a central vertical axis. The profile is defined by a set of points where the width varies based on the height, creating a curved silhouette that is wider at the bottom and tapers toward the top. Specifically, the profile follows a curve where the radius ... | $fa=0.01;
list = [ for (x = [0 : 1 : 400]) [ 200*sqrt((1-(x/100-2)*(x/100-2)/4)*(1-0.2*(x/100-2))),x ]];
points = concat(list, [[0,400]]);
scale([0.1,0.10,0.175])
rotate_extrude($fn=200)
polygon(
points
); | glb/cad_77d2d2025cc5.glb |
Create a Desktop Smart Phone and Tablet Holder. Start with a rectangular base measuring 7.7mm wide, 4.7mm deep, and 0.6mm high. Center a semi-cylindrical cutout along the length of the base with a radius of 0.55mm and a length of 8.5mm to allow for cable passage.
Construct two side walls, each 0.5mm thick, 4.3mm deep,... | $fn=90;
difference() {
translate([-0.5,-3,0]) cube(size=[8.2,4.7,0.6]);
translate([-0.6,-3.1,0.5]) rotate(a=[0,90,0]) cylinder(r=0.55,h=8.5);
}
intersection() {
translate([3.6,-1.8,-1]) sphere(r=5.2);
translate([0,-0.6,0]) cube(size=[7.2,0.6,4]);
}
intersection() {
translate([3.6,-3.8,-1]) sphere(r=6.6... | glb/cad_d6ba129ab33a.glb |
Create a Parametric Tatting Shuttle. The main body is a hollow, symmetrical shell with a length of 70mm, a width of 20mm, and a height of 10mm. The shell's cross-section is defined by smooth, organic curves that taper at both ends, with a wall thickness of 1mm.
At one end, integrate a hook that extends 10mm from the b... | shuttle_width = 20;
shuttle_length = 70;
shuttle_height = 10;
shuttle_wall_thickness = 1;
central_shaft_percent = 50;
central_shaft_bore_diameter = 3;
shuttle_has_hook = true;
shuttle_hook_length = 10;
shuttle_hook_out = 4;
shuttle_hook_base_percent = 15;
side_by_side_halves = false;
EPSILON = 0.001;
module... | glb/cad_be3885722433.glb |
Create a Fiber Optic Light consisting of a central core, a bottom base, and a top cover.
For the center, create three identical cylinders with a radius of 3mm and a height of 45mm, each rotated 120 degrees around the Z-axis. Surround these with a larger outer shell of the same height, adding a wall thickness of 1.6mm... | Radius = 3 ;
Width = 1.6 ;
Height = 45 ;
WidthLed = 5 ;
LengthLed = 8 ;
FitTolerance = 0.9 ;
parts = "all" ;
$fa = 1 ;
$fs = 0.3 ;
module FiberOpticLight(Radius3, Width)
{
Area3 = PI * Radius3*Radius3 ;
Area1 = Area3 * 3 ;
Radius1 = sqrt(Area1/PI) ;
H1 = Height / 3 ;
H3 = Height ;
H2 = (H1... | glb/cad_9c5381b51ada.glb |
Create a motor mount bracket by starting with a base plate that is 26mm wide, 32mm long, and 4mm thick. The base should have a rounded-rectangular profile, formed by the hull of a central 7mm radius rectangle and a crossing 7mm radius rectangle.
Remove a central cylindrical hole with a radius of 5.5mm and a depth of ... | $fn=50;
bracket_w = 26;
bracket_l = 32;
bracket_motor_hole = 11;
bracket_motor_hole_depth = 3;
bracket_mount_wall = 4;
bracket_bolt_radi = 7/2;
bracket_thread_radi = 4/2;
bracket();
%bracket(true);
module bracket_cutouts(cutout_h=30){
translate([bracket_w/2,bracket_bolt_radi,0])
cylinder(r=bracket_thread_radi,h... | glb/cad_e3d8f7a3941b.glb |
Create a motor mount by constructing a rectangular hollow sleeve. Start with a solid rectangular block measuring 18.5mm in width, 35mm in length, and 18.5mm in height. From this block, remove a central rectangular section to create a channel for a wooden bar. This cutout should be 12.5mm wide, 35mm long, and 12.5mm hig... | $fn=50;
l = 35;
inset = 5;
bar = 12.5;
wall = 3;
w = bar + 2*wall;
barmount();
%barmount(true);
module barmount (cutouts = false){
if (cutouts == false){
translate([-w/2,0,0])
difference(){
cube([bar+2*wall,l,bar+2*wall]);
barmount_cutouts(l=l);
}
} else {
translate([-w/2,0,0])
barmount_cutouts();
... | glb/cad_addb5766632a.glb |
Create a shrouded propeller consisting of a central hub, radiating fins, and an outer ring.
Start with a central cylindrical hub with a radius of 5mm and a height of 5mm. Cap the top of this cylinder with a hemisphere of the same 5mm radius. Drill a vertical hole with a radius of 1.2mm through the center of the hub a... | trad=32;
outw=1.5;
bevh = 2;
rins= 5;
chrad = 1.2;
hubstyle = 1;
nfins=5;
tdepth = 5;
fangle = 60;
tfin = 1;
fs=.2;
fa=4;
fn=40;
nslices=15;
module total(fs,fa,fn,nslices,trad,outw,nfins,rins,tdepth,fangle,bevh,tfin,hubstyle)
{
$fs=fs;$fa=fa;$fn=fn;
union(){
difference(){
union(){
cylinder(r=rins,... | glb/cad_db742efe39f2.glb |
Create a Twig Mobile Holder consisting of a central ring with integrated mounting features. Start by creating a main cylinder with a height of 10mm and a diameter of 65mm. Hollow out this cylinder by removing a concentric inner cylinder with a diameter of 55mm and a height that exceeds the main body.
To create the mo... | include <Dimensions.scad>;
bar_diameter = min(screw_head_diameter, distance_ring_height);
intersection() {
translate([0,0,bar_diameter/2])
rotate([0, 90, 0])
scale([1.2, 1, 1])
cylinder(h=screw_distance-screw_head_diameter+2*epsilon, d=bar_diameter, center=true, $fn=detail*4);
cylinder(h=bar_diameter, d=screw_dis... | glb/cad_2bc21d603f7b.glb |
Create a fence top rail end socket. Start by constructing a main hollow cylinder with an outer diameter of 24.5mm and a wall thickness of 3mm. The total height of this outer shell should be 40mm, but the interior cavity should only extend to a depth of 37mm, leaving a 3mm thick base at the bottom. At the very bottom of... | diam = 43.5;
inner_height = 37;
thickness = 3;
module triangle(radius)
{
o=radius/2;
a=radius*sqrt(3)/2;
polygon(points=[[-a,-o],[0,radius],[a,-o]],paths=[[0,1,2]]);
}
difference() {
union() {
cylinder(inner_height + thickness, diam / 2 + thickness, diam / 2 + thickness, false, $fn = 50);
cylinder(2, diam / 2 + t... | glb/cad_73b637f9d145.glb |
Create a 3D model of a vector chain consisting of ten connected arrows. Each arrow is composed of a cylindrical shaft and a conical tip. The shaft is a cylinder with a radius equal to 5% of the vector's magnitude, and the tip is a cone with a base radius 1.5 times that of the shaft and a height equal to 3 times the sha... | use<utils/hsvtorgb.scad>
drawArrowChain_3DVector([[0,0,30],[-5,5,8],[-5,5,0],[-5,5,-8],[-1,1,-30],[-1,1,30],[-5,5,8],[-5,5,0],[-5,5,-8],[0,0,-30]], [15,-15,0]);
function magnatude_3DVector(v) = sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
function angleBetween_3DVector(u, v) = acos((u * v) / (magnatude_3DVector(u)... | glb/cad_be38c3c1d627.glb |
Create a protective box for a KK2 flight controller consisting of a main housing, a cover, and a small mounting knob.
For the main housing, create a hollow cube with outer dimensions of 58.4mm x 58.4mm and a height of 15mm. The walls should be 3mm thick. The interior cavity is a cube of 52.4mm x 52.4mm x 12mm. Cut a ... | $fn = 50;
wall = 3;
xycor = 0.2;
fc = 52 + 2*xycor;
fc_h = 12;
overlap = 4;
conw = 9;
rxh = 16;
mh = 13;
mos = 20;
rxos = 17;
scr_w = 2*13;
scr_h = 13;
scr_os = 17;
btn_offset = 5;
btn_dis = 9;
translate([0,-20,0]) knop();
translate([10,0,0]) cover();
translate([-10,0,0]) fcbox();
module knop(){
translate(... | glb/cad_e3c46e54f291.glb |
Create a Tevo Titan Extruder 2040 Custom Bracket with a general material thickness of 2mm.
Start with a rectangular attachment plate measuring 40mm by 70mm and 2mm thick. Center a rectangular hole pattern on this plate for screws with a diameter of 3.9mm, spaced 16.8mm apart by 59.8mm.
Construct a stepper motor moun... | stepper_dimensions = [42.5,42,40];
stepper_autofit_height_p = "yes";
stepper_bore = 24;
stepper_screw_rectangle = [31,31];
stepper_screw_diameter = 3.4;
stepper_slice_thickness = 1;
stepper_confinement_support_height = 17;
stepper_to_bracket_x_offset = 0;
extruder_screw_hole_slices = [0,1,1,0];
extruder_screw_... | glb/cad_b875d56ccae3.glb |
Create a DIN clip mount by starting with a rectangular block that is 10mm high. Within this block, create two aligned cylindrical holes, each with a diameter of 2.9mm and a depth of 9mm. Position the first hole centered along the length of the block at a distance of 10mm from one end, and position the second hole 40mm ... | mount_thickness=5;
mount_length=50;
mount_height=10;
mount_hole_diameter=3;
mount_hole_separation=0;
$fn=96;
difference(){
translate([-mount_thickness,-mount_length/2+25,-5])
cube([mount_thickness,mount_length,mount_height]);
translate([-mount_thickness,25-mount_hole_separation/2,0])
rotate([0,90,0])
cylinder(d=mount_... | glb/cad_f6928af1154f.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.