Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a PrismX gantry component starting with a base rectangular block measuring 40mm by 60mm with a height of 12mm. On the top surface of this block, add several rectangular tabs of 2mm thickness: one measuring 7.5mm by 5mm at position (0, 7.5), one measuring 15mm by 5mm at (12.5, 7.5), and one measuring 7.5mm by 5mm...
include <configuration.scad>; h = 12; t = 2; o = 0.01; m4 = m4_diameter; $fn=30; prism90(h, t, 5, m4, 0); module prism90(th = h, st = t, hd = 5, m4 = m4, mirr = false) { if (!mirr) { translate([0, 0, 0]) px90(th, st, 5, m4); } else { translate([-3,0,0]) mirror() px90(th, st, 5, m4); } } module px90(th, st...
glb/cad_084490f036fb.glb
Create a NEMA 17 motor model by combining a central body with a mounting face and hardware. Start with a main body formed by the intersection of a 42mm cube and a 53mm cube rotated 45 degrees on the Y-axis, resulting in a square shape with clipped corners, with a total length of 47mm. Attach a cylinder to the front fac...
use <pulley.scad>; $fa = 3; $fs = 0.5; aluminum = [0.9, 0.9, 0.9]; steel = [0.8, 0.8, 0.9]; motor_screw = 15.5; motor_diagonal = sqrt(2 * motor_screw * motor_screw); module nema17(length) { color([0.4, 0.4, 0.4]) { translate([0, -length/2-17, 0]) intersection() { cube([42, length, 42], center=true...
glb/cad_0efc94e720c8.glb
Create a GT2 pulley for the PrismX printer with 48 teeth. The pulley should be based on a 2mm tooth spacing, resulting in a total pulley diameter of 12.224mm. The main body of the pulley should have a thickness of 0.764mm and a total height of 1.494mm. Bore a central cylindrical hole through the entire length of the pa...
include <Pulley_t-mxl-xl-htd-gt2_n-tooth.scad>; teeth = 48; pulley_dia = tooth_spacing (2, 0.254); yidlerpulley(); module yidlerpulley(); { difference() { pulley("GT2 2mm", pulley_dia, 0.764, 1.494); translate([0, 0, -0.1]) cylinder(r = 4, h = 20); } }
glb/cad_89121e88ba40.glb
Create a PrismX gantry end spacer with a uniform thickness of 3.5mm. The main body is composed of three primary sections joined together. First, create a rectangular base measuring 34.65mm by 13mm. Second, add two rail sections, each 21mm by 53.7mm; position the first rail at [20, 0, 0] rotated 30 degrees, and the seco...
include <configuration.scad>; $fn=50; a = 30; partthickness = 3.5; screwdia = m4_diameter; slottabs = 2; o = 0.01; prism60end_spacer(slottabs,screwdia,partthickness); module prism60end_spacer(sl = slottabs, sc = screwdia, pa = partthickness) { difference() { union() { translate([20,0,0]) rotate([0,0,a]) rail(sl...
glb/cad_e2f78715c9f0.glb
Create a Y-axis rod support clamp for the PrismX printer. Start with a rectangular block that is 60mm wide, 20mm high, and has a base thickness of 6mm. Cut a horizontal cylindrical channel through the center of the block to accommodate a 20mm wide aluminum extrusion. This channel should have a radius of 4mm and exten...
include <configuration.scad>; a = 30; extrusion_width = 20; holder_height = 20; holder_width = 60; mnt_base_thickness = 6; overlap = 0.1; slot_tab_depth = 2; rod_radius = 4; offset_above_extrusion = 0; m4_screw_edge_padding = 6; m4_screw_dia = m4_diameter; rod_center_offset_vert = mnt_base_thickness / 2; clamp_rod_ra...
glb/cad_2b378f329c26.glb
Create a PrismX gantry bracket by forming an L-shaped base. Start with a solid rectangular block measuring 20mm wide, 40mm deep, and 6mm thick. Attach a second rectangular block of the same 6mm thickness, measuring 20mm wide and 45mm deep, rotated 90 degrees and joined to the first to create a right-angle corner. Rem...
include <configuration.scad>; thickness = 6; slottabs = 2; holes = m4_diameter; o = 0.1; $fn=30; for (x = [0]) { translate([(x*25),0,0]) prism60inside_hotext(thickness,slottabs,holes); } module prism60inside_hotext(th,st,hs) { difference() { union() { cube([20, 40, 6]); rotate([90, 0, 0]) cube([20, 45, 6]...
glb/cad_71e7b78e2a5e.glb
Create a heatbed for the PrismX 3D printer by constructing a rectangular prism. The prism should have a length of 200mm, a width of 200mm, and a thickness of 3mm.
include <../configuration.scad>; $fn=50; height = 200; width = 200; depth = 3; heatbed(height, width, depth); module heatbed(h = height, w = width, t = depth) { color([255, 0, 0]) cube([h, w, t]); }
glb/cad_18a5595819b0.glb
Create a series of five identical belt clamps for the PrismX printer gantry. Each clamp starts with a central rectangular block measuring 18mm in length, 12mm in width, and 7.5mm in height, with semi-cylindrical ends of radius 6mm centered on the length axis. Through each clamp, create two vertical holes with a radiu...
include <configuration.scad> belt_width=6; belt_thickness=1.5; tooth_height=1.5; tooth_spacing=2; sd = m3_diameter; belt_clamp_thickness=5.5; belt_clamp_width = 12; belt_clamp_hole_separation=18; belt_clamp_height=m3_diameter+2*belt_clamp_thickness; belt_clamp_length=belt_clamp_hole_separation+m3_diameter+2*belt_c...
glb/cad_24864eab7293.glb
Create a NEMA 17 extruder big gear by starting with a gear that has 24 teeth, a circular pitch of 335mm, a rim thickness of 5mm, and a central bore diameter of 4.8mm. Centered on this gear, add a hexagonal prism with a radius of 9.5mm and a height of 6mm, positioned 4mm above the base. Finally, carve a hexagonal hole t...
include <external_gear_script.scad>; module big_gear() { translate ([0,0,0]) difference(){ union(){ gear ( number_of_teeth=24, circular_pitch=335, rim_thickness=5, bore_diameter=4.8); translate ([0,0,4]) cylinder(r=19/2, h=6, $fn=6);} translate ([0,0,4]) cylinder(r=9/2, h=7, $fn=6); translate ([0...
glb/cad_99515a34fd7d.glb
Create a NEMA 17 extruder body with a total height of 53mm. Start with a main block consisting of a base where the drive gear is placed (42mm x 19mm x 53mm) and a front plate (42mm x 45mm x 4mm). Add a base plate measuring 9mm x 80mm x 53mm and an idler retainer block of 6mm x 7mm x 53mm. Cut a central motor axis hole...
module nozzlemount(){ rotate([0,90,0]) cylinder(r=2, h=70, $fn=30); translate([17,0,0]) rotate([0,90,0]) cylinder(r2=3,r1=2, h=10, $fn=30); translate([1,0,0]) rotate([0,90,0]) cylinder(r=8, h=1); translate([0,15,0]) rotate([0,90,0]) cylinder(r=2, h=70); translate([10-5,15,0]) rotate([0,90,0]) rotate([0,0,30])...
glb/cad_9e5ef96ee489.glb
Create a fan mount base by combining two rectangular prisms. First, create a rectangular block 20mm long, 10mm wide, and 4mm thick. Attached to this, add a second block of the same 10mm by 10mm by 4mm dimensions, but rotate it 45 degrees along the X-axis and shift it 10mm along the X-axis so it joins the first block. F...
module fan_mount_base(){ translate([0,0,0]) rotate([0,0,0]) cube([20,10, 4]); translate([0,0,0]) rotate([0,45,0]) translate([-10,0,0]) cube([10,10, 4]); } module fan_mount_holes(){ translate([10,5,-1]) rotate([0,0,0]) cylinder(h=30, r=1.8, $fn=10); translate([0,5,0]) rotate([0,45,0]) translate([-5,0,-1]) cylinder(...
glb/cad_e207d6cde369.glb
Create a UDLDryerSensor housing starting with a rounded rectangular box measuring 119mm x 88mm x 24mm with a corner radius of 3mm. Hollow out the center of the box by removing a 115mm x 84mm x 28mm rectangular volume, leaving a base and walls. On the interior floor, create a rectangular cutout for an LCD screen measur...
$fn=64; union() { difference() { roundedcube(119, 88, 24, 3); translate([2, 2, 4]) cube([115, 84, 28]); translate([7, 8, -2]) cube([25, 72, 7]); translate([13, 4.5, 1]) cube([12, 4.5, 7]); translate([-1, 14, 20]) rotate([0, ...
glb/cad_502e97337256.glb
Create a UDLDryerSensor housing by starting with a rounded rectangular box measuring 119mm x 88mm x 30mm with a corner radius of 3mm. Hollow out the center of this box by removing a smaller rectangular volume of 115mm x 84mm x 28mm, offset by 2mm from the bottom and side edges. Carve several openings and holes into th...
union() { difference() { roundedcube(119, 88, 30, 3); translate([2, 2, 4]) cube([115, 84, 28]); translate([7, 8, -2]) cube([25, 72, 7]); translate([13, 6, -2]) cube([12, 3, 7]); translate([-1, 8, 24]) rotate([0, 90, 0]) ...
glb/cad_7ae5f12aebbe.glb
Create a gear with 15 teeth, a circular pitch of 700mm, and a pressure angle of 28 degrees. The gear should have a total thickness of 12mm for the main gear body, with a rim thickness of 15mm and a hub thickness of 17mm. Include a central bore with a diameter of 5mm. Around the hub, create 8 circular holes distribute...
gear (circular_pitch=700, gear_thickness = 12, rim_thickness = 15, hub_thickness = 17, circles=8); pi=3.1415926535897932384626433832795; module bevel_gear_pair ( gear1_teeth = 41, gear2_teeth = 7, axis_angle = 90, outside_circular_pitch=1000) { outside_pitch_radius1 = gear1_teeth * outside_circular_pitch / 3...
glb/cad_39ed82db90b5.glb
Create a coffee grinder bean stopper consisting of a main body and a detachable pulling plate. First, construct the main body. Create a central vertical cylinder with a height of 30mm and a diameter of 40mm. Blend this cylinder into a rectangular base that is 40mm long and 30mm high. At the top of this assembly, crea...
enable_tolerance = true; tolerance = 0.1; funnel_outer_diameter = 34.8; funnel_inner_diameter = 30.4; funnel_slot_depth = 10; stopper_body_height = 30; stopper_body_diameter = 40; stopper_body_length = 40; stopper_plate_thick = 2; stopper_plate_additional_length = 10; stopper_plate_pulling_hole_diameter = 16; stoppe...
glb/cad_1d307b7fcd5d.glb
Create a plastic cup by constructing a hollowed-out conical shape with a rim. Start by creating a solid truncated cone with a height of 60mm, a base radius of 15mm, and a top radius of 30mm. On top of this cone, add a thin cylindrical rim with a height of 2mm and a radius of 32mm. To hollow out the interior, remove a c...
module pahar_plastic(inaltime_pahar,raza_baza_pahar,raza_sus_pahar,raza_buza,inaltime_buza,grosime_perete) { difference(){ union(){ cylinder(h=inaltime_pahar, r1=raza_baza_pahar,r2=raza_sus_pahar); translate([0,0,inaltime_pahar])cylinder(h=inaltime_buza, r=raza_buza); } ...
glb/cad_6d1d8a989217.glb
Create three hexagonal nuts of varying dimensions, aligned along the X-axis. The first nut is centered at the origin with a height of 4mm, an outer radius of 10mm forming a six-sided prism, and a concentric circular hole with a radius of 4mm. The second nut is positioned 25mm along the X-axis, featuring a height of 4mm...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } color ("red") piulita(10, 4, 4); color ("yellow") translate ([25, 0, 0]) piulita(14, 2, 4)...
glb/cad_b1f5fa451f37.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start by creating a solid tapered cylinder with a height of 60mm, a base radius of 15mm, and a top radius of 30mm. On top of this tapered cylinder, add a smaller solid cylinder with a height of 2mm and a radius of 32mm to form the rim. To hollow out the...
module pahar_plastic(inaltime_pahar, raza_baza_pahar, raza_sus_pahar, raza_buza, inaltime_buza, grosime_perete) { difference(){ union(){ cylinder( h =inaltime_pahar, r1 = raza_baza_pahar, r2 = raza_sus_pahar); translate([0, 0, inaltime_pahar]) cylinder( h = inaltime_buza, r = raza_buza); ...
glb/cad_2f0dacc26982.glb
Create a small table by stacking three rectangular prisms to form a tiered base, supporting a larger flat top. Start with a bottom base layer that is 30mm wide, 30mm deep, and 2mm high, positioned at coordinates (7, 7, 0). Centered on top of this, add a second layer that is 24mm wide, 24mm deep, and 2mm high, shifted b...
epsilon=0.1; module baza(b1x,b1y,b1z,b2x,b2y,b2z,b3x,b3y,b3z){ union(){ translate([7,7,0]){ color ("SaddleBrown") { cube([b1x,b1y,b1z]); translate([3,3,2]) cube([b2x,b2y,b2z]); translate([6,6,4]) cube([b3x,b3y,b3z]);} } } } module picior(px,py,pz){ translate([16,16,6]) color ("SaddleBrown") { cube([px,py,pz...
glb/cad_73f78211b051.glb
Create a champagne glass model and arrange them in a 5 by 7 grid, with each glass spaced 105mm apart in both the X and Y directions. To construct a single glass, start with a circular base 40mm in diameter and 3mm thick. Centered on top of this base, add a cylindrical stem with a radius of 2mm and a height of 100mm. ...
module pahar_sampanie(raza_baza, grosime_baza, raza_picior, inaltime_picior, raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza, grosime_baza); translate([0, 0, grosime_baza]) picior_pahar(raza_picior, inaltime_picior); translate([0, 0, grosime_baza + inaltime_picior + raza_cupa]) cupa(raza_cupa...
glb/cad_0879701e7144.glb
Create five hexagonal washers with central circular holes. The first washer should have an outer radius of 10mm, an inner hole radius of 4mm, and a thickness of 4mm. The second washer should have an outer radius of 14mm, an inner hole radius of 2mm, and a thickness of 4mm, positioned 25mm away from the first along the ...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } module piulita_M4() { piulita(3.5, 2, 4); } color ("red") piulita(10, 4, 4); color ("ye...
glb/cad_f0010760d9ff.glb
Create a chess table by stacking a series of concentric square prisms to form a tiered base and a supporting pillar. Start with a base cube measuring 30mm by 30mm with a height of 2mm, centered at coordinates (7, 7, 0). Directly on top of this, center a second cube measuring 24mm by 24mm with a height of 2mm. Add a thi...
module chess_table() union() translate([7,7,0]){ color ("SaddleBrown") { cube([30,30,2]); translate([3,3,2]) cube([24,24,2]); translate([6,6,4]) cube([18,18,2]); translate([9,9,6]) cube([12,12,30]); } } difference(){ color ("SaddleBrown") translate([0,0,36]) cube([44,44,3]); translate([2,2,38]) cube([40,40,...
glb/cad_93259328661d.glb
Create a vehicle chassis model consisting of four identical wheels. Each wheel is a cylinder with a radius of 100mm and a thickness of 10mm. For each wheel, remove 10 small circular holes, each with a radius of 10mm, arranged in a perfect circle around the center. The center of these holes should be positioned at a rad...
module roata(raza, grosime, raza_gaura, nr_gauri) { difference() { cylinder(h=grosime, r=raza); for(i=[0:360/nr_gauri:359]) rotate([0,0,i]) translate([raza/2,0,-1]) cylinder(r=raza_gaura, h=grosime+2); } } module masina(distanta_osii...
glb/cad_95ba66fdbb24.glb
Create two separate cylinders, each with a height of 20mm. The first cylinder should have a radius of 10mm. The second cylinder should have a radius of 20mm and be positioned 50mm away from the first cylinder along the x-axis.
x=10; cylinder(h=20,r=x); x=20; translate([50,0,0]) cylinder(h=20,r=x);
glb/cad_30eec104917d.glb
Create a mug by constructing a main cylindrical body and an attached handle. For the body, create a cylinder with a diameter of 110mm and a total height of 160mm. Hollow out the center by removing a smaller cylinder from the top, leaving a base thickness of 10mm at the bottom. To create the handle, start with a cylinde...
$fn=150; color([1,0,0]) cana(height=160,diametru=110); module maner_cana(); { color([0,0,0]) rotate([90,0,0]) translate([60,80,-10]) { difference() { scale([1,1.5,1]) cylinder(20,50,50); translate([-5,0,-5]) scale([1,1.5,1]) cylinder(40,45,45); trans...
glb/cad_f31f02465ced.glb
Create a flower pot with a matching saucer. For the pot, construct a hollow tapered cylinder with a height of 60mm, a base radius of 25mm, and a top radius of 40mm. Add a cylindrical rim to the top of the pot with a height of 4mm and a radius of 42mm. The walls and base of the pot must have a uniform thickness of 2mm, ...
$fn=200; module farfurie_ghiveci(inaltime_farfurie, raza_baza_farfurie, raza_sus_farfurie, raza_buza, inaltime_buza, grosime_perete) { difference(){ union(){ cylinder(h=inaltime_farfurie, r1=raza_baza_farfurie, r2=raza_sus_farfurie); translate([0,0,inaltime_farfurie]) cylinder(h=...
glb/cad_f4cdaef94cea.glb
Create a podium base by forming a convex hull around three cylinders. All cylinders are oriented vertically along the Z-axis. The first cylinder has a radius of 20mm and a height of 10mm, positioned at the origin (0, 0, 0). The second cylinder also has a radius of 20mm and a height of 20mm, positioned at (80, 0, 0). Th...
module placa_snowboard(grosime,raza,lungime) { cylinder(h=grosime,r=raza); x=20; translate([lungime-2*raza,0,0]) cylinder(h=grosime,r=raza); translate([0,-raza,0])cube([lungime-2*raza,2*raza,grosime]); } module placa_snowboard_2(grosime,raza,lungime) { hull(){ cylinder(h=grosime,r=raza); x=...
glb/cad_638d8218a9c1.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start by creating a solid tapered cylinder with a height of 60mm, a base radius of 15mm, and a top radius of 30mm. On top of this tapered body, add a thin cylindrical rim with a height of 2mm and a radius of 32mm. To hollow out the interior, remove a co...
module pahar_plastic(inaltime_pahar, raza_baza_pahar, raza_sus_pahar, raza_buza, inaltime_buza, grosime_perete) { difference(){ union(){ cylinder(h=inaltime_pahar, r1=raza_baza_pahar, r2=raza_sus_pahar); translate([0,0,inaltime_pahar]) cylinder(h=inaltime_buza, r=raza_buza); ...
glb/cad_caa2873c650e.glb
Create five hexagonal washers with central circular holes. The first washer should have an outer radius of 10mm, an inner hole radius of 4mm, and a thickness of 4mm. The second washer should have an outer radius of 14mm, an inner hole radius of 2mm, and a thickness of 4mm, positioned 25mm away from the first along the ...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } module piulita_M4() { piulita(3.5, 2,4); } color ("red") piulita(10, 4, 4); color ("y...
glb/cad_8a7b0d39be31.glb
Create a small plate with a total height of 10mm. Start by constructing a conical base that flares outward from a bottom radius of 25mm to a top radius of 35mm. Add a thin vertical cylinder with a radius of 2mm extending from the top surface. To create the hollow interior, remove a conical section from the center, star...
module farfurie(inaltime_farfurie, raza_baza_farfurie, raza_sus_farfurie, raza_buza, inaltime_buza, grosime_perete) color("Blue") { difference(){ union(){ cylinder(h = inaltime_farfurie, r1 = raza_baza_farfurie, r2 = raza_sus_farfurie); translate([0, 0, farfurie]) cylinder(h = inaltime_farfurie, r = raza...
glb/cad_87016e84961e.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start with a solid truncated cone that is 60mm tall, with a base radius of 15mm and a top radius of 30mm. On top of this cone, add a thin cylindrical rim that is 2mm high with a radius of 32mm. To create the interior cavity, remove a smaller truncated c...
module pahar_plastic(inaltime_pahar, raza_baza_pahar, raza_sus_pahar, raza_buza, inaltime_buza, grosime_perete) { difference(){ union(){ cylinder(h = inaltime_pahar, r1 = raza_baza_pahar, r2 = raza_sus_pahar); translate([0, 0, inaltime_pahar]) cylinder(h = inaltime_buza, r = raza_buza); } transla...
glb/cad_36270bc4cada.glb
Create five distinct washer-like components. Each component is a thin disk with a central circular hole. First, create a hexagonal disk with an outer radius of 10mm, a thickness of 4mm, and a central circular hole with a radius of 4mm. Second, create a hexagonal disk with an outer radius of 14mm, a thickness of 4mm...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } module piulita_M4() { piulita(3.5, 2, 4); } color ("red") piulita(10, 4, 4); color ("y...
glb/cad_78c266e7ffb7.glb
Create two separate cylinders, each with a height of 20mm. Position the first cylinder at the origin with a radius of 10mm. Position the second cylinder 50mm away along the x-axis with a radius of 20mm.
x = 10; cylinder(h = 20, r = x); x = 20; translate ([50, 0, 0]) cylinder(h = 20, r = x);
glb/cad_ad9d77c49f81.glb
Create a podium by constructing a convex hull that encompasses three cylinders. Position the first cylinder at the origin with a radius of 20mm and a height of 10mm. Position the second cylinder at x=60mm, y=0, with a radius of 20mm and a height of 20mm. Position the third cylinder at x=30mm, y=100mm, with a radius of ...
module placa_snowboard(grosime, raza, lungime) { cylinder(h = grosime, r = raza); translate ([lungime - 2 * raza, 0, 0]) cylinder(h = grosime, r = raza); translate ([0, -raza, 0]) cube([lungime - 2 * raza, 2 * raza, grosime]); } placa_snowboard(grosime = 10, raza = 20, lungime = 100); module podium(grosime, r...
glb/cad_22fefd74e53f.glb
Create a champagne glass model and arrange them in a 4 by 3 rectangular grid. Each individual glass is composed of three stacked parts. Start with a circular base 80mm in diameter and 3mm thick. Centered on top of this base, add a stem 100mm tall; the stem starts as a 4mm by 4mm square and twists 180 degrees as it rise...
module pahar_sampanie(raza_baza,grosime_baza,raza_picior,inaltime_picior,raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza,grosime_baza); translate([0,0,grosime_baza]) picior_pahar(raza_picior,inaltime_picior); translate([0,0,grosime_baza+inaltime_picior+raza_cupa]) cupa(raza_cupa, grosime_perete_cupa)...
glb/cad_e56e092c569b.glb
Create a wheel-shaped disc with a radius of 100mm and a thickness of 10mm. Around the center of this disc, place 10 circular holes, each with a radius of 10mm. These holes should be arranged in a perfect circle, centered at a distance of 50mm from the middle of the disc, and spaced evenly every 36 degrees. Ensure the h...
module roata(raza, grosime, raza_gaura, nr_gauri) { difference(){ cylinder(h = grosime, r = raza); for (i = [0 : 360 / nr_gauri: 359]) rotate([0, 0, i]) translate([raza / 2, 0, -1]) cylinder(r = raza_gaura, h = grosime + 2); } } rotate([0, 0, $t * 360]) roata(raza =...
glb/cad_d1f6ac6c6819.glb
Create two separate cylinders, each with a height of 20mm. Position the first cylinder so its center is at the origin, giving it a radius of 10mm. Position the second cylinder 50mm away along the x-axis, giving it a radius of 20mm. Ensure both cylinders are rendered with a low facet count to maintain a faceted, polygon...
x=10; cylinder(h=20,r=x); x=20; translate([50,0,0]) cylinder(h=20,r=x);
glb/cad_29b7e1ba25ec.glb
Create a small container with a handle and a separate rod with spheres at each end. First, construct the container base as a truncated cone with a height of 2mm, a bottom radius of 1.5mm, and a top radius of 2.1mm. The walls should have a thickness of 0.2mm, creating a hollow interior. On the top rim of this container,...
module bat_cu_bile(lungime_bat,raza_bat,raza_bila,rezolutie) { union(){ color("red") sphere(r=raza_bila,$fn=rezolutie); color("white") translate([0,0,raza_bila-0.5]) cylinder(h=lungime_bat,r=raza_bat,$fn=rezolutie); color("red") translate([0,0,raza_bila+lungime_bat-0.5])sphere(r=raza_bila,$fn=r...
glb/cad_0bfc741367ac.glb
Create a podium plate by generating a convex hull around three cylinders. All cylinders are oriented vertically along the Z-axis. Place the first cylinder with a radius of 20mm and a height of 10mm at the origin (0, 0, 0). Place the second cylinder, also with a radius of 20mm but with a height of 20mm, at the coordinat...
module placa_snowboard(grosime,raza,lungime) { cylinder(h=grosime,r=raza); x=20; translate([lungime-2*raza,0,0]) cylinder(h=grosime,r=raza); translate([0,-raza,0])cube([lungime-2*raza,2*raza,grosime]); } module placa_snowboard_2(grosime,raza,lungime) { hull(){ cylinder(h=grosime,r=raza); x=...
glb/cad_638d8218a9c1.glb
Create a 3D model of a "thumbs up" hand gesture. The model is composed of several overlapping and intersecting extruded polygonal shapes, all with a uniform thickness of 5mm. The primary shape is a stylized hand with a thumb pointing upwards and four fingers curled into a fist. The thumb is a rounded protrusion at the...
fudge = 0.1; module poly_path3776(h) { scale([25.4/90, -25.4/90, 1]) union() { linear_extrude(height=h) polygon([[-84.498884,90.134308],[-84.556724,35.299408],[-84.488874,-19.204752],[-66.261945,-19.272752],[-51.736483,-19.258544],[-47.639022,-19.012092],[-47.433707,-17.104320],[-47.332084,-9.592100],[-4...
glb/cad_16616beb6edf.glb
Create a series of hexagonal washers with central circular holes. Each washer is defined by an outer hexagonal prism and an inner cylindrical void. First, create a washer with an outer radius of 10mm, an inner hole radius of 4mm, and a thickness of 4mm. Second, create a washer with an outer radius of 14mm, an inner h...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } module piulita_M4() { piulita(3.5, 2, 4); } color ("red") piulita(10, 4, 4); color ("y...
glb/cad_3ea6597bf1f7.glb
Create a plastic cup by constructing a hollowed conical frustum. First, create a solid tapered cylinder with a height of 60mm, a base radius of 15mm, and a top radius of 30mm. On top of this, add a thin cylindrical rim with a height of 2mm and a radius of 32mm. To create the interior cavity, remove a tapered cylinder f...
module pahar_plastic(inaltime_pahar,raza_baza_pahar,raza_sus_pahar,raza_buza,inaltime_buza,grosime_perete) { difference(){ union(){ color("brown") cylinder(h=inaltime_pahar, r1 = raza_baza_pahar, r2=raza_sus_pahar); color("brown") translate([0,0,inaltime_pahar])cylinder(h=inaltime_buza...
glb/cad_9e8f7fc355cd.glb
Create a champagne glass model consisting of a base, a stem, and a bowl. Start by creating a cylindrical base with a radius of 40mm and a height of 3mm. Centered on top of this base, add a thin cylindrical stem with a radius of 2mm and a height of 100mm. Atop the stem, place a hemispherical bowl. To form the bowl, crea...
module pahar_sampanie(raza_baza,grosime_baza,raza_picior,inaltime_picior,raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza,grosime_baza); translate([0,0,grosime_baza]) picior_pahar(raza_picior,inaltime_picior); translate([0,0,grosime_baza+inaltime_picior+raza_cupa]) cupa(raza_cupa, grosime_perete_cupa)...
glb/cad_b4c993bdc6ca.glb
Create a pizza slice shape by starting with a cylinder that has a diameter of 30mm and a height of 3mm. From this cylinder, remove two rectangular blocks to leave only a wedge-shaped section. The first block should be positioned to remove one half of the cylinder along one axis. The second block should be identical in ...
toleranta=1; module felie_pizza_diference(diametru,grosime,unghi_felie) { difference(){ cylinder(h=grosime,r=diametru/2); translate([-diametru/2-toleranta,-diametru/2-toleranta,-toleranta]) cube([diametru+2*toleranta, diametru/2+toleranta,grosime+2*toleranta]); rotate([0,0,30]) translate([-diametru/2-tol...
glb/cad_bf6104810176.glb
Create a pizza slice shape by intersecting a cylinder with a diameter of 18mm and a height of 3mm with two rectangular prisms. Position the first prism to cover the right half of the cylinder's area. Position a second prism, identical to the first, but rotate it 150 degrees around the Z-axis. The final geometry is the ...
toleranta=1; module felie_pizza_diference(diametru,grosime,unghi_felie) { difference(){ cylinder(h=grosime,r=diametru/2); translate([-diametru/2-toleranta,-diametru/2-toleranta,-toleranta]) cube([diametru+2*toleranta, diametru/2+toleranta,grosime+2*toleranta ]); rotate([0,0,30])...
glb/cad_82e743c58e8b.glb
Create a mortar and pestle. First, construct the mortar as a hollowed-out conical vessel. Create a base using a cylinder with a bottom radius of 1.5mm and a top radius of 2.1mm, reaching a height of 2mm. Hollow this out by removing a smaller concentric cylinder from the center, leaving a wall thickness of 0.2mm. On t...
module bat_cu_bile(lungime_bat,raza_bat,raza_bila,rezolutie) { union(){ color("red") sphere(r=raza_bila,$fn=rezolutie); color("white") translate([0,0,raza_bila-0.5]) cylinder(h=lungime_bat,r=raza_bat,$fn=rezolutie); color("red") translate([0,0,raza_bila+lungime_bat-0.5])sphere(r=raza_bila,$fn=r...
glb/cad_c178e65b962f.glb
Create a small container with a handle and a rod. First, construct the container base as a hollowed-out truncated cone with a height of 2mm, a top radius of 2.1mm, and a bottom radius of 1.5mm, with a wall thickness of 0.2mm. On the top rim of this cone, add a cylindrical collar with a height of 0.5mm and the same oute...
module bat_cu_bile(lungime_bat,raza_bat,raza_bila,rezolutie) { union(){ color("red") sphere(r=raza_bila,$fn=rezolutie); color("white") translate([0,0,raza_bila-0.5]) cylinder(h=lungime_bat,r=raza_bat,$fn=rezolutie); color("red") translate([0,0,raza_bila+lungime_bat-0.5])sphere(r=raza_bila,$fn=r...
glb/cad_2329943821a4.glb
Create two separate cylinders, each with a height of 20mm. Position the first cylinder so its center is at the origin, giving it a radius of 10mm. Position the second cylinder 50mm away along the x-axis, giving it a radius of 20mm. Ensure both cylinders are rendered with a low facet count to maintain a faceted, polygon...
x=10; cylinder(h=20, r=x); x=20; translate([50,0,0]) cylinder(h=20, r=x);
glb/cad_f9d6b3312fe1.glb
Create a geometric sculpture by starting with a base shape formed from the intersection of a 20mm cube centered on the origin and a sphere with a 15mm radius. From this resulting solid, remove material by carving out 24 small spheres, each with a 2mm radius and a 20-facet resolution. Position these spherical voids at t...
color("Brown") difference(){ intersection(){ cube(20, center=true); sphere(15,$fn=20); } translate([10,0,0]) sphere(2, $fn=20); translate ([-5,5,-10]) sphere(2,$fn=20); translate ([5,-5,-10]) sphere(2,$fn=20); translate ([0,10,0]) sphere(2,$fn=20); translate ([-5,10,5]) sphere(2,$fn=20); translate ([5,10,-5]) spher...
glb/cad_37db232433b6.glb
Create a podium by forming a convex hull around three cylinders. Position the first cylinder at the origin with a radius of 20mm and a height of 10mm. Position the second cylinder at coordinates (60, 0, 0) with a radius of 20mm and a height of 20mm. Position the third cylinder at coordinates (40, 60, 0) with a radius o...
module placa_snowboard(grosime, raza, lungime) { cylinder(h=grosime, r=raza); translate([lungime-2*raza,0,0]) cylinder(h=grosime, r=raza); translate([0,-raza,0]) cube([lungime-2*raza, 2*raza, grosime]); } placa_snowboard(grosime=10, raza=20, lungime=100); module placa_snowboard(grosime, raza, lungime) { ...
glb/cad_3a9bdb7ad8a6.glb
Create a vehicle chassis model consisting of four identical wheels. Each wheel is a cylinder with a radius of 100mm and a thickness of 10mm. For each wheel, create ten small circular holes, each with a radius of 10mm, arranged in a perfect ring around the center. These holes should be positioned at a distance of 50mm f...
module roata(raza, grosime, raza_gaura, nr_gauri) { difference() { cylinder(h=grosime, r=raza); for(i=[0:360/nr_gauri:359]) rotate([0,0,i]) translate([raza/2,0,-1]) cylinder(r=raza_gaura, h=grosime+2); } } module masina(distanta_osii...
glb/cad_73c47fa6bffd.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start with a solid truncated cone that is 60mm tall, with a base radius of 15mm and a top radius of 30mm. On top of this cone, add a thin cylindrical rim that is 2mm high with a radius of 32mm. To create the interior cavity, remove a smaller truncated c...
module pahar_plastic(inaltime_pahar, raza_baza_pahar, raza_sus_pahar, raza_buza, inaltime_buza, grosime_perete) { difference() { union(){ cylinder(h=inaltime_pahar, r1=raza_baza_pahar, r2=raza_sus_pahar); translate([0, 0, inaltime_pahar]) cylinder(h=inaltime_buza, r=raza_buza); } translat...
glb/cad_3d96d7500c9e.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start by creating a solid tapered cylinder with a height of 60mm, a bottom radius of 15mm, and a top radius of 30mm. On top of this, add a thin flat rim by placing a cylinder with a height of 2mm and a radius of 32mm at the 60mm height mark. To hollow o...
module pahar_plastic(); { difference() { union(){ cylinder(h=60, r1=15, r2=30); translate([0, 0, 60]) cylinder(h=2, r=32); } translate([0, 0, 1]) cylinder( h=62, r1=15-1, r2=30-1); } } pahar_plastic();
glb/cad_97550223e305.glb
Create a collection of five hexagonal washers with central circular holes. The first washer should have an outer radius of 10mm, an inner hole radius of 4mm, and a thickness of 4mm. The second washer should have an outer radius of 14mm, an inner hole radius of 2mm, and a thickness of 4mm, positioned 25mm away from the ...
module piulita(raza_exterior, raza_interior, grosime) { difference(){ cylinder(h = grosime, r = raza_exterior, $fn = 6); translate ([0, 0, -1]) cylinder(h = grosime + 2, r = raza_interior, $fn = 26); } } module piulita_M4() { piulita(3.5, 2, 4); } color ("red") piulita(10, 4, 4); colo...
glb/cad_bc0fcb482d15.glb
Create a geometric model consisting of a base and a top cap. Start by creating a central shape formed by the intersection of a cube with a side length of 20mm and a sphere with a radius of 15mm, both centered at the same point, with the cube shifted 10mm along the Z-axis. On top of this, place a cylinder with a radiu...
module cub_sfera(inaltime_cub,lungime_cub,inaltime_sfera,raza_sfera) color("MediumSpringGreen") difference(){ intersection(){ translate([0,0,inaltime_cub])cube(lungime_cub, center=true); translate ([0,0,inaltime_sfera])sphere(raza_sfera,$fn=90); } } module cilindrul(grosime_cilindru,raza_cilindru,inaltime_cilindru...
glb/cad_8ccd3512db35.glb
Create a 3D model consisting of a base and a top cap. Start by creating a central shape formed by the intersection of a cube with a side length of 20mm and a sphere with a radius of 15mm, both centered at the same point. Position this combined shape so its center is 10mm above the origin. On top of this base, place a ...
module cub_sfera(inaltime_cub,lungime_cub,inaltime_sfera,raza_sfera) color("MediumSpringGreen") difference(){ intersection(){ translate([0,0,inaltime_cub])cube(lungime_cub, center=true); translate ([0,0,inaltime_sfera])sphere(raza_sfera,$fn=90); } } module cilindrul(grosime_cilindru,raza_cilindru,inaltime_cilindru...
glb/cad_5ebbbb9b9efe.glb
Create a 3D model of a salt shaker. Start by constructing the main body as the intersection of a cube with a side length of 20mm and a sphere with a radius of 15mm, both centered at the same point. Position this body so that its center is 10mm above the base plane. On top of the body, place a cylindrical cap with a ra...
module corp_rasnita(inaltime_cub,lungime_cub,inaltime_sfera,raza_sfera) rotate([0,0,45]) color("MediumSpringGreen") difference(){ intersection(){ translate([0,0,inaltime_cub])cube(lungime_cub, center=true); translate ([0,0,inaltime_sfera])sphere(raza_sfera,$fn=90); } } module capac_rasnita(grosime_cilindru,raza_ci...
glb/cad_abeeee0b7b8b.glb
Create a grid of 50 champagne glasses arranged in 5 rows of 10. Each individual glass is constructed from three main parts. Start with a circular base with a radius of 40mm and a height of 3mm. Centered on top of this base, add a stem created by extruding a 4mm by 4mm square upward to a height of 100mm, applying a 90-d...
module pahar_sampanie(raza_baza,grosime_baza,raza_picior,inaltime_picior,raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza,grosime_baza); translate([0,0,grosime_baza]) picior_pahar(raza_picior,inaltime_picior); translate([0,0,grosime_baza+inaltime_picior+raza_cupa]) cupa(raza_cupa, grosime_perete_cupa)...
glb/cad_32d54ce0a4ba.glb
Create a wheel-shaped disc with a radius of 100mm and a thickness of 10mm. Around the center of this disc, place 10 circular holes, each with a radius of 10mm. These holes should be evenly spaced in a full 360-degree circle, with the center of each hole positioned exactly 50mm from the center of the disc. Ensure the ho...
module roata(raza, grosime, raza_gaura, nr_gauri) { difference() { cylinder(h=grosime, r=raza); for(i=[0:360/nr_gauri:359]) rotate([0,0,i]) translate([raza/2,0,-1]) cylinder(r=raza_gaura, h=grosime+2); } } rotate([0,0,$t*360]) roata...
glb/cad_20a16147e1dc.glb
Create a wheel-shaped disc with a radius of 100mm and a thickness of 10mm. Remove 10 evenly spaced circular holes from the disc, each with a radius of 10mm. Position the center of each hole at a distance of 50mm from the center of the disc, distributing them at equal angular intervals around the center.
module roata(raza, grosime, raza_gaura, nr_gauri) { difference() { cylinder(h=grosime, r=raza); for(i=[0:360/nr_gauri:359]) rotate([0,0,i]) translate([raza/2,0,-1]) cylinder(r=raza_gaura, h=grosime+2); } } roata(raza=100, grosi...
glb/cad_4d30320c96c3.glb
Create a 3x4 grid of champagne glasses. Each individual glass is composed of three stacked parts. Start with a circular base 80mm in diameter and 3mm thick. Centered on top of this base, add a stem 100mm tall; the stem starts as a 4mm square and twists 180 degrees as it rises to the top. Atop the stem, place a bowl cre...
module pahar_sampanie(raza_baza,grosime_baza,raza_picior,inaltime_picior,raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza,grosime_baza); translate([0,0,grosime_baza]) picior_pahar(raza_picior,inaltime_picior); translate([0,0,grosime_baza+inaltime_picior+raza_cupa]) cupa(raza_cupa, grosime_perete_cupa)...
glb/cad_4cef9a17e4ef.glb
Create a grid of 30 champagne glasses arranged in 3 rows of 10. Each individual glass is composed of three stacked geometric parts. Start with a circular base 80mm in diameter and 3mm thick. Centered on top of this base, add a thin cylindrical stem with a radius of 2mm and a height of 100mm. Atop the stem, place a bowl...
module pahar_sampanie(raza_baza,grosime_baza,raza_picior,inaltime_picior,raza_cupa, grosime_perete_cupa) { baza_pahar(raza_baza,grosime_baza); translate([0,0,grosime_baza]) picior_pahar(raza_picior,inaltime_picior); translate([0,0,grosime_baza+inaltime_picior+raza_cupa]) cupa(raza_cupa, grosime_perete_cupa)...
glb/cad_645f5749817e.glb
Create a pizza slice shape by starting with a cylinder that has a diameter of 30mm and a height of 3mm. From this cylinder, remove a large rectangular section to leave behind only a wedge-shaped sector. This sector should be defined by a 30-degree angle originating from the center of the cylinder. Ensure the resulting ...
toleranta = 1; module felie_pizza_difference( diametru, grosime, unghi_felie) { difference() { cylinder ( h=grosime, r= diametru/2); translate([-diametru/2 - toleranta, -diametru/2 -toleranta, -toleranta]) cube([diametru+2*toleranta, diametru/2+toleranta, grosime+2*toleranta]); rotate([0, 0, unghi_f...
glb/cad_66aaa7f3f14b.glb
Create a pizza slice shape by starting with a cylinder that has a diameter of 30mm and a height of 3mm. Cut this cylinder to isolate a wedge-shaped sector with a central angle of 30 degrees. The resulting geometry should be a flat, 3mm thick sector of a circle with a radius of 15mm, defined by two straight edges meetin...
toleranta = 1; module felie_pizza_difference( diametru, grosime, unghi_felie) { difference() { cylinder ( h=grosime, r= diametru/2); translate([-diametru/2 - toleranta, -diametru/2 -toleranta, -toleranta]) cube([diametru+2*toleranta, diametru/2+toleranta, grosime+2*toleranta]); rotate([0, 0, unghi_f...
glb/cad_4193423551d0.glb
Create a pizza slice shape by generating a sector of a cylinder. Start with a cylinder that has a diameter of 30mm and a height of 3mm. From this cylinder, isolate a wedge-shaped section with a central angle of 30 degrees. The resulting geometry should be a flat, thin slice with a curved outer edge following the 15mm r...
toleranta = 1; module felie_pizza_difference( diametru, grosime, unghi_felie) { difference() { cylinder ( h=grosime, r= diametru/2); translate([-diametru/2 - toleranta, -diametru/2 -toleranta, -toleranta]) cube([diametru+2*toleranta, diametru/2+toleranta, grosime+2*toleranta]); rotate([0, 0, unghi_f...
glb/cad_a1dced877d40.glb
Create a plastic cup by constructing a hollowed-out conical shape. Start with a solid truncated cone that has a base radius of 15mm, a top radius of 30mm, and a height of 60mm. Add a thin cylindrical rim to the top of this cone with a radius of 32mm and a height of 2mm. To create the interior cavity, remove a central t...
module pahar_plastic(inaltime_pahar,raza_baza_pahar,raza_sus_pahar,raza_buza,inaltime_buza,grosime_perete) { difference(){ union(){ cylinder (h=inaltime_pahar, r1=15, r2=30); translate([0,0,60]) cylinder(h=inaltime_buza,r=raza_buza); } translate([0,0,grosime_perete]) cylinder (h=inalt...
glb/cad_5ab37309b4fa.glb
Create a small hexagonal nut by constructing a hexagonal prism with a height of 4mm and a radius of 10mm. Bore a cylindrical hole through the center of the prism with a radius of 2mm and a height of 6mm, ensuring the hole extends beyond the top and bottom faces of the prism. Produce four identical copies of this hexago...
module piulita() { difference(){ cylinder(h = 4, r = 10, $fn = 6); translate ([0, 0, -1]) cylinder(h = 6, r = 2, $fn = 26); } } module piulita_M4() { piulita(3.5,2,4); } color ("red") piulita(); color ("yellow") translate ([25, 0, 0]) piulita(); color("blue") translate ([50, 0, 0]) ...
glb/cad_9999cfa4d6b1.glb
Create a two-part electronics casing consisting of a bottom tray and a top cover. For the bottom tray, create a rectangular box with outer dimensions of 61mm x 99mm and a wall thickness of 1mm. The interior should have a depth of 10mm. Add two M3 screw pillars at the corners, each featuring a cylindrical shaft with a...
version = "0.6"; www = "github: wovo/openscad"; function dup2( x ) = [ x, x ]; function dup3( x ) = [ x, x, x ]; function take2( b ) = [ b[ 0 ], b[ 1 ] ]; function make3( a, z = 0 ) = [ a[ 0 ], a[ 1 ], z ]; function zero2_x( b ) = [ 0, b[ 1 ] ]; function zero2_y( b ) = [ b[ 0 ], 0 ]; function...
glb/cad_396e4a7e0040.glb
Create a lets-split-cnc-case, which is a rectangular plate with rounded corners. The overall outer dimensions are 122mm by 89mm. The corners are rounded with a radius of 4mm. The main body of the case has a total height of 11mm. From this main body, remove a central rectangular area to create a recessed tray. This tra...
echo(version=version()); module outline() { hull(){ translate([4,4,0]) circle(4); translate([118,4,0]) circle(4); translate([118,85,0]) circle(4); translate([4,85,0]) circle(4); } } outline_point = [ [0,0], [122,0], [122,89], [0,89] ]; pcb = [ [0, 81], [114, 81], [1...
glb/cad_c07f3077fc6a.glb
Create three identical endstop holders for 8mm rods, spaced evenly apart. For each holder, start with a base composed of a cylinder with a radius of 8.3mm and a height of 10mm, merged with a rectangular block measuring 15.5mm by 16.6mm by 10mm and another block measuring 40mm by 3mm by 10mm. Carve a central vertical ...
m3_diameter=3.4; m3_nut_diameter_horizontal = 6.8; module endstop(shaft_radius){ shaft_diameter=shaft_radius*2; outer_diameter = shaft_diameter/2+3.3; screw_hole_spacing = 20; screw_hole_spacing2 = 10; opening_size = shaft_radius*2-1.5; segments=64; difference(){ union(){ tran...
glb/cad_40242453d751.glb
Create a RAMPS fan mount with a base width of 80mm, height of 40mm, and depth of 10mm. The main body is a rectangular slab with rounded corners of 5mm radius. Hollow out the center of the slab to create a shell with a wall thickness of 3.5mm, leaving a solid air guide along the sides. On the top face, center a large ...
module ramps_fan_mount_cutoff_cube(width, height, depth, cutoff = 5, radius = 5) { union() { cube([width, height - cutoff - radius, depth]); hull() { for (x = [radius, width - radius]) translate([x, height - cutoff - radius, 0]) cylinder(r = radius, h = depth); for (x = [radius + cutoff, width ...
glb/cad_b46a5b658dee.glb
Create a RAMPS fan mount by constructing a flat plate with a total width of 120mm, a height of 60mm, and a thickness of 10mm. The main body is a rectangular frame with a central cutout. The outer boundary is defined by a rectangle 120mm wide and 60mm high, while the inner cutout is a rectangle 82mm wide and 60mm high, ...
width = 90; heigth = 60; e = 4; depth = 10; module ramps_fan_mount_cutoff_cube(width, height, depth, radius = 5) { width2 = width + 30; union() { translate([-width/2, 0, 0]) cube([width, height - radius, depth]); hull() { for (i = [0,1]){ mirror([i,0,0])translate([-width2/2, 2, 0]) cylind...
glb/cad_6bb2eb2fb0c1.glb
Create a 3D model of a micro quadcopter frame. The assembly consists of a main frame base and a protective canopy. The frame should be designed to accommodate a 100mm class drone layout. Position a central canopy over the main body. Integrate a camera mount at the front to hold a micro CMOS camera. The frame must incl...
include <_setup.scad>; include <frame.scad>; use <camera mount.scad>; use <canopy.scad>; PRINT_COL = "white"; PRINT_ALPHA = 1; print(["CG = ", CG, ", Weight (components) ≈ ", WEIGHT]); * cg(); translate([0, 0, 0.1]) mock_battery(); *mock_buzzer(); camera_mount() mock_camera(); mock_esc(); mock_fc(); *translate...
glb/cad_bd6a140736e9.glb
Create an iPhone 7 case with an integrated kickstand. The main body is a rounded rectangular shell based on iPhone 7 dimensions, with a wall thickness of 2mm. On the back of the case, create a circular cutout to accommodate the stand mechanism. Within this area, construct a circular collar with an outer radius of 18m...
include <../BH-Lib/all.scad>; include <_conf.scad>; use <iPhone 7 case.scad>; LANDSCAPE_ANGLE = 45; LIP_THICKNESS = PRINT_LAYER * 2; PORTRAIT_ANGLE = 70; STAND_ELBOW_ANGLE = 80; STAND_HOME_ANGLE = 53.5; STAND_JOINT_POS = 35; STAND_WIDTH = 10; STAND_ARM_DETENT = 0.5; detent_r = 1.5; stand_hole_r = DIM[1] * 0.375; s...
glb/cad_d450b468aeca.glb
Create a protective bumper case for an iPhone 7. Start with a rounded rectangular shell based on the phone's dimensions, incorporating a corner radius and a specific wall thickness. The case should be hollowed out to fit the device, leaving a protective rim around the edges. On the back of the case, create precise cuto...
include <../BH-Lib/all.scad>; include <_conf.scad>; use <iPhone 7 case.scad>; STRAP_WIDTH = 3; module iphone_7_case_bumper() { a = atan((DIM[1] / 2 + THICKNESS - CORNER_RAD) / (DIM[0] / 2 + THICKNESS - CORNER_RAD)); difference() { iphone_7_case(); translate([0, 0, -(DIM[2] - TOLERANCE - THICKNESS - 0.2)]) ...
glb/cad_9e6ce6945610.glb
Create a protective iPhone 7 case with a minimal bumper design. Start with a base rectangular form that matches the phone's dimensions, incorporating rounded corners with a radius of 10mm. The case should have a total thickness of 2mm. On the back, create a cutout for the camera and LED flash. This area is formed by ...
include <_conf.scad>; use <iPhone 7 case.scad>; module iphone_7_case_minimal( strap_width, ) { a = atan((DIM[1] / 2 + THICKNESS - CORNER_RAD) / (DIM[0] / 2 + THICKNESS - CORNER_RAD)); intersection() { iphone_7_case(); union() { scale([1, -1]) translate([DIM[0] / 2, DIM[1] / 2, -DIM[2] / 2]) hull...
glb/cad_d18c0387f4ae.glb
Create a Flexbatter battery holder for two AA batteries. Start by constructing a main rectangular body with chamfered edges, measuring 101.6mm in length, 28.8mm in width, and 11.52mm in height. Within this body, carve out two adjacent cylindrical cavities, each designed to hold a battery with a diameter of 14.4mm and a...
module chamfered_cube(size,d=1){ hull(){ translate([d,d,0])cube(size-2*[d,d,0]); translate([0,d,d])cube(size-2*[0,d,d]); translate([d,0,d])cube(size-2*[d,0,d]); } } module arc(r1,r2,h,a1=0,a2=0){ if(a2-a1<=180){ difference(){ cylinder(r=r2,h=h); translate([0,0,-1...
glb/cad_176b8b07126a.glb
Create a protective enclosure for an Arduino-based sous vide controller. The model consists of a bottom case and a matching top cover. Construct the bottom case as a rectangular box with a main internal cavity of 80mm x 58mm and a wall thickness of 1.2mm. The base should feature several mounting pedestals for a PCB, i...
external_hole_rad=6.5/2; external_temp_hole_rad=4/2; part = "all"; with_battery = 0; extra_room = 63; have_usb_plug = 1; have_power_plug = 0; have_power_switch = 0; have_up_key = 1; have_down_key = 1; have_left_key = 1; have_right_key = 1; have_select_key = 1; have_reset_key = 0; have_plugrow_upper = 0; have_plugrow_...
glb/cad_e1f935344bec.glb
Create a NES button support holder. Start with a rectangular base measuring 38mm wide, 15mm deep, and 1.6mm thick. Centered on this base, add a smaller rectangular stop tab measuring 28mm wide, 3mm deep, and 3mm high, positioned 10mm from the front edge. Construct a vertical wall rising from the base that is 38mm wide...
_depth_right_button = 20; _diameter_button = 3; _diameter_right_button = 10; _diameter_left_button = 10; _diameter_led = 10; _epaisseur = 1.6; _largeur = 38; _hauteur_base_axe = 4; base(); reglage(0); *trou_bouton(10); module base(){ translate([-_largeur/2,0,-_epaisseur]){ cube(size = [_largeur,15,_epaisseur...
glb/cad_ec5d25c44759.glb
Create a sphere training system part by starting with a centered cylinder that has a height of 90mm and an outer diameter of 96mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 80mm and a height of 91mm. To create the open-faced shell, remove a rectangular block fro...
espesor=8; diam=80; height=90; lenght=40; screwd=4; screwsep=26; screwdes=20; $fn=80; sidewall=10; difference() { cylinder(h=height,d=diam+espesor*2,center=true); cylinder(h=height+1,d=diam,center=true); translate([(diam+espesor+1)/2,0,0])cube([diam+espesor+1,diam+espesor*2+1,height+1],center=true); transla...
glb/cad_5c86c3810db0.glb
Create a sphere training system part with a uniform thickness of 2.5mm. Start by constructing a central square plate measuring 12mm by 12mm, and remove a smaller 8mm by 8mm square from its center to create a hollow frame. At each of the four corners of this central square, add a cylindrical pillar with an outer radius ...
espesor=2.5; ragujero=3.5/2.0; rexterior=6.0/2.0; fn1=100; module agujero(_espesor, _rext,_rint,_fn=10){ difference(){ cylinder(h=_espesor,r=_rext,$fn=_fn); translate([0,0,-0.1]) cylinder(h=_espesor+0.2,r=_rint,$fn=_fn); } } translate([-18.29,-9.08,0]) agujero(espesor,rexterior,ragujero,fn1); translate([-18.30, 9...
glb/cad_4ec59d63ea5e.glb
Create a sphere training system part consisting of a base plate with several cutouts. Start with a rectangular block measuring 48mm in width, 15mm in depth, and 10mm in height. Centered within this block, remove a large cylindrical section with a radius of 13mm and a height of 11mm. To the left and right of this cent...
translate([-24,0,0]) difference(){ cube([11,30,10]); translate([5.5,21.7,-0.5])cylinder(h=11,r=2,$fn=50); translate([5.5,4,-0.5])cylinder(h=11,r=2,$fn=50); } translate([-11+24,0,0]) difference(){ cube([11,30,10]); translate([5.5,21.7,-0.5])cylinder(h=11,r=2,$fn=50); translate([5.5,4,-0.5]...
glb/cad_12853b4cbd8e.glb
Create a transmitter stick end consisting of a tiered cylindrical shaft and a wide head. Start with a central vertical shaft that begins with a base cylinder of 2mm radius and 8.5mm height. Above this, add a tapered section that transitions from the 2mm radius to a radius of 3.25mm over a height of 1.5mm. From the top ...
include <../BH-Lib/all.scad>; TX_STICK_HEIGHT = 21; TX_STICK_RAD = 2; TX_STICK_THREAD_DEPTH = 12.5; TX_STICK_THREAD_RAD = SCREW_M3_DIM[0] / 2; TOLERANCE_FIT = 0.125; TOLERANCE_CLEAR = 0.25; module transmitter_stick( h, head_h, r, knobs = 8, surround = 1.5, stick_h = TX_STICK_HEIGHT, stick_r = TX_STICK_...
glb/cad_c110a2849846.glb
Create a 3D model of a switch housing. Start by constructing a rectangular block with dimensions based on the defined switch width, depth, and height. Apply a fillet or rounding effect to all edges using a radius of 3mm. To achieve this, use a Minkowski sum of the main rectangular volume—reduced by 1mm in each dimensio...
include <./const.scad> switch(); module switch() { r = 3; h = 1; translate([ 0, r, r ]) minkowski() { cube([ SWITCH_WIDTH - h, SWITCH_DEPTH - (r * 2), SWITCH_HEIGHT - (r * 2) ]); $fn = 45; rotate([ 0, 90, 0 ]) cylinder(r = r, h = h); } }
glb/cad_22c214927478.glb
Create a dock slit by constructing a rounded rectangular block. The main body should have a width of 50mm, a depth of 2mm, and a height of 10mm. Apply a fillet or rounding radius of 3mm to all edges. To achieve this geometry, start with a base cube of 44mm by 1mm by 4mm and expand it using a Minkowski sum with a cylind...
include <./const.scad> dockSlit(); module dockSlit() { r = 3; h = 1; translate([ r, h, r ]) minkowski() { cube([ DOCK_SLIT_WIDTH - (r * 2), DOCK_SLIT_DEPTH - h, DOCK_SLIT_HEIGHT - (r * 2) ]); $fn = 45; rotate([ 90, 0, 0 ]) cylinder(r = r, h = h); } cube([ DOCK_SLIT_WIDTH, DOCK_SLIT_DE...
glb/cad_c2f8fe512bd2.glb
Create an SSR mount for a 2020 extrusion. Start with a rounded rectangular base measuring 51mm in width, 88mm in length, and 6mm in height. Hollow out the center of this base with a rounded rectangular cavity measuring 45mm by 68mm with a depth of 6mm, leaving a wall thickness of 3mm. At the top and bottom center of t...
width = 45; length = 58; depth = 26; bolt_inset = 4; x_spacing = 3; y_spacing = 20; z_spacing = 0; case_thickness = 3; strain_relief = "cable_tie"; signal_cable_diameter = 5; output_cable_diameter = 10; cable_shield_size = 15; tie_size = 5; mount_size = 5; clamp_bolt_size = 3; printer_slop = 0.5; use <BOSL/transfo...
glb/cad_332f8d8c840d.glb
Create two identical belt mount components for an X5S carriage. Each component is a flat plate with a thickness of 4mm. The shape of each plate is a hull formed by two overlapping cylinders, each with a radius of 3.5mm. The center of the first cylinder is at the origin, and the center of the second cylinder is position...
use <BOSL/transforms.scad>; use <BOSL/shapes.scad>; use <BOSL/nema_steppers.scad>; $fs = 0.05; wheel_diameter = 10; wheel_bolt = 5; extrusion_width_x = 20; extrusion_width_y = 20; include_spacers = 1; minimum_clearance = 4; belt_separation = 20; max_belt_height = 30; piezo_size = 27; carriage_thickness = 4; stop_bol...
glb/cad_6e63b72f8ab7.glb
Create a Hotend Mount for a TronXY X5S. Start with a main rectangular backplane that is 70mm wide, 58mm high, and 3mm thick. The backplane should have chamfered corners of 1mm and include five internal ridges of 5mm thickness. Carve three circular wheel holes with a diameter of 10mm into the backplane: one centered a...
use<BOSL-master/metric_screws.scad>; use<BOSL-master/transforms.scad>; use<BOSL-master/shapes.scad>; $fa= 1; $fs= 1.5; barheight = 20; thickness = 3; with_ridges = 1; with_spacers = 1; spacer_height = 5; wheel_diameter = 20; wheel_hole_size = 5; minimum_wheel_spacing = 50; cable_tie_points = 2; cable_tie_size = ...
glb/cad_6238156b5b55.glb
Create a 3D model of a support stand. Start by constructing a rectangular base measuring 40mm by 130mm with a thickness of 5mm. Centered atop this base, place a vertical rectangular pillar with a width of 5mm, a depth of 20mm, and a height of 40mm. On top of this pillar, create a hollow cylindrical holder with an outer...
rotate([180,0,0]){ difference(){ rotate([-90,0,0]){ difference(){ cylinder(20,13,13); cylinder(11,9.5,9.5); translate([0,0,10]){ cylinder(11,12,12); } } } translate([-20,0,-40]) cube(40); } translate([-2.5,0,12]){ c...
glb/cad_118a4188fe3f.glb
Create a Veloplus flag pole connector by constructing a hollow cylinder with an outer diameter of 9.75mm and a total height of 80mm. Remove a central cylindrical core with a diameter of 6.26mm and a height of 81mm to create the main tube. Additionally, create a small solid cylindrical plug with a diameter of 9mm and a ...
translate([0,0,40]){ difference(){ cylinder(h = 80, d = 9.75, center = true); cylinder(h = 81, d = 6.26, center = true); } translate([0,0,-1]) cylinder(h = 2, d = 9, center = true); }
glb/cad_01003b4e9d2c.glb
Create a mirrored pair of IKEA mount brackets. For one bracket, construct a base rectangular block measuring 45.5mm by 20mm by 4mm. At one end, add a vertical wall 4mm wide, 20mm deep, and 20mm high. On top of this wall, at a height of 20mm, place a horizontal block 15mm long, 20mm deep, and 4mm high. At the opposite e...
rotate([90,0,0]){ cube([45.5,20,4]); cube([4,20,20]); translate([0,0,20]){ cube([15,20,4]); } translate([45.5,0.0]){ cube([4,20,16]); translate([0,0,16]){ cube([23,20,4]); translate([19,0,-11.5]){ cube([4,20,11.5]); translate([-9.8,0,0]){ cube([9.8,20,4]); ...
glb/cad_ab945abeb261.glb
Create a 3D model of a windmill called "FabLab" sitting on a circular base. Start with the main building: create a hollowed-out conical tower with a wall thickness of 2.2mm. The base radius is 14mm, tapering to a top radius of 10mm, with a total wall height of 26mm. On the front side, add a rectangular door 6mm wide ...
resolution = 100; epWall = 2.2; hMur = 26; rBase = 14; rTop = 10; hDoor = 11; wDoor = 6; bDoor = 1; hWin = 6; wWin = 4.5; altiWin = 20; rRoof = rTop +.7; hRoof = 17; lPrism = 10; hPrism1 = 10.5; hPrism2 = 11.5; lTige = 6; lPale = 24; wPale = 9; epPale = .2; rPaleHole = .8; incPale = 85; module prism...
glb/cad_32c0e5f33345.glb
Create a 3D model of a windmill building on a circular base. The main building is a hollowed-out truncated cone with a base radius of 14mm and a top radius of 10mm, reaching a height of 26mm. The walls have a thickness of 2.2mm. On one side, create a rectangular door opening 6mm wide and 11mm high, and a window 4.5mm...
use <logoTelethon.scad> resolution = 100; epWall = 2.2; hMur = 26; rBase = 14; rTop = 10; hDoor = 11; wDoor = 6; bDoor = 1; hWin = 6; wWin = 4.5; altiWin = 20; rRoof = rTop +.7; hRoof = 17; lPrism = 10; hPrism1 = 10.5; hPrism2 = 11.5; lTige = 6; lPale = 24; wPale = 9; epPale = .4; rPaleHole = .8; in...
glb/cad_fcd8014706eb.glb
Create a 3D model of a windmill building. Start by constructing the main tower as a truncated cone with a base radius of 14mm and a top radius of 10mm, reaching a height of 26mm. The walls should have a thickness of 2.2mm. At the base of the tower, create a rectangular door opening 6mm wide and 11mm high, surrounded by...
use <logoTelethon.scad> resolution = 100; epWall = 2.2; hMur = 26; rBase = 14; rTop = 10; hDoor = 11; wDoor = 6; bDoor = 1; hWin = 6; wWin = 4.5; altiWin = 20; rRoof = rTop +.7; hRoof = 17; lPrism = 10; hPrism1 = 10.5; hPrism2 = 11.5; lTige = 6; lPale = 24; wPale = 9; epPale = .2; rPaleHole = .8; in...
glb/cad_df08e9d8e289.glb
Create a 3D model of a windmill building. Start with the main body as a truncated cone with a base radius of 14mm, a top radius of 10mm, and a height of 26mm. The walls should have a thickness of 2.2mm. Cut a door opening 6mm wide and 11mm high into the base, surrounded by a 1mm wide brick-style border. Add a window 4....
include <logoTelethon.scad> resolution = 100; epWall = 2.2; hMur = 26; rBase = 14; rTop = 10; hDoor = 11; wDoor = 6; bDoor = 1; hWin = 6; wWin = 4.5; altiWin = 20; rRoof = rTop +.7; hRoof = 17; lPrism = 10; hPrism1 = 10.5; hPrism2 = 11.5; lTige = 6; lPale = 24; wPale = 9; epPale = .2; rPaleHole = .8;...
glb/cad_e64dee66d67c.glb
Create a 3D emblem based on a symmetrical, four-fold rotational pattern. The overall shape is formed by the intersection of a sphere with a radius of 15.8mm and a complex 2D profile extruded vertically. The base profile consists of a repeating unit rotated every 90 degrees. Each unit is composed of two overlapping ci...
resolution=100; module occitanePart1(ep=.25, isFill=false, withPlot=true) { r=3; rr = .33; if (isFill) { difference() { translate([0,0]) square([r,r]); union() { translate([0,3.4]) circle(r=r, $fn=resolution); translate([5.4,3.5*.5]) circle(r=...
glb/cad_66b1f826ef6e.glb
Create a coffee table model consisting of a base, four legs, and a top surface. Start by creating a rectangular base frame with outer dimensions of 80mm by 40mm and a height of 2mm, leaving a hollow rectangular center by removing a 78mm by 38mm section from the middle. Position four cylindrical legs, each with a radius...
module masa_cafea (lungime_top,latime_top,grosime_top,lungime_baza,latime_baza,grosime_baza,raza_picior,inaltime_picior) { baza_masa(lungime_baza,latime_baza,grosime_baza); translate([lungime_baza*0.10,latime_baza*0.15,grosime_baza])picior_masa(raza_picior,inaltime_picior); translate([lungime_baza*0.90,lat...
glb/cad_179b1c9d1d78.glb
Create a battery holder for 18650 cells. Start by constructing a main body as a rectangular block with a width of 20.75mm, a length of 67.75mm, and a height of 14mm. Inside this body, carve out a central cell cavity measuring 18.75mm wide, 65.75mm long, and 13mm high, leaving a wall thickness of 1mm on the sides and bo...
cell_length = 65.75; cell_width = 18.75; height = 13; thickness = 1; module spring(radius, cell_width, height, thickness, $fn = 12) { for (sx = [1, -1]) { scale([sx, 1, 1]) { cube([thickness + cell_width / 2 - 2 * radius + thickness, thickness, height + thickness]); transla...
glb/cad_53c039178ed7.glb
Create a battery holder for a 32650 cylindrical cell. Start with a main rectangular block measuring 37.4mm wide, 37.4mm deep, and 80.5mm high. Hollow out the center with a rectangular cavity 33.4mm wide, 33.4mm deep, and 77mm high to accommodate the cell. The top of the block should be open, but leave a gap of 4.6mm fr...
diameter_fudge = 0.4; cell_diameter = 33 + diameter_fudge; cell_height = 70; clip_gap = 3.5; clip_wall = 1.78; clip_top_wall_to_hook = 4.6; clip_width = 8.5; clip_height = 11.5; wall_thickness = 2.0; end_wall_thickness = 3.5; box_width = cell_diameter + wall_thickness*2; box_height = cell_height + clip_gap*2 + end_...
glb/cad_e47d29735023.glb
Create a quadcopter drone frame consisting of a central hub and four radiating arms. Start by creating a central cylindrical hub, 150mm in diameter and 50mm deep. From this hub, extend four identical arms spaced equally at 90-degree intervals. Each arm is a hollow tube with an outer diameter of 20mm and an inner diamet...
use <faring.scad> use <motor-mount.scad> use <brains.scad> num_arms = 4; angle_inc = 360 / num_arms; arm_length = 60; arm_diam = 20; arm_wall_thickness = 5; arm_inner_diam = arm_diam - arm_wall_thickness; prop_diam = 127; prop_radius = prop_diam / 2; brains_depth = 50; brains_diam = 150; brains_radius = brains_dia...
glb/cad_8df39357b989.glb