Prompt stringlengths 38 2.2k | Code stringlengths 7 5.77M | 3d_glb stringlengths 24 24 |
|---|---|---|
Create a napkin ring by constructing a hollow cylinder with a height of 25mm. The outer wall should be a circle with a diameter of 38mm, and the inner void should be a concentric circle with a diameter of 35mm. Extrude this ring shape vertically to the full height of 25mm while applying a total twist of 200 degrees to ... | module napkin_circle(height = 25) {
linear_extrude(height = height, twist = 200)
difference() {
circle(d = 38);
circle(d = 35);
}
}
module napkin_hexagon( height = 25 ) {
linear_extrude(height = height, twist = 150 ) difference() {
circle(d = 38, $fn=6);
circle(d = 35, ... | glb/cad_83570e4bc29e.glb |
Create a geometric structure composed of three intersecting cylinders. First, create a cylinder with a diameter of 8mm and a height of 36mm, positioned so its center is at x=-40.3, y=36, z=2 and rotated 90 degrees on the X-axis. Second, add a cylinder with a diameter of 7mm and a height of 21.5mm, centered at x=-73, y=... | use <RC-lamp.scad>
translate([-9.7-50, 18/2+15/2 ,0]) lampe();
translate([-50+3-0.8, 72/2, 2]) rotate([90,0,0]) cylinder(d=8,h=72/2);
translate([-50-23, 40/2+1.5, 2]) rotate([90,0,0]) cylinder(d=7,h=40/2+1.5);
translate([-50-23-1, 40/2-1, 2]) rotate([90,0,128]) cylinder(d=7,h=32); | glb/cad_151e4732ca81.glb |
Create a 3D model of a mechanical slide component. Start by creating a base rectangular plate measuring 22mm by 9.4mm with a thickness of 3mm. From this base, remove a central section to create a gap, leaving two outer rectangular tabs. Within the remaining geometry, subtract a smaller internal shape consisting of a re... | $fn = 10;
module flance() {
difference(){
minkowski(){
square([13.5 - 2.5,23.9 - 2.5/2]);
circle(d=2.5);
}
translate([(13.5-2.5)/2, 3.1 + 3.1/2,0]) circle(d = 3.1);
}
}
module flance_lower_connection() {
linear_extrude(height=3.1) union() {
difference() {
minkowski() {
square([7.2-2.5... | glb/cad_53b58e3ce668.glb |
Create a radio cover by starting with a solid rectangular block measuring 210mm in width, 150mm in depth, and 10mm in height. Center this block on the origin. Carve out a rectangular hole from the center of the block to create a frame. This interior cutout must measure 182mm in width and 52mm in depth, and it should be... | $fn = 50;
epaisseur_cache = 10;
difference()
{
color("grey")
cube([210, 150, epaisseur_cache], center);
translate([10, 42, -epaisseur_cache])
cube([182, 52, 2 * epaisseur_cache], center);
} | glb/cad_084a74b7c3a9.glb |
Create a 3D model of a stylized letter "I" using the Niconne font. The letter should be 100mm in size and extruded to a height of 10mm. To give the letter a rounded, thickened appearance, apply a Minkowski sum operation with a sphere of radius 10mm.
Finally, create a vertical hole through the bottom of the letter. Th... | $fn = 50;
print_ratio = 1;
letter_h = 10 * print_ratio;
size = 100 * print_ratio;
support = 10 * print_ratio;
module chloe(letters = "CHLOE", size = 100) {
colors = ["Purple", "DeepPink"];
for (i= [0 : 1 : len(letters) - 1]) {
echo(letters[i]);
color(colors[i % 2])
translate([i*size,0,0... | glb/cad_258330e9f16c.glb |
Create a top hat model by constructing a hollow cylinder for the main body and a solid flat disc for the brim. First, create the main body as a cylinder with an outer radius of 24.5mm, a height of 60mm, and a wall thickness of 3mm, leaving the bottom open. To achieve this, remove a concentric inner cylinder with a radi... | $fn = 100;
radius = 43/2;
height = 60;
wallThickness = 3;
brimExtraRadius = 14;
module positiveVolumes()
{
cylinder
(
wallThickness,
radius + brimExtraRadius + wallThickness,
radius + brimExtraRadius + wallThickness,
center = false
);
cylinder
(
height,
... | glb/cad_7f5435d448ea.glb |
Create a coin-shaped model starting with a central cylinder that has a radius of 30mm and a height of 5mm. On the top surface of this cylinder, add a raised rim with a thickness of 2mm and a height of 2mm. Centered within this top rim, place the 3D text "TEST" with a font size of 12mm and a height of 2mm. Repeat these ... | module structure
(
radius,
structureHeight
)
{
cylinder
(
structureHeight,
radius,
radius,
center = false
);
}
module bothSurfaceDetails
(
message,
positiveText,
structureHeight,
detailHeight,
rimThickness,
radius,
textSize
)
{
single... | glb/cad_6a8f9785c2bf.glb |
Create a rounded cube with a total size of 20mm x 20mm x 20mm. The shape is defined by a convex hull encompassing eight spheres, each with a radius of 2mm. Position these spheres at the corners of a 20mm cube, centered at the origin, with their centers located at coordinates (±10, ±10, ±10). | $fa=1;
$fs=0.5;
hull() {
translate([-10, -10, -10]) sphere(r=2);
translate([-10, -10, 10]) sphere(r=2);
translate([10, -10, 10]) sphere(r=2);
translate([10, -10, -10]) sphere(r=2);
translate([10, 10, -10]) sphere(r=2);
translate([10, 10, 10]) sphere(r=2);
translate([-10, 10, 10]) sphere(r=2);
translate... | glb/cad_da1b9bd7b1c0.glb |
Create a regular octagonal prism with a thickness of 2mm. To achieve this geometry, center a cube measuring 50mm by 50mm by 2mm and intersect it with an identical 50mm by 50mm by 2mm cube that has been rotated 45 degrees around the Z-axis. | intersection() {
cube([50,50,2], center=true);
rotate([0,0,45])
cube([50,50,2], center=true);
} | glb/cad_5efae39b311d.glb |
Create a ball bearing model by constructing a hollow outer ring and filling it with a ring of spheres. Start by creating a cylinder with a diameter of 30mm and a height of 5mm, then remove a concentric inner cylinder with a diameter of 25mm and a height of 6mm to create a thin-walled ring. Inside this ring, place 12 sp... | $fa=1;
$fs=0.5;
difference() {
cylinder(d=30, h=5, center=true);
cylinder(d=25, h=6, center=true);
}
difference() {
cylinder(d=15, h=5, center=true);
cylinder(d=10, h=6, center=true);
}
for(t=[0:30:369])
rotate([0,0,t])
translate([10,0,0])
sphere(d=5, center=true); | glb/cad_30161b2738b6.glb |
Create a rectangular prism with a length of 20mm, a width of 10mm, and a height of 5mm. Position the center of the prism at the coordinates (20, 20, 20). | translate([20,20,20])
cube([20,10,5], center=true); | glb/cad_4e7b89077ac7.glb |
Create a 3D model consisting of a cube and a sphere centered at the same point. The cube should have side lengths of 20mm. Position a sphere with a radius of 14mm at the center of the cube so that the sphere's surface protrudes through the center of each of the cube's six faces. | union() {
color([1,0,0]) cube([20,20,20], center=true);
color([0,0,1]) sphere(14);
} | glb/cad_dc5e2dfadd0f.glb |
Create an end cap consisting of a rectangular base and a hollow beveled tube. Start by creating a solid rectangular base with dimensions 50mm in length, 30mm in width, and 4mm in height.
On top of this base, center a hollow rectangular tube with outer dimensions of 46.5mm by 27.14mm and a height of 13mm. The walls of... | epsilon = 0.01;
module bevel(l, w, h){
polyhedron(
points=[[0,0,0], [l,0,0], [l,w,0], [0,w,0], [0,0,h], [l,0,h]],
faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]]
);
}
module shim(l, w, h){
polyhedron(
points=[[-l/2,-w/2,0], [l/2,-w/2,0], [l/2,w/2,0], [-l/2,w/2,0... | glb/cad_6de96be1e7dd.glb |
Create a washer by constructing a flat cylinder with a diameter of 24mm and a height of 3mm. Center a second, smaller cylindrical hole through the middle of the first cylinder with a diameter of 12mm and a height of 4mm to ensure it passes completely through the object. | difference() {
cylinder(d=24, h=3, center=true);
cylinder(d=12, h=4, center=true);
} | glb/cad_2291ec6d70e1.glb |
Create a three-bladed propeller hub. Start by centering a cylinder with a diameter of 20mm and a height of 5mm. Attach three identical rectangular blades, each measuring 10mm wide, 30mm long, and 2mm thick. Position each blade so that it is slightly offset from the center and tilted at a 15-degree angle. Arrange the th... | cylinder(d=20, h=5, center=true);
rotate([0, 15, 0])
translate([-5,5,-1])
cube([10, 30, 2]);
rotate([0, 15, 120])
translate([-5,5,-1])
cube([10, 30, 2]);
rotate([0, 15, 240])
translate([-5,5,-1])
cube([10, 30, 2]); | glb/cad_10ec754db65f.glb |
Create a rotationally symmetrical ring by revolving a specific 2D profile around a central axis located 100mm from the shape's nearest edge. The profile to be revolved is a 40mm by 40mm square, but with several sections removed and modified. First, remove a small 6mm by 6mm square from the inner-bottom corner and a sim... | rotate_extrude(convexity = 10, $fn = 100) {
translate([100, 0]) {
scale([-1, 1]) {
difference() {
square([40,40]);
polygon(points=[[-1,-1],[-1,5],[5,-1]]);
polygon(points=[[-1,41],[-1,36],[5,41]]);
translate([7,7]) square([26,34]);
}
translate([33, 33]) circle(r=5... | glb/cad_9094b85902b9.glb |
Create a PamuxCnc bearing housing block. Start with a main body extruded to a height of 30mm. The footprint is a polygon with a total width of 34mm and a height of 22mm. The base is rectangular, but the top corners are clipped at 45-degree angles, transitioning from a width of 6mm at the bottom corners to a wider top s... | echo(version=version());
ID = 8;
h = 11;
D = 17;
W = 34;
H = 22;
G = 18;
A = 6;
J = 24;
E = 5;
S1 = 4;
S2 = 3.4;
K = 18;
L = 30;
I = 8;
angle = 45;
i1 = 2;
diam = 16;
tol = 0.2;
EL = 0;
centerHoles = false;
B1 = 17.5 + EL;
s = 1.1;
sd = 0.3;
union(){
difference() {
linear_extrude(height = L+... | glb/cad_77dd7758ec62.glb |
Create a hermes-sensor assembly consisting of a base tray and two retaining rings.
Start by creating a rectangular base tray with a length of 120mm and a width of 76.2mm (3 inches). The tray has a base thickness of 2mm. On this base, add several mounting features: four board standoffs with a diameter of 5.97mm and a ... | slop = 0.35;
sl = slop/2;
d = inches(3);
cd = 62;
l = 120;
al = 90;
bl = 25;
tl = al+bl;
shell = 2;
rh = shell*3;
rshell = 4;
board_l = inches(4.06);
board_w = inches(1.42);
hole_x_off = (board_l - inches(3.74)) / 2;
hole_y_off = (board_w - inches(1.107)) / 2;
hole_avg_off = (hole_x_off + hole_y_off) / 2;
hole_off = h... | glb/cad_21f873df96eb.glb |
Create a hollow transition piece that lofts from a circular profile to a cross-shaped profile over a total height of 100mm. The starting circular profile has a diameter of 40mm and is centered at the origin. The ending cross-shaped profile has a size of 200mm and is positioned 100mm above the base. The walls of this lo... | use <tween_loft.scad>
include <tween_shapes.scad>
shape1= tween_circle;
shape1Size = 40;
shape1Rotation = 0;
shape1Extension = 100;
shape1Centroid = [0,0];
shape2= tween_cross;
shape2Size = 200;
shape2Rotation = 0;
shape2Extension = 100;
shape2Centroid= [0,0];
shape2ExtensionAdjustment= 0;
wallThickness= 20;
isHol... | glb/cad_b583b9f3f2ba.glb |
Create a bird feeder consisting of three main components: a base, a hopper, and a top roof, all based on a hexagonal geometry (6 sides).
First, create the base as a hexagonal prism with a radius of 101mm and a height of 25mm. The base has a wall thickness of 1.6mm. In the bottom face, place 6 drainage holes with a rad... | part = 3;
print_width = 210;
print_height = 200;
sides = 6;
tolerance = 0.2;
wall_width = 4 * tolerance;
top_height = 50;
hanger_height = 10;
base_height = 25;
hopper_height = print_height - top_height - hanger_height - hanger_height / 2 - wall_width;
top_overhang_radius = 4;
base_radius = print_width / 2 - top_ove... | glb/cad_4911fe74fa8b.glb |
Create a 3D model consisting of a base plate and a vertical wall. Start by creating a rectangular base plate measuring 100mm in length, 100mm in depth, and 1mm in height. Attached to the left edge of this base, add a vertical rectangular wall that is 5mm wide, 100mm deep, and 120mm high. From the volume of this wall an... | base_length = 100;
base_width = 1;
depth = 100;
side_height = 120;
side_width = 5;
triangle_height = 20;
cube([base_length, depth, base_width]);
cube([side_width, depth, side_height]);
difference() {
translate([0, 0, triangle_height / 2]) {
rotate([-90, 30, 0]) {
cylinder(depth, triangle_height... | glb/cad_266996871a38.glb |
Create a screw and nut set. For the screw, start with a cylindrical base 5mm high with a radius of 7mm. On top of this base, add a threaded shaft 15mm high. The thread is formed by a shape with a minimum radius of 3mm and a maximum radius of 4mm, twisting 4 full turns over its 15mm height.
For the nut, create a cylind... | screw_length = 15;
nut_length = 5;
screw_radius = 4;
nut_radius = 7;
turns = 4;
thread_depth = 1;
tolerance = 0.4;
$fn = 50;
module threads(height, inner_radius, outer_radius, turns) {
linear_extrude(height, twist = -turns * 360) {
scale([1, outer_radius / inner_radius, 1]) circle(inner_radius);
}
}
... | glb/cad_15b4780d6c35.glb |
Create a slide rule consisting of a main body, an inner sliding rule, and a slider cursor.
The main body is a rectangular block 150mm long, 5mm wide, and 30mm high. Carve a central channel through its length to accommodate the inner rule. On the outer faces of the body, engrave logarithmic scale markings (ticks and n... | part = 5;
length = 150;
width = 5;
height = 30;
tolerance = 0.2;
fontsize = 5;
fontstyle = "Arial:Bold";
tick_width = 0.5;
tick_length0 = 2.5;
tick_length1 = 3;
tick_length2 = 2;
slider_width = 10;
wall_width = 0.8;
font_depth = 0.5;
module cutout(w, d) {
linear_extrude(length) {
polygon(
[
... | glb/cad_347de1a7a901.glb |
Create a tissue box with overall dimensions of 120mm in width, 120mm in depth, and 136mm in height. The box should be a hollow shell with a wall thickness of 0.8mm. All exterior vertical corners must be rounded with a radius of 5mm. The bottom of the box is closed, while the top remains open.
On the top face, center ... | box_height = 136;
box_width = 120;
corner_size = 5;
opening_width = box_width * 0.75;
opening_height = box_width * 0.5;
wall_width = 0.8;
module corner(size, height) {
difference() {
translate([0, 0, height / 2]) {
cube([size, size, height], center = true);
}
translate([size / 2... | glb/cad_50ec7af81d06.glb |
Create a dual flush actuator replacement consisting of a main cylindrical body and two separate button components. The main body is a hollow cylinder with an inner radius of 22mm and an outer radius of 24mm, extending to a height of 50mm. At the top of this cylinder, add a lip that is 5mm thick with a radius of 28mm. W... | inner_radius = 44 / 2;
outer_radius = 48 / 2;
lip_radius = 56 / 2;
inside_length = 50;
outside_length = 5;
tolerance = 0.2;
bump_radius = 4;
bump_offset = 10 - 1;
small_size = 18;
large_size = inner_radius * 2 - small_size;
small_depth = 216 - inside_length;
large_depth = small_depth;
shaft_radius = 4;
$fn = 100;
mo... | glb/cad_c012ebc8d5d7.glb |
Create a hummingbird feeder base consisting of a central cylindrical hub and five radiating feeding tubes. The central hub is a cylinder with a height of 10mm and a radius of 12mm. At the top of this hub, add a male screw thread with a radius of 10mm and a height of 10mm, featuring 3 full turns to allow a tank to be at... | part = 1;
tank_size = 100;
hanger_height = 10;
hanger_width = 10;
hole_radius = 2;
screw_radius = 10;
screw_height = 10;
screw_turns = 3;
base_height = 10;
base_radius = screw_radius + 2;
tube_length = tank_size / 2 + 20;
tube_rise = 10;
tube_radius = 2;
thread_depth = 1;
tolerance = 0.4;
wall_width = 3 * tolerance;
... | glb/cad_4406894613a2.glb |
Create a Dodecahedron Lamp consisting of a base and a shade. For the base, start with a pentagonal prism 10mm high with a radius of 100mm. Atop this, center a cylinder with a radius of 12mm and a height of 190mm. At the top of this cylinder, create a screw thread 10mm high with two full turns. Hollow out the center of ... | part = 1;
bottom_radius = 200 / 2;
stem_radius = 24 / 2;
bottom_height = 10;
base_height = 200;
cord_radius = 5;
socket_radius = 20 / 2;
socket_height = 40;
screw_height = 10;
screw_turns = 2;
thread_depth = 1;
tolerance = 0.4;
top_size = 150;
wall_width = tolerance * 2;
$fn = 50;
module threads(height, inner_radiu... | glb/cad_cb896c76b1cc.glb |
Create a hollow regular dodecahedron with an outer radius of 172mm and a uniform wall thickness of 1.2mm. At the top vertex of the dodecahedron, integrate a cylindrical lip that extends downwards. This lip should be constructed as a hollow ring with an outer radius of 50mm, an inner radius of 45mm, and a height of 10mm... | radius = 86;
wall_width = 1.2;
lip_radius1 = 45;
lip_radius2 = 50;
lip_height = 10;
lip_width = 5;
module dodecahedron(height) {
scale([height, height, height]) {
intersection() {
cube([2, 2, 1], center = true);
intersection_for(i = [0 : 4]) {
rotate([0, 0, 72*i]) {... | glb/cad_9c9903a8b0bf.glb |
Create a maze puzzle consisting of a base, a maze wall structure, and a small ball. Start by creating a rectangular base plate measuring 85mm by 85mm with a thickness of 0.6mm.
On top of this base, construct a maze using walls that are 5mm wide and 5mm high. The maze layout should be a 17 by 17 grid of 5mm blocks. Th... | block_size = 5;
base_height = 0.6;
width = 17;
height = 17;
slit_size = 2;
ball_size = 2.4;
tolerance = 0.2;
function next_x(dir, x) = (dir == 0 ? x + 1 : (dir == 1 ? x - 1 : x));
function next_y(dir, y) = (dir == 2 ? y + 1 : (dir == 3 ? y - 1 : y));
function new_dir() = round(rands(0, 3, 1)[0]);
function is_visi... | glb/cad_36925219a720.glb |
Create a self-watering planter consisting of an outer hexagonal pot and a matching inner pot. For the outer pot, create a hexagonal prism with a radius of 50mm and a height of 100mm. Hollow out the center to create a wall thickness of 1.6mm. Attached to the side of this outer pot, integrate a hexagonal filler tube with... | render_inside = 0;
wall_width = 1.6;
radius = 50;
filler_radius = 12;
hole_radius = 1;
outside_height = 100;
lip_height = 10;
pot_height = 20;
sides = 6;
tolerance = 0.8;
inside_height = outside_height + lip_height - wall_width - tolerance;
inside_radius = radius - wall_width - tolerance;
bottom_radius = inside_radiu... | glb/cad_7bb70baec46f.glb |
Create a circular ring with an outer diameter of 152.4mm and a total height of 38.1mm. The main body is a hollow cylinder with a wall thickness of 12.7mm, creating an internal hole with a diameter of 127mm. The top section of the ring is a torus-like rounded rim with a cross-sectional diameter of 12.7mm. Cut two perpen... | top_height = 0.5 * 25.4;
bottom_height = 1 * 25.4;
diameter = 25.4 * 6;
hole_diameter = diameter - top_height * 2;
rotate_extrude(angle = 360, $fn = 128) {
translate([diameter / 2 - top_height / 2, 0]) circle(top_height, $fn = 64);
}
difference() {
translate([0, 0, -top_height - bottom_height]) {
diff... | glb/cad_7c53ffd5132f.glb |
Create a square tray with a total width and length of 155mm and a total height of 21mm. Start by forming a solid base plate that is 155mm wide, 155mm long, and 5mm thick. On top of this base, add a hollow square wall with an outer width and length of 145mm and a height of 16mm. The walls of this upper section should be... | top_width = 155;
inside_width = 145;
lip_width = 5;
top_height = 5;
height = 16;
union() {
cube([top_width, top_width, top_height]);
inside_offset = (top_width - inside_width) / 2;
translate([inside_offset, inside_offset, top_height]) {
difference() {
cube([inside_width, inside_width, h... | glb/cad_e93af1a9f07a.glb |
Create a PCB fixture base by starting with a solid cube that is 35mm long, 35mm wide, and 5mm high. Remove two vertical cylindrical holes, each with a radius of 1.8mm and a height of 12mm, to create mounting points. Position the first hole so its center is at coordinates (3, 3) on the horizontal plane and the second ho... | module base_board(l,w,h) {
cube([l,w,h]);
}
module pcb_baseboard(l, w, h, x1, y1, x2, y2 ) {
difference() {
base_board(l,w,h);
translate([x1,y1,0]) cylinder(h=12, r = 1.8, center = true, $fn=100);
translate([x2,y2,0]) cylinder(h=12, r = 1.8, center = true, $fn=100);
}
}
pcb_baseboard(35,35, 5, 3,3, 3... | glb/cad_b90787864e4b.glb |
Create a battery dummy model with a total height of 49.5mm. The main body is a cylinder with a radius of 7mm. Inside this main cylinder, create a concentric hollow cavity with a radius of 5mm.
At the top end, create a positive terminal protrusion consisting of a cylinder with a height of 3mm and a radius of 2.5mm. Thi... | $fn=64;
$outer_heigth=49.5;
$outer_radius=7;
$inner_radius=$outer_radius - 2;
$strainrelief_thickness=3;
$strainrelief_height=3;
$strainrelief_length=6;
$plusterminal_h=3;
$plusterminal_drilling=true;
$plusterminal_r=2.5;
$plusterminal_pin_h=3;
$plusterminal_pin_r=2.5;
$minusterminal_h1=3;
$minusterminal_h2=2;
$mi... | glb/cad_5d02ba485366.glb |
Create a coin tube by constructing a hollow cylinder with an outer diameter of 11mm and a total height of 21.1mm. The cylinder should have a solid base floor with a thickness of 1mm, leaving an internal cavity with a diameter of 10.5mm and a depth of 20.1mm. To allow coins to be removed, cut a rectangular slot through ... | coin_diameter = 10;
coin_depth = 1;
number_of_coins = 20;
coin_diameter_space = 0.5;
coin_depth_space = 0.05;
wall_width = 1;
floor_depth = 1;
slot_height = coin_depth + coin_depth_space * 2;
tube_inner_height = coin_depth * number_of_coins + coin_depth_space * (number_of_coins - 1) + slot_height;
tube_inner_diamet... | glb/cad_ba1f265d7b56.glb |
Create a coin tube by constructing a rectangular block and hollowing out a cylindrical space. Start with a solid rectangular prism that is 11mm wide, 5.5mm deep, and 21.4mm tall. From this block, remove a vertical cylinder with a diameter of 10.5mm to create the inner cavity. This cylinder should be positioned so that ... | coin_diameter = 10;
coin_depth = 1;
number_of_coins = 20;
coin_diameter_space = 0.5;
coin_depth_space = 0.05;
wall_width = 1;
floor_depth = 1;
slot_height = coin_depth + coin_depth_space * 2;
tube_inner_height = coin_depth * number_of_coins + coin_depth_space * (number_of_coins - 1) + slot_height;
tube_inner_diamet... | glb/cad_692883c3297e.glb |
Create a coin tube holder by constructing a hollow cylinder with an outer diameter of 21.5mm and a total height of 41.9mm. The cylinder should have a wall thickness of 1mm and a flat base floor with a depth of 1mm. The interior cavity must have a diameter of 20.5mm and a height of 40.9mm.
Cut a vertical slot through t... | coin_diameter = 20;
coin_depth = 2;
number_of_coins = 20;
coin_diameter_space = 0.5;
coin_depth_space = 0.05;
wall_width = 1;
floor_depth = 1;
tube_inner_height = coin_depth * number_of_coins + coin_depth_space * (number_of_coins - 1);
tube_inner_diameter = coin_diameter + coin_diameter_space;
floor_slot_diameter =... | glb/cad_10dfe80036d5.glb |
Create a mechanical housing for drone components consisting of a main body and a removable cover.
For the main body, create a central structure with a height of 7mm. At the four corners, position four cylindrical standoffs with an outer diameter of 4.5mm and an inner hole of 2.1mm, each 3.5mm tall. In the center, int... | use <libCopterParts.scad>
$fn=24;
StandOffDia = 4.5;
campos = [0,13,29];
lower_angle = 30;
upper_angle = 45;
CoverThickness = 1.2;
module copy_mirror(vec=[0,1,0])
{
children();
mirror(vec) children();
}
module copy_rotate(vec=[0,90,0])
{
children();
rotate(vec) children();
}
module Standoffs (sq... | glb/cad_23553e539a08.glb |
Create a mechanical body for a 90mm copter. The main chassis is formed by the union of three hull shapes. The center hull is a convex shape created from four cylinders with a diameter of 6mm and a height of 10.5mm, positioned at coordinates [±10, ±10, 0]. The antenna support hull is a convex shape connecting a cylinder... | use <libCopterParts.scad>
$fn=30;
camangle = 30;
campos = [0,21,14];
module copy_mirror(vec=[0,1,0])
{
children();
mirror(vec) children();
}
module copy_rotate(vec=[0,90,0])
{
children();
rotate(vec) children();
}
module Standoffs (sq,h)
{
difference()
{
copy_mirror(vec=[1,0,0]) copy_mirror(... | glb/cad_7ea9c3628534.glb |
Create a mechanical part by starting with a cylinder that has a diameter of 5mm and a height of 3.2mm, centered on the origin. Remove a smaller concentric cylindrical hole from the center with a diameter of 1.85mm and the same height of 3.2mm. To flatten the sides, remove material using two intersecting cubes, each wit... | $fn= 60;
difference()
{
cylinder (h=3.2,d=5,center=true);
cylinder (h=3.2,d=1.85,center=true);
x=0.8;
translate([5+2.5-x,0,0]) cube(10,center=true);
translate([0,5+2.5-x,0]) cube(10,center=true);
} | glb/cad_754d9c3f86ca.glb |
Create a collection of mechanical copter parts consisting of several distinct components arranged linearly.
First, create a TX03 unit: a base rectangular block of 19.6 x 17 x 4 mm, with a smaller 5.5 x 5.6 x 4 mm block positioned at [0, 11.3, 1], a 7 x 9 x 3 mm block at [-6.3, 4, 2], and a 5 x 4 x 2 mm block at [-6.3,... | translate([-110,0,0]) TX03();
translate([-80,0,0]) REVO16x16();
translate([-40,0,0]) ESC15x15();
translate([-5,0,0]) ESC20x20();
translate([30,0,0]) OMNIBUS20x20();
translate([65,0,0]) CAMERA();
translate([85,0,0]) RX_XM();
translate([100,0,0]) RX_XMPLUS();
translate([120,0,0]) TX_MM213TL();
translate([140,0,0]) BEEPER... | glb/cad_c18fb28ab19e.glb |
Create a hollow cylinder with a total height of 9mm. The outer diameter should be 7mm and the inner diameter should be 5mm, resulting in a wall thickness of 1mm. Ensure the shape is perfectly centered and the interior is a completely open hole passing through the entire height of the object. | height = 9;
inner_diameter = 5;
wall_thickness = 1;
$fs = 0.5;
difference() {
cylinder (h=height, d=inner_diameter + 2*wall_thickness, center=true);
cylinder (h=height, d=inner_diameter, center=true);
} | glb/cad_f42249538c12.glb |
Create a grid of eight small cylindrical rings, arranged in two rows of four. Each ring must have an outer diameter of 4.15mm, a height of 2mm, and a centered vertical hole with a diameter of 2.15mm. Position the rings so that they are spaced 5.15mm apart from center to center along both the X and Y axes. Ensure each c... | $fn=50;
count = 8;
thickness = 2.0;
hole_d = 2.15;
wall_thickness=1.0;
outside_d = hole_d + 2*(wall_thickness);
rows = ceil(sqrt(count));
cols = ceil(sqrt(count));
echo(rows,cols);
for(i=[0:count-1]) {
x_offset = floor(i/rows)*(outside_d+1);
y_offset = floor(i % cols)*(outside_d+1);
echo(x_offset, y_offset)... | glb/cad_30fffa1aacaa.glb |
Create a spool hub by constructing a hollow cylinder with an outer diameter of 54.75mm and a height of 12mm. The main body should have a wall thickness of 3.5mm. At the top and bottom edges of this cylinder, add a thin lip that extends the diameter to 58.75mm with a height of 2mm.
In the center of the hub, create a v... | hub_d = 54.75;
hub_h = 12;
hole_d = 8.5;
num_spokes = 7;
wall_thickness = 3.5;
hub_lip_h = 2;
hub_lip_r = 2;
$fn = 120;
step = 360 / num_spokes;
difference() {
union() {
cylinder(hub_h, d1=hub_d, d2=hub_d * 0.98, true);
cylinder(hub_lip_h, d=hub_d+2*hub_lip_r, true);
}
cylinder(hub_h, ... | glb/cad_409d71713653.glb |
Create a hollow cylindrical sleeve with a total height of 12mm. The outer diameter of the cylinder should be 7mm. Centered along the vertical axis, create a circular hole passing completely through the cylinder from top to bottom with a diameter of 3.2mm. | $fn = 50;
height = 12;
screw_size = 3;
wall_thickness = 2;
hex = 0;
slip = 1;
difference() {
cylinder(h=12, d=screw_size + 2*wall_thickness);
if (slip == 1)
cylinder(h=12, d=screw_size+0.2);
else
cylinder(h=12, d=screw_size);
} | glb/cad_0fe48e014bd4.glb |
Create a solder spool holder by starting with a base plate that is 64mm wide, 34mm deep, and 3mm thick. On the right side of this base, center a vertical cylinder with an outer diameter of 56mm and a height of 20mm. This cylinder must have a concentric hollow core with a diameter of 26mm that extends through the base. ... | $fn=100;
ID=26;
OD=56;
spool_width=20;
wall_thickness=3;
clearance=5;
hole_size=1.5;
r=OD/2+clearance+wall_thickness;
difference(){
union(){
translate([r,r,0])cylinder(wall_thickness,r,r);
cube([2*r,r,wall_thickness]);
cube([2*r,wall_thickness,spool_width+wall_thickness]);
cube([wall_thickness,r+wall_t... | glb/cad_0b39535feadb.glb |
Create a quadcopter frame called an Inductrix frame. The structure is centered around a central battery compartment and four motor mounts.
First, create the central chassis. Start with a rectangular base 11mm wide, 7mm high, and 16mm deep. Within this area, create a hollow rectangular cutout for the battery, leaving a... | wall_thickness = 0.8;
motor_to_motor_spacing = 45;
m2m_spacing2 = motor_to_motor_spacing / 2;
motor_mount_height = 5;
motor_mount_inner_diameter = 6.35;
lower_motor_center_brace = 7;
lower_motor_brace_height = 2.5;
duct_thickness = wall_thickness;
duct_inner_diameter = 33;
duct_height = 9;
duct_angle_height = 2.5;
d... | glb/cad_5194fbd65399.glb |
Create a 3D model of a NACA 2408 airfoil. The shape should be a linear extrusion with a height of 30mm. The profile of the extrusion is defined by a chord length of 60mm, following the specific geometric curvature of the 2408 series airfoil. Ensure the trailing edge is closed. | airfoil(naca = 2408, L = 60, N=1001, h = 30, open = false);
module help()
{
echo(str("\n\nList of signatures in lib:\n=================\n",
"module airfoil(naca=2412, L = 100, N = 81, h = 1, open = false) - renders airfoil object\n",
"module airfoil(naca=[.2, .4, .12], L = 100, N = 81, h = 1, open = false) - ren... | glb/cad_1f0a724e0a9f.glb |
Create a set of gears with the following specifications. First, construct a large gear with 21 teeth, a circular pitch of 360mm, a pressure angle of 26 degrees, and a thickness of 7mm. This gear should have a rim thickness of 7mm and a hub that is 16mm thick with a diameter of 18mm. The central bore of this gear must b... | use <MCAD/involute_gears.scad>;
Big_teeth=14;
Small_teeth=7;
extra_space = 1;
function get_pitch_radius(number_of_teeth, circular_pitch) = number_of_teeth * circular_pitch / 360;
big_pitch_radius = get_pitch_radius(Big_teeth, 700);
small_pitch_radius = get_pitch_radius(Small_teeth, 700);
module big_gear(bore=8.1) ... | glb/cad_3ca2347817d3.glb |
Create a set of twelve identical ring-shaped spacers. Each spacer is a thin cylinder with an outer diameter of 7.4mm, an inner diameter of 3.4mm, and a height of 1.2mm. Arrange these spacers in a grid of four columns and three rows. The spacing between the centers of the spacers should be 8.4mm both horizontally and ve... | shells = 4;
nozzle = 0.4;
h=1.2;
id=3.4;
od=7.4;
$fn = 100;
for(x=[0:3]) for(y=[0:1]) {
translate([x*(od+1), y*(od+1), 0]) spacer(id, od, h);
}
module spacer(id, od, h, center=false) {
dz = center ? 0 : h/2;
translate([0,0,dz])
difference() {
cylinder(d=od, h=h, center=true);
cylinder(d=id, h=h+0.1,... | glb/cad_b957c20d83c8.glb |
Create a battery holder block for four batteries. Start with a solid rectangular base measuring 56.5mm by 56.5mm with a height of 16mm, ensuring all exterior edges and corners are rounded with a 2mm radius. Within this block, create four circular vertical cutouts arranged in a 2x2 grid. Each cutout must have a diameter... | x_count = 2;
y_count = 2;
atty_h = 10;
atty_d = 26.25;
spacing = 2;
pin_d = 7.5;
pin_h = 6;
$fn = 100;
difference() {
union() {
cube_x = (x_count * (atty_d+spacing)) + spacing;
cube_y = (y_count * (atty_d+spacing)) + spacing;
translate([-1*(atty_d/2+spacing), -1*(atty_d/2+spacing), 0]) {
minkow... | glb/cad_106b1adbe6cc.glb |
Create a brushed motor cap by starting with a hollow cylinder that has an outer diameter of 7.5mm, an inner diameter of 6.5mm, and a height of 4mm, centered on the Z-axis. Remove a spherical section from the top of this cylinder using a sphere with a diameter of 7.5mm, positioned so its center is 0.75mm above the cente... | motor_d = 6.5;
cap_h = 4;
wall_thickness = 0.5;
union() {
difference() {
cylinder(d=motor_d+(2*wall_thickness), h=cap_h, center=true, $fn=50);
translate([0,0,wall_thickness/2])
cylinder(d=motor_d, h=cap_h-wall_thickness, center=true, $fn=50);
translate([0,0,wall_thickness+motor_... | glb/cad_225e3013aa51.glb |
Create a magnifier holder consisting of a circular frame with a partial cutout. Start by creating a solid cylinder with a diameter of 79mm and a height of 7.25mm. From the center of this cylinder, remove a concentric cylinder with a diameter of 71mm and a height of 7.25mm to create a ring.
To accommodate the lens, re... | include <MCAD/boxes.scad>
definition = 16;
tolerance = 0.2;
i1 = 25.4;
i4 = i1/4;
i8 = i1/8;
i16 = i1/16;
module modularHoseBall(mhBore) {
mhBallOD = mhBore*2;
mhOffsetToBallCenter=0.61 * mhBore;
mhOffsetToTopOfBall=1.07 * mhBore;
mhWideBore=mhBore * 1.6;
mhBallID = mhBore * 1.6;
mhOffsetToInnerBallCenter = 0.... | glb/cad_f86d50370ef7.glb |
Create a temperature gauge tower consisting of seven stacked cubes, each measuring 10x10x10mm. The cubes are stacked vertically along the Z-axis.
For each cube, carve out a central square hole of 6x6mm that runs vertically through the entire tower. On the front face of each cube, emboss the following temperature label... | DoYouUnderstandYouMustModifyTheGCodeThisMakes=7;
NumberOfBlocks = 7;
Labels=["190","195","200","205","210","215","220"];
ReverseLabelOrder=0;
Reverse=ReverseLabelOrder == 1;
BlockSize=[10,10,10];
FontFace=2;
FontFacesInCustomizer=["Arial:style=Bold","Liberation Sans",
"Open Sans:style=Bold",
"Montserrat:styl... | glb/cad_ff2a758ffb26.glb |
Create a 3D model of a small stand consisting of two vertical pillars connected by two flat, rounded plates. Start by placing two vertical cylinders, each with a diameter of 4mm and a height of 20mm, positioned 8mm apart from center to center along the Y-axis. Then, create two identical horizontal plates to cap the top... | $fn=32;
translate([0,1.5,0]) {
translate([-4,0,-2]) cylinder(d=4, h=20);
translate([4,0,-2]) cylinder(d=4, h=20);
translate([0,0,-1.25])
minkowski() {
hull() {
translate([-4,0,0]) cylinder(d=8,h=0.5);
translate([4,0,0]) cylinder(d=8,h=0.5);
}
sphere(d=1.5);
}
translate... | glb/cad_15045a7b90aa.glb |
Create a quadcopter frame with a thickness of 3mm. At the center, construct a rectangular control center area measuring 20mm by 30mm. This center consists of a hollow rectangular ring with a wall thickness of 3mm.
From the four corners of this central rectangle, extend four symmetrical struts that reach toward the mot... | Width=75;
Length=75;
FC_Width=20;
FC_Length=30;
Surface_Width=3;
Frame_Thickness=3;
Motor_Diameter= 7;
Motor_Hole_Scaling=1.06;
Motor_Cap=10;
Motor_Cap_Wall_Thickness=1.5;
Motor_Cap_Side_Opening=1.5;
Motor_Cap_Inner_Bevel=3.5;
Which_Parts="frame";
Resolution=100;
FC_Band=Surface_Width;
left = -Width/2;
r... | glb/cad_7afe957d49a3.glb |
Create a push-on lens cap consisting of a shallow cylindrical container with a flat base and thin walls. The main body is a hollow cylinder with an outer diameter of 17mm and a total height of 6mm. The walls and the base should both have a uniform thickness of 1.5mm. The interior of the cap is a void with a diameter of... | thickness=1.5;
idiam=14;
lidh=6;
looseness=2.5;
doTether= 0;
$fn=100;
loose=looseness/10;
lid();
module tube(d,h,th) {
rad=d/2;
difference() {
cylinder(h=h,r=rad);
cylinder(h=h,r=rad-th);
}
}
module tether( edge ) {
translate([-(edge+1)/2, 0, 0])
difference() {
cylinder(h=thickness,r=4, center=false);
cyli... | glb/cad_9cedf8418c44.glb |
Create a 3D model consisting of several intersecting geometric primitives, all with a height of 9mm. Start by placing a cylinder with a 4mm diameter at coordinates (-3.5, 0, 0). Add a rectangular block measuring 3mm by 35mm by 9mm, centered at (-5.5, 0, 0). Create a third element by taking a cylinder with an 11mm diame... | $fn=50;
translate([-3.5,0,0]) cylinder(d=4,h=9);
translate([-5.5,0,0]) cube([3,35,9]);
translate([-0,35,0])
difference() {
cylinder(d=11, h=9);
translate([0,0,-0.1]) cylinder(d=5, h=9.2);
translate([-6,-12,-0.1]) cube([12,12,12.2]);
}
translate([2.5,-3,0]) cube([3,38,9]);
translate([8.5,-3,0])
rotate([0,0,18... | glb/cad_7c3519d38147.glb |
Create a stem for a vaporizer with a total height of 57.18mm. The base is a cylinder with a diameter of 14mm and a height of 12mm. Above this base, create a tapered section that transitions from a 14mm diameter down to a 12mm diameter over a height of 12mm. The remaining upper portion of the stem is a cylinder with a 1... | $fn=32;
stem_len = 2.25;
stem_len_mm = stem_len * 25.4;
bit_len = 8;
entry_port_len = 7;
insert_510_len = 6;
channel_len = stem_len_mm-bit_len;
show_half_cut = false;
show_nautilus_ring = true;
module bore_primary_channel() {
translate([0,0,0]) cylinder(d1=3,d2=2.5, h=channel_len-1.99);
translate([0,0,channel... | glb/cad_623e261b117e.glb |
Create a 3D model consisting of two intersecting rectangular prisms. First, create a base rectangular prism with a width of 160mm, a height of 100mm, and a thickness of 8mm, lying flat on the XY plane. Second, create a second rectangular prism with a width of 160mm, a thickness of 8mm, and a height of 100mm, positioned... | height=100;
width=160;
thickness=8;
cube([width, height, thickness]);
cube([width,thickness,height]);
translate([thickness,0,0])
rotate([0,-90,0])
linear_extrude(thickness)
polygon( points=[[thickness,thickness],[thickness,90],[90,thickness]]);
translate([width,0,0])
rotate([0,-90,0])
linear_extrude(thickness)
polyg... | glb/cad_10b42976d618.glb |
Create a lid for a storage box. The lid is a rectangular slab with rounded corners, measuring 82mm in length, 61mm in width, and 3mm in thickness. The corners should have a radius of 4mm.
On the underside of the lid, create a centered rectangular cutout to allow it to fit over a box. This cutout should be 76mm long a... | $fn = 20;
wall_thickness = 3;
items_to_print = "lid";
width = 55 + 2*wall_thickness;
length = 76 + 2*wall_thickness;
height = 56 + 2*wall_thickness;
edge_roundness = 4;
tolerance = 0.3;
inner_box_dimentions = [length,width,height];
if (items_to_print != "lid")
difference ()
{
hull()
{
addOutterCorners(0,0);
... | glb/cad_99b5f47976e5.glb |
Create a circular token with a radius of 22.75mm and a thickness of 4.5mm.
On the top face, create a concentric ring of embossed text. The outermost ring of text should read "1\xC9\xF7\xE1\xB0\x0BQh//shh/bin\x89\xE3\xCD\x80\x90" with a font size of 3mm, extruded 1mm deep into the edge. Inside this, add a second ring ... | dc252 = "DEFCON 25";
star2 = "*";
lv2 = "Las Vegas";
edgetext = "1\\xC9\\xF7\\xE1\\xB0\\x0BQh//shh/bin\\x89\\xE3\\xCD\\x80\\x90";
radius = 22.75;
height = 4.5;
do_scaloped_edge = 0;
scalopradius = 5.1;
scalopcount = 50;
edge_extrude_depth = 1;
edge_fontsize = 3;
edge_font="Courier:style=Bold Italic";
edge_text_cente... | glb/cad_6a66ad958258.glb |
Create a belt clamp for a robot. Start with a central rectangular block 16mm long, 8mm wide, and 4mm high, centered on the origin. Add two cylinders with a radius of 4mm and a height of 4mm, positioned at each end of the block so their centers are 16mm apart.
At the center of each cylinder, create a hexagonal hole fo... | include <configuration.scad>
include <../../../Generic_Mech_Repo/configuration/general.scad>
module beltclamp(){
clamp_height = NUT_HEIGHT_M3+1;
clamp_width = 8;
clamp_length = 16;
belt_pitch = 2;
belt_width = 7.5;
tooth_width = 1.3;
tooth_heigth = .75;
offset = belt_pitch/4;
difference(){
union(0){
translate... | glb/cad_93d0e672cb31.glb |
Create a 3D model of a Raspberry Pi 4 board. Start with a main rectangular base measuring 85mm by 56.4mm with a thickness of 1.5mm. On the underside of this base, add four cylindrical mounting supports with a diameter of 5.9mm and a height of 2.2mm, positioned at the corners: two at x=22.2mm and two at x=80.2mm, with y... | board_thickness = 1.5;
pin_space = 2.2;
$fn = 30;
difference(){
translate([0,0,board_thickness]){
translate([0,0,-(board_thickness)])
{
cube([85,56.4,board_thickness]);
}
translate([-2.81,2.25,0]) cube([21.3,16,13.6]);
translate([-2.81,22.6,0]) cube([17.44,13.1,15.6]);
translate([-2.81... | glb/cad_d02d4980de2d.glb |
Create a thin rectangular plate with dimensions 85.60mm in width, 53.98mm in depth, and 0.56mm in height. Apply a small corner radius of 0.1mm to the top and bottom faces along the Z-axis. Centered on the top surface of the plate, add embossed text that reads "emailme@pm.me" using a font size of 5mm. The text should be... | card_w = 85.60;
card_d = 53.98;
card_h = 0.56;
emboss_h = 0.2;
text_height = 5;
translate([0,0,-card_h/2]){
roundedcube([card_w,card_d,card_h], radius=0.1, center=true, apply_to="z");
}
translate([-40,-text_height/2,0]){
linear_extrude(height=emboss_h){
text("emailme@pm.me", size=text_height);
}
}
$fs = 0.... | glb/cad_859259888394.glb |
Create a 3D hypotenuse-shaped bracket with a total length of 200mm, a width of 20mm, and a height of 15mm. The main body is formed by two mirrored, hollowed-out wedge prisms. Each wedge has an outer dimension of 200mm by 10mm by 15mm, with an internal cavity removed to leave a wall thickness of 3mm.
At each end of th... | module prism(l, w, h) {
polyhedron(points=[
[0,0,h],
[0,0,0],[w,0,0],
[0,l,h],
[0,l,0],[w,l,0]
], faces=[
[0,2,1],
[3,4,5],
[0,1,4,3],
[1,2,5,4],
[0,3,5,2],
]);
}
... | glb/cad_773ad52f58cc.glb |
Create a Raspberry Pi 4 model case consisting of a top and bottom shell. The main body is based on a board size of 85.5mm by 56mm with a case thickness of 2mm.
For the main enclosure, subtract the volume of a Raspberry Pi 4 board and its components from a solid block. This includes removing space for the Ethernet por... | board_thickness = 1.5;
pin_space = 3;
$fn = 100;
extension = 20;
inhibitionzone_height = 12;
case_thickness = 2;
pil = 85.5;
pid = 56;
pih = board_thickness;
sd_height = pin_space + case_thickness + board_thickness;
mount_pin_height = 2*board_thickness + 2*case_thickness + pin_space + inhibitionzone_height;
fan_pin_di... | glb/cad_d1d4b23b5696.glb |
Create a hex bolt consisting of a hexagonal head and a threaded shaft.
First, construct the head as a regular hexagonal prism with a distance of 12mm between opposite flat sides and a height of 5mm.
Attached to the top of the head, create a threaded shaft with an outer diameter of 8mm and a total length of 25mm. Th... | $fn=1;
type = "bolt";
head_type = "hex";
drive_type = "socket";
head_diameter = 12;
head_height = 5;
drive_diameter = 5;
slot_width = 1;
slot_depth = 2;
texture = "exclude";
thread_outer_diameter = 8;
... | glb/cad_d0ddd63d72b8.glb |
Create a square plate measuring 90mm by 90mm with a thickness of 2mm and rounded corners with a radius of 2mm. In this plate, create twelve holes. Eight of these are simple cylindrical holes with a radius of 2mm that pass completely through the plate. The remaining four holes are countersunk screw holes; each consists ... | module hole()
{
cylinder(r=2,h=10, $fn=50);
}
module screw_hole()
{
union() {
hole();
translate(v=[0,0,4]) {
cylinder(h=4, r1=2, r2=6, $fn=50);
}
}
}
module plane90x90()
{
minkowski() {
cube([90,90,2]);
cylinder(r=2,h=2);
}
}
m... | glb/cad_6c85390efbbf.glb |
Create a two-tiered cylindrical cap. First, construct the base by combining two cylinders: a wide bottom cylinder with a radius of 5mm and a height of 3mm, and a narrower cylinder centered on top of it with a radius of 3.62mm and a height of 5.5mm. Then, create a second identical structure consisting of a wide cylinder... | module cap_bottom() {
union () {
cylinder(r=5, h=3, $fn=50);
cylinder(r=3.62, h=5.5, $fn=50);
}
}
module cap_top() {
union () {
cylinder(r=5, h=3.7, $fn=50);
cylinder(r=3.62, h=6.2, $fn=50);
}
}
cap_top(); | glb/cad_d4a7970ac9d7.glb |
Create a base plate that is 11mm wide, 98mm long, and 2mm thick. On the left side of the plate, starting at a height of 6mm, add a wedge-shaped prism that is 11mm wide, 3mm deep, and 4mm high. Below this prism, create a larger prism that is 11mm wide, 4mm deep, and 12mm high, but remove a 12mm cubic section from its ce... | module prism(l, w, h) {
polyhedron(points=[
[0,0,h],
[0,0,0],[w,0,0],
[0,l,h],
[0,l,0],[w,l,0]
], faces=[
[0,2,1],
[3,4,5],
[0,1,4,3],
[1,2,5,4],
[0,3,5,2],
]);
}
... | glb/cad_f914bf0f0e82.glb |
Create a ForeverSpinTop base by starting with a main cylinder that has a diameter of 120mm and a height of 26mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 100mm and a height of 26mm, starting from a height of 3mm from the bottom. Additionally, remove a cylinder ... | base_diameter = 120;
base_height = 26;
module bnc_hole() {
rotate([0, 90, 0]) difference() {
cylinder(d = 9.6, h = 10, $fs = 1);
translate([4.2, -10/2, 0]) cube([1, 10, 10]);
}
}
module connectors() {
difference() {
translate([0, -50/2, 0]) cube([2, 50, 22]);
translate([-1,... | glb/cad_82c897224e2d.glb |
Create a ForeverSpinTop by constructing a composite cylindrical base and carving out a large spherical void. Start by creating a main cylinder with a diameter of 120mm and a height of 20mm. Attached to the bottom of this cylinder, add a second, shorter cylinder with a diameter of 110mm and a height of 3mm, positioned s... | base_diameter = 120;
difference() {
union() {
translate([0, 0, 0]) cylinder(d = base_diameter, h = 20, $fa = 1.5);
translate([0, 0, -3]) cylinder(d = base_diameter-10, h = 3, $fa = 1.5);
}
d = 1000;
translate([0, 0, d/2]) sphere(d = d, $fa=1.5);
} | glb/cad_d6fdf5e8d099.glb |
Create a ForeverSpinTop, a spinning top designed to hold magnets. Start by creating the main body as a solid of revolution with a maximum diameter of 60mm and a total height of 70mm.
Within this body, carve out two identical cylindrical voids to accommodate magnets. Each void must have a diameter of 19mm and a height... | use <spintop.scad>
spintop_height = 70;
spintop_diameter = 60;
magnet_diameter = 19;
magnet_height = 5;
module magnet() {
union() {
cylinder(d=magnet_diameter, h=magnet_height, center=true);
helper_length = 2;
helper_width = 5;
translate([magnet_diameter/2, helper_width/2, 0]) ro... | glb/cad_b4316e499f3a.glb |
Create a led-column-lamp cap by constructing a hollowed cylindrical base with a rectangular profile extension. Start with a solid cylinder 52mm in diameter and 10mm high. Remove a concentric cylindrical core 50mm in diameter, starting 1mm from the bottom and extending through the top, to create a wall thickness of 1mm.... | $fn=500;
w_wall = 1;
h_cap = 10;
d_inner=50;
w_profile = 15;
h_profile = 10;
wall_profile = 1.5;
r_inner = d_inner / 2;
d_outer = d_inner + 2 * w_wall;
d_diff = d_outer-d_inner;
r_diff = d_outer / 2;
x=sqrt(pow(r_inner, 2) - pow(h_profile / 2 - wall_profile, 2));
t=r_inner - x + w_wall/2;
cut = 1.1;
difference() {... | glb/cad_2a31935d6f7c.glb |
Create a sensor housing by starting with a square prism that is 40mm wide, 40mm deep, and 10mm high. Center a large circular hole with a diameter of 36mm through the entire height of the prism. Additionally, create four smaller circular holes, each with a diameter of 4mm, passing through the prism. Position these four ... | echo(version=version());
color("gray")
linear_extrude(height = 10)
difference(){
square([40, 40], center = true);
circle(18, center = true);
translate([16.5, -16.5, 0])circle(2, center = true);
translate([16.5, 16.5, 0])circle(2, center = true);
... | glb/cad_9d8abbe1010d.glb |
Create a sensor housing base. Start with a main cylindrical body that has a diameter of 57.6mm and a height of 8mm. On top of this base, add a smaller concentric cylinder with a diameter of 60mm and a height of 2mm.
Hollow out the center of the structure by removing a cylinder with a radius of 27mm and a height of 19m... | $fn = 90;
module sens_bottom() {
union () {
for ( i = [0 : 1] )
{
difference(){
rotate( [0, 0, i * 180])translate ([24.5,0,9])cube ([8,4,15],true);
rotate( [0, 0, i * 180])translate ([23,4,13])rotate( [90, 90, 0])cylinder (r1 = 0.85, r2 = 0.85, h= 10);
... | glb/cad_23df177bbebf.glb |
Create a sensor housing base. Start with a solid cylindrical foundation consisting of two stacked cylinders: a bottom cylinder with a radius of 40mm and a height of 2mm, and a second cylinder on top with a radius of 38mm and a height of 4mm.
Remove a central cylindrical core with a radius of 25mm and a height of 19mm... | $fn = 90;
module sens_bottom() {
union () {
difference(){
union(){
cylinder (r1 = 38, r2 = 38, h= 4);
cylinder (r1 = 40, r2 = 40, h= 2);
}
translate ([0,0,1.5])cylinder (r1 = 25, r2 = 25, h= 19);
rotate(120)
translate ([13,0,0])
... | glb/cad_f72c896f3208.glb |
Create a sensor housing base by starting with a main cylinder 98mm in diameter and 6mm high. Remove a concentric inner cylinder 96mm in diameter and 6mm high to create a thin outer ring. On top of this base, add a second concentric cylinder 104mm in diameter and 2mm high.
Within this upper section, create four circul... | $fn = 90;
module kibanbase(){
union(){
difference(){
cylinder (r1 =49, r2 = 49, h= 6);
cylinder (r1 =48, r2 = 48, h= 6);
};
difference(){
cylinder (r1 =52, r2 = 52, h= 2);
cylinder (r1 = 35, r2 = 35, h= 2);
rotate ([0,0,45]) {translate ([43,0,0]) {
cyli... | glb/cad_80998fd0d283.glb |
Create a sensor housing base by starting with a hollow cylinder that has an outer radius of 40mm, an inner radius of 38.5mm, and a height of 28mm, positioned 2mm above the base plane.
Cut twelve rectangular slots into the side walls of this cylinder. Each slot is created by centering a 4mm wide by 4mm high cube at a ... | $fn = 90;
module undershell(){
union () {
difference () {
translate ([0,0,2]) {
cylinder (r1 = 40, r2 = 40, h= 28);
}
translate ([0,0,2]) {
cylinder (r1 = 38.5, r2 = 38.5, h= 28);
}
translate ([0,0,25]) cube ([100,4,4],true);
rotate ([0,0,15]) translate ([0,0,25])cube ([100,4... | glb/cad_a5d3d60e292e.glb |
Create a sensor housing radiation shield by revolving a specific profile around the Z-axis. The profile is a polygon with vertices at [60, 20], [65, 0], [64, 0], and [59, 20]. To this revolved base, add three identical rectangular bosses spaced 120 degrees apart. Each boss is a linear extrusion 20mm high with a cross-s... | module radiationshield(sukima = 15){
rotate_extrude()
polygon( points=[
[60,20],
[65,0],
[64,0],
[59,20],
] );
};
translate ([0,0,0])radiationshield(15);
module radiationsheild_boss() {
for ( i = [0 : 3] ){
rotate ([0,0,i*120])
linear_extrude(height = 20, center = false, convexity = 10, twist = 0)
polygon( point... | glb/cad_240f388a6f2d.glb |
Create a sensor housing by starting with a solid rectangular block measuring 29mm in width, 31mm in depth, and 29mm in height. Hollow out the center of this block to create a cavity that is 24.5mm wide, 26.5mm deep, and 26.7mm high, leaving walls that are 2.25mm thick. On the right side of the housing, create a rectang... | difference(){
linear_extrude(height = 29, center = false, convexity = 10, twist = 0)
polygon( points=[
[0,0],
[0,31],
[29,31],
[29,0]
]);
linear_extrude(height = 29, center = false, convexity = 10, twist = 0)
polygon( points=[
[2.25,2.25],
[2.25,28.75],
[26.75,28.75],
[26.75,2.25]
]);
translate ([26.5,15,22])cube... | glb/cad_20894ae27728.glb |
Create a sensor housing consisting of a U-shaped base with two parallel rectangular platforms connected by a rear cross-bar. Each of the two platforms is a rectangular block measuring 14mm wide, 5mm thick, and 50mm long.
In each platform, create a central hole that passes through the 5mm thickness. This hole starts a... | include <arduino.scad>
dueDimensions = boardDimensions( DUE );
unoDimensions = boardDimensions( UNO );
rotate([90, 0, 0]){
union(){
translate([-35, 0, 0]) {
difference(){
cube([70,12,3]);
translate([20, 5, 0])
cyli... | glb/cad_f9c851735570.glb |
Create a sensor housing consisting of two identical parallel rails. For each rail, start with a rectangular base measuring 130mm in length, 10mm in width, and 3mm in height.
On each rail, add two cylindrical pegs with a radius of 2.5mm and a height of 5mm. Position the first peg at x=40mm and the second peg at x=106m... | $fn = 90;
module sens_pcbstay() {
difference(){
union(){
cube ([130,10,3]);
translate ([40,2+5,0])cylinder (r1 = 2.5, r2 = 2.5, h= 5);
translate ([40+66,2+5,0])cylinder (r1 = 2.5, r2 = 2.5, h= 5);
}
translate ([40,2+5,0])cylinder (r1 = 0.85, r2 = 0.85, h= 5);
transl... | glb/cad_b349432b97be.glb |
Create a sensor housing consisting of a main cylindrical shell and a base.
For the shell, create a hollow cylinder with an outer radius of 40mm and a height of 28mm. The wall thickness is 2mm. Cut four rectangular slots into the side of this shell; each slot is 100mm wide, 22mm high, and 17mm deep, positioned 2mm fro... | $fn = 90;
%union () {
difference () {
translate ([0,0,2]) {
cylinder (r1 = 40, r2 = 40, h= 28);
}
translate ([0,0,2]) {
cylinder (r1 = 38, r2 = 38, h= 28);
}
translate ([-50,-11,2]) {
cube ([100,22,17]);
}
rotate ([0,0,45]) {
translate ([-50,-11,2]) {
... | glb/cad_d0d7071a08e1.glb |
Create a sensor housing consisting of two identical rectangular mounting rails. For each rail, create a base rectangular prism measuring 80mm in length, 7mm in width, and 2mm in height.
On each rail, place three cylindrical holes with a radius of 2mm and a depth of 2mm to serve as mounting points. Position the first ... | include <arduino.scad>
dueDimensions = boardDimensions( DUE );
unoDimensions = boardDimensions( UNO );
union() {
standoffs(LEONARDO, mountType=TAPHOLE,topRadius=3,holeRadius=1.2);
boardShape(LEONARDO, offset = 3);
translate([-13, 5, 0]) {
difference(){
cube([80,7,2]);
... | glb/cad_e2fe2dbc90f8.glb |
Create a sensor housing cover by starting with a revolved profile. The main body is a circular disk created by rotating a polygon around the Z-axis; the polygon points are [0,15], [50,15], [57,10], [57,0], [56,0], [56,9], [49,14], and [0,14]. This results in a disk with a total diameter of 114mm and a height of 15mm, f... | $fn = 90;
module cover_top(){
union(){
rotate_extrude()
polygon( points=[
[0,15],
[50,15],
[57,10],
[57,0],
[56,0],
[56,9],
[49,14],
[0,14]
] );
translate ([0,0,2]) {
translate ([43,0,0]) {
difference () { cylinder (r1 = 4, r2 = 4, h= 8);
cylinder (r1 = 1.3, r2 = 1.3, h= 8);}
translate ... | glb/cad_c66d9edce95a.glb |
Create a radiation shield sensor housing by revolving a specific profile around a central vertical axis. The profile for this revolution is a polygon with vertices at [60, 20], [65, 0], [64, 0], and [59, 20], creating a ring with a sloped outer wall and a flat base. To this ring, add three identical rectangular bosses ... | module radiationshield(sukima = 15){
rotate_extrude()
polygon( points=[
[60,20],
[65,0],
[64,0],
[59,20],
] );
};
translate ([0,0,0])radiationshield(15);
module radiationsheild_boss() {
for ( i = [0 : 3] ){
rotate ([0,0,i*120])
linear_extrude(height = 20, center = false, convexity = 10, twist = 0)
polygon( point... | glb/cad_6d84dad5def5.glb |
Create a sensor housing consisting of a hollowed cylindrical shell and a base. For the upper shell, create a cylinder with an outer radius of 40mm and a height of 28mm, starting at a Z-offset of 2mm. Hollow this out by removing a concentric cylinder with a radius of 38mm and the same height. Cut four rectangular slits ... | $fn = 90;
%union () {
difference () {
translate ([0,0,2]) {
cylinder (r1 = 40, r2 = 40, h= 28);
}
translate ([0,0,2]) {
cylinder (r1 = 38, r2 = 38, h= 28);
}
translate ([-50,-11,2]) {
cube ([100,22,17]);
}
rotate ([0,0,45]) {
translate ([-50,-11,2]) {
... | glb/cad_257504aa53e2.glb |
Create a sensor housing unit by starting with a solid rectangular block measuring 28mm wide, 31mm deep, and 29mm high. Hollow out the center of this block to create a shell with a wall thickness of 1.25mm on all sides, leaving the bottom face solid. From this hollowed shell, remove a rectangular section measuring 7mm w... | difference(){
linear_extrude(height = 29, center = false, convexity = 10, twist = 0)
polygon( points=[
[0,0],
[0,31],
[28,31],
[28,0]
]);
linear_extrude(height = 29, center = false, convexity = 10, twist = 0)
polygon( points=[
[1.25,2.25],
[1.25,28.75],
[26.75,28.75],
[26.75,2.25]
]);
translate ([0,0,26])cube ([7,31,... | glb/cad_1d0ebf4a3bc4.glb |
Create a sensor housing consisting of a base and a supporting structure for a circuit board.
First, construct the lower shell by creating a cylinder with a radius of 40mm and a height of 28mm. Hollow this out by removing a concentric cylinder with a radius of 38mm and the same height, starting 2mm from the base. Cut ... | $fn = 90;
%union () {
difference () {
translate ([0,0,2]) {
cylinder (r1 = 40, r2 = 40, h= 28);
}
translate ([0,0,2]) {
cylinder (r1 = 38, r2 = 38, h= 28);
}
translate ([-50,-11,2]) {
cube ([100,22,17]);
}
rotate ([0,0,45]) {
translate ([-50,-11,2]) {
... | glb/cad_aea75d7ccc14.glb |
Create a sensor housing base by starting with a hollow cylinder that has an outer diameter of 57.6mm, an inner diameter of 54mm, and a height of 6mm. In the center of this base, create a circular hole with a radius of 14.5mm.
Position four small cylindrical posts with a radius of 1.3mm and a height of 6mm at the coor... | $fn = 90;
module sens_fanstay() {
difference(){
union () {
for ( i = [0 : 1] )
{
difference(){
rotate( [0, 0, i * 180])translate ([23.5,0,7])cube ([10,4,14],true);
rotate( [0, 0, i * 180])translate ([23,4,11])rotate( [90, 90, 0])cylinder (r1 = 0.85, r2 = 0.85, h= ... | glb/cad_ef83f0a04b12.glb |
Create a sensor housing cover by starting with a main cylindrical body that has a radius of 37mm and a height of 15mm. From this main volume, remove a smaller concentric cylinder from the center with a radius of 30mm and a height of 5mm. To create the interior wall, remove a concentric cylindrical section with a radius... | $fn = 90;
module cover_top(){
difference () {
union(){
rotate_extrude()
polygon( points=[
[0,15],
[36,15],
[37,0],
[36,0],
[35,14],
[0,14]
] );
translate ([28,0,0]) {
translate ([0,3,0])rotate ([0,0,-90])cube([6,8,15]);
}
rotate ([0,0,90]) { translate ([28,0,0]) {
translate ([0,3,0])rotat... | glb/cad_4f3bd6b2b4d8.glb |
Create a sensor housing base by starting with a cylinder 57mm in diameter and 1mm high. Remove a 60mm by 60mm square section from the center of this cylinder, offset by -6mm and -30mm on the X and Y axes respectively, to create a circular ring. Add a rectangular block to the side of this ring, measuring 7mm wide, 36mm ... | $fn = 90;
module sens_flowseparater() {
difference(){
cylinder (r1 = 57/2, r2 = 57/2, h= 1);
translate ([-6,-30,0])cube([60,60,6]);
}
translate ([-8,-36/2,0])cube([7,36,1]);
difference(){
translate ([-8,-55/2,0])cube([2,55,6]);
translate ([-10,-(42+2)/2,3])rotate([90,0,90])c... | glb/cad_630102c7b11b.glb |
Create a sensor housing consisting of a base and a cover.
For the base, create a cylindrical shell with an outer radius of 40mm and a height of 28mm. Hollow out the center with a cylinder of radius 38mm. Cut four rectangular slits into the side walls, each 100mm wide and 22mm high, starting from the base and spaced a... | $fn = 90;
%union () {
difference () {
translate ([0,0,2]) {
cylinder (r1 = 40, r2 = 40, h= 28);
}
translate ([0,0,2]) {
cylinder (r1 = 38, r2 = 38, h= 28);
}
translate ([-50,-11,2]) {
cube ([100,22,17]);
}
rotate ([0,0,45]) {
translate ([-50,-11,2]) {
... | glb/cad_e8987117b141.glb |
Create a pyrex lid stopper by starting with a central rectangular block measuring 19.5mm wide, 40mm long, and 4.5mm high. Centered on top of this block, add a smooth cylinder with a diameter of 12.8mm and a height of 5mm. To finish the piece, carve a narrow hole with a diameter of 2.5mm through the center of the rectan... | rotate([0,180,0])
{
translate([0,12,-5])
cylinder(d=12.8, h=5, $fn=150);
difference()
{
cube([19.5, 40.0,4.5],center=true);
translate([-12,0,-1.5])
rotate([0,90,0])
cylinder(d=2.5,h=25, $fn=100);
translate([8,-11,2])
mirror([0,0,0])
rotate([0,0,90])
scale([1.7,1.7,1])
lin... | glb/cad_da5e3cab79c0.glb |
Create a flat rectangular base plate measuring 200mm by 200mm with a thickness of 0.5mm. Centered on this base at the coordinates (100, 100), place a triple-nave church structure. Adjacent to this, positioned at (100, 110), add a house with a valuated roof that is 6mm wide, 4mm deep, and 4mm high. Ensure all components... | base_h=0.5;
cover_h=2;
plate_h=base_h+cover_h;
base_l=200;
base_d=200;
man=2;
house_height=5;
hres=0.4;
wall_thickness=hres*2;
error=0.01;
$fn=15;
include <bezier.scad>;
include <church.scad>;
resolution = 15;
module plate(w, d, h)
{
cube([w, d, h], center=false);
}
plate(base_l, base_d, base_h);
translate([base_... | glb/cad_6a11d7bc5871.glb |
Create a nanofan_controller case consisting of a lower housing, a faceplate, and a fan housing.
Start with the lower case: create a rounded cube with dimensions 126mm x 85.5mm x 55mm and a corner radius of 2mm. Hollow out the center by removing a rounded cube of 112mm x 55.5mm x 57mm. Cut a square power supply hole o... | PARTNO = 1;
button_lower_dia = 29.7;
button_upper_dia = 32.8;
button_height = 24.9;
button_upper_height = 7.9;
led_dia = 5.4;
button_lower_height = button_height - button_upper_height;
fan_width = 120;
fan_thickness = 30.5;
floor_thickness = 2.0;
case_height = 55;
$fn = 70;
module fan() {
roundedcube(fan_width,... | glb/cad_6881caa171e6.glb |
Create a table caster mount. Start by constructing a base form that is a hull of five tapered cylinders. Four of these cylinders are positioned at the corners of a 19mm by 40mm rectangle, and the fifth is positioned at an offset of 12.5mm on the X-axis. Each of these cylinders has a base radius of 4mm, a height of 17mm... | include <tols.scad>
include <smooth_make.scad>
include <bolt_params.scad>
use <bolts.scad>
foot_x = 19;
foot_y = 40;
foot_h = 100;
foot_r = 2;
foot_sm = 4*sm_base;
module foot() {
hull() {
translate([ foot_x/2-foot_r, foot_y/2-foot_r,0])
cylinder(r=foot_r,h=foot_h,$fn=foot_sm);
translate([-foot_x/2+f... | glb/cad_2b4532f3f3fe.glb |
Create a Parametric Battery Store consisting of a grid of 15 cylindrical cells arranged in 3 columns and 5 rows. The overall structure is formed by joining 15 cylinders, each with an outer diameter of 15.8mm and a total height of 24.8mm. These cylinders are packed tightly so that they touch, creating a cohesive block.
... | cylDiameter = 14.5;
cylSlack = 0.5;
cylEnclosedHeight = 23;
cylWall = 0.8;
nippleHeight = 1;
xSlots = 3;
ySlots = 5;
contBottom = 1;
contWall = 0.8;
$fn = 44;
cylTotal = cylDiameter+cylSlack+cylWall;
containerX = cylTotal*xSlots;
containerY = cylTotal*ySlots;
dif... | glb/cad_b62ee62ac048.glb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.