Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a Universal Parametric Hook with a consistent thickness of 3mm and a width of 4mm throughout. The model is composed of three main sections: a top, a center, and a bottom.
Start with the center section, which is a straight rectangular bar 25mm long.
For the top section, create an inner curve with a radius of 5... | $fn = 100;
hook_thickness = 3;
hook_width = 4;
top_inner_radius = 5;
top_inner_angle = 90;
top_outer_radius = 5;
top_outer_angle = 160;
top_length = 0;
center_length = 25;
bottom_inner_radius = 10;
bottom_inner_angle = 133;
bottom_outer_radius = 7;
bottom_outer_angle = 110;
bottom_length = 10;
module wedg... | glb/cad_baa281996b88.glb |
Create a foldable spool holder consisting of a central plate and three foldable arms.
First, construct the central plate as a disc with a thickness of 5mm and an external diameter of 90mm. Remove a concentric central hole with a diameter of 30mm. Additionally, remove three smaller screw holes, each 3.4mm in diameter,... | print=false;
type="plate";
$fn=30;
tolerance=.2;
spool_internal_diameter=220;
central_internal_diameter=30;
central_external_diameter=90;
central_thinkness=5;
screw_hole_diameter=3.4;
arm_fixation_diameter=14;
screw_hole_radius=central_external_diameter/2-arm_fixation_diameter/2;
arm_thinkness=10;
arm_fork_lenght=50... | glb/cad_68a515f41938.glb |
Create a filament drive fan mount. Start with a rectangular block that is 10mm wide, 60mm long, and 20.3mm high.
From this block, remove a central rectangular section to create a hollow channel, leaving walls that are 2mm thick. In the center of the block's face, create a circular cutout with a diameter of 38mm and a... | err=0.4;
capD=5.5+err;
extraH=2;
capH=3+extraH;
baseBoltDist=59.9+capD-err;
screwD=3+err;
leftBaseToBolt=22.6+capD/2;
rightBaseToBolt=37.17+capD/2;
baseBoltToFaceBolt=15.6-capD;
t=2;
smallFan();
module smallFan(){
fanHoleD=5.5+err;
fanHole2D=4.35+err;
fanHoleZ=9;
fanHoleDist=26.6+fanHoleD;
fanD=38;
fanHoleToC... | glb/cad_67147afd0046.glb |
Create a wax foundation embosser roller with a total height of 10mm. The main body is a cylinder with a diameter of approximately 6.86mm. Carve a central hole through the entire length of the cylinder with a diameter of 3.7mm.
On the outer surface of the cylinder, create a repeating pattern of hexagonal cells. There ... | h=10;
n=20;
dw=4.3;
w=0.5;
h1=1.5;
an=30;
ds=(dw-w)/sin(360/6);
dc=((n*dw)/(2*PI))*2;
dh=dw*sin(360/6);
module st() {
difference() {
translate([dc/2, 0,0]) rotate([0,90,0]) cylinder(h1*2, ds/2, ds/2, $fn=6, true);
for (r1=[0:2])
translate([dc/2+h1, 0,0]) rotate([r1*120,0,0]) rotate([0,-an,0]) translate([0.01,-dw... | glb/cad_67dc23f20a2a.glb |
Create a BNC connector dust cap by starting with a main cylinder that has an outer diameter of 13.8mm and a height of 12mm. Remove a concentric inner cylinder with a diameter of 10.3mm and a height of 12mm to create a wall thickness of 1.75mm. At the bottom of the outer cylinder, add a slight conical taper that narrows... | inner_d = 10.3;
inner_h = 12;
wall_thickness = 1.75;
outer_d = inner_d + 2*wall_thickness;
slot_offset = 4;
slot_depth = 0.75;
slot_width = 2.5;
base_h = 1;
angle_step = 3;
$fn=90;
k1=1.2;
k2=1.2;
eps1 = 0.01;
eps2 = eps1 + eps1;
module cross_bar(d, l, z, a) {
translate([0, 0, z]) rotate([0, 0, a]) rotate([... | glb/cad_c16148475599.glb |
Create a simple parametric fan grill. Start with a square plate measuring 40mm by 40mm with a thickness of 2mm. Round the four outer corners of this plate with a radius of 4mm.
At each of the four corners, create a vertical cylindrical hole with a diameter of 3mm, positioned 4mm from each adjacent edge.
In the cent... | fansize = 40;
screwoffset = 4;
screwsize = 3;
module mroundcube(d, r = 1, center = false)
{
trn = center ? [-d[0]/2, -d[1]/2, -d[2]/2] : [0,0,0];
translate(trn) union() {
for(i=[r,d[0]-r])
for(j=[r,d[1]-r])
translate([i, j, 0]) cylinder(r=r, h=d[2], $fn=32);
transl... | glb/cad_037bcc806a17.glb |
Create a Vertical Carriage with Front Belt Mount. Start with a central rectangular block 76mm wide, 24mm high, and 13mm thick.
At the left and right edges, centered 25mm from the middle, create two vertical cutouts. Each cutout consists of a cylindrical hole with a 6.5mm radius and a corresponding rectangular slot 13... | width = 76;
height = 24;
offset = 25;
cutout = 13;
middle = 2*offset - width/2;
module parallel_joints(reinforced) {
difference() {
union() {
intersection() {
cube([width, 20, 8], center=true);
rotate([0, 90]) cylinder(r=5, h=width, center=true);
}
intersection() {
translate([0, 18, 4]) rotate... | glb/cad_9e88e8ba03b9.glb |
Create a geometric object that transitions from a square base to a spherical top. Start by forming a hull between a centered cube with dimensions 20mm x 20mm x 1mm and a sphere with a diameter of 10mm positioned 20mm along the X-axis and 100mm along the Z-axis. From this combined volume, remove a hollow cylindrical sec... | d1=20;
d2=10;
trans=20;
l=100;
liga=4;
difference(){
hull(){
cube([d1,d1,1],center=true);
translate([trans,0,l]) sphere(d=d2);
}
rotate([0,90,0])
difference(){
cylinder(liga,d=d1+2*liga,center=true);
cylinder(liga,d=d1,center=true);
}
} | glb/cad_d6aead12deaf.glb |
Create a Multirotor motor and yaw support. Start with a main cylindrical base with a diameter of 38.5mm and a height of 3.5mm. In this base, create a central hole with a diameter of 11.67mm. Position four screw holes with a diameter of 3.1mm around the center; two holes are placed 19mm apart along the X-axis and two ho... | $fn=50;
d2814=35;
facteurepaisseur=0.1;
fix2814=[19,25];
dmoteur=d2814;
fix=fix2814;
dvism=3.1;
daxe=5;
dteteaxe=9;
distancecommande=16;
decrouaxe=9;
xservo=24;
x2servo=5.5;
yservo=12.5;
zservo=32.5;
z2servo=23.5;
pservo=2;
moteurYaw();
module moteur(){
difference(){
cylinder((dmoteur*facteurepaisseur),d=dmoteur... | glb/cad_19d93ab66955.glb |
Create a PL-05N / PL-08N sensor mount with a uniform thickness of 3mm. The main body is a composite flat plate consisting of a central circle with a radius of 25.6mm merged with a centered square of 25.6mm per side. From this combined shape, remove a central circular hole with a diameter of 19mm.
Cut a rectangular sl... | $fn = 50;
module roundedRect(size, radius) {
x = size[0];
y = size[1];
z = size[2];
hull()
{
xx=x/2;
yy=(y/2)-radius;
zz=(z/2)-radius;
translate([-xx, yy,-zz])
rotate([0,90,0])
cylinder(r=radius,h=x);
translate([-xx, -yy,-zz])
rotat... | glb/cad_7ab30b6f9fc4.glb |
Create a bracket for an oral irrigator tips holder. Start with a base rectangular block measuring 18.2mm wide, 44.2mm deep, and 11.7mm thick. On the back side, extend a vertical wall upwards from the base; this wall should be 18.2mm wide, 3.9mm thick, and 35.1mm high, positioned at the rear of the base.
At the top cen... | scale([1.3,1.3,1.3])
{
difference()
{
difference()
{
union()
{
difference()
{
union()
{
cube([14,34,9]);
translate([0,31,9]) cube([14,3,27]);
}
translate([5,31,3]) rotate ([0,-90,90]) intersection()
{
polyhedron ( points = [[0, -15, 28], [0, 15, 28], [0, 15... | glb/cad_6e1a4104d957.glb |
Create a fruit tree tag by starting with a rectangular base that is 70mm long, 15mm wide, and 3mm thick, with all corners rounded to a 5mm radius. Carve a recessed rectangular area into the top surface that is 65mm long and 10mm wide, with a depth of 1mm, leaving a consistent border around the edges. Drill a circular h... | difference() {
minkowski() {
cube([70,15,3]);
color("green") {
cylinder(r=5,1);
}
}
translate([2.5,2,2]) {
color("red") {
minkowski() {
cube([65,10,1]);
color("green") {
... | glb/cad_2a5f90f4fc37.glb |
Create a hook for an extensible leash by starting with a rectangular base measuring 10mm wide, 8mm deep, and 2mm high. Centered on this base, add a vertical rectangular pillar that is 2.5mm wide, 8mm deep, and 11mm high, positioned 3.75mm from the left edge. To form the upper attachment, create a circular ring centered... | cube([10, 8, 2]);
translate([3.75, 0, 0]) cube([2.5, 8, 11]);
translate([5, 4, 15]) rotate([90, 0, 0]) rotate_extrude($fn = 200) translate([6.5, 0, 0]) circle(r=1.5, $fn=200);
hull() {
translate([3.75, 0, 5]) cube([2.5, 8, 6]);
translate([0, 2.75, 10]) rotate([0, 30, 0]) cube([3, 2.5, 1]);
translate([7.5, 2... | glb/cad_aea3bb43cf15.glb |
Create a Treasure Mountain container. Start by constructing a solid cone-like base with a height of 20mm. The top radius of this base is 30mm (calculated as 25mm scaled by 1.2), and the bottom radius is determined by a 20-degree slope relative to the vertical. On top of this base, place a cap that is a scaled version (... | container_height = 20;
wall_thickness = 2;
well_depth = 2;
top_thickness = 1;
slope = 20;
support_slope = 50;
capXY_Scale = 1.2;
well_radius = 24;
hole_radius = 16;
cap_name = "base.stl";
cap_radius = 25;
cap_height = 6.85;
capXY_Offset = [-25, -25, 0];
theMountain() ;
module theMountain() {
difference() {
... | glb/cad_37c5e3184558.glb |
Create a Duet and DueX4 enclosure. Start with a rounded box that has an outer length of 131mm, a width of 127.7mm, and a total height of 28mm. The walls and base should be 3mm thick. Hollow out the center to create an inner cavity of 125mm by 121.7mm, leaving a 3.7mm high lip at the top for a lid.
On the front wall, c... | Enc_X4_stacked=true;
Enc_hollowbase=false;
Enc_wall_cutout=false;
Enc_extra_width=20.0;
Enc_ventillation=4;
Enc_ventillation_spacing=10.0;
Enc_basic_inner_height=25.0;
Enc_X4_separation=6.5;
Enc_5V_cutout=true;
Enc_X4_standoff=16;
Enc_duet_standoff=(Enc_X4_stacked) ? Enc_X4_standoff+Enc_X4_separation : 12.5;
Enc_stand... | glb/cad_6ce740f210ea.glb |
Create a flat protective case for a Pocket AVR Programmer. Start with a base rectangular plate measuring 52.35mm by 36.35mm with a thickness of 2.5mm.
At each of the four corners, create a rounded lug with a radius of 5mm. Center a circular hole with a diameter of 3.1mm through the middle of each corner lug.
On the... | height = 2.5;
internal_x = 47.0 + 0.35;
internal_y = 31.0 + 0.35;
box_x = internal_x + 5.0;
box_y = internal_y + 5.0;
bolt_size = 3.1;
lug_rad = 5;
wall_x = (box_x - internal_x)/2;
wall_y = (box_y - internal_y)/2;
wall_z = 3;
rotate (90)
difference()
{
union()
{
translate([0,0,height/2]) cube([box_x,box_y,heigh... | glb/cad_24f9462f98d5.glb |
Create a protective case for a Pocket AVR Programmer. Start with a solid rectangular base measuring 52.35mm by 36.35mm with a height of 9mm. At each of the four corners, integrate a rounded lug with a radius of 5mm.
Hollow out the center of the base to create a rectangular cavity measuring 47.35mm by 31.35mm, leaving ... | height = 9;
internal_x = 47.0 + 0.35;
internal_y = 31.0 + 0.35;
box_x = internal_x + 5.0;
box_y = internal_y + 5.0;
bolt_size = 3.1;
lug_rad = 5;
wall_x = (box_x - internal_x)/2;
wall_y = (box_y - internal_y)/2;
wall_z = 3;
rotate (90)
difference()
{
union()
{
translate([0,0,height/2]) cube([box_x,box_y,height]... | glb/cad_e183912cb3dd.glb |
Create a protective case for a Bus Pirate v4.0. Start with a main rectangular block measuring 69.2mm in length, 42.1mm in width, and 9mm in height. Hollow out the center to create a main internal cavity measuring 64.2mm by 37.1mm, leaving a wall thickness of approximately 2.5mm on each side.
At each of the four corner... | height = 9;
box_x = 69.2;
box_y = 42.1;
internal_x = 64.2;
internal_y = 37.1;
bolt_size = 3.1;
lug_rad = 5;
wall_x = (box_x - internal_x)/2;
wall_y = (box_y - internal_y)/2;
wall_z = 3;
rotate (90)
difference()
{
union()
{
translate([0,0,height/2]) cube([box_x,box_y,height], center=true);
translate([ box_x/2-... | glb/cad_340e852829ca.glb |
Create a case for a Bus Pirate v4.0. Start with a base rectangular plate measuring 69.2mm by 42.1mm with a thickness of 2.5mm.
At each of the four corners, create a rounded lug with a radius of 5mm. Within each of these four lugs, center a circular hole with a diameter of 3.1mm that passes completely through the plat... | height = 2.5;
box_x = 69.2;
box_y = 42.1;
internal_x = 64.2;
internal_y = 36.1;
bolt_size = 3.1;
lug_rad = 5;
wall_x = (box_x - internal_x)/2;
wall_y = (box_y - internal_y)/2;
wall_z = 3;
rotate (90)
difference()
{
union()
{
translate([0,0,height/2]) cube([box_x,box_y,height], center=true);
translate([ box_x/2-... | glb/cad_f0f7efc17857.glb |
Create a Dual Spinner fidget toy by constructing a solid body 7mm thick. Start with a central cylinder 26mm in diameter and 7mm high. Extend two arms from this center by creating a hull between the central cylinder and two outer cylinders, each 26mm in diameter and 7mm high, positioned 24mm from the center point on opp... | bearing_dia=22;
bearing_thickness=7;
wall_thickness=2;
$fa=1;
$fs=.5;
outer=bearing_dia/2 + wall_thickness;
inner=bearing_dia/2;
arm=inner*2+wall_thickness;
difference()
{
for(n = [1:2])
{
rotate([0,0,n*180])
{
hull()
{
translate([0,0,0])
cylinder(r=outer, h=bearing_thickness, center=false);
... | glb/cad_18e4796d1fb1.glb |
Create a puzzle consisting of two identical rectangular blocks and two cylindrical rods. Each block is a rectangular prism measuring 70mm in length, 10mm in width, and 20mm in height.
For each block, carve a central horizontal hole with a radius of 3mm that runs along the length. This hole should not be a simple cyli... | EPS=0.01;
$fs=0.2;
RadiusOfHole=3;
ClearanceRod=0.5;
ClearanceRodLength=2;
ClearenceGroove=0.4;
ClearanceJoin=0.3;
Height=20;
Width=10;
Length=70;
MaterialAfterHole=3;
HoleLength=Length-2*MaterialAfterHole;
JoinSmall=3;
JoinWide=5;
JoinHight=5;
module thing() {
translate([0,0,Height/2]) difference() {
cube... | glb/cad_1a1d80511db3.glb |
Create a cable chain mount consisting of a semi-cylindrical base and a rectangular bracket. Start with a solid semi-cylinder that has a radius of 14mm and a height of 14.6mm. Flatten two opposite sides of this semi-cylinder by removing two rectangular blocks, each measuring 14mm by 28mm by 14.6mm, to create a flat-side... | translate([0,50,0]){
difference(){
cube([3,23,14]);
translate([0,31,0]){
rotate([45,0,0]){
cube([3,20,20]);
}
}
}
rotate([0,90,0]){
translate([-3,0,0]){
cube([3,13,22.8]);
}
}
difference(){
difference(){
translate([20,0,0]){
cube([3,23,1... | glb/cad_7988a503482b.glb |
Create two cable chain mounts for a 3D printer x-axis. For the first mount, create a rectangular block measuring 4.5mm by 20mm by 32.5mm. Drill two holes completely through the block along the Y-axis; both holes must have a radius of 2.2mm, with one centered at a height of 23mm and the other at 5.5mm.
For the second m... | difference(){
cube([4.5,20,32.5]);
union(){
translate([0,10,23]){
rotate([0,90,0]){
cylinder(h=5,r=2.2,$fn=50);
}
}
translate([0,10,5.5]){
rotate([0,90,0]){
cylinder(h=5,r=2.2,$fn=50);
}
}
}
}
tra... | glb/cad_5909decd6cc5.glb |
Create a nameplate by generating a 3D surface based on a 100x100 pixel image, stretched to fit a square area and extruded to a height of 10mm. Additionally, place a cube with dimensions of 20mm by 20mm and a height of 10mm at the position 200mm on the X-axis, 200mm on the Y-axis, and 0mm on the Z-axis. | height = 10;
image_file = "DIG_Logo.dat";
scale([1,1,height]) surface(file=image_file, center=true, convexity=5);
translate([200,200,0])
cube([20,20,10]); | glb/cad_f72d6ea54eb4.glb |
Create a Mushroom House Keychain with a total width of 28mm, height of 56mm, and a uniform thickness of 4mm. The main body is a house-shaped outline with a 4mm fillet on the corners. The outer boundary is defined by a rectangle with a rounded top, while an inner cutout follows the same house shape, offset by a 4mm bord... | $fn=20;
width=28;
height=56;
fillet=4;
thickness=4;
roofline=height/2;
line=4;
eave=line;
small_spot_r=width/5;
large_spot_r=width/3;
module house_shape(w,h,r,e,f){
union(){
hull(){
translate([f,f,0])
cylinder(r=f, h=thickness);
translate([w-f,f,0])
... | glb/cad_66a41dd80ac7.glb |
Create a Cube LED holder by constructing a grid of 64 identical cells arranged in an 8 by 8 square pattern. Each individual cell is a cube measuring 25.4mm on all sides. From the center of each 25.4mm cube, remove a square-based pyramid with a height of 23.41mm, where the base of the pyramid is rotated 45 degrees and h... | for (z = [0:25.4:(8*25.4)])
{
for (x = [0:25.4:(8*25.4)])
{
difference() {
translate ( [z,x,12.7] )
cube (size = [25.4,25.4,25.4], center = true);
union() {
translate ( [z,x,2] )
rotate ( [0,0,45])
cylinder(h = 23.41, r... | glb/cad_def7babd0329.glb |
Create a hollow vase-like object with a total height of 80mm, constructed by stacking 100 thin, centered square layers. Each layer should rotate by 1 degree relative to the one below it, creating a twisting spiral effect.
The dimensions of the squares vary along the height: the base starts with a width and depth of 4... | t=70;
m=50;
b=40;
h=80;
layers=100;
r=1;
points = 1;
d="No";
hollow="Vase";
angle = 90/points;
layersq=layers*layers/4;
b2=b-4;
m2=m-4;
t2=t-4;
for (i=[0:layers]) {
if (hollow=="No") {
for (j=[1:points]) {
translate([0,0,i/layers*h]) rotate([0,0,r*i+angle*j]) cube([b+i/layers*(t-b)+((i-layers/2)*(i-laye... | glb/cad_902aad254251.glb |
Create a Test01 model by constructing a cylinder with a radius of 4mm and a height of 40mm. Center a sphere with a radius of 3mm at the base of the cylinder and remove the volume of the sphere from the cylinder to create a hemispherical void at the bottom. | Radius = 4;
Hight = 40;
R_Sphere = 3;
difference() {
cylinder(Hight,Radius,Radius);
sphere (R_Sphere);
} | glb/cad_f1eaa6e72440.glb |
Create a parametric lamp shade by revolving a specific profile 360 degrees around a central vertical axis. The profile to be revolved consists of a base section and a shade section. Start with a base that is a cylinder with a radius of 30mm and a height of 15mm. From the top of this base, extend a wall with a thickness... | t=1;
tr=55;
br=30;
s=15;
l=100;
h=100;
a=33;
$fn=100;
module lampoutline(){
circle(r=2*t);
rotate([0,0,t])square([t,s],center);
translate([0,s,0])rotate([0,0,a])square([t,l],center);
translate([0,s,0])circle(r=t);
translate([-tr,h,0])circle(r=2*t);
}
difference(){
rotate_extrude(angle = 360, convexity = 2) tran... | glb/cad_08f5951002af.glb |
This OpenSCAD code is a parametric generator for Canadian license plates. It uses a series of modules to define the specific graphics, text, and shapes for each province and territory, allowing the user to customize the plate via variables.
### Key Components of the Code:
#### 1. Parametric Variables (Implicit)
Altho... | Province="Alberta";
PlateText=" 3D4L";
FontHeight=25;
FontFile="Univers 57 Condensed";
FontSquish=.8;
PlateScale=.4;
BearPlate=0;
fudge = 0.1;
module Alberta(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[314.765720,333.827060],[314.704116,333.140569],[315.040283,332.0... | glb/cad_e3e2d9409426.glb |
Create a Support for Birdhouse Pole Connector consisting of a flat square base and a central square sleeve. Start by creating a square base plate measuring 100mm by 100mm with a thickness of 5mm. At each of the four corners of this base, centered 10mm from the edges, create a circular hole with a radius of 3mm that pas... | union(){
difference()
{
cube([100,100,5]);
translate([32,32,-1])
cube([36,36,7]);
translate([10,10,-1])
cylinder(h=7,r=3);
translate([90,10,-1])
cylinder(h=7,r=3);
translate([90,90,-1])
... | glb/cad_4ed9682ada0b.glb |
Create a wrist picture frame consisting of a rectangular base and a raised border. Start with a main rectangular body measuring 51mm by 38mm with a thickness of 2mm. Add two side walls, each 38mm long, 2mm wide, and 10mm high, positioned at the left and right edges of the base. Create a central photo slot by removing a... | difference(){
union(){
translate([-7.5,-1.5,0])
cube([51,38,2]);
translate([-1.5,-1.5,0])
cube([38,2,10]);
translate([-1.5,35.5,0])
cube([38,2,10]);
translate([-1.5,-1.5,0])
cube([2,38,10]);
cylinder(10,3,3,$fn=60);
translate([35,0,0])
cylinder(10,3,3,$fn=60);
translate([0,35,0])
cylinder(10,3,3,$fn=60);
translate([3... | glb/cad_99b56d311754.glb |
Create a parametric spiral staircase consisting of a central column and a series of radiating steps. Begin by placing a vertical cylinder with a radius of 10mm at the center to serve as the main column. Around this column, arrange 45.5 individual steps, which is the result of 3.5 full revolutions with 13 segments per t... | revolutions = 3.5;
radius = 100;
segments = 13;
height = 40;
column = 10;
module triangle(y = 100, angle = 60, h = 10) {
x = y*tan(angle/2);
for (i = [-1, 1]) {
translate([i*x/2, -y/2, 0])
mirror([1-i, 0, 0])
difference() {
cube([x, y, h], center = true);
rotate([0, 0, angle/2])
... | glb/cad_183a26eb08f1.glb |
Create a Quantized Angular Momentum Playset by constructing a series of intersecting geometric shapes. The overall form is constrained within a sphere with a radius of 50mm.
Within this sphere, create a set of spokes based on a spin value of 3. For each integer value from -3 to 3, generate a spoke. If the value is 0,... | $fa = 4;
$scale = (4/3) * 100;
$spoke_thickness = 12;
$vertical_thickness_multiplier = 3/2;
module normal_spoke(x, y) {
magnitude = sqrt(x*x+y*y);
height_difference = $spoke_thickness * magnitude / x;
difference() {
translate([0,0,-height_difference/2]) cylinder(r1=0, r2=x, h=y)... | glb/cad_aa08200f01cc.glb |
Create a knob for a rotary encoder consisting of a tapered main body and a central shaft coupling. The main body is a truncated cone with a height of 15mm, a bottom diameter of 15mm, and a top diameter of 12mm. Hollow out the center of this cone with a cylindrical hole 10mm in diameter.
To create the grip, carve 18 i... | upperDiameter = 12;
lowerDiameter = 15;
height = 15;
innerDiameter = 10;
axisDiameter = 5.8;
axisCylinderDiameter = 7.5;
axisCylinderHeight = 8;
axisCylinderCutWidth = 1;
cutRadius1 = upperDiameter/20;
cutRadius2 = lowerDiameter/20;
upperRadius = upperDiameter/2;
lowerRadius = lowerDiameter/2;
angle=90-atan2(... | glb/cad_08766eb2ed01.glb |
Create a parametric hose adapter cuff with a total height of 55mm and a wall thickness of 1mm. The object is a hollow, tapered cylindrical shell composed of three stacked sections. The bottom section is a frustum 25mm tall, tapering from an outer diameter of 37mm at the base to 35mm at the top. The middle section is a ... | d1=35;
d2=29;
height1=25;
middle_height=5;
height2=25;
thickness=1;
delta=2;
$fn=100;
difference () {
union () {
cylinder (h = height1, d1=d1+thickness*2, d2=d1-delta+thickness*2);
translate ([0,0,height1]) cylinder (h=middle_height, d1=d1-delta+thickness*2, d2=d2+delta+thickness*2);
translate ([0,0,... | glb/cad_eb630cfd2ead.glb |
Create an Archimedean spiral generator. Start by defining a 2D Archimedean spiral shape with a thickness of 10mm. The spiral should begin at an initial angle of 2160 degrees, with a starting ray length of 15mm and a step distance of 50mm. Generate the spiral over 15 steps, using 10 sub-divisions per step to ensure a sm... | clockwise = "YES";
thickness = 10;
height = 100;
init_angle = 720 * 3;
ray_length = 15;
steps = 15;
step_distance = 50;
children_per_step = 10;
twist = 720;
scale = 0.1;
function PI() = 3.14159;
function find_parent_angles(angles, ray_length, step_distance, n, i = 1) =
i == n ? angles :
find_parent_angles... | glb/cad_d860a3583161.glb |
Create a Journal Pen Holder designed to clip onto a book cover. The object consists of two primary components: a base cover clip and a curved pen grip.
First, create the cover clip as a rectangular block with a length of 25mm, a width of 15mm, and a height of 6.8mm. From the center of this block, remove a rectangular ... | Cover_thickness=2.8;
Pen_diameter=8;
Holder_width=15;
Retention_factor=0.2;
Print=0;
coverT=Cover_thickness;
clipT=2;
clipL=25;
clipW=Holder_width;
clipH=clipT*2+coverT;
penD=Pen_diameter;
penR=penD/2;
apex=Retention_factor;
print=Print;
epsilon=0.1;
$fn=40;
module ocylinder(R1,R2,H) {
difference() {
... | glb/cad_d0f709267aff.glb |
Create a replacement back shell for a game controller. Start with a central rectangular base plate measuring 50mm by 124mm with a thickness of 1mm.
At the four corners of this base, add cylindrical standoffs with a radius of 4mm and a height of 8mm. Each standoff must have a concentric center hole with a diameter of ... | include <BezierCone.scad>
baseX = 50;
baseY = 124;
baseZ = 1;
standoffHeight=8;
standoffR=4;
standoffInnerDiameter = 1.2;
difference()
{
union()
{
base();
standOffs(standoffR,standoffHeight);
handles();
}
union()
{
standOffs(standoffInnerDiameter,standoffHeight*... | glb/cad_fddc1de4cee0.glb |
Create a reusable fastener strap by starting with a rectangular base measuring 140mm long, 24.85mm wide, and 1.25mm thick. Carve a series of diamond-shaped holes through the thickness of the strap to create a flexible mesh; these cut-outs should be arranged in a grid pattern, rotated 45 degrees, with each individual cu... | strap_length = 140;
width_in_rows = 1;
nib_rows = 4;
strap_thickness = 1.25;
nib_spacing_multiplier = 1;
nib_angle = 55;
nib_top_length = 4;
nib_thickness = 1.5;
nib_width = 3.75;
extra_nib_base_height = .6;
nib_spacing = 6.38;
length_per_quad = 5.0;
strap_width_per_row = 24.85;
for ( y = [1 : width_in_rows] )
... | glb/cad_fc1cb1c266fd.glb |
Create a Nintendo DS game cart case consisting of three identical holder units aligned side-by-side along the Y-axis. Each unit begins with a central rectangular block measuring 55mm x 50mm x 6mm.
Within each block, carve out a central cavity to house a game cartridge. This cavity is formed by a union of a 34.5mm x 3... | number_of_carts = 3;
if(number_of_carts == 1)
{
dsCartHolder();
}
else if (number_of_carts == 3)
{
threeCarts();
}
else if (number_of_carts == 9)
{
nineCarts();
}
module nineCarts()
{
threeCarts();
translate([0,blockY-.2,0])
threeCarts();
translate([0,(blockY*2)-.2,0])
threeCarts();
}
... | glb/cad_7da8655b2322.glb |
Create a parametric wire spool consisting of two symmetrical halves. Each half begins with a circular flange 80mm in diameter and 1mm thick.
For the first half, add a central cylindrical hub with an outer diameter of 40mm and a height of 19mm. This hub contains a central hole 25mm in diameter that runs through the en... | part = "all";
flange_outer_diameter = 80;
hub_outer_diameter = 40;
hub_inner_diameter = 25;
spool_width = 20;
use_flange_cutouts = 0;
cable_hole_diameter = 3;
flange_thickness = 1;
structure_thickness = 1;
socket_depth = 3;
socket_clearance = 0.5;
web_count = 5;
flange_web_thickness = 5;
socketod = (hub_in... | glb/cad_5a8603a1bdc5.glb |
Create a lady shaver hanger consisting of a rectangular mounting loop and an attached support arm.
First, construct the mounting loop as a hollow rectangular frame with outer dimensions of 24mm by 29mm and a thickness of 2mm. The inner cutout of this frame should be 20mm by 25mm. Ensure all exterior corners of the fr... | $fn=10*1;
shape = "rectangular";
hangerheight=20;
hangerwidth=25;
hangerradius=15;
hangerxsize = (shape == "rectangular") ? hangerheight : hangerradius*2 ;
hangerysize = (shape == "rectangular") ? hangerwidth : hangerradius*2 ;
thickness=2;
holderdistance=20;
holderthickness=32;
holderheight=18;
if (shape=... | glb/cad_6dc0d8accf40.glb |
Create a custom wall tube holder. Start by creating a hollow cylindrical sleeve with an inner diameter of 30mm, a wall thickness of 5mm, and a total height of 20mm. Instead of a full circle, the sleeve should be an open-ended arc with an aperture angle of 135 degrees to allow for tube insertion.
At the two open ends o... | DIAMETER=30;
HEIGHT=20;
THICKNESS=5;
ANGLE=135;
HOLEDIAMETER=4;
HOLDERS=1;
FACETS=50;
module arc( height, depth, radius, degrees )
{
render()
{
difference()
{
rotate_extrude(angle=360,$fn = FACETS)
translate([radius - height, 0, 0])
square([... | glb/cad_9c9b34b6dbe3.glb |
Create a handle for a kick scooter by combining a sphere and a cylinder, then removing a central core. Start by centering a sphere with a radius of 25mm. Attach a cylinder with an outer diameter of 35mm and a height of 40mm, positioned so that it extends upward from the center of the sphere. Finally, create a hollow ce... | diam_int=21;
diam_ext=35;
sphere_radius=25;
height=40;
difference(){
union(){
sphere(r=25,center=true);
translate([0,0,height/2]) cylinder(r=diam_ext/2,h=height,center=true);
}
translate([0,0,height/2*1.1]) cylinder(r=diam_int/2,h=height*1.1,center=true);
} | glb/cad_5a1672c06fb8.glb |
Create a parametric light fixture lens cover consisting of two concentric cylinders aligned on the same central axis. First, create a wide, flat base cylinder with a diameter of 135mm and a height of 0.5mm, centered at the origin. Directly on top of this base, add a second cylinder with a height of 1mm and a diameter o... | d=135;
l=5;
h=1;
$fn=100;
union(){
cylinder(r=d/2, h=h/2, center=true);
translate([0,0,h/2])cylinder(r=(d-l)/2, h=h, center=true);
} | glb/cad_604ab8edf8fc.glb |
Create a food scraper by constructing a convex hull that encompasses four distinct cylindrical pillars, all with a height of 3mm and centered on the Z-axis. The first pillar is centered at the origin with a bottom radius of 20mm and a top radius of 17mm. The second pillar is positioned at X=45, Y=0, with a bottom radiu... | a=20;
b=25;
c=15;
d=9;
e=3;
h1=3;
$fn=100;
hull(){
cylinder(r1=a,r2=a-e,h=h1, center=true);
translate([a+b,0,0])cylinder(r1=b,r2=b-e,h=h1, center=true);
translate([0,a+c,0])cylinder(r1=c,r2=c-e,h=h1, center=true);
translate([3*a,3*a,0])cylinder(r1=d,r2=d-e,h=h1, center=true);
} | glb/cad_beca1f2d3f1b.glb |
The provided OpenSCAD code describes a complex 3D object that resembles a **decorative wedge or a slice of a circular base** (similar to a cake slice or a architectural plinth).
### Visual and Structural Breakdown:
1. **Overall Shape:**
* The object is a **sector of a cylinder** (a wedge). It has a flat bottom... | union(){
intersection(){
celtic();
translate([0,0,5])rotate([180,0,0])holder();
}
translate([0,0,4])rotate([180,0,0])holder();
}
a=10;
d=20/2;
rb=35/2;
b=60;
h=20;
$fn=60;
module base(){
difference(){
hull(){
cylinder(r=rb, h=h);
translate([-b,-b/2,0])cube([a,b,h]);
}
translate([0,0,h/2-2])cylinder(r=d, h=h/2+4);... | glb/cad_f17ef573f99c.glb |
Create a PetBowl consisting of a main tan-colored body and a thin black base. For the main body, construct a shape 40mm wide, 15mm deep, and 10mm high. The sides should taper inward from the base to a top surface, with the corners rounded by cylinders of 10mm diameter at the front and back edges. In this body, carve ou... | $fn=100;
color("tan")
difference(){
hull() {
polyhedron(points=[[0,0,0],[40,0,0],[40,15,0],[0,15,0],[4,4,8],[36,4,8],[36,15,8],[4,15,8]],faces=[[0,1,2,3],[4,5,6,7],[0,1,5,4],[1,2,6,5],[2,3,7,6],[0,3,7,4]]);
translate([5,0,0])
cylinder(8, d1=10,d2=2);
translate([35,0,0])
c... | glb/cad_f039be5de871.glb |
Create a Three-Player Chess board component. The base geometry is a flat plate with a thickness of 3mm. The overall footprint is based on a scale of 180mm.
The primary shape is a large rhombus-like polygon defined by the coordinates [0,0], [0.75, 0.866], [0, 1.732], and [-0.75, 0.866] (scaled by 180).
Within this ma... | size=180;
module piece(i,j,off)
{
sq3=0.8660254;
ax=0;
ay=0;
bx=0.75;
by=sq3/2;
cx=0;
cy=sq3;
dx=0.5;
dy=sq3;
polygon([
[((4-j)*((4-i)*ax+(i+0)*bx)+(j+0)*((4-i)*cx+(i+0)*dx))/16-off,
((4-j)*((4-i)*ay+(i+0)*by)+(j+0)*((4-i)*cy+(i+0)*dy))/16-off],
[((4-j)*((3-i)*ax+(i+1)*bx)+(j+... | glb/cad_a363dadae0d7.glb |
Create a parametric hex pen holder consisting of seven hollow hexagonal prisms clustered together. Each hexagonal prism must have an outer radius of 20mm, a wall thickness of 2mm, and a height of 100mm. The prisms are arranged with one central hexagon surrounded by six others.
Position the central hexagon at the orig... | radius = 20 ;
shell_thickness =2 ;
central_hex_height = 100 ;
NE_hex_height = 100 ;
N_hex_height = 100 ;
NW_hex_height = 100 ;
SW_hex_height = 100 ;
S_hex_height = 100 ;
SE_hex_height = 100 ;
module pot_hexa(h,r,shell) {
difference (){
cylinder(h,r,r,$fn=6);
translate([0,0,shell])
c... | glb/cad_d56aacc87db7.glb |
Create a customizable key consisting of a polygonal socket and a handle.
First, construct the socket as a regular hexagonal prism with a flat-to-flat diameter of 5.7mm and a depth of 8mm. The outer diameter of this socket section should be slightly larger than the hole, with a radius of approximately 4.85mm.
Attache... | hole_sides = 6;
hole_diameter = 5.7;
hole_depth = 8;
string_hole = 1;
min_outer_diameter = 0;
add_foot = 0;
handle = 1;
hole_height = hole_depth + hole_diameter;
w = hole_diameter/2+2;
h = hole_height + 1;
difference()
{
union()
{
cyl_rad_min = diam2rad(hole_diameter, hole_sides) + 2;
cyl_rad = max(... | glb/cad_890b5d13625d.glb |
Create a 3D model of a filament extruder body. Start with a main block that incorporates a central filament channel. This channel is a horizontal cylinder with a radius of 3.25mm and a length of 25mm, centered at coordinates (-25, 0, 13). At the front of this channel, create a larger circular opening for the hot-end wi... | fname = "Extruder_Body_Modified.stl";
difference() {
union() {
difference() {
translate([-13.7,-24.1,14.2]) import(fname, convexity = 4);
translate([0,-25,0]) cube([25,50,40]);
translate([-20,-25,21.2]) cube([25,50,10]);
translate([-25,-25,6]) cube([10,15... | glb/cad_afa57577c234.glb |
Create a Raman Cup Lid by constructing a shallow cylinder with a diameter of 94.4mm and a height of 7.6mm. From the center of this base, remove a smaller concentric cylinder with a diameter of 94.4mm and a height of 47.2mm, starting from a height of 1.6mm from the bottom, to create a thin-walled rim. Finally, create a ... | $fn=100;
difference(){
cylinder(7.6,47.2+2,47.2+2);
translate([0,0,1.6])cylinder(8,47.2,47.2);
translate([0,0,5.6])cylinder(2.01,47.2,47.2+1);
} | glb/cad_245f86da2581.glb |
Create a Visor Clip designed to hold clip-on sunglasses. The main body is a rectangular plate measuring 110mm wide, 24mm high, and 2.4mm thick. Centered on this plate, create a large semi-cylindrical cutout with an outer diameter of 19mm and an inner diameter of 19mm, extending from the bottom edge upward to a height o... | $fn=50;
translate([-55,25,0])cube([110,2.4,2.4]);
translate([-58,2,0])cube([116,2.4,2.4]);
translate([53,21,0])cylinder(2.4,5,5);
translate([-53,21,0])cylinder(2.4,5,5);
translate([55,8,0])cylinder(2.4,5,5);
translate([-55,8,0])cylinder(2.4,5,5);
translate([55,8,0])rotate([0,0,8.8])cube([5,13.6,2.4]);
translate([-55... | glb/cad_e5aba8b8a14c.glb |
Create a Joist Bracket consisting of a U-shaped base with two vertical walls and a connecting bottom plate. The two vertical walls are each 5mm thick, 20mm deep, and 40mm high, positioned 41.3mm apart from center to center. These walls are connected by a horizontal base plate that is 5mm thick, 20mm deep, and 51.25mm w... | _bracketWidth = 41.3;
_bracketThickness = 5;
_bracketHeight = 40;
_bracketDepth = 20;
$fn = 32;
module bracketFace() {
cube(size = [_bracketThickness,_bracketDepth,_bracketHeight], center = true);
};
module bracket() {
translate([(_bracketWidth / 2) + (_bracketThickness / 2),0,0]) {
bracketFace();
... | glb/cad_62db02e00d16.glb |
Create a watch strap keeper by constructing a hollow rectangular loop with rounded outer edges. The overall outer dimensions of the keeper should be 3mm in length, 30mm in width, and 8.2mm in height.
To form the interior cavity where the strap passes through, remove a central rectangular volume that is 3mm long, 24mm... | Strap_thickness=1.2*3.5;
Strap_width=24;
Keeper_thickness=2;
Keeper_width=3;
Edge = 1;
Slit = 0;
Print=0;
strapT=Strap_thickness;
strapW=Strap_width;
keeperT=Keeper_thickness;
keeperW=strapW+keeperT*2;
keeperL=Keeper_width;
keeperH=strapT+keeperT*2;
edge=Edge;
slit=Slit;
slitAngle=0;
print=Print;
epsilon=0.1;
$f... | glb/cad_5426ded50d14.glb |
Create a watch strap buckle consisting of a frame and a prong.
First, construct the frame. The frame is a flat plate with a height of 4mm and a total width of 30mm (strap width 24mm plus 3mm walls on each side). The outer shape is a custom hybrid: the main body is a rectangular block, but the corners are rounded usin... | Strap_thickness=1.2;
Strap_width=24;
Buckle_thickness=3;
Buckle_height=4;
Slit = 1;
Frame = 6;
Prong_open = 0;
Print=0;
strapW=Strap_width;
strapT=Strap_thickness;
buckleH=Buckle_height;
buckleT=Buckle_thickness;
buckleW=strapW+buckleT*2;
buckleL=15;
pinD=2;
pinR=pinD/2;
prongR=buckleH/2;
prongW=2;
prongRot=Pro... | glb/cad_49aab72b2f38.glb |
Create an Application Box Stand by starting with a cylinder 42mm in diameter and 116.5mm in length, oriented horizontally along the Y-axis. From this cylinder, remove a central rectangular block that is 84mm wide, 116.5mm long, and 42mm high, centered on the cylinder, but offset upward by 3mm along the Z-axis. Within t... | stand_height = 116.5;
stand_weight = 42;
stand_bottom = 3;
feet_weight = 3;
insertion_weight = 25.5;
stand_top = 15;
difference()
{
rotate ([90,0,0]) cylinder (h = stand_height, d=stand_weight, center = true, $fn=100);
translate([0,0,-(stand_weight + 1)/ 2])
cube(size = [ stand_weight*2, stand_height + 1, stan... | glb/cad_3555478d519f.glb |
This OpenSCAD code describes a custom token with a specific geometric cutout. Based on the provided script, here is a breakdown of the design:
### Design Overview
The object is a **circular token** (defined by the `diameter` and `thickness` variables) that features a complex, organic cutout in the center. The cutout i... | diameter = 20;
thickness = 2;
fudge = 0.1;
module token(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
difference()
{
linear_extrude(height=h)
polygon([[-4.208125,82.168820],[-4.295547,82.027830],[-4.383319,81.886862],[-4.471440,81.745914],[-4.559908,81.604989],[-4.648725,81.464086],[-4.73788... | glb/cad_edb7590375f7.glb |
Create a Prusa i3 MK2 Mini-Rambo 1.0a enclosure. Start with a main rectangular body measuring 114.5mm in width, 104mm in depth (92mm plus a 12mm extension for the RAMbo extra), and 2mm in thickness. Extend the walls upward to a height of 35mm, except for the base floor.
Add four mounting holes for the RAMbo board: two... | rambo_extra = 12;
module main_body(){
cube( [ 114.5 , 92 + rambo_extra , 2 ] );
cube( [ 1.5 , 92 + rambo_extra , 35 ] );
translate( [ 0 , 90 + rambo_extra , 0 ] ) cube( [ 105.5 , 2 , 35 ] );
translate( [ 63 , 88.5 + rambo_extra , 0.5 ] ) cube( [ 6.5 , 2 , 34.5 ] );
translate( [ 0 , 0 , 1 ] ) cube( [ 5.5 , 7 , 34 ] );... | glb/cad_422ab498cbe0.glb |
Create a Mini-Rambo 1.0a enclosure case. The main body is a rectangular box with a base measuring 105.5mm by 99.5mm (87.5mm plus a 12mm extension for the LCD adapter) and a height of 20mm. The walls are 2mm thick.
On the top surface, create three rows of ventilation slots. Each row consists of 10 rectangular cutouts m... | rambo_extra = 12;
module body()
{
cube( [ 105.5 , 87.5 + rambo_extra , 1 ] );
cube( [ 105.5 , 2 , 20 ] );
cube( [ 2 , 87.5 , 20 ] );
translate( [ 98 , 1 , 0 ] ) cube( [ 7.5 , 5 , 20 ] );
translate( [ 0.5 , 0.5 , 0 ] ) cube( [ 5 , 6.5 , 20 ] );
translate( [ 1 , 0 , 0 ] ) cube( [ 10 , 87.5 + rambo_extra , 6 ] );
transl... | glb/cad_41551e7292cd.glb |
Create two separate hinge components for an electronics enclosure. For the upper hinge, create a central vertical cylinder with a height of 26mm and a radius of 2.4mm. On top of this, add a conical section with a height of 2mm, tapering from a radius of 2.4mm at the base to 1.8mm at the top. Attach a rectangular block ... | module upper_hinge()
{
difference()
{
union(){
cylinder( h = 26, r = 2.4, $fn=30);
translate([0,0,26]) cylinder( h = 2, r1 = 2.4, r2 = 1.8, $fn=30);
translate( [ -5 , -11 , 0 ] ) cube( [ 7 , 11 , 21 ] );
}
translate( [ -12.5 , -2.5 , 17 ] ) rotate( [0,90,0] ) cylinder( h = 20, r = 1.7, $fn=3... | glb/cad_d718f99abfc6.glb |
Create a robot vacuum cleaner replacement part consisting of several cylindrical components.
First, create two identical main bodies. Each is a cylinder with a diameter of 21.2mm and a height of 9mm. For both, remove a central vertical hole with a diameter of 3mm and a height of 8mm, starting 4.5mm from the base. Add... | echo(version=version());
echo("version piece = 2.b");
_finition=200;
_help=false;
_centrageX=20;
_typePlastic="all";
module corpsBranche(pX,pY,pZ){
translate([pX,pY,pZ])
color("green")
cylinder(9,d=21.2,$fn = _finition);
}
module corpsEquilibre(pX,pY,pZ){
translate([pX-30,pY,pZ])
color("green... | glb/cad_232545ab3103.glb |
Create a replacement propeller for a toy helicopter. Start by creating a central cylinder with a height of 10mm and a base radius of 9mm. Bore a vertical hole through the center of this cylinder with a diameter of 6.8mm. At the base of this center hole, add a small cylindrical ridge (a nudge) that is 1.4mm high with an... | blades = 3;
length = 45;
depth = 10;
t = 2.2;
shaft = 6.8;
cut = 0;
donudge = 1;
nudge = 1.4;
docuttop = 1;
cuttopheight = 4.5;
angle = 45;
difference() {
union(){
for (rotation =[0:360/blades:360]) {
rotate([0,0,rotation]) {
translate([0,8,-5]) {
... | glb/cad_6d5f5f7489a7.glb |
Create a text heart chain consisting of a series of connected heart-shaped beads arranged in an Archimedean spiral. For each character in the string "openhome.cc", construct a heart bead with a total width of 18mm and a thickness of 2.5mm. Each heart is formed by two mirrored circular arcs meeting at a point, with a sm... | text = "openhome.cc";
module a_quarter_arc(radius, angle, width = 1) {
outer = radius + width;
intersection() {
difference() {
offset(r = width) circle(radius, $fn=48);
circle(radius, $fn=48);
}
polygon([[0, 0], [outer, 0], [outer, outer * sin(angle)], [outer * c... | glb/cad_c59947dc1190.glb |
Create a Holey Ball by starting with a sphere that has a diameter of 10mm. Remove a vertical cylindrical hole from the center of the sphere to create an opening. This cylinder should have a diameter of 4mm and a total height of 15mm. Position the cylinder so that its base starts at the bottom edge of the sphere and ext... | spherediam=10;
cylinderdiam=4;
cylinderdpth=15;
sides=150;
difference(){
sphere( d=spherediam,$fn=sides);
translate([0,0,0-(spherediam/2)])#cylinder( d=cylinderdiam,h=cylinderdpth,$fn=sides);
} | glb/cad_c87b270a7c5f.glb |
Create a model of a cell nucleus and chromosomes. Start by creating a hemisphere with a diameter of 50mm. Within this hemisphere, carve out four identical vertical cylindrical voids. Each void should be formed by the space between two small spheres, each 5mm in diameter, positioned at the coordinates (25, 25), (-25, -2... | module semiesfera(diametro=50){
difference(){
sphere(diametro);
translate([0,0,-diametro]){
cylinder(diametro,diametro+10,diametro+10);
}
}
}
difference(){
semiesfera(50);
hull(){
translate([ 25, 25,-1]){semiesfera(5);}
translate([ 25, 25, 3]){semiesfera(... | glb/cad_73c84b913008.glb |
Create a model of a cell nucleus and chromosomes. Start by creating a hemisphere with a diameter of 50mm, oriented so the flat base is horizontal. Inside this hemisphere, place four small, identical chromosome structures. Each chromosome is formed by creating a hull between two small spheres, each with a diameter of 4m... | module semiesfera(diametro=50){
difference(){
sphere(diametro);
translate([0,0,-diametro]){
cylinder(diametro,diametro+10,diametro+10);
}
}
}
union(){
semiesfera(50);
rotate([180,0,0]){
hull(){
translate([ 25, 25,-1]){semiesfera(4);}
translate([ 25, 25, 2... | glb/cad_ae46ed2feeb1.glb |
Create a parametric clothes hanger consisting of three snap-together parts. The main body is formed by two symmetrical side arms. Each arm is a hexagonal bar with a diameter of 7mm. The bottom section of each arm is a straight segment, which then bends upward at an angle to form the top of the hanger, reaching a total ... | include <pins.scad>;
length = 400;
height = 110;
bar_d = 7;
bar_r = bar_d / 2;
bend_d = 38;
bend_r = bend_d / 2;
pin_d = bar_r;
plate_h = pin_d * 5;
bottom_l = length /2 - bend_r - plate_h / 2;
corner_a = atan((height - bend_d)/ bottom_l);
top_l = sqrt((bottom_l + tan(corner_a)*bend_r) * (bottom_l + tan(corner_a... | glb/cad_49539509727f.glb |
Create a luggage label plate with a thickness of 3mm and rounded corners with a radius of 3mm. The plate should be sized to accommodate two lines of text: "LH 17" on the first line and "TOP 2" on the second.
Engrave the text into the surface of the plate to a depth of 80% of the plate's thickness (2.4mm). Use a futur... | use <write/Write.scad>
line_1=" LH 17 ";
line_2=" TOP 2 ";
line_3="";
line_4="";
line_5="";
line_6="";
line_7="";
line_8="";
line_9="";
line_10="";
text_style=-80;
font="orbitron.dxf";
fontsize=8;
letter_spacing=4;
letterspacing=1.0+letter_spacing/10;
line_spacing=3;
linespacing=0.7+line_spacing/10;
plate_thickn... | glb/cad_503e6bc59dcb.glb |
Create a Custom Digits model consisting of a rectangular base with a raised numeral. Start by centering a rectangular prism that is 10mm wide, 2mm thick, and 4mm high. Positioned on top of this base, centered horizontally, create a 3D extruded numeral "1" using a bold sans-serif font. The numeral should be 12mm in size... | text_box = "1";
digits ="1";
new = "test";
if(digits==1) {
translate ([0,2,0]){
cube(size = [10,2,4], center = true);
}
}
else {
translate ([0,2,0]){
cube(size = [22,2,4], center = true);
}
}
font1 = "Archivo Black";
content = (str(text_box));
translate ([0,2.8,-2]) {
rotate ([0,0,0]) {
linear_extrude(height = 4) {... | glb/cad_f9e1492c481d.glb |
Create an Art deco switch cover for through-hole switches. Start by creating a rounded rectangular block with overall dimensions of 6mm in width, 6mm in depth, and 6mm in height, applying a corner radius of 2mm to all edges. From this base, remove a central rectangular volume measuring 3.3mm by 3.4mm and extending 36mm... | difference() {
translate([0,0,0]) roundedcube([6,6,6], true, 2);
translate([0,0,19]) cube([3.3,3.4,36] ,true);
}
difference() {
translate([0,0,0]) roundedcube([5,10,3], true, 1.7, "zmax");
translate([0,0,19]) cube([3.3,3.4,40] ,true);
}
difference() {
translate([0,0,1]) roundedcube([4.6,16,3], true, 1.7, "zmax");
... | glb/cad_25e08d67cb80.glb |
Create a PCB parametric hinged case designed to house an Arduino and a shield.
First, create the bottom enclosure. The main body is a hollowed rectangular box with an outer length of 75mm and width of 90mm, and a total height of 25mm. The walls are 1.2mm thick. Subtract rectangular cutouts from the walls to create po... | stand_off_height = 4;
stand_off_width_base = 3.5;
stand_off_width_top = 3.5;
screw_z = 4;
screw_r = 1.5;
arduino_length = 68.5;
arduino_width = 53.5;
arduino_thickness = 2;
arduino_usb_height=10.5;
arduino_usb_width=12;
arduino_usb_length=16.5;
arduino_usb_x=-6.5;
arduino_usb_y=32;
arduino_usb_z=arduino_thickness;
a... | glb/cad_17e394371b31.glb |
Create a Raspberry Pi camera mount by constructing a thick-walled cylindrical shell with a height of 72mm. The shell should have an inner diameter of 24mm and an outer diameter of 26.6mm, resulting in a wall thickness of 1.3mm. Instead of a full circle, the shell is a partial cylinder, forming an arc of 240 degrees.
C... | cameraWidth = 24;
cameraHeight = 25-1;
grooveHeight = 1;
grooveDepth = 0.5;
thickness = 1.3;
holderLength = cameraWidth*3;
holderInnerDiameter = cameraHeight-grooveDepth;
holderOuterDiameter = holderInnerDiameter+thickness*2;
holderAngle = 240;
connWidth = 21;
connHeight = 3;
enableBolts = true;
boltR = 3/2;
boltGro... | glb/cad_1b5c9e3be3c3.glb |
Create a parametric coaster by generating a continuous 3D path based on the equations x = (a-b)cos(t) + bcos(t((a/b)-1)) and y = (a-b)sin(t) - bsin(t((a/b)-1)). For this specific model, use the parameters a = 0.1, b = 1, and a scale factor of 22. Evaluate the path from t = 0 to t = 8640 degrees in increments of 5 degre... | mark = 4;
if (mark==1)
linear_extrude(height=5)
param_wiki_two(0,32000,5,0.62,1,.025,30);
else
if (mark==2)
linear_extrude(height=5)
param_wiki_two(0,16000,5,1.92,1,.03,22);
else
if (mark==3)
linear_extrude(height=5)
param_wiki_two(0,8640,5,0.15,1,.03,23);
else
if (mark==4)
linear_extrude(height=5)
param_wik... | glb/cad_8f90d44edf8c.glb |
Create a parametric coaster by generating a 3D shape with a constant height of 5mm. The footprint is defined by a continuous path of small connected segments. For each point $t$ from 0 to 360 degrees in increments of 0.25, calculate the coordinates $x = \cos(t) - \cos(80t)^3$ and $y = \sin(t) - \sin(80t)^3$.
At each ... | mark = 7;
if (mark==1)
linear_extrude(height=5)
param_wiki_three(0,360,2,.1,1,7,1,7,3,3,21);
else
if (mark==2)
linear_extrude(height=5)
param_wiki_three(0,360,2,.1,1,5,1,5,3,3,23);
else
if (mark==3)
linear_extrude(height=5)
param_wiki_three(0,360,2,.1,1,5,1,5,1,7,23);
else
if (mark==4)
linear_extrude(height=... | glb/cad_af8995a0c8de.glb |
Create a CTC dual extruder mirror holder. Start by constructing two identical fan holders, each consisting of a base plate measuring 41.5mm by 20mm by 1.5mm, with two vertical side walls 1.5mm thick and 11.5mm high. Connect these two holders with a central bridge 6.25mm wide, 20mm high, and 1.5mm thick.
Add a connecti... | mirror_width = 61;
mirror_height = 4.25;
mirror_lenght = 86;
mirrormount(
mirror_width = mirror_width,
mirror_height = mirror_height,
mirror_lenght = mirror_lenght,
fan_size = 40,
fan_height = 20,
gap_between_fans = 6.25,
gap_before_fans = 18,
gap_unde... | glb/cad_c7ebdaabbca8.glb |
Create a Parametric Cantilever Spring Test Sample consisting of a rectangular beam and a mounting block. First, construct the main beam as a rectangular prism with a length of 84mm, a height of 3mm, and a width of 10mm, centered on the origin. Remove a cylindrical hole from this beam with a radius of 1.5mm and a height... | l = 80;
h = 3;
w = 10;
union(){
difference(){
cube([l+4,h,w], center = true);
translate([l/2-1.5, 0 ,0]) rotate([90, 0, 0]) cylinder(h = h+1, r = 1.5, center = true, $fn = 20);
}
translate([-7*l/12, 0, 0]) cube([l/6, h*3, w], center = true);
} | glb/cad_85f8bdcea6a7.glb |
Create an internal gear assembly consisting of a large outer ring and a smaller inner gear.
First, construct the outer ring as a cylinder with a diameter of 64mm and a total height of 10mm. Within this cylinder, create an internal gear cavity by removing a herringbone gear shape with 41 teeth and a height of 7mm. The... | include <involute_gears.scad>
debug = 0;
outer_gear_radius=32;
clearance = .1;
distance_between_axles = 20;
gear_height = 7;
teeth_twist = 0;
chamfer_gradient = -1;
gear1_teeth = 12;
gear2_teeth = 41;
gear2_top_thickness=2;
gear2_height_mod = 1;
inner_gear_radius0=(outer_gear_radius)/(gear2_teeth/gear1_teeth);... | glb/cad_7c890db6d89e.glb |
Create an LM8UU bearing mount block starting with a solid rectangular base measuring 34mm wide, 30mm long, and 11mm high. Remove a semi-cylindrical cutout from the bottom center edge with a diameter of 15.2mm and a depth that spans the full 30mm length of the block to accommodate the bearing.
On the top face, center ... | $fn = 75;
width = 34;
length = 30;
height = 22;
bearingOuterDiameter = 15.2;
holeDiameter = 4;
holeSpacingWidth = 24;
holeSpacingLength = 18;
cableTieWidth = 5;
cableTieLength = 2;
union() {
rotate([180,0,0]) translate([0,-length,-height/2]) difference() {
cube([width,length,height/2]);
transla... | glb/cad_ef4b958585c4.glb |
Create an LCD Shield Face plate consisting of three stacked coaxial cylindrical sections. Start with a base cylinder that has a radius of 3mm and a height of 2mm. Centered on top of this base, add a second cylinder with a radius of 2mm and a height of 7.5mm. Finally, cap the structure with a third cylinder that begins ... | $fn=100;
difference(){
union(){
intersection(){
cylinder(h=10, r=4.65/2);
translate([0,0,7.5])
cylinder(h=1.5, r1=4.65/2, r2=3.5/2);
}
cylinder(h=2, r=6/2);
cylinder(h=7.5, r=4/2);
}
} | glb/cad_bd5f1859bcb9.glb |
Create a Customizable Monitor Shelf with a rectangular footprint of 170mm in length, 80mm in width, and 15mm in height. The main body is a solid block with a hollowed-out center, leaving a top surface thickness of 4mm and outer walls of 5mm.
On the top surface, create a honeycomb pattern of hexagonal holes. Each hexag... | length = 170;
width = 80;
height = 15;
thickness = 4;
inner_walls = 3;
outer_walls = 5;
cell_size = 10;
seed = 1;
frequency = 10;
with_holes = "yes";
hole_size = 6.5;
module honeycomb(rows, columns, cell_size, inner_walls, height) {
missing = rands(0,100,rows*columns, seed);
for (i = [0 : rows - 1]) {
... | glb/cad_e0b5b4949acb.glb |
Create a multi-colored unicorn horn-like object. The shape is formed by five identical, interlocking twisted segments that spiral upward.
Start with a base shape that is a combination of a circle, a square, and a pentagon, all with a diameter of 60mm. Extrude this base shape to a total height of 120mm. As the shape e... | INCHES = 25.4;
NUMBER = 5;
DIAMETER = 60;
HEIGHT = 120;
TWIST = 180;
DISTANCE = 0.7;
SCALE = 5/8;
HOLLOW = false;
INSIDE_COLOR = 1;
module baseshape(size) {
circle(size/2);
* rotate([0,0,45]) square(size, center=true);
* rotate([0,0,45]) pentagon(size/2);
}
COLORS = ["White", "Red", "Green", "Blue", "Yellow"... | glb/cad_4bcf8f8db329.glb |
Create a socket for an Intex Aqua Fish Travel Charger. Start with a rectangular base block measuring 49mm in length, 27mm in width, and 17mm in height, with rounded corners of 2mm radius.
Center a vertical cylindrical hole through the entire height of the block with a diameter of 7mm. On either side of this center ho... | $fn=100;
offset = 1;
block_w = 27+offset;
block_l = 49+offset;
block_r = 1+offset;
block_h = 17+offset;
usb_offset = 7;
hole_diam = 9;
hole_diam_inner = 5.5;
hole_height = 2;
hole_len_beatwin = 28-hole_diam;
module hole(x){
translate([x,0,0])
{
difference() {
cylinder(h=hole_height, r=hole_diam... | glb/cad_f1b760dfbcb3.glb |
Create a socket for an Intex Aqua Fish Travel Charger. Start with a main rectangular block measuring 49mm in length, 28mm in width, and 18mm in height. Round the exterior vertical edges with a radius of 2mm.
Hollow out the center of the block to create a cavity, leaving a wall thickness of approximately 2mm. Inside t... | $fn=100;
offset = 1;
block_w = 27+offset;
block_l = 49+offset;
block_r = 1+offset;
block_h = 17+offset;
usb_offset = 7;
hole_diam = 9;
hole_diam_inner = 5.5;
hole_height = 2;
hole_len_beatwin = 28-hole_diam;
module hole(x){
translate([x,0,0])
{
difference() {
cylinder(h=hole_height, r=hole_diam... | glb/cad_619e656914b6.glb |
Create a socket for an Intex Aqua Fish Travel Charger. Start by constructing a central rectangular block with a width of 23mm, a length of 40.5mm, and a height of 43mm, ensuring all edges are rounded with a radius of 1mm. On the top surface of this block, place two identical vertical pins. Each pin should be a cylinder... | $fn=100;
block_w = 23;
block_l = 40.5;
block_r = 1;
block_h = 43;
usb_offset = 7;
pin_diam = 5;
pin_height = 17-pin_diam/2;
pin_len_beatwin = 14+pin_diam/2+pin_diam/2;
module pin(x){
translate([x,0,0])
{
cylinder(h=pin_height, r=pin_diam/2);
translate([0,0,pin_height])
sphere(r = pin_diam/2);
}
}
differen... | glb/cad_68a0102433a3.glb |
Create a BondTech alternative extruder mount consisting of two primary components: a main support body and a fixing piece.
First, construct the main support body as a composite of rectangular blocks. Create a central vertical pillar 30mm wide, 30mm thick, and 50mm long. Attach a wider base block to this pillar that i... | include <clamp.scad>;
STZD=30;
STXW=30;
STYL=50;
STD=0;
FTD=15;
FTH=16;
rotate([90,0,0]){
translate([0,0,HDM/2+10+7+STZD+STD])
rotate([-90,0,0])
Klammer();
translate([KB/2-STXW/2,0,0]){
difference(){
union(){
cube([STXW,KD,STZD+STD+6]);
cube([STXW,STYL,STZD]);
translate([-(KB-STXW)/2-10,... | glb/cad_fc0b99935e9e.glb |
Create a bristlebot bug body by starting with a rectangular block that is 60mm long, 30mm wide, and 10mm deep. From this main volume, remove several internal sections to create compartments. Carve out a central battery box that is 35mm long, 20mm wide, and 10mm deep, starting 10mm from the front. Remove a smaller secti... | body_width_difference = 0;
battery_depth_difference = -1;
post_radius_difference = 0;
post_z_offset_difference = 0;
include <bug_dimensions.scad>
module bugTop()
{
difference()
{
union()
{
cube([body_length,body_width,body_depth]);
for (x = [6 : 4: 28])
{
translate([battery_start_offset+x, 1.2,... | glb/cad_915da0cc82ad.glb |
Create a bristlebot bug base by starting with a main rectangular body of 40mm length, 20mm width, and 5mm depth. Add four smaller rectangular side boxes of 5mm length, 2mm width, and 5mm depth to the corners: two at the front corners and two at the back corners, offset by 10mm from the front. At each of these four corn... | body_width_difference = 2;
battery_depth_difference = 0;
post_radius_difference = 0.5;
post_z_offset_difference = -2;
include <bug_dimensions.scad>
module bugBottom()
{
difference()
{
union()
{
cube([body_length,body_width,body_depth]);
translate([0, -back_side_box_width, 0])
{
cube([back_side_... | glb/cad_80bebebe3c8f.glb |
Create a BeagleBone Green Wireless case consisting of a main body and a lid.
For the main body, create a rounded rectangular shell with an outer width of 58.8mm, height of 90.8mm, and a wall elevation of 18mm. The corners should be rounded with radii of 14.5mm and 8.3mm. Hollow out the interior to a depth of 18mm, le... | renderPart = "view";
printPart();
height=90.8;
width = 58.8;
elevation = 18;
r1=14.5;
r2 = 8.3;
t=1.5;
gap = 0.1;
module pillarType1() {
cylinder(r1=2.9,r2=2.3,h=3.0, center = false, $fn=40);
translate([0,0,3.0]) {
cylinder(r=2.3,h=3.0, center = false, $fn=40);
translate([0,0,3.0]) {
cylinde... | glb/cad_e3455989c96e.glb |
Create a low-poly character model of Jigglypuff resting on a base. Start by importing the low-poly body mesh and scaling the entire character by a factor of 5. To modify the face, create a mouth opening by removing a section of the geometry: position a cylinder with a radius of 0.55mm and a height of 10mm at coordinate... | $fn=40;
epsilon=0.1;
module body() {
translate([0,20,0]) import(file="Low_Poly_Jigglypuff.stl",convexity=10);
translate([0,0,2.5]) cube([3.5,2.8,2],center=true);
}
mR=0.55;
mD=mR*2;
mH=10;
module mouth() {
difference() {
translate([0,-5,3.5]) rotate([-90-30,0,0]) difference() {
scale([2.05,1,1]) ... | glb/cad_a19cdef69308.glb |
Create a K8400 Vertex Vellemann Spool extender. Start by constructing a central cylindrical core with a radius of 24mm and a height of 74mm. Add a thin circular base and top cap, both with a radius of 28mm and a thickness of 2mm, positioned at the bottom and top of the core respectively. Within the core, add a second c... | $fn=50;
module orginal()
{
difference()
{
union()
{
cylinder(r=24,h=74);
translate([0,0,0]) cylinder(r=28,h=2);
translate([0,0,18]) cylinder(r=26,h=38);
translate([0,0,72]) cylinder(r=26,h=2);
}
for(z=[12,48.5])
{
for(x=[-16,16])
{
translate([x,50,z])
rotate([90,0,0])
cylinder... | glb/cad_137fd380fae6.glb |
Create a low-poly Bulbasaur figure positioned atop a thin octagonal base. The base should be a regular octagon with a radius of 20mm and a height of 2mm, centered at the coordinates (0, 2.5, 1). The Bulbasaur model should be placed on this base, shifted to the position (-7, 0, 2). Ensure the octagonal base is rendered ... | translate([-7,0,2]) import(file="bulbasaur_starter_1gen_flowalistik.STL",convexity=10);
translate([0,2.5,1]) cylinder(r=20,h=2,center=true,$fn=8); | glb/cad_3a358a0c4b1b.glb |
Create a Y-Axis Motor Mount for a NEMA 17 stepper motor designed to fit a 20-20 aluminum profile.
First, construct the motor mounting base. Create a rounded rectangular block measuring 42.2mm x 42.2mm x 6mm with a 3mm corner radius. Subtract a central cylindrical hole with a diameter of 23mm and a depth of 20mm to ac... | use <MCAD/motors.scad>
use <MCAD/boxes.scad>
use <MCAD/nuts_and_bolts.scad>
$fn=40;
one_piece = false;
Mbolt = 5;
if (one_piece){
translate([0,0,30])
rotate([0,90,0]){
motor_mount();
profile_mount_full();
}
} else {
translate([0,0,6])
rotate([0,90,0]){
motor_mount();
... | glb/cad_31d278434ac8.glb |
Create a dog tag in the shape of a bone with a total thickness of 5mm. Construct the main body by placing two cylinders with a radius of 14mm at each end, connected by a central rectangular block measuring 30mm in width and 80mm in length. At one end of the bone, add a circular attachment loop with an outer radius of 1... | $fa=1;
$fs=1;
bone_height = 5;
pet_name="Jacen";
phone_number="06.01.23.45.67";
font_face="Arial";
font_thickness=3;
module t(t){
translate([-1,(-len(t)*3.8),bone_height])
rotate([0, 0, 90])
linear_extrude(height = font_thickness)
text(t, 10, font = str(font_face), $fn = 16);
}
translate([-12,-40,0])
{
... | glb/cad_afdb123a4414.glb |
Create a refrigerator handle by constructing a composite geometric form. Start with a central vertical body composed of several rectangular blocks: two side bars measuring 2mm by 1mm by 6mm positioned at y=1 and y=3, a top bar measuring 1mm by 3mm by 6mm positioned at x=1, and four posts measuring 6mm by 1mm by 1mm loc... | bsize = 0.5 * 25.4;
$fn = 40;
scale ( [bsize,bsize,bsize] ) difference()
{
union()
{
translate ( [0,0,0] ) leftbar();
translate ( [0,0,0] ) rightbar();
translate ( [0,0,0] ) topbar();
translate ( [0,0,0] ) topleftpost();
translate ( [0,0,0] ) toprightpost();
translate ( [0,0,0] ) bottomleftpost();
tran... | glb/cad_bd4c31a0c176.glb |
Create a Fast screw module consisting of a bolt and a matching nut.
For the bolt, create a helical shape with a radius of 20mm and a pitch of 15mm. The cross-section of the thread is a non-convex polygon defined by the points [0,0], [-5.75, -3.10], [-5.75, -7.00], and [0, -6.20]. Rotate this profile around the centra... | function matrix_AlfaZX(Alfa)=[[cos(Alfa),0,sin(Alfa)],[0,1,0],[sin(Alfa),0,cos(Alfa)]];
function translate_points(gh,X=0,Y=0,Z=0)=[ for(v = gh) v+[X,Y,Z] ];
function generate_wall_faces(Col_Points,iteration)=concat([[for (i=[0:Col_Points-1]) Col_Points-1-i]],
[for (j=[0:iteration-2]) for (i=[0:Col_Points-2]) let (a1... | glb/cad_63fca3b2ec37.glb |
Create a plexiglas enclosure clip with a total height of 4mm. Start by forming a base shape consisting of two cylinders, each with a radius of 5mm and a height of 4mm, positioned with their centers 10mm apart along the y-axis. Connect these two cylinders with a rectangular block measuring 10mm wide, 10mm deep, and 4mm ... | $fn=100;
module Haakje(){
difference(){
union(){
translate([0,0,0]){
cylinder(h=4,r=5){}
}
translate([0,10,0]){
cylinder(h=4,r=5){}
}
translate([-5,0,0]){
cube([10,10,4]){}
}
translate([-11.5,14,0]){
cylinde... | glb/cad_403a743b53a8.glb |
Create a gas pedal spacer with a uniform thickness of 12mm. The main body is formed by merging three rectangular blocks: a primary block measuring 162mm by 45mm, a second block measuring 28.5mm by 51mm positioned at x=105mm and y=0mm, and a third block measuring 29mm by 20mm positioned at x=130mm and y=31.5mm and rotat... | Part_Thickness = 12;
Thread_Radius = 3.5;
rotate([180, 0, 0])union(){difference(){union(){difference(){union(){cube([162, 45, Part_Thickness]);
translate([105, -0, 0])cube([28.5, 51, Part_Thickness]);
translate([130, 31.5, 0])rotate([0,0, -10])cube([29, 20, Part_Thickness]);
translate([80, 25, 0])rotate([0,0, 12])cub... | glb/cad_f67be7b7c8ae.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.