Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a handheld portable system back case by constructing a thin rectangular slab measuring 24mm in width, 36mm in length, and 0.4mm in height. This flat base serves as the flexible backing for the back buttons of the device.
use <util.scad>; use <back_buttons.scad>; module back_case_flex() { color("blue") translate([89,21,-4]) rotate([0,180,0]) { translate([-2,-2,0]) cube([24,36,0.4], center=false); back_buttons(); } } back_case_flex();
glb/cad_a14c002df681.glb
Create a handheld gaming system interface consisting of several small buttons and pads. All buttons have a height of 4mm. First, create a D-pad centered at [80, 22.5, 18] consisting of a plus-shape with a thickness of 7.8mm. Next, create a cluster of four circular buttons with a radius of 4mm, centered at [80, 52.5,...
use <util.scad>; button_spread=10; button_size = 4; button_height = 4; dpad_offset = [80,22.5,18]; buttons_offset = [80,52.5,18]; option_buttons_offset = [95,7.5,18]; module button() { $fn=30; translate([0,0,-1.5]) linear_extrude(button_height) circle(button_size); } module square_button() { t...
glb/cad_9e0f2e5e5bec.glb
Create a handheld portable system case consisting of several thin, flat plates. First, create a rectangular base plate measuring 40mm by 61mm with a thickness of 0.8mm, positioned at coordinates 65, 7, 16. Second, create a smaller rectangular strip measuring 8mm by 50mm with a thickness of 0.8mm, positioned at coordina...
use <util.scad>; use <front_buttons.scad>; use <front_case.scad>; module front_case_flex() { color("blue") difference() { union() { translate([65,7,16]) cube([40,61,0.8]); front_buttons(); } controller_screw_mounts(screw_hole=false); } co...
glb/cad_fb73da0e79c0.glb
Create a handheld retro gaming system assembly. Start by placing a micro USB port, a rectangular block measuring 7.7mm x 5.5mm x 3mm. Next to it, add a pin header consisting of a 2x13 grid of small 2.5mm cubes, each with a centered 0.65mm square pin extending 11.6mm upwards. Include an SD card slot as a 11mm x 15mm x ...
use <powerboost.scad>; use <pi.scad>; use <pitft.scad>; use <controller.scad>; module micro_usb() { color("grey") cube([7.7,5.5,3]); } micro_usb(); module header(x_max,y_max) { union() { for(x=[0:x_max-1]) { for(y=[0:y_max-1]) { translate([x*2.5,y*2.5]) { ...
glb/cad_863b4864f6ca.glb
Create a handheld system button set consisting of four identical rectangular prisms. Each prism must measure 8mm in width, 12mm in depth, and 3mm in height. Arrange these four blocks into a 2x2 grid. Position the first block at the origin (0,0,0). Place the second block 12mm along the X-axis at (12,0,0). Place the thir...
button_height = 3; module lr_button() { cube([8,12,button_height], center=false); } module lr_button_cutout() { translate([-0.5,-0.5,0]) cube([9,13,5], center=false); } module back_buttons() { color("blue") { translate([0,0,0]) lr_button(); translate([12,0,0]) lr_button(); ...
glb/cad_27bb0f756fa8.glb
Create a handheld portable retropie system case. The main body is a rectangular shell with a total height of 16mm. The back case is formed by a base plate of 144mm by 69mm by 1mm, with side walls rising to 16mm. On the right side wall, create a cable cutout channel measuring 85mm by 6mm by 7mm, and a separate SD card...
use <util.scad>; use <back_buttons.scad>; pwr_switch_offset = [98,73.5,4]; module slide_switch_cutout() { union() { translate([0,0,-2]) cube([4.2,11.7,8]); translate([0.7,2.4,5]) cube([2.7,6.2,5]); } } module pi_washers() { translate([7.5,8.5,3]) was...
glb/cad_f5413d6e2fb1.glb
Create a handheld portable retropie system case. The main body is a rectangular shell with a thickness of 9mm. On the top face, create a large rectangular cutout measuring 40mm by 51mm to accommodate an LCD screen. Around this screen area, integrate a series of mounting points and cutouts for a piTFT. Specifically, p...
use <util.scad>; use <front_buttons.scad>; use <front_flex.scad>; button_spread=10; button_size = 3; dpad_offset = [80,22.5,18]; buttons_offset = [80,52.5,18]; option_buttons_offset = [95,7.5,18]; module dpad_case() { difference() { translate([0,0,0]) cube([30,30,2], center=true); translate([0,0,...
glb/cad_c53bf2b47e02.glb
Create a handheld portable system base. Start with a blue rectangular plate measuring 56mm wide by 65mm long with a thickness of 1.65mm. Round the four corners of this plate with a radius of 3mm. On the top surface of the plate, place four circular holes with a diameter of 2.75mm. Position these holes 3.5mm from the ...
use <util.scad>; width=56; length=65; pcb_height=1.65; module tiny_switch() { color("grey") cube([6,3.4,3.63]); translate([3,1.6,4.13]) color("white") cube([3,1.5,1], center=true); } module pitft_holes() { $fn=32; translate([3.5,3.5]) circle(d=2.75); translate([width - 3.5,3.5]) circle(d=2.75); transla...
glb/cad_6fb98b8b2302.glb
Create a RedPitaya-Case designed to house a circuit board. Start by creating a main outer shell based on a central volume that is 90mm wide, 65mm high, and approximately 13.65mm thick. This volume should be modified with angled extensions on the sides to accommodate connectors. The shell must be hollowed out from the ...
$fn=48; epsilon=0.1; case_thick=1.5; rounded=true; stand_b=5; stand_t=6; mechanical_support=0.8; screw_head_dia=6; screw_head_thick=2; screw_base_dia=8.2; base_headroom=1; shield_mount_thick=1; board_thick=1.65; above_shield=stand_b + board_thick + stand_t + shield_mount_thick; base_t=above_shield + base_headroo...
glb/cad_0ea8e681bb89.glb
Create a Lets-Split case by starting with a solid rectangular block measuring 130mm in length, 114mm in width, and 22mm in height. Hollow out the center to create a basin with a wall thickness of 7mm on all sides, leaving the interior cavity measuring 116mm by 100mm by 8mm. At the four interior bottom corners of the ...
triangle_width = 8; inside=[116,86,21]; wall_width = 7; module ttrs() { translate([14,70,2]){ cube([10,40,9]); } translate([77,70,2]){ cube([13,40,9]); } translate([19,20,-5]){ cylinder(8,1,1); } translate([19,58,-5]){ cylinder(8,1,1); } translate(...
glb/cad_1733811f5423.glb
Create a 3D model of the R-360-3D-Printer extruder mount. Start by constructing a main rectangular block with dimensions 24mm wide, 55mm high, and 28mm deep. Add a secondary rectangular section extending from the side to serve as a motor mount, with a thickness of 8mm. In the main block, create a central vertical void...
include<configuration.scad> include<jonaskuehling-default.scad> malcolm_hotend_mount=1; groovemount=2; peek_reprapsource_mount=4; arcol_mount=8; mendel_parts_v6_mount=16; grrf_peek_mount=32; wildseyed_mount=64; geared_extruder_nozzle=128; jhead_mount=256; reprapfaborg_mount=512; r360=1024; elevation=4; extra_gear_se...
glb/cad_72fa17e13136.glb
Create a dancebot beam by starting with a main rectangular block measuring 72mm in length, 8mm in width, and 8mm in height. Attach a smaller rectangular block measuring 32mm by 4mm by 8mm to the top surface, positioned from the start of the beam and offset 6mm along the width. Add a small 4mm cube rotated 45 degrees on...
beam_width = 8; hole_diameter = 5.1; hole_radius = hole_diameter / 2; beam_length = 72; difference() { union(){ cube([beam_length,beam_width,beam_width]); translate([0,6,0]) cube([32,4,8]); translate([32.0,4.35,0]) rotate([0,0,45]) cube([4,4,8]); } ...
glb/cad_dfa7b095dae6.glb
Create a dancebot head by starting with a main body that is a scaled-down version of a complex composite shape. The primary volume is a rectangular block measuring 61.06mm wide, 55.84mm deep, and 24.03mm high. Integrate two cylindrical protrusions with a radius of 11.3mm and a height of 55.84mm, positioned at opposite ...
A = 20.5; B = 13.47; C = 33.79; D = 10.17; E = 9.66; F = 30.22; G = 11.68; H = 26.67; J = 54; K = 9.35; L = 4.38; M = 41; X = 3.05; servo_width = A; sero_depth = M; servo_height = H+K; head_width = 52.84+23; head_scale = .75; module servo() { union() { cube([servo_width, sero_depth, servo_height]);...
glb/cad_dbfcb5166e3d.glb
Create a LEGO Technic-compatible gridbeam by starting with a rectangular block that is 72mm long, 8mm wide, and 8mm high. Drill a series of 5.1mm diameter holes through the block to create a grid pattern. First, place five holes vertically through the top face, centered along the width at 4mm and spaced every 16mm apar...
beam_width = 8; hole_diameter = 5.1; hole_radius = hole_diameter / 2; module beam(number_of_holes) { beam_length = number_of_holes * beam_width; difference() { cube([beam_length,beam_width,beam_width]); for (x=[beam_width/2 : beam_width*2 : beam_length]) { translate([x,be...
glb/cad_272fa1db2bbf.glb
Create a Lego-compatible grid beam by starting with a base rectangular block measuring 88mm in length, 16mm in width, and 4mm in height. From this base, remove a series of 5.1mm diameter holes, each 10mm deep, spaced 8mm apart center-to-center. The first hole should be centered 4mm from the left edge and 4mm from the s...
beam_width = 8; hole_diameter = 5.1; hole_radius = hole_diameter / 2; module beam(number_of_holes) { beam_length = number_of_holes * 8; for (x=[4 : 8 : beam_length]) { translate([x,4,-2]) cylinder(r=hole_radius, h=10, $fn=30); } } difference(){ cube([11*beam_width,2*beam_width,beam_width/2]...
glb/cad_75167dba0885.glb
Create a door blocker consisting of a vertical stack of three hexagonal nut shapes. Each hexagonal layer has an outer diameter of 44mm, an inner hole diameter of 19mm, and a height of 23mm. The three layers are stacked vertically with a 5mm margin between them. The overall structure is formed by taking a solid volume...
nut_outer_diameter = 44; nut_inner_diameter = 19; nut_height = 23; layer_margin = 5; layer_count = 3; layers = [ for(i=[0:(layer_count - 1)]) i * (nut_height + layer_margin) ]; module nut(margin_outer=0, margin_inner=0) { r_outer = (nut_outer_diameter / 2) + margin_outer; r_inner = (nut_inner_diameter / 2) + ...
glb/cad_ed0dfa90aecc.glb
Create a print-in-place hinge assembly. Start by constructing the central hinge body: a cylinder with a radius of 2.5mm and a length of 15mm, centered on the X-axis. This cylinder should be hollowed out by a concentric hole with a radius of 2mm. Inside this hollow space, place a hinge pin which is a solid cylinder with...
module hinge(radius,length,gap) { module hingebody(r=radius,l=length){ union(){ cylinder(r=r,h=l,$fn=99); translate([0,-r,0])cube([r,2*r,l]); } } translate([length/3+gap,0,radius])rotate([0,90,0])union(){ difference(){ hingebody(radius,length);...
glb/cad_60db88c71a65.glb
Create a rounded rectangular block for electrical cabling parts with an overall size of 40mm in width, 50mm in length, and 20mm in height. To achieve the rounded edges, apply a Minkowski sum of a cube measuring 30mm by 40mm by 13mm and a sphere with a radius of 5mm, 10mm, and 7mm respectively along the X, Y, and Z axes...
$_SUPPORT_THK=0.2; $_FN_CYL=$preview?12:$fn; function GET_FN_CYL()=$_FN_CYL; $_EPSILON=$preview?0.2:0; function GET_EPSILON()=$_EPSILON; module tr(dx,dy=0,dz=0) { translate([dx,dy,dz]) children(); } module trZ(dz) { translate([0,0,dz]) children(); } module trz(dz) { echo("Deprecated trz(), use trZ(); d...
glb/cad_7b3b10df253f.glb
Create a protective phone cover for a Librem 5. The main outer body is a rounded rectangular shell with a total length of 152mm, width of 72mm, and height of 13mm, featuring a wall thickness of 1mm and outer corner radii of 3mm. Hollow out the interior to fit the phone, creating a void that is 150mm long and 70mm wid...
th = 1; r1=7.5; l1 = 150; w1 = 70; h1 = 8; re = 0.5; hb = 4; lb = 146; wb = 66; rb = 3.5; lo = 148; wo = 68; ro = 7.5; hf = 2.5; ct = 1.5; lr = 24; wr = 2; chx = 18; chy = 15; flx = 10; fly = 15; jkx = 55; r=3; l = l1+(2*th); w = w1+(2*th); h = h1+hb+(2*th); difference(){ union(){hull(){ translate([0,0,h/2-re]...
glb/cad_21ad9bc2af94.glb
Create a WalrusTurbine hydroelectric generator consisting of a series of coaxial components aligned along a central vertical axis. Start by creating a central shaft with a diameter of 20mm and a height of 450mm, featuring a hollow core with a diameter 4mm smaller than the outer shell. Around this shaft, place a rotar...
include <constants.scad>; explode=0; use <shroud.scad>; use <nose_cone.scad>; use <runner.scad>; use <end_cap.scad>; use <bearing_case_cover.scad>; use <motor_mount.scad>; use <motor_cover.scad>; use <wheel.scad>; use <guard.scad>; *translate([0,0,475 * explode]) rotate([180,0,0]) guard(); translate([0,0,475 * expl...
glb/cad_5dde8cc4a471.glb
Create a WalrusTurbine hydroelectric generator component by constructing a hollow vertical cylinder. The outer wall should have a diameter of 25.875mm and a total height of 71.83mm. Remove a concentric cylindrical core from the center with a diameter of 17.375mm, ensuring the hole passes completely through the object f...
difference() { cylinder(d=15.875 + 10, h=79 - 7.17, $fn=100); translate([0,0,-.01]) cylinder(d=15.875 + 1.5, h=79 - 7.17 + .02, $fn=100); }
glb/cad_4c198d560eb9.glb
Create a shroud for a hydroelectric turbine. Start by constructing a large hollow cylinder with an outer diameter of 100mm and an inner diameter of 90mm, reaching a total height of 55mm. This main body should be a smooth, high-resolution cylinder. To create the spoke mounting points, remove a series of small holes from...
include <constants.scad> shroud(); module shroud() { difference() { cylinder( d=shroud_od, h=runner_height + shaft_mount_height, $fn=200); translate([0,0,-.01]) cylinder( d=shroud_id, h=runner_height + shaft_mount_height +.02...
glb/cad_7db04b83f35d.glb
Create a WalrusTurbine hydroelectric generator housing by starting with a solid rectangular prism measuring 25mm by 25mm with a height of 50mm. Remove a vertical cylindrical hole from the center of the top face, with a diameter of 17.375mm, extending from a height of 5mm up to the top of the prism. Additionally, create...
difference() { cube(size=[25,25,50]); translate([12.5,12.5,5]) cylinder(d=15.875 + 1.5,h=50-5+.01,$fn=50); translate([12.5,25.01,12 + 5]) rotate([90,0,0]) cylinder(d=6.35 + 1,h=25+.02,$fn=50); }
glb/cad_852b0a3c8ad8.glb
Create a nose cone for a hydroelectric turbine. Start with a central cylinder that has a radius of 20mm and a height of 20mm. On top of this cylinder, place a sphere with a radius of 20mm, centered at a height of 20mm, but remove the bottom half of the sphere to create a hemispherical dome. Hollow out the center of t...
include <constants.scad>; noseCone(false); module noseCone(line_hole=true) { difference() { union() { difference() { translate([0,0,20]) resize([ core_radius * 2, core_radius * 2, ...
glb/cad_50338f6002f1.glb
Create a bearing case cover for a hydroelectric turbine. Start by constructing a composite solid consisting of three stacked cylinders: a base cylinder with a radius of 29mm and a height of 13mm, a middle cylinder with a diameter of 30mm and a height of 12.5mm starting at a height of 5mm, and a third cylinder with a di...
include<constants.scad>; bearing_case_cover(); module bearing_case_cover() { difference() { union() { cylinder( r=core_cutout - 1, h=seal_height + 3, $fn=75); translate([0,0,5]) cylinder( d=th...
glb/cad_059c4b6b064e.glb
Create a WalrusTurbine end cap. Start with a base cylinder of radius `core_radius` and height 10mm. On top of this base, add a second cylinder with a radius of `core_cutout - 1` and a height that brings the total part height to `end_cap_height`. Around the perimeter of the base cylinder, add six scaled cylindrical st...
include <constants.scad>; end_cap(); module end_cap() { outer_cap_height = 10; difference() { union() { translate([0,0,0]) cylinder( r=core_radius, h=outer_cap_height, $fn=100); translate([0,0,outer_cap_...
glb/cad_ca8452645f99.glb
Create a storage box for six drives with a total height of 100mm. The outer shell should be a rectangular block with rounded vertical corners of 3mm radius. The total depth of the box is 108.2mm and the total length is 177mm. The walls and the floor of the box are both 3mm thick. Inside the box, create six identical ...
N = 6; drive_thickness = 25.4; drive_width = 101.6; tolerance = 0.6; wall_thickness = 3; divider_thickness = 3; floor_thickness = 3; height = 100; slot_width = drive_thickness + tolerance; internal_depth = drive_width + tolerance; L = 2 * wall_thickness + N * slot_width + (N - 1) * divider_thickness; D = 2 * wall_thic...
glb/cad_e12090aa0d03.glb
Create a tube stand consisting of two identical vertical cylindrical holders positioned side-by-side. For each holder, create a hollow cylinder with an outer diameter of 31mm and an inner diameter of 25mm, resulting in a wall thickness of 3mm. The total height of each cylinder is 40mm. To create the interior cavity, re...
{ dia = diameter + thick; for(j = [0:1:2]) { translate([0,j*( sqrt( dia*dia - dia*dia/4 ) ),0]) { for(i = [0:dia:dia*5+(j%2)*dia]) { translate([i + (j%2)*(-dia/2),0,0]){ difference() { linear_extrude(height = 2) circle(diameter/2+thick); linear_extrude(height = ...
glb/cad_82d9d14aa2ec.glb
Create a HaptiStrap tensioner consisting of a central base with integrated attachment posts and sewing holes. Start by creating two elastic attachment posts. Each post is a composite shape formed by the hull of a small rectangular prism (1mm x 3.25mm x 1mm) and a cylinder with a radius of 2mm and height of 4.5mm. Pos...
use <archimedean_spiral.scad> use_printed_tensioner= 0; use_elastic_tensioner = 1; strap_w = 20; strap_l = 4; strap_h= 5; strap_th = 2; Extra_w = 1; shaft_r = 1.5; dist_post = 2*shaft_r+0.75; wall_th = 1; o_w = 25; center_offset = o_w/5; insert_tensioner(); module insert_tensioner(){ union(){ inse...
glb/cad_f1e4bdc921c2.glb
Create a thin circular disc with a thickness of 2mm and an outer radius of 13.95mm. Centered within this disc, create a circular hole with a radius of 5mm that passes completely through the thickness of the object. Additionally, create four smaller circular holes, each with a radius of 2mm, that also pass completely th...
$fn = 120; thickness = 2; module ring(){ radius = 13.95; cylinder(thickness, radius, radius); } module mainHole(){ radius = 5; cylinder(thickness, radius, radius); } module ringCutMainHole(){ difference() { ring(); mainHole(); } } module shortScrew(){ move = 8; trans...
glb/cad_3dc8a19edf2f.glb
Create a camera holder consisting of a base plate and a central mounting block. Start with a base plate that is 2mm thick. At the center of the base, create a rectangular cutout measuring 15mm wide by 20mm long and 3mm deep. Position four screw holes on the base plate: two small holes and two large holes. The small h...
$fn = 240; thickness = 2; module screwHole(){ rb = 4.0; rs = 1.5; difference(){ #cylinder(thickness, r1 = rb, r2 = rb); cylinder(thickness, r1 = rs, r2 = rs); } } module screwSmall(){ lenght = 23.4; translate(v = [lenght / 2, 0, 0]) { screwHole(); } } module ...
glb/cad_f312e5082785.glb
Create a rectangular electronics enclosure frame. Start by constructing a solid outer box measuring 65mm in length, 48mm in width, and 12.1mm in height. From the center of this box, remove a smaller rectangular volume measuring 63mm by 46mm with a height of 13.1mm, leaving a wall thickness of 1mm on all sides and a bas...
use <sensors.scad>; module allSensors(){ union(){ translate(v = [0, 0, 0]) { arduinoNano(); } translate(v = [0, 0, 6]) { nokia5110(); } translate(v = [-30, 0, 7.3]) { rotate([0, 0, 90]) { dht11(); } } ...
glb/cad_8a1620c4015a.glb
Create a 3D model of a frame with holders. Start by creating a central rectangular base plate measuring 120mm in length, 20mm in width, and 4mm in thickness, centered on the origin. From this base, remove two rectangular slots to create cutouts. Each slot must be 50mm long, 20mm wide, and 4mm thick, rotated 45 degrees ...
thickness = 4.0; module mainFrame(){ cube([120,20,thickness],center=true); } module cutter(){ rotate([0, 0, 45]) { translate(v = [45, -45, 0]) { cube([50, 20, thickness], center=true); } } } module cutters(){ cutter(); mirror(v= [180, 0, 0] ) { cutter(); }...
glb/cad_79fa2ad6abe2.glb
Create a 3D model of a frame with a uniform thickness of 4mm. Start with a central rectangular base measuring 120mm by 20mm by 4mm, centered on the origin. Remove two rectangular sections from this base to create cutouts: each cutout is a 50mm by 20mm by 4mm block, rotated 45 degrees on the Z-axis and positioned symmet...
thickness = 4.0; module mainFrame(){ cube([120,20,thickness],center=true); } module cutter(){ rotate([0, 0, 45]) { translate(v = [45, -45, 0]) { cube([50, 20, thickness], center=true); } } } module cutters(){ cutter(); mirror(v= [180, 0, 0] ) { cutter(); }...
glb/cad_10d4fb8adea7.glb
Create a rectangular battery case with a main body measuring 48mm x 78mm x 12mm. Inside this body, carve out two cylindrical voids to hold batteries, each with a diameter of 20mm and a length of 68mm, positioned symmetrically along the center axis. Refine the interior by removing a central rectangular block of 10mm x...
h_batt = 68; d_batt = 20; module oneBatt(){ translate(v = [10.5, 0, 6]) { rotate([90,0,0]) { cylinder(h = h_batt, d = d_batt, center = true, $fn = 120); } } } module twoBatt(){ translate(v = [2, -2, 0]) { oneBatt(); mirror(v= [1, 0, 0] ) { oneBatt();...
glb/cad_12b32e221200.glb
Create a rectangular block for a DHT11 sensor with dimensions of 16mm in width, 12.6mm in depth, and 5.83mm in height.
module nokia5110(){ difference() { cube([43.87, 43.18, 1.4], center = true); nokia4Hole(); } translate([0,0,2.4]){ cube([40.64, 34.16, 3.5], center = true); } } module nokiaHole(){ translate([20.3, 20, 0]){ cylinder(h = 2, d = 2.32, center=true, $fn=120); } } mo...
glb/cad_2738039697cf.glb
Create a starship model by combining several geometric primitives. Start with a central primary hull formed by a sphere with a diameter of 30mm, flattened along the Z-axis to 75% of its original height. At the center of this hull, place a small hemisphere with a 7.5mm radius. Extending forward from the center of the hu...
use <../lib/util.scad>; cylinder(8,52,60,center=true); translate([0,0,4+1.5-.1]) cylinder(3,60,5,center=true); translate([0,0,-4-1.5+.1]) cylinder(3,5,52,center=true); scale([1,1,.75]) sphere(15); util_nacelle(59,32,12,curved=true); difference() { translate([-70,0,-12]) scale([1,1.2,1]) rotate([0,90,0]) { transla...
glb/cad_c22a37e3e774.glb
Create a starship model consisting of a central hull and three surrounding saucer-like components. First, construct the main body by creating a hull that combines a scaled saucer shape (1.25x on the X-axis) repeated three times and rotated every 120 degrees around the Z-axis, positioned at X=-11. Integrate this with ...
use <../lib/util.scad>; use <../combined/multilib.scad>; use <../mother/mlib.scad>; use <../macs/macs.scad>; module hull4() { difference() { union() { scale([1.25,1,1]) hull() repeat(3, rv=[0,0,120]) translate([-11,0,0]) util_saucer(12.5,40,7); ...
glb/cad_049c528b1299.glb
Create a starship model by combining several geometric components. Start with a primary saucer section consisting of two stacked, shallow circular discs: a larger base disc with a diameter of 120mm and a height of 15mm, and a slightly smaller disc with a diameter of 100mm and a height of 12.5mm positioned directly abov...
use <../lib/util.scad>; translate([0,0,-2.5]) util_saucer(120,120,15); util_saucer(45,45,18); util_nacelle(75,30,20,curved=true); difference() { translate([-54,0,0]) { mirror([0,0,1]) util_saucer(75,36,15); translate([0,0,-2.5]) util_saucer(100,36,12.5); } translate([-5...
glb/cad_d528f4dda38f.glb
Create a starship model consisting of a primary saucer section and attached nacelles. Start by constructing a central disk using a flattened ovoid shape. On top of this disk, place a smaller, raised ovoid to serve as the bridge. For the main body, create a curved, elongated ovoid that integrates with the disk. Carve ...
use <../lib/util.scad>; include <saucer_lib.scad>; include <transwarp_lib.scad>; include <command_lib.scad>; module cm_disk() { difference() { util_ovoid(cm_disk_width/2, cm_disk_width/2, cm_disk_width, cm_disk_height_ext, 1); translate([0,0,cm_disk_width/2 + cm_disk_height]) cube(cm_disk...
glb/cad_affd16ea0c18.glb
Create a starship secondary hull by starting with a hexagonal prism with a diameter of 10mm and a height of 10mm, centered at the origin. Intersect this prism with a cube of 15mm on all sides to clip the geometry. To refine the shape, remove a smaller hexagonal prism with a diameter of 9mm and a height of 5mm from the ...
use <../lib/util.scad> include <common.scad> use <disks.scad> use <disk0.scad> module class_0_nacelle() { intersection() { translate([class_0_nacelles_l/4,0,0]) scale([2*class_0_nacelles_l/class_0_nacelles_w,1,1]) sphere(d=class_0_nacelles_w, $fn=faces_convex); translate([-class_0_...
glb/cad_0a52f18aa7ba.glb
Create a rectangular block with dimensions 20mm in length, 20mm in width, and 15mm in height. Centered on the top face of this block, create a vertical hole that matches the dimensions and profile of a UNC 10-24 allen bolt with a length of 15.002mm. This hole should penetrate through the top surface of the block.
include <ScrewsUNC/ScrewsUNC.scad>; H = 15; W = 20; L = 20; boltSize = UNC10; boltType = allenBolt; nutType = fullNut; washerForm = washerTable1; $fn = 100; GHOST = true; module demo1(){ difference(){ cube([L, W, H]); translate([L/2, W/2, H+0.001])BoltNormalWithSurface(boltType, boltSize, H+0.002); ...
glb/cad_67498546b274.glb
Create a rectangular block with dimensions 20mm in length, 20mm in width, and 15mm in height. Centered on the top face of this block, create a vertical hole that matches the geometry of a standard M5 allen bolt with a length of 15.002mm. The hole should be positioned exactly at the center of the top surface, extending ...
include <ScrewsUniversal/ScrewsUniversal.scad>; H = 15; W = 20; L = 20; boltSize = M5; boltType = allenBolt; nutType = fullNut; washerForm = washerFormA; $fn = 100; GHOST = true; module demo1(){ difference(){ cube([L, W, H]); translate([L/2, W/2, H+0.001])BoltNormalWithSurface(boltType, boltSize, H+0...
glb/cad_4b0a4eaf1d95.glb
Create a rectangular block with dimensions 20mm in length, 20mm in width, and 15mm in height. Centered on the top face of this block, create a vertical hole that matches the dimensions and profile of a UNC10 allen bolt. This hole should penetrate through the entire 15mm height of the block.
include <ScrewsUniversal/ScrewsUniversal.scad>; H = 15; W = 20; L = 20; boltSize = UNC10; boltType = allenBolt; nutType = fullNut; washerForm = washerTable1; $fn = 100; GHOST = true; module demo1(){ difference(){ cube([L, W, H]); translate([L/2, W/2, H+0.001])BoltNormalWithSurface(boltType, boltSize,...
glb/cad_a53e5c667942.glb
Create a rectangular block with dimensions 20mm in length, 40mm in width, and 15mm in height. On the left side of the block, centered along the width at 10mm and the height at 7.5mm, create a hole for an M5 allen bolt and a corresponding M5 nut. Include a standard washer (Form A) positioned against the surface. On ...
include <ScrewsUniversal/ScrewsUniversal.scad>; H = 15; W = 40; L = 20; boltSize1 = M5; boltSize2 = UNC1_4; boltType = allenBolt; nutType = fullNut; washerForm1 = washerFormA; washerForm2 = washerTable3Light; $fn = 100; GHOST = true; module demo1(){ difference(){ cube([L, W, H]); translate([L/2, W/4,...
glb/cad_824d4226f87d.glb
Create a 3D model of a threaded section by intersecting a 20mm cube with a composite cylindrical shape. First, construct a cylinder with a radius of 15mm and a height of 20mm. From this cylinder, remove a G1/2 threaded tap with a length of 8mm. Then, combine this result with a G1/2 bolt that also has a length of 8mm. F...
use <threadlib/threadlib.scad>; intersection() { union() { difference() { cylinder(r = 15, h = 20); tap("G1/2", 8); } bolt("G1/2", 8); } cube([20, 20, 20]); }
glb/cad_013e446966fc.glb
Create a metric M6 nut. The nut should be a cube with a side length of 15mm. Centered through the cube, create a threaded hole following M6 specifications. The threading should feature a Higbee arc of 45 degrees. Ensure the threaded void is perfectly centered and passes completely through the volume of the cube.
use <threadlib/threadlib.scad> type = "M6"; turns = 6; higbee_arc = 45; P = thread_specs(str(type, "-ext"))[0]; dz = (turns / 2 - 1/4) * P; Douter = thread_specs(str(type, "-int"))[2] * 1.5; translate([0, 0, dz]) rotate([0, 0, -90]) bolt(type, turns, higbee_arc=higbee_arc); intersection() { nut(type,...
glb/cad_fa68c95d7969.glb
Create a G1/2-ext external thread model. The geometry should feature five full turns of the thread profile. Incorporate a Higbee arc with a radius of 20mm to smooth the start and end of the threaded section. The overall structure is based on a supporting cylinder with a diameter of 30.16mm and a total height of 23.22mm...
use <threadlib/threadlib.scad> type = "G1/2-ext"; turns = 5; higbee_arc = 20; thread(type, turns, higbee_arc=higbee_arc); specs = thread_specs(type); P = specs[0]; Rrot = specs[1]; Dsupport = specs[2]; section_profile = specs[3]; H = (turns + 1) * P; translate([0, 0, -P / 2]) cylinder(h=H, d=Dsupport, $fn=120);
glb/cad_d180f1d55dee.glb
Create a bar clamp for joining 8mm rods. Start by forming a main body that combines a cylinder with a radius of 7.3mm and a height of 14.6mm (using 20 facets) with a rectangular block measuring 17.5mm by 14.6mm by 14.6mm. Position the block so it is centered relative to the cylinder's diameter. From this combined volum...
include <configuration.scad> module barclamp(){ outer_diameter = m8_diameter/2+3.3; difference(){ union(){ translate([outer_diameter, outer_diameter, 0])cylinder(h =outer_diameter*2, r = outer_diameter, $fn = 20); translate([outer_diameter, 0, 0])cube([17.5,outer_diameter*2,outer_diameter*2]); } translate([9...
glb/cad_8470889b124c.glb
Create a SuperMicro aircraft housing with a total height of 19mm. The main body is a rectangular box with a length of 37mm and a width of 29mm. The front of the housing transitions into a tapered cowling section that is 30mm long, narrowing from a radius of 16.9mm at the tail to 9mm at the tip. The walls of the housin...
chordRatio = 0.16; fuseRatio = 0.68; leadingEdgeRadio = 0.12; vTailRatio = 0.16; hTailRatio = 0.26; rudderChordRatio = 0.05; elevatorChordRatio = 0.065; carbonfiberLength = 1000; span = carbonfiberLength / (1 + fuseRatio - rudderChordRatio); dihedral = 10; sweep = 20; rudderChord = span * rudderChordRatio; elevatorCho...
glb/cad_3b7bb9d0fe15.glb
Create a magis-protective-box by extruding a 2D profile to a height of 10mm. The base profile is formed by combining a 4x12mm rectangle positioned at (0, 0) with a circle of radius 2mm centered at (2, 2) and another circle of radius 4mm centered at (2, 16). From this combined shape, remove a circle of radius 0.5mm cent...
$fn = 100; linear_extrude(height = 10) { difference() { union() { translate([2, 2]) { circle(2); } translate([0, 2]) { square([4, 12]); } translate([2, 16]) { circle(4); } } ...
glb/cad_83b4f01bbde0.glb
Create a square tubing corner connector designed for fit-checking. Start by creating a central rectangular block that is 20mm wide, 20mm deep, and 100mm tall (5 times the outside dimension). To this central block, add five distinct protrusions aligned along the vertical axis. Each protrusion is a rounded rectangular ...
insideDim = 16.25; outsideDim = 20; protrusionLength = 22.5; roundoffRadius = 1; fittingType = 0; bracket(id=insideDim, od=outsideDim, l=protrusionLength, r=roundoffRadius, type=fittingType, $fa=5, $fs=0.5); module bracket(id=6, od=8, l=8, r=1, type=3) { m = l/2+od/2; textScaling = od*0.025; if (type...
glb/cad_a81ebee32e98.glb
Create a necklace featuring two vertical columns of 8-bit style letters. Each letter is constructed within a 16mm by 16mm square area. For each letter, create a 3D block 3mm thick. Within this block, represent the character using a grid of smaller 2mm cubes to form a pixelated appearance. At the base of each letter b...
use <bitmap.scad> chars = ["M","a","k","e","r","B","o","t"]; char_count = 8; block_size = 2; height = 3; hole_diameter = 5; module 8bit_str(chars, char_count, block_size, height) { echo(str("Total Width: ", block_size * 8 * char_count, "mm")); union() { for (count = [0:char_count-1]) { translate(v = [0, cou...
glb/cad_63fedc2e565f.glb
Create a set of three lathe-tool-models, each starting as a rectangular block of stock measuring 0.5 inches wide by 0.5 inches thick and 3 inches long. For the first tool, create a square tool by grinding the nose to an 80-degree included angle with a nose radius of 0.03125 inches. Apply a 15-degree back rake and a 1...
stock_width = 0.5; stock_len = 3; wheel_diameter = 8; wheel_thickness = 1; wheel_edge_radius = .0625; nose_radius = .03125; knife_nose_radius = 0.0156; side_cutting_edge_angle = 15; nose_angle = 80; knife_nose_angle = 65; threading_nose_angle = 60; back_rake_angle = 15; back_rake_depth_ratio = 1; knife_back_r...
glb/cad_4bb6c4bc4492.glb
Create a 3D logo consisting of a central ring and three radiating wing-like arms. Start with a central ring that has an outer diameter of 50mm and an inner diameter of 43mm. Surrounding this center, create three identical arms spaced equally at 120-degree intervals. Each arm is formed by a circular ring with an outer d...
include <BOSL2/std.scad> use <noyau/utils.scad> $fa=.1; $fs=.5; larger_d = 130; inner_d = 50; center_d = 64; empty = (center_d - inner_d) / 2; echo(empty); module wing2d(inset=empty) { module outside_wing() { difference () { circle(d=larger_d); circle(d=center_d); zrot_copies(n=3) ...
glb/cad_df94338604de.glb
Create a replacement plastic cover for a motorcycle windshield bar. The object is a hollowed-out tapered trough with a total length of 99.80mm. Construct the outer shell as a polyhedron. The front face (at x=0) has a width of 21.60mm and a height of 5mm. The rear face (at x=99.80) is narrower, with a width of 16.30mm...
use <noyau/utils.scad>; bottom_width = 16.30; bottom_width_inside = 11.40; top_width = 21.60; top_width_inside = 15.5; length = 99.80; bottom_height = 3.70; top_height = 5; body_points = [ [0, top_width/2, 0], [0, -top_width/2, 0], [length, -bottom_width/2, 0], [length, bottom_width/2, 0], [0, top_width_insid...
glb/cad_af160ad5aa99.glb
Create a 3D model consisting of four distinct geometric components. First, create a rounded edge feature by taking a cube of 10mm x 10mm x 5mm and removing a central cylinder with a radius of 10mm and a height of 5mm. Second, create a rounded cube with dimensions 20mm x 15mm x 5mm, where the vertical edges are softened...
module plastic() { color([ 1, .7, 0]) children(); } module gray() { color([ .4, .4, .4]) children(); } module black() { color([ .3, .3, .3]) children(); } module orange() { color([ 1, .7, 0]) children(); } module yellow() { color([ .7, .7, .3]) children(); } module green_pcb() { color([ ....
glb/cad_51dcea18088a.glb
Create a GPS mount support. Start with a main body that is a rounded rectangular block, approximately 50.5mm in length. The base is designed to fit into a specific opening, featuring a complex polygonal profile with a "petit cote" of 16.25mm and a "grand cote" of 24.5mm. The top surface of the mount is angled at 25 d...
spline_length = 50.5; petit_cote = 32.5 / 2; petit_cote_notch = 1.5; petit_cote_full = 41.5 / 2; grand_cote = 49 / 2; grand_cote_slip = 1.5; angle_grind = 1.5; outer_front = 3.15; outer_back = 3; outer_side_front = 6; outer_side_back = 9; front_angle = 25; amps_large = 38; amps_small = 30; support_width = 10; sup...
glb/cad_33291e91eec2.glb
Create a Cylinder based aligner orienter platform. Start with a base plate that is a rounded cube measuring 100mm by 100mm with a height of 1.4mm and corner radii of 15mm. On top of this base, center a thin cylindrical ring with a radius of 32.5mm and a height of 0.4mm. Within this assembly, create several vertical h...
include <rounded_cube.scad> include <dispenser_parms.scad> $fn=50; pi=3.1415926535897932384626433832795; module aligner_platform(platform_size = [100, 100, 1.4]) { difference() { union() translate([0,0,platform_size.z/2]) { rounded_cube_x2(platform_size, radius=15, center=true); rotate([0,0,45]) rounded_cu...
glb/cad_10640eab94af.glb
Create a 3D model of a full aligner base. Start with a central base consisting of a rounded cube and a second rounded cube rotated 45 degrees. Integrate two gear motor mounts: position one mount at the bottom, rotated -90 degrees on the X-axis, and another at the top, rotated 90 degrees on the X-axis and 180 degrees on...
include <rounded_cube.scad> include <MCAD/stepper.scad> include <gear_motor_model.scad> use <parametric_involute_gear_v5.1.scad> include <dispenser_parms.scad> $fn=50; pi=3.1415926535897932384626433832795; module hollow_cylinder(r=10, h=1, w_thickness=.8) { difference() { union() { cylinder(r=r-0.2, h=h); }...
glb/cad_0c46fc8b120f.glb
Create a cylinder-based aligner orienter. Start by creating a hollow cylinder with an outer radius of 10mm, a height of 1mm, and a wall thickness of 0.8mm. To build the dispenser base, create a rounded cube centered at the origin with dimensions based on the base size and a radius of 15mm. Add a mount for an electron...
include <rounded_cube.scad> include <dispenser_parms.scad> $fn=50; pi=3.1415926535897932384626433832795; module hollow_cylinder(r=10, h=1, w_thickness=.8) { difference() { union() { cylinder(r=r-0.2, h=h); } translate([0,0,-0.1])cylinder(r=r-w_thickness, h=h+0.2); } } module dispenser_base() { differenc...
glb/cad_8094163617b3.glb
Create a Cylinder based aligner orienter. Start by constructing a central hollow cylinder with an outer radius of 30mm and a height of 10mm. Subtract a smaller concentric cylinder from the center to create a wall thickness of 2mm. Around this central piece, position three identical semi-circular brackets. Each bracke...
include <rounded_cube.scad> use <bevel_gears.scad> use <parametric_involute_gear_v5.1.scad> include <dispenser_parms.scad> $fn=50; pi=3.1415926535897932384626433832795; module hollow_cylinder(r=10, h=1, w_thickness=.8) { difference() { union() { cylinder(r=r-0.2, h=h); } translate([0,0,-0.1])cylinder(r=r-w...
glb/cad_a283e637fa8c.glb
Create a LensHolder by constructing a primary cylindrical body with a total height of 25mm. This main cylinder has an outer radius of 21.5mm and a central hollow bore with a radius of 15mm. At the base of this cylinder, create a recessed ring with an outer radius of 20mm and an inner radius of 15.5mm, extending 10mm de...
include <Dimensions.scad> module top(color=undef) { top_full_height = top_height + insert_depth; top_holder_height = top_height + bottom_height - axle_z_offset; bolt_block_len = bolt_diameter * 3; led_support_height = bottom_height - led_height - led_flange + 0.5; color(color) difference() { ...
glb/cad_398e4c97ee35.glb
Create a LensHolder by starting with a main cylindrical base of 10mm height and 20mm outer radius. Remove a concentric inner cylinder with a 15mm radius to create a tube. From the bottom of this tube, remove a larger concentric cylinder with a 17mm radius that extends 1mm above the top surface to create a lip. Add a ...
include <Dimensions.scad> module bottom(color=undef) { color(color) difference() { union() { difference() { cylinder(bottom_height, r=outer_radius, $fn=180); cylinder(bottom_height, r=inner_radius, center = true, $fn=180); translate([0, 0, lens_overhang_thickness]) cylinder(bottom_height+1,...
glb/cad_d6fcbd4e780a.glb
Create a water boiler handle consisting of a main cylindrical body with a central hollow core. Start with a solid cylinder 23mm high with a radius of 18.5mm. Remove a concentric inner cylinder from this body that is 21.1mm high with a radius of 15mm, starting from a height of 2mm from the base. Around the outer perim...
module handle() { color("red",alpha) union(){ difference(){ union(){for ( i = [0:1:10]){ rotate(a=36*i,v=[0,0,1]){translate([-9,-9,7]){rotate(a=42,v=[0,0,1]){cube([18,18,10]);}}}} cylinder(23,r=18.5,$fn=500); } translate([0,0,2]){cylinder(21.1,r=15,$fn=500);} } difference(){cylinder(39,r=7.5,$fn=500); fo...
glb/cad_867355b453e2.glb
Create a dryer clip for a 15mm diameter tube. Start by constructing a hollow cylinder with an outer radius of 8.75mm and an inner radius of 7.25mm, with a total height of 12mm. To create the opening for the tube, remove a rectangular section from the cylinder using a 10mm by 10mm cube positioned at coordinates -10, -5,...
module dryer_clip() { union(){ difference(){ cylinder(12,r=8.75,$fn=1500); translate([0,0,-0.1]){ cylinder(12.2,r=7.25,$fn=1500); } translate([-10,-5,-0.1]){ cube([10,10,12.2]); } } } translate([7.5,-...
glb/cad_47e03243431f.glb
Create a replacement hinge part for a cooling box. Start with a rectangular base block measuring 45mm in length, 31mm in width, and 4mm in height. On one end of this block, center a cylinder with a radius of 5mm and a length of 31mm, oriented horizontally along the width of the block. Remove a smaller concentric cylind...
module screw_part() { difference(){ union(){ cube([15,43,3]); translate([0,0,5]){rotate(v=[1,0,0],a=-90){ difference(){cylinder(43,r=5,$fn=500);translate([0,0,-0.1]){cylinder(45,r=1.15,$fn=500);} } }} } translate([10,21.5,-0.1]){cylinder(3.2,r=2,$fn=500);} translate([10,21.5,-0.1]){cylinder(1.6,r1=4,r...
glb/cad_0f194e1a4c55.glb
Create a knob for a window cover string by constructing a truncated cone with a height of 25mm, a bottom radius of 3mm, and a top radius of 7.5mm. Bore a cylindrical hole with a radius of 2mm through the center of the base, extending 5.2mm upward into the body. From the top of that hole, remove a second conical section...
module knob_for_window_cover() { rotate(180,[1,0,0]) difference(){ cylinder(25,r1=3,r2=7.5,$fn=1500); translate([0,0,-0.1]){ cylinder(5.2,r=2,$fn=1500); } translate([0,0,4.9]){ cylinder(20.2,r1=2,r2=6.5,$fn=1500); } } } knob_for_window_cover();
glb/cad_9b7adb44e768.glb
Create a ktKILLIFISH1, which is a circular ring-like structure with internal radial dividers. Start by creating a hollow cylinder with an outer radius of 25mm, an inner radius of 24mm, and a height of 7mm, positioned so the base is at z=13mm. Inside this ring, place a smaller concentric hollow cylinder with an outer ra...
gap1 = 0.001; gap2 = 0.002; th = 2; d1 = 7+1; d2 = 12-1; d3 = 2.1+0.4; h1 = 9.6-2; h2 = 2.1+0.4; th1 = 5.1; th2 = 2; r1 = 20; x1 = 16; A = 1; B = 0; bx = 210; bxh = 210/2; by = 100; bz = 60; ar = 22/2; ard = 1; br = 50/2; brd = 1; cr = 37/2; crd = 1; dr = br-brd-0.2; drd = 1; A=0; B=1; if(A) { difference() { ...
glb/cad_42587cb8ea12.glb
Create a Truncated Icosahedron with an edge length of 30mm and a wall thickness of 2mm. The shape is composed of 12 regular pentagonal faces and 20 regular hexagonal faces. To construct the shell, create the hexagonal and pentagonal faces such that each edge is 30mm. The pentagons are separated from each other by a ri...
module tio(s,t,hb,tb) { r_encikosa = s/4*sqrt(58+18*sqrt(s)); r_circum = (s*3)*1/6*sqrt(29/2+9/2*sqrt(5)); r_edges = 3/4*s*(1+sqrt(5)); r = r_circum; echo("r",r); gray = 0.7; rhex = s; rpent = (s/2)/cos(54); hhex = sqrt(pow(r,2)-pow(rhex,2))-2.3*0; hpent = sqrt(pow(r,2)-pow(rpent,2)); hexhex = acos(-1/3*sqrt(5))...
glb/cad_44551c0da776.glb
Create a rounded rectangular case for a two-sided panel. Start by constructing a solid rectangular base measuring 37mm by 20mm with a height of 1.8mm. To create the walls, add a perimeter border around this base that extends the total height to 3mm, ensuring the corners are rounded. The interior should be hollowed out ...
include <polypanel-module.scad> module outline(wall = 1) { difference() { offset(wall / 2) children(); offset(-wall / 2) children(); } } module rounded_case(x,y,z,thick) { $fn=64; linear_extrude(height=z) outline(wall=thick) square([x,y]); linear_extrude(height=thick) squa...
glb/cad_f087d99265ff.glb
Create a mirror-clip designed to hold a phone. Start by creating a main body based on phone dimensions: 75.72mm wide, 150.91mm long, and 8.62mm thick, with rounded edges of 8mm. Add a camera bump on the back, offset from the edges by 12.18mm, measuring 11.13mm by 11.13mm with a thickness of 2.56mm and fully rounded cor...
$fs = 0.1; module roundedsquare(xx, yy, radius) { difference(){ square([xx,yy]); difference(){ translate([-.5,-.5,-.2]) square([radius+.5,radius+.5]); translate([radius,radius,height/2]) cylinder(height,radius,radius,true); } translate([xx,0,0]) rotate(90) di...
glb/cad_6b28d14dd724.glb
Create a mirror clip designed to hold a device with the following dimensions. Start by creating a main clip body as a rounded cube with a width of 44.63mm (25% of the device width), a length of 50mm, and a total thickness of 17.2mm (device thickness of 6.2mm plus two 5.5mm walls), with corner radii of 5mm. From this c...
$fs = 0.1; module roundedsquare(xx, yy, radius) { difference(){ square([xx,yy]); difference(){ translate([-.5,-.5,-.2]) square([radius+.5,radius+.5]); translate([radius,radius,height/2]) cylinder(height,radius,radius,true); } translate([xx,0,0]) rotate(90) di...
glb/cad_e7eb6e5de6bb.glb
Create a mirror-clip designed to fit a phone. Start by creating a main body based on phone dimensions: 70.94mm wide, 143.57mm long, and 8mm thick, with rounded edges (8mm radius). Add a camera bump on the back, measuring 11.86mm by 24.13mm with a thickness of 2.56mm and fully rounded corners. Construct a clip that wra...
$fs = 0.1; module roundedsquare(xx, yy, radius) { difference(){ square([xx,yy]); difference(){ translate([-.5,-.5,-.2]) square([radius+.5,radius+.5]); translate([radius,radius,height/2]) cylinder(height,radius,radius,true); } translate([xx,0,0]) rotate(90) di...
glb/cad_269bd09f2e4d.glb
Create a mirror-clip designed to hold a phone and a mirror. Start by creating a main clip body as a rounded rectangular prism with a width of 51.27mm (66% of the phone width), a length of 50mm, and a total thickness of 13.4mm (phone thickness plus two 2.5mm top/bottom walls). Round the corners of this clip with a 5mm r...
$fs = 0.1; module roundedsquare(xx, yy, radius) { difference(){ square([xx,yy]); difference(){ translate([-.5,-.5,-.2]) square([radius+.5,radius+.5]); translate([radius,radius,height/2]) cylinder(height,radius,radius,true); } translate([xx,0,0]) rotate(90) di...
glb/cad_e4ed8a73f168.glb
Create a buttonbox consisting of a main box and a separate cover. For the main box, start with a centered rectangular block measuring 26mm x 30mm x 10mm. Hollow out the center by removing a block of 18mm x 22mm x 8mm, leaving a base thickness of 3mm. Create two rectangular cutouts on the sides, each measuring 4mm x 32m...
boxmainsize = [26,30,10]; boxhollow = [18,22,8]; buttonbase = [10,10,3]; clamphollow = [4,32,3]; cylinheigh = 6; cylinradius = 1.5; center = true; boxcovermainsize = [26,30,2]; translate([0,0,4.5]) cube(buttonbase, center); difference(){ translate([0,0,5]) cube(boxmainsize, center); translate([0,0,...
glb/cad_9b3fefadda7b.glb
Create a circular knitting pick-a-needle tool. The object is a 10mm tall extruded geometric shape with a four-fold rotational symmetry. The base structure is formed by four identical corner modules positioned 90 degrees apart. Each corner module consists of a hull created from four small cylinders with a diameter of 0....
mbL=10; MB10(mbL); module MB10(bmL){ for(i=[1:4]){ rotate([0,0,90*i]){ mbCorner(); mirror(1,0,0) mbCorner(); } } } module mbCorner(){ bmX=10; bmCX=4; cornerD=0.2; innerD=0.4; armD1=1; armD2=1.3; boltD=3; hull(){ translate([(bmX/2)-(cornerD/2),(bmX/2)-(cornerD/2),0]) cylinder(d=cornerD, h=mbL, $fn=36); ...
glb/cad_9280409b8851.glb
Create a circular knitting pick-a-needle tool. Start by constructing a central rectangular block with dimensions 22mm in width, 11mm in height, and 10mm in depth. Center a cylindrical hole through the middle of this block with a diameter of 10mm and a height of 11mm. On both the left and right sides of the block, crea...
include <CKvars.scad>; use <mb10.scad>; use <CKpM2--mountainfeeder.scad>; use <CKpM3--anglebracket.scad>; rotate([-90,0,0]) CKpM(1,1,0); module CKpM(G,TF,RenderBeam){ translate([0,-p3wallOD/2,0]){ union(){ difference(){ translate([0,0,pMH/2]) translate([0,(c2ID+(pMgroove*2)+(pMwallT*2))/4,0]) cube([c2ID+(pM...
glb/cad_c6e7dbd1a300.glb
Create a circular knitting pick-a-needle tool starting with a rectangular base block measuring 41.91mm in width, 46.228mm in depth, and 66.802mm in height. Centered on the top face of this block, place a vertical cylinder with a diameter of 12.7mm and a total height of approximately 78.8mm. Within this vertical cylin...
PCL90(); module PCL90(){ x=41.91; y=46.228; z=66.802; topz=37.3126; top2stroke0=38.354; top2stroke1=70.104; plungerholeD=2.4384; plungercutZ=9.652; plungercutY=3.556; holeOD=4.1656; botz=topz-25.4; D=12.7; difference(){ union(){ cube([x,y,z]); translate([x/2,y/2,topz]) difference(){ cylinder(d=D,h=top2str...
glb/cad_99f2927db9f3.glb
Create a circular knitting pick-a-needle gear. Start with a spur gear that has 16 teeth, a thickness of 6mm, and a central bore diameter of 5mm. The gear should have a rim thickness of 8mm and a hub thickness of 10mm. From the center of the gear, remove a cylindrical hole with a diameter of 22mm and a height of 5mm. ...
include <CKvars.scad>; use <CKc3--topplate.scad> NEMAshaftOD=5; NEMAshaftCut=0.5; NEMAshaftL=20; NEMAshaftFL=15; NEMAboltHeadH=3; NEMAboltHeadOD=5.68; NEMAboltHexOD=2.87; NEMAfaceCricOD=22; NEMAsetboltL=8; NEMAsetboltOD=3; NEMAsetHeadOD=5.68; NEMAsqBoltW=5.5; NEMAsqBoltH=1.8; NEMAsqBoltSlop=0.25; p1H=pPspace1+pPpla...
glb/cad_9890d672ff56.glb
Create a circular knitting pick-a-needle tool. Start by constructing a main vertical wall as a hollow cylinder with an outer diameter of `pMODwall` and an inner diameter of `pMID`, extending to a height of `pMH`. Integrate a supporting shelf behind this wall with a diameter of `pMODshelf` and a height of `pMshelfH`. Ap...
include <CKvars.scad>; CKpM(); mult=2; grez=rez*mult; gdeg=360/grez; glen=(pMID*PI)/grez; echo("rez", rez); echo("grez", grez); echo("gdeg", gdeg); echo("glen", glen); CKpMgrooveturnR=15; CKpMgrooveturnR2=8; CKpMgrooveD=nC+pMgrooveSlop; CKpMp3X=2.5; CKpMcutRez=2;...
glb/cad_e71e6e745730.glb
Create a circular knitting pick-a-needle tool. Start by creating a main cylindrical body with a diameter of 22mm and a height of 25mm. From this cylinder, subtract a rectangular block to create a flat face on one side. The block should be centered on the cylinder's axis, with a width of 26mm and a height of 18mm, lea...
include <CKvars.scad>; CKpM(); mult=2; CKpMgrooveturnR=15; CKpMgrooveturnR2=8; CKpMgrooveD=nC+pMgrooveSlop; CKpMp7X=5; CKpMp3X=2.5; CKpMcutRez=2; CKpMcutDeg=(((CKpMp7X/2)*360/(PI*CKpMID))/CKpMp7X); CKpMcutcylRez=8; CKpMcutA=45; mi=(CKpMID*PI)/360; echo("mi=",mi)...
glb/cad_16bc1176f525.glb
Create a circular knitting pick-a-needle tool. The object is a flat, stylized needle shape with a thickness of 1.6mm. Start by creating a central rectangular body that is 10mm wide and 20mm long. At one end, integrate a rounded "butt" section formed by the intersection of two concentric cylinders with radii of 4mm an...
include <CKvars.scad>; needle(); module needle(){ mH=0.00001; bP=1.6; bN=0.6; $fn=36; translate([nX/2,0,(nX/2)]){ difference(){ union(){ minkowski(){ union(){ translate([0,nX/2,0]) cube([nY-nX,nB-(nY*bN),mH]); translate([-(nY*bP)+nY,nB-(nY*bN)+nX/2,0]){ intersection(){ difference(){ cylinder(r=(nY*b...
glb/cad_fc029cb4109e.glb
Create a circular knitting pick-a-needle holder. Start by constructing a central rectangular block with a height of 10mm. Cut a vertical cylindrical hole through the center of this block with a diameter of 20mm. At the top and bottom of the block, create angled cut-outs to form shelves. These shelves should be mirror...
include <CKvars.scad>; use <mb10.scad>; use <CKpM2--mountainfeeder.scad>; rotate([-90,0,0]) CKpM(1,1,0); module CKpM(G,TF,RenderBeam){ translate([0,-p3wallOD/2,0]){ union(){ difference(){ translate([0,0,pMH/2]) translate([0,(c2ID+(pMgroove*2)+(pMwallT*2))/4,0]) cube([c2ID+(pMgroove*2)+(pMwallT*2),(c2ID+(pMg...
glb/cad_be4675766b49.glb
Create a circular knitting pick-a-needle tool. Start with a rectangular block measuring 36.58mm in width, 41.40mm in depth, and 51.31mm in height. Centered on the top face, add a vertical cylinder with a diameter of 12.7mm and a height of 46.71mm. Within this cylinder, create a vertical hole with a diameter of 2.44mm...
PCL04(); module PCL04(){ x=36.576; y=41.402; z=51.308; topz=28.448; top2stroke0=42.7482; top2stroke1=68.1482; plungerholeD=2.4384; plungercutZ=9.652; plungercutY=3.556; plungertop2c=3.9624; holeOD=4.1656; botz=topz-12.7; D=12.7; translate([-x/2,-y/2,-topz-top2stroke0]) difference(){ union(){ cube([x,y,z]); tr...
glb/cad_027e6a8589e5.glb
Create a circular knitting pick-a-needle bearing holder. Start with a central rectangular body of 10mm width, 20mm length, and 5mm height. On each side of this body, attach a wing measuring 5mm wide, 20mm long, and 5mm high. In the center of the body, create a vertical bore hole with a diameter of 5mm that passes thro...
include <CKvars.scad>; CKp5(0); module CKp5(B){ mirror([0,1,0]){ translate([-(p5wingW+p5bodyW+p5wingW)/2,-p5wingL,0]){ if(B==1){ translate([(p5wingW+p5bodyW+p5wingW)/2,p5bearingfromwall+(p5wiggleL/2)+p5boltHeadH,bearingholderSmallB2C]) rotate([270,0,0]) difference(){ cylinder(d=bearingholderSmallBO...
glb/cad_b2a2d34b44af.glb
Create a circular knitting pick-a-needle tool. Start by constructing a central cylinder with a diameter of 3mm and a height of 20mm. At one end of this cylinder, attach a conical section that flares outward. This cone should have a base diameter of 6.72mm and a height of approximately 3.36mm, tapering from the 6.72mm b...
p2p4flatD=3; p2p4flatHA=90; p2p4flatHD=6.72; p2p4flatHH=1.86; c2ID=400; echo( "CP", ((c2ID-sqrt((-4*(p2p4flatHD/2)*(p2p4flatHD/2))+((c2ID)*(c2ID))))/2) ); p2p4flatORmax=((c2ID-sqrt((-4*(p2p4flatHD/2)*(p2p4flatHD/2))+((c2ID)*(c2ID))))/2)/2; rotate([0,270,0]) translate([0,0,p2p4flatORmax]) union(){ cylinder(d1=p2p4f...
glb/cad_91d0351581f4.glb
Create a circular knitting pick-a-needle bearing holder by constructing a hollow cylinder. The outer wall should be a cylinder with a diameter of 9mm and a height of 8mm, using a 36-facet resolution. Remove a concentric inner cylindrical hole with a diameter of 8mm that passes completely through the height of the objec...
include <CKvars.scad>; CKp8c(); module CKp8c(){ translate([0,0,0]){ difference(){ cylinder(d=10-1,h=p8H,$fn=36); translate([0,0,-0.1]) cylinder(d=p8holeD,h=p8H+0.2,$fn=36); } } }
glb/cad_d2d1271e32dd.glb
Create a circular knitting pick-a-needle tool. The model consists of a flat base with two symmetrical, upward-projecting conical supports. Start by creating a rectangular base. On each side of the base, center a vertical conical structure. Each cone should taper from a wider circular base to a flat circular top. The t...
include <CKvars.scad>; use <CKpM--mountain.scad>; use <mb10.scad>; mirror([0,0,1]) translate([0,0,-(pMgrooveC3+nA-nC-nB+aaX-5)]) CKpM(0,1,1); CKpM2(); pM2Dc1=(((((sin(pMd4s)*(pMID/2))-(aaX/2)-(0)))*(((sin(pMd4s)*(pMID/2))-(aaX/2)-(0))))/(pM2H-pM2fH))+(pM2H-pM2fH); pM2Dc2=(((((((((sin(pMd4s)*(pMID/2))-(aaX/2)-(0)))...
glb/cad_94aff365bfd9.glb
Create a Vac-U-Lock system model by constructing a vertical assembly of geometric primitives. Start with a central cylinder 110mm tall with a radius of 10.16mm. At the top of this cylinder, place a sphere with a radius of 10.87mm. Below the sphere, add a conical section (a cylinder with a tapered top) that is 24.5mm hi...
Shaft = 110; RodDia = 25.4 / 2 + 0.3; RodHt = 40; $fn = 30; BevelHt = 2.5; module vac_u_lock() { union() { translate([0,0,Shaft]) sphere(r = 10.87); translate([0,0,Shaft-24.5]) cylinder(h = 24.5, r1 = 13.72, r2 = 10.87); translate([0,0,Shaft-24.5-BevelHt]) cylinder(h = BevelHt, r1 = 10.76, r2 = 13...
glb/cad_c3caeb874e0a.glb
Create a Vac-U-Lock system component. Start with a central vertical cylinder 70mm tall with a radius of 10.16mm. At the top of this cylinder, place a sphere with a radius of 10.87mm. Below the sphere, add a conical section 24.5mm high that transitions from a base radius of 13.72mm up to the sphere's radius of 10.87mm. ...
include <threads.scad> Shaft = 70; RodDia = 25.4 / 2 + 0.3; RodHt = 40; $fn = 30; BevelHt = 2.5; module vac_u_lock() { union() { translate([0,0,Shaft]) sphere(r = 10.87); translate([0,0,Shaft-24.5]) cylinder(h = 24.5, r1 = 13.72, r2 = 10.87); translate([0,0,Shaft-24.5-BevelHt]) cylinder(h = Bevel...
glb/cad_a61091b40b71.glb
Create a Trammel of Archimedes arm by designing a flat plate with a thickness of 3mm. The main body is formed by the union of three hull-shaped sections. The first section is a rounded rectangular strip created by the hull of two circles with a diameter of 8mm, positioned at the origin and translated -10mm along the X-...
include <config.scad> arm6(); module arm4(){ gap=0.2; linear_extrude(height=arm_thickness) difference(){ hull(){ translate([-base_lenght/2,0,0]) circle(d=arm_width); translate([arm_lenght,0,0]) circle(d=arm_hole+ext_width); } circle(d=slider_axe+gap); translate([-base_lenght/2,0,0...
glb/cad_1496dc8ff508.glb
Create a Trammel of Archimedes consisting of a hexagonal base and integrated sliding tracks. Start by constructing the base as a hexagonal prism created from the convex hull of six circles with a radius of 2mm, each positioned at a distance of 20mm from the center, rotated every 60 degrees. Extrude this shape to a tota...
include <config.scad> use <slider.scad> six_sides(); module base4(){ x=(base_lenght/2)-down_width/2; y=(base_lenght/2)-down_width/2; z=0; base = [ [x,y,z], [x,-y,z], [-x,y,z], [-x,-y,z] ]; linear_extrude(height=base_thickness+base_height) hull(){ for(i = [0:3]) translate(base[i]) circle...
glb/cad_125870503527.glb
Create a slider for a Trammel of Archimedes. Construct the main body as a linear extrusion with a length of `slider_lenght`. The cross-section of this body is a hull formed by four circles of radius `rad_round` positioned at the corners of a rectangle defined by a top width of `top_width` and a height of `slider_height...
include <config.scad> module slider(lenght=slider_lenght, margin=0){ x1=(top_width/2)-rad_round+margin; x2=(down_width/2)-rad_round+margin; y=(slider_height/2)-rad_round; z=0; base = [ [x1,y,z], [x2,-y,z], [-x1,y,z], [-x2,-y,z] ]; translate([0,0,slider_height/2]) rotate([90,0,0]) linear_extrude(...
glb/cad_4c8a18c1a749.glb
Create a piccolominimotor by constructing an arm assembly. Start with a central cylinder that has a radius of 13.5mm and a height of 28mm. Subtract a smaller concentric cylinder from this shape with a radius of 12.5mm and a height of 3mm, centered vertically. Attached to this cylinder, create a rectangular block with ...
$fn = 100; module motor() { cylinder(r=20/2, h=17); cylinder(r=20/2, h=26); } module PCBmount() { difference() { union() { cube([50,32+35,1.5], center=true); translate([-50/2+3.4/2+1.2,-32/2+35/2+3.4/2+1.5,0]) { translate([0,0,1.5]) cy...
glb/cad_01ff35b248f2.glb
Create a Robotic Gardening Platform consisting of a central base and three radiating arms. Start with a flat circular disc 200mm in diameter and 6mm thick. On top of this disc, center a truncated cone that is 30mm high, tapering from a bottom diameter of 90mm to a top diameter of 20mm. Attach three smaller cylinders, e...
$fn=100; difference() { union() { cylinder(d=200,h=6); for (i=[0:120:359]) { rotate([0,0,i]) translate([100,0,0]) cylinder(d=40,h=6); } cylinder(d1=90,d2=20,h=30); } for (i=[0:120:359]) { rotate([0,0,60+i]) translate([180,0,-0.1]) cylinder(d=273,h=8); ...
glb/cad_6ebf450ba257.glb
Create a prosthetic hand base plate by starting with a primary rectangular block measuring 85mm in length, 85mm in width, and 2mm in height. Add two additional rectangular sections to this base: one measuring 10mm by 35mm by 2mm positioned at the top left, and another measuring 10mm by 35mm by 2mm positioned at the top...
length=85; wrist=60; width=85; res=30; difference(){ union(){ cube([10,25,2]); translate([0,length-35,0])cube([10,35,2]); translate([wrist+25-10,length-35,0]) cube([10,35,2]); translate([wrist-10,0,0]) cube([10,25,2]); translate([0,0,2])cube([wrist+25,length,3]); } union(){ translate([85,50,0]) rotate([0,0,45+180]) cu...
glb/cad_28e356039194.glb
Create a prosthetic hand GUI base plate. Start with a primary flat body composed of several joined rectangular sections: one measuring 10mm by 25mm by 1mm, another 10mm by 35mm by 1mm positioned at [0, 50, 0], a third 10mm by 35mm by 1mm at [50, 50, 0], and a fourth 10mm by 25mm by 1mm at [50, 0, 0]. Add a larger recta...
length=85; wrist=60; width=85; res=15; difference(){ union(){ cube([10,25,1]); translate([0,length-35,0])cube([10,35,1]); translate([wrist+25-10,length-35,0]) cube([10,35,1]); translate([wrist-10,0,0]) cube([10,25,1]); translate([0,0,1])cube([wrist+25,length,2]); } union(){ translate([85,50,0]) rotate([0,0,45+180]) c...
glb/cad_5f83eae926d4.glb
Create a distal phalanx for a prosthetic hand based on a palm width of 47mm and a middle length of 20mm. First, define a base width of approximately 8.24mm (calculated as 47 * 15.8 / 90). Construct the main body by combining a cube of dimensions 6.67mm x 8.24mm x 8.24mm with two cylinders. The first cylinder has a ra...
thumb_length = 15; middle_length = 20; palm_width = 47; module distal_phalanx(thumb_length, middle_length, palm_width) { width = palm_width*15.8/90; difference() { union(){ cube([middle_length/3,width,width],false); translate([0,0,width*3/5]) rotate([-90,0,0]) ...
glb/cad_6b3dbc9c6d24.glb
Create a prosthetic middle phalanx based on a palm width of 47mm. The main body is a composite structure starting with a central block measuring approximately 3.5mm in length, 8.3mm in width, and 8.3mm in height. Integrate two cylinders with a radius of 3.3mm and a height of 8.3mm; position the first at the origin and ...
thumb_length = 15; middle_length = 20; palm_width = 47; module middle_phalanx(thumb_length, middle_length, palm_width) { width = palm_width*15.8/90; difference() { union(){ cube([middle_length/3,width,width],false); translate([0,0,width*3/5]) rotate([-90,0,0]) ...
glb/cad_4b384b94eb40.glb