Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a grove-case by constructing a short, thick-walled ring. Start with a cylinder that has a diameter of 4.4mm and a height of 2mm. Use a 20-sided polygonal facet resolution for the cylinder. From the center of this shape, remove a smaller concentric cylinder with a diameter of 2.2mm and a height of 3mm to create a...
include <conf/config.scad> h=2; di=2.2; do=di*2; $fn=20; difference() { cylinder(d=do, h=h,center=true); cylinder(d=di, h=h+1,center=true); }
glb/cad_5894409b6564.glb
Create a wall mount for a dimmer switch. Start with a square base plate measuring 56mm by 56mm with a thickness of 11.5mm. Hollow out the center of this base by removing a square of 53mm by 53mm to a depth of 10mm, leaving a 1.5mm thick outer wall. At the center of the base, add a rectangular extension that is 25mm w...
$fn = 30; BASE_DEPTH=11.5; BASE_CORNERCUTOUT_WIDTH=4; BASE_CORNERCUTOUT_DEPTH=6.5; BASE_PILLAR_DIAMETER=2; BACK_WIDTH=25; BACK_LENGTH=38; module base (){ difference(){ difference(){ union(){ difference(){ cube([56,56,BASE_DEPTH]); tra...
glb/cad_11cba7a0145d.glb
Create a wall mount for a dimmer switch consisting of a flat base holder and several small cylindrical clips. Start by creating the base holder as a rounded rectangular plate with an outer dimension of 46.6mm by 46mm and a height of 2mm, with corners rounded by a 5mm radius. Remove a central rectangular area from this ...
$fn = 30; HOLDER_HEIGHT=2; CLIP_HEIGHT=5; module holder(){ module rounded_square(d,r) { minkowski() { translate([r,r]) square([d[0]-2*r, d[1]-2*r]); circle(r); } } difference(){ linear_extrude(height=HOLDER_HEIGHT){ rounded_square([46.6,46],5);...
glb/cad_1fd44819d356.glb
Create a 3D model of a curved brick segment. The shape is a 90-degree arc of a hollow cylinder with a height of 6mm. The outer radius of the arc is 4 units and the inner radius is 3 units, where each unit corresponds to a standard brick width of 8mm. This results in an outer radius of 32mm and an inner radius of 24mm. ...
$fn = 150; include <_conf.scad>; include <RectBrickBuilder.scad>; include <RoundBrickBuilder.scad>; outer_radius=4; inner_radius =3; reduce =0; height=6; degrees_start = 0; degrees_end = 90 ; supports = 0; attributes = [["thinwall",0]]; thinwall = 0; window= 0; chamfer =0; rotate([...
glb/cad_0d206a42290c.glb
Create a mount for a solar radiation shield. Start with a circular base plate 120mm in diameter and 5mm thick. In the center of this plate, create a circular cutout with a diameter of 25mm. Position two small mounting holes on the base plate, equidistant from the center. Extending from the base plate, create a rectang...
$fn=100; module stud(height, d1, drill_dia, recess_angle) { recess=tan(recess_angle)*height; difference() { cylinder(h=height, r1=d1/2, r2=d1/2-recess, center=false); if (drills) { translate([0,0,1]) cylinder(h=height, d=drill_dia); } } } module studs(height=17, d1=12, ...
glb/cad_0507f2468b38.glb
Create a plug holder by starting with a solid rectangular block measuring 136.11mm in width, 101.5mm in depth, and 26mm in height. From this block, remove a central void to create a cradle. This void is formed by the intersection of a large cylinder with a 70mm radius and a complex extruded polygon shape that has bee...
MAX_X = 126.10892; MAX_Y = 91.50459; EPS = 0.1; HEAD_DIAM = 7.5; SHANK_DIAM = 4.0; HEAD_ANGLE = 100.0; CS_HEIGHT = 1.47; CS_RIM_HEIGHT = 0.3; SCREW_HEIGHT = 100; module cs_hole() { translate(v = [0, 0, -CS_RIM_HEIGHT]) cylinder(r = HEAD_DIAM / 2, h = CS_RIM_HEIGHT + EPS, center = false, $fn = 45); ...
glb/cad_88720c92605c.glb
Create a flyball-timing element holder. Start with a main cylindrical body that has an outer diameter of 52mm and a total height of 75mm. The base of this cylinder is a solid disk 5mm thick. From the top of the cylinder, carve out a central vertical channel that is 52mm wide and runs the full height of the part. Withi...
pipe_id = 56.0; pipe_length = 660.0; element_od = pipe_id - 4; base_height = 5; element_length = 65 + 5 + base_height; front_aperture_width = 40; rounded = 2; module battery_18650() { cylinder(r=18000/1000/2, h=650/10, $fn=128); } module peg() { cylinder(r1=5, r2=4, h=5, $fn=36); } module element_body...
glb/cad_b141247a8615.glb
Create a flyball-timing LED element holder designed to fit a pipe with a 56mm diameter. The main body is a semi-cylindrical shell with a total height of 65mm, consisting of a 5mm thick base and a 60mm tall extruded wall. The outer radius of the main body is 27.8mm. On the top surface, add two small cylindrical pegs wi...
pipe_id = 56.0; pipe_length = 660.0; base_height = 5; element_length = 60 + base_height; front_aperture_width = 40; rounded = 2; module aluminium_t_piece() { union(){ translate([9,-20,0]) cube([2, 20, 50]); cube([20, 2, 50]); } } module mosfet_breakout() { rotate([90,0,0]) ...
glb/cad_ef798aa44482.glb
Create a flyball-timing element consisting of a main body and a base. Start with a cylindrical base with a radius of 27.8mm and a height of 3.6mm. Subtract two rectangular blocks from this base, each measuring 20mm by 50mm, centered at x=16mm and x=-36mm respectively, and extending through the height of the base. On t...
pipe_id = 56.0; pipe_length = 660.0; base_height = 3.6; element_length = 16; front_aperture_width = 40; rounded = 2; module peg() { cylinder(r1=5, r2=4, h=5, $fn=36); } module onion2() { cube([46, 70, 20]); } module element_body() { translate([0,0,0]){ $fn=50; minkowski(){ ...
glb/cad_6c31955daecb.glb
Create a flyball-timing element holder. Start with a solid cylinder that has a radius of 25mm and a height of 5mm to serve as the base. On top of this base, add a linear extrusion with a height of 25mm. The profile of this extrusion is a circle with a radius of 25mm, from which a central rectangular slot and two side h...
pipe_id = 56.0; pipe_length = 660.0; element_od = pipe_id - 4; base_height = 5; element_length = 25; rounded = 2; module element_body() { translate([0,0,0]){ $fn=50; minkowski(){ union(){ difference(){ circle(r=element_od/2.0 - 2, $fn=360); ...
glb/cad_e49feaf3596e.glb
Create a flyball-timing cap by starting with a solid cylinder 66mm in diameter and 24mm high. From this main body, remove several concentric cylindrical volumes to create a hollowed-out interior. First, remove a central cylinder with a 4.2mm radius that extends from the bottom through the top. Next, create a large annu...
pipe_od = 60.0; pipe_id = 56.0; cap_od = 66.0; module cap(){ difference(){ cylinder(r=cap_od / 2, h=24, $fn=180); union(){ difference(){ translate([0,0,6]) cylinder(r=pipe_od / 2 + 0.2, h=25, $fn=180); translate([0,0,6]) ...
glb/cad_855ac638df8c.glb
Create a flyball-timing led element. Start with a main cylindrical base that has a radius of 26mm (half of the 52mm element outer diameter) and a height of 5mm. From this base, remove several cylindrical volumes to create holes and recesses. First, create two large vertical holes with a radius of 4.2mm, positioned sy...
pipe_id = 56.0; pipe_length = 660.0; element_od = pipe_id - 4; base_height = 5; element_length = 5 + base_height; front_aperture_width = 40; rounded = 2; module battery_18650() { cylinder(r=18000/1000/2, h=650/10, $fn=128); } module peg() { cylinder(r1=5, r2=4, h=5, $fn=36); } module led_element() { ...
glb/cad_31ab1589f3f7.glb
Create a flyball-timing LED element holder. Start with a cylindrical base 5mm high with a diameter of 52mm. Extrude a main body upward from this base to a total height of 65mm. The main body's cross-section is a circle with a 26mm radius, but it is modified by removing several geometric shapes. First, remove a centra...
pipe_id = 56.0; pipe_length = 660.0; element_od = pipe_id - 4; base_height = 5; element_length = 60 + base_height; front_aperture_width = 40; rounded = 2; module element_body() { translate([0,0, 65]){ $fn=50; minkowski(){ union(){ difference(){ cir...
glb/cad_c302cc53d9bd.glb
Create a cold stage for ice nucleation by designing a central body that is a blend of a cylinder and a sphere. Start with a cylinder that has a bottom diameter of 10mm, a top diameter of 15mm, and a height of 8mm, centered on the origin. Apply a 3mm spherical fillet to all edges to soften the geometry. Remove the botto...
$fn=60; difference() { minkowski() { cylinder(d2=15,d1,10,h=8,center=true); sphere(d=3); } translate([0,0,-8]) cube([30,30,10],true); translate([0,0,-15]) { nut(8.15); translate([0,0,12]) cylinder(d=5,h=10,center=true); } } module nut(size){ $fn=6; translate...
glb/cad_bd2f0809f245.glb
Create a Peltier clamp for an ice-nucleation cold stage. Start with a base plate formed by a rounded rectangle with a width of 170mm (85*2 minus 2*5mm radius corners), a depth of 120mm (60*2 minus 2*5mm radius corners), and a thickness of 1.5mm. Add a cylindrical base with a diameter of 60mm and a height of 3mm, cent...
$fn=120; tol1=1; th=2; cube1_len=92; cube1_hgt=10; cyl2_rad=106/2; cyl2_hgt=cube1_hgt+tol1; cyl1_rad=cyl2_rad+th; cyl1_hgt=cube1_hgt; cyl2_rad2=92/2; cyl1_rad2=cyl2_rad2+th; rad_curve=5; hole_rad=2.25; hole_hgt=cube1_hgt+tol1; hole_sep=82; cyl_pelt_rad=70; cyl_pelt_holes=102/2.; oring_pelt_rad=40/2; pelt_cutout_rad...
glb/cad_ae8e6840e36c.glb
Create a cold stage for ice nucleation experiments. Start with a central rectangular block measuring 15mm wide, 120mm long, and 5mm thick, centered on the origin. At the two ends of this block, centered 33mm from the middle along the length, add two cylinders with a diameter of 25mm and a height of 5mm, centered on the...
$fn=60; difference() { union() { cube([15,120,5],true); translate([0,2.5,0]) { translate([0,33,0]) cylinder(d=25,h=5,center=true); translate([0,-33,0]) cylinder(d=25,h=5,center=true); } translate([0,60-2.5,-2-2.5-1]) cube([15,5,4+2],true); translate([0...
glb/cad_a8500a203cd9.glb
Create a cold stage for ice nucleation investigations. Start by constructing a hollow square frame with outer dimensions of 55mm by 58mm and a height of 2mm. The walls of this frame should be rounded with a 3mm radius. The interior of the frame is a rectangular void measuring 50mm by 53mm, leaving a wall thickness of a...
COMPARTMENTS=1; ORING_ONLY=2; version1=ORING_ONLY; $fn=60; union() { difference() { minkowski() { cube([55-3,58-3,2.],true); cylinder(d=3,h=2.,center=true); } minkowski() { cube([50-1,53-1,5.1],true); cylinder(d=1,h=2.5,center=true); ...
glb/cad_f256b6e6928e.glb
Create a cold stage for ice nucleation investigation by designing a thin, rectangular frame with rounded corners. Start with a solid rectangular block measuring 187.2mm in length, 104.9mm in width, and 1.5mm in height, centered on the origin. Apply a fillet of 6mm to all vertical edges of this block. From the center of...
side=1; wid1=110.9; if (side==1) { difference() { touch_screen(); translate([100,0,0]) cube([200,200,200],true); } } else if (side==2) { difference() { touch_screen(); translate([-100,0,0]) cube([200,200,200],true); } } module touch_screen() { difference() { ...
glb/cad_d2ba1b9bd9c0.glb
Create an ice-nucleation-cold-stage clip with a flap. Start by creating a C-shaped ring with an inner diameter of 5.5mm and a wall thickness of 1.5mm. The ring should have an opening angle of 110 degrees. Extrude this profile to a total height of 8.5mm. Attached to the side of this ring, add a flat rectangular flap t...
part = "flap"; thickness = 1.5; cable_diameter = 5.5; opening_angle = 110; rod_diameter = 7.5; screw_diameter = 4; chamfer = 0; twist_angle = 90; height = 0; screw_position = 0; flap_length = 0; opening_rounding_radius = 0; twisted_clip_cut = "auto"; $fn=32; real_opening_rounding_radius = (opening_rounding_...
glb/cad_e579827649da.glb
Create a parametric butt hinge consisting of two rectangular leaves joined by a central knuckle joint. Each leaf should be 32.5mm wide, 60mm long, and 5mm thick. For the knuckle joint, create a series of alternating interlocking cylinders with an outer radius of 10mm. The joint should consist of 7 knuckles in total. O...
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; C_FEMALE = C_CONSTANT + 0; C_MALE = C_CONSTANT + 1; SCG_OVERLAP = C_CONSTANT + 0.01; C_NEGATIVE = C_CONSTANT + 0; C_POSITIVE = C_CONSTANT + 1; C_CIRCULAR = C_CONSTANT + 0; C_SQUARE = C_CONSTANT + 1; C_HEXAGONAL = C_CONSTANT + 2; C_FUNCTION_LINEAR = C_C...
glb/cad_edd961bb6fe1.glb
Create a parametric butt hinge consisting of two rectangular leaves joined by a central knuckle joint. Each leaf should be 17.5mm wide, 60mm long, and 4mm thick. The central joint is formed by a series of interlocking cylindrical knuckles with an outer radius of 8mm. Create 5 knuckles in total. The female leaf must in...
C_CONSTANT = 0 + 0; C_NONE = C_CONSTANT + 0; C_FEMALE = C_CONSTANT + 0; C_MALE = C_CONSTANT + 1; SCG_OVERLAP = C_CONSTANT + 0.01; C_NEGATIVE = C_CONSTANT + 0; C_POSITIVE = C_CONSTANT + 1; C_CIRCULAR = C_CONSTANT + 0; C_SQUARE = C_CONSTANT + 1; C_HEXAGONAL = C_CONSTANT + 2; C_FUNCTION_LINEAR = C_C...
glb/cad_664aa233a73e.glb
Create a 4 channel dj mixer panel by starting with a rectangular slab that is 10.774mm wide, 7.954mm high, and 0.04mm thick. At each of the four corners, create a circular hole with a diameter of 2.5mm. These holes should be positioned 5mm from the side edges and 15mm from the top and bottom edges. Specifically, place ...
module panel(w,h,t) { cube([t,w,h]); } module drill(x,y,d) { translate([0,x,y]) { rotate([0,90,0]) { cylinder($fn=70,h=4,r1=d/2, r2=d/2,center=true); } } } module cutout(x0,y0,w,h) { translate([-2,x0,y0]){ cube([4,w,h]); } } mm = 0.0393701; w=1...
glb/cad_af06ae88d832.glb
Create a rectangular panel for a 4 channel dj mixer with dimensions of 10.774mm in width, 1.5748mm in height, and 40mm in length. Remove a large circular hole with a diameter of 11.2mm, centered at a width of 9.791488mm and a height of 0.623mm. Additionally, remove eight smaller circular holes, each with a diameter of ...
module panel(w,h,t) { cube([t,w,h]); } module drill(x,y,d) { translate([0,x,y]) { rotate([0,90,0]) { cylinder($fn=70,h=4,r1=d/2, r2=d/2,center=true); } } } module cutout(x0,y0,w,h) { translate([-2,x0,y0]){ cube([4,w,h]); } } mm = 0.0393701; w=1...
glb/cad_4b4292c553e5.glb
Create a gravestone cookie cutter consisting of two main parts: a top stone and a supporting base. For the top stone, create a shape that is 30mm wide and 7mm thick. The top of the stone is a semi-cylinder with a 30mm diameter, which blends into a rectangular body. The total height of the stone is 50mm. At the bottom...
use<../common/cutterize.scad> export = "base"; $fn=500; wallThickness=0.8; stoneThickness=7; stoneWidth=30; baseThickness=10; tabsWidth=stoneWidth/3; barThickness=1; if (export == "topStone") { translate([0,0,stoneThickness/2+wallThickness]) rotate([0,180,0]) topStone(); } else if (export == "base") { translate...
glb/cad_9ba08b0dfdb6.glb
Create a recycling symbol for plastic identification. The overall symbol is composed of three identical arrow-shaped segments arranged in a triangular loop, rotated 120 degrees from each other around a central point. Each segment consists of a wide, rounded triangular form with a rectangular cutout and a small triangul...
demo=1; type="ABS"; size=20; T=1; use <../writescad/Write.scad> if(demo) color("SteelBlue") { recycling_symbol("ABS", 30, 2, [-25,45,0]); recycling_symbol("PLA", 30, 2, [25,45,0]); recycling_symbol("PP", 20, 2, [-35,0,0]); recycling_symbol("PS", 20, 2, [0,0,0]); recycling_symbol("OTHER", 20, 2, [35,0,0]); } e...
glb/cad_c9497feb4975.glb
Create a positive mold in the shape of a roller hockey player meeple. The overall size of the shape should be 74mm. The mold must have a total height of 15mm. To ensure a smooth transition from the base to the vertical walls, apply a rounding fillet to the edges with a rounding factor of 0.3 and use 30 fillet steps for...
use <../common/molderize.scad> use <../common/cutterize.scad> use <../common/ciy_logo.scad> use <../libs/recycling_symbol_library/recycling_symbol.scad> scale([1,1,1]){ export = "mold"; $fn = 1000; original_size = 200; cutter_height = 15; cutter_thickness = 1; cutter_size = 70; cutter_scale = cutter...
glb/cad_60bf20fb253b.glb
Create a grid of sixteen square molds for Minecraft-style blocks. The overall structure is a 4x4 array of open-topped cubes. Each individual cell has an outer dimension of 25mm by 25mm and a height of 25mm. The walls of these cells, as well as the dividers between them, must be 1mm thick. To construct this, create a ...
scale([1/1,1/1,1/1]){ block_e = 25; nb_by_line = 4; walls_t = 2; block_mold(block_e, nb_by_line, walls_t); } module block_mold(block_e, nb_by_line, walls_t) { center_xy = (nb_by_line/2 - 1/2)*block_e; translate ([-center_xy, -center_xy, 0]) for (i_line = [0:nb_by_line-1]) { for (i_col = [0:nb_by_l...
glb/cad_fda8f4199538.glb
Create a funnel for cooking by constructing a hollow vessel consisting of a vertical tube and a conical top. Start by creating a cylinder with a radius of 2.4mm and a height of 20mm. Scale this cylinder by a factor of 1.5 along the Y-axis to create an elliptical profile. Position a cone on top of this base, starting 3m...
$fn=100; wallThickness=0.8; tubeRadius=2.4; tube_height = 20; coneRadius = 20; cone_height = 35; cone_z_pos = tube_height-3; difference(){ union () { scale ([1, 1.5, 1]) cylinder(tube_height,tubeRadius,tubeRadius); translate([0,0,cone_z_pos]){ difference(){ cylinder(cone_height,tubeRadius,coneR...
glb/cad_16bd6107810a.glb
Create a gravity-defying cake support consisting of a large circular plate with a central stabilizing tube. The plate should be a flat cylinder with a diameter of 160mm and a thickness of 2mm. Centered on top of this plate, add a vertical hollow tube with an outer diameter of 7.4mm and a wall thickness of 1mm, extendin...
use <../common/ciy_logo.scad> use <../libs/recycling_symbol_library/recycling_symbol.scad> scale([1,1,1]){ export = "big_plate"; $fn = 1000; axis_d = 6; t_h = 45; t_d = axis_d+0.4; t_t = 1; sp_t = 2; sp_d = 64; spt_h = 33; bp_t = 2; bp_d = 160; bpt_h = 36; if (export == "tube") { c...
glb/cad_b1bcddfb5e7a.glb
Create a tangram cookie cutter. The main body is a square frame with an outer width of 100mm and a height of 15mm. The walls of the cutter are 1.2mm thick. Inside the square frame, create internal walls that divide the space into the classic seven tangram shapes: two large right triangles, one medium right triangle, tw...
use <../common/ciy_cookie_cutter_base.scad> scale([1/1,1/1,1/1]){ $fn = 30; tangram_cutter(); } module tangram_cutter (cutter_height = 15, cutter_skin = 1.2, width = 100) { cutter_position_x = -width*0.195; cutter_position_y = -width*(1-0.195); translate ([cutter_position_x, cutter_position_y, 0]) l...
glb/cad_a7e02cfede1f.glb
Create a cookityourself circular basis. Start by creating an elliptical base with a height of 2mm, a radius of 30mm, and an x-axis scale of 1.2. On the top surface of the base, add a raised "CIY" logo with a height of 2.5mm. Position this logo at an angle of 180 degrees, ensuring it is placed with an eccentricity tha...
use <ciy_logo.scad> use <../libs/recycling_symbol_library/recycling_symbol.scad> scale([1/1,1/1,1/1]){ circular_basis( base_radius = 30, base_x_scale = 1.2, logo_size = 5, plain_logo_angle_degree = 180, recycling_type = "PLA", recycling_angle_degree=45, hollo...
glb/cad_eca1ce6364ad.glb
Create a shuriken-style spinner with a total height of 11mm. At the center, create a cylindrical ring with an inner diameter of 22mm and an outer diameter of 24mm and a height of 7mm. Surrounding this center, add a wider cylindrical collar with an outer diameter of 30mm and a height of 7mm, but remove the central 22mm ...
use <../common/round_edges.scad> scale([1/1,1/1,1/1]){ $fn = 100; r_adult = 45; r_child = 35; spinner_shuriken(radius = r_child); } module spinner_shuriken (radius) { bbearing_d = 22; bbearing_h = 7; color ("blue") linear_extrude (bbearing_h) difference (){ circle (d=bbearing_d+2); ...
glb/cad_6e30c27cb0a5.glb
Create a pokeball-shaped spinner button. The object is centered around a vertical axis and consists of a tiered cylindrical structure. Start by creating a central base cylinder with a diameter of 8mm and a height of 6.5mm. On top of this base, add a wider cylindrical disc with a diameter of 22mm and a height of 2mm. ...
scale([1/1,1/1,1/1]){ export = "button"; $fn = 100; r_adult = 45; r_child = 35; export_r = r_child; bb_int_d = 8; bb_ext_d = 22; bb_support_dout = bb_ext_d+4; bb_support_h = 15; weight_margin = 4; black_center_h = export_r*0.2; if (export == "preview") { spinner_pokeball(export_r, bb_...
glb/cad_b8704fa19c55.glb
Create a cookie cutter shaped like an Ariane 5 rocket. The model consists of a flat base and a vertical cutting wall. First, design the rocket profile. The main body is a rectangle 20mm wide and 60mm high. The top is a rounded ogive nose cone 20mm wide and 30mm high. The bottom section features a 20mm wide, 10mm high ...
use <../common/ciy_cookie_cutter_base.scad> use <../common/cutterize.scad> use <../common/round_edges.scad> scale([1/1,1/1,1/1]){ $fn = 30; ariane5_cutter(); } module ariane5_cutter (cutter_height = 15, cutter_skin = 1, rocket_diameter = 20, rocket_height = 100*0.8) { base_height = 2; cutter_positi...
glb/cad_9bdef61b13f8.glb
Create a 3D logo for "cookityourself" consisting of the characters "C", "i", and "Y" and a small circle, all extruded to a height of 5mm. The characters should use a bold sans-serif font, specifically Cantarell Bold. Position the "C" centered at the start, with a size of 4.5 units. Place the "i" slightly to the right...
ciy_logo(logo_size = 10, logo_height = 5, logo_orientation = 10); translate([10,10,0])color("green")ciy_logo_2d(logo_size = 10, logo_orientation = 10); module ciy_logo_2d(logo_size = 5, logo_orientation = 0) { rotate ([0, 0, logo_orientation]) scale ([logo_size/5, logo_size/5 , 1]) { translate([-3.5,0,...
glb/cad_64034e0b4dbb.glb
Create a solid cylinder with a total height of 20mm and a radius of 10mm. The cylinder should feature rounded, filleted ends on both the top and bottom faces. Each fillet must be constructed as a smooth transition with a radius of 5mm, achieved by stacking 10 concentric layers of varying diameters that curve from the o...
extrude_n_fillet_both(20, 5, 10) circle(10); function filletDepth(radius, step_height, step) = radius * cos(asin(step_height * step / radius)); module extrude_n_fillet_top (height, radius, steps) { linear_extrude(height-radius) children(); d= radius/steps; for (i = [0:steps]) { x = filletDepth(radius, d,...
glb/cad_dacb885f3d44.glb
Create a cookie cutter shaped like a stylized mouse head. The main cutting edge consists of a large central circle with a radius of 22mm and two smaller circles for ears, each with a radius of 13mm, positioned symmetrically atop the main head. The walls of the cutter should be 1mm thick and 15mm high. The ears are slig...
use <../common/ciy_cookie_cutter_base.scad> scale([1/1,1/1,1/1]){ mickey_head_cutter( cutter_height = 15, head_radius = 23, ear_radius = 14, skin = 1, ear_extentricity_correction = 2 ); } module mickey_head_cutter (cutter_height, head_radius, ear_radius, skin, ear_exten...
glb/cad_02122ee79930.glb
Create a wristrest by starting with a solid rectangular base platform 100mm wide, 80mm deep, and 20mm high. The platform should be constructed as a wedge-like volume where the height is 10mm at the base and slopes upward to 20mm at the rear. From this solid, remove a central carved-out mold to create a concave dip for ...
$fn=10; WIDTH = 100; DEPTH = 80; HEIGHT = 20; RoundedWristRest(); module Mold() { angle = 90+(HEIGHT*0.5)+(-0.020*DEPTH)+(-0.010*WIDTH); translate([WIDTH/2,DEPTH/2,HEIGHT+(0.01*DEPTH)]) rotate([angle]) scale([((DEPTH/HEIGHT)*0.6)*(WIDTH*0.01*2),1,2]) cylinder(h = DEPTH*1.5, r1 =...
glb/cad_1c848f6f6083.glb
Create a clock hand replacement model with a thickness of 0.84mm. Start with a central snap-fit hub consisting of a cylinder 7mm in diameter with a concentric hole 3.15mm in diameter bored through the center. From this hub, extend three identical arms spaced 120 degrees apart. Each arm begins with a rectangular base 2....
_font = "Georgia:style=Bold"; $fn = 200; klonk_h = 0.84; DST = false; module centerpiece() { difference() { cylinder(h=klonk_h, d=7.00, center=true); cylinder(h=klonk_h*2, d=3.15, center=true); } } module hourHand(_text, _time) { rotate([0, 0, _time*30]) { translate([0, 7, 0]) { union() { ...
glb/cad_6d88dd5b58d3.glb
Create a FOSSCAD model consisting of a flat base and a vertical bolt. Start by constructing a base plate that is 37mm long, 5.5mm wide, and 5mm high. The base should have rounded ends, formed by cylinders with a 2.75mm radius at both the start and end of the length. On the top surface of this base, remove a rectangular...
include <polyScrewThread.scad> PI=3.141592; $fn=100; flat_height=5; flat_width=5.5; flat_lenght=37-flat_height; flat_tapper_height=2; flat_tapper_offset_mag_side=flat_height; flat_tapper_offset_trigger_side=14; flat_tapper_offset_trigger_side_lenght=9; thread_height=10; bolt_lenght=30; bolt_diam=5; bolt_offset=5; mod...
glb/cad_004149564025.glb
Create a FOSSCAD model consisting of a central cylindrical body with an integrated threaded hole. Start by creating a solid cylinder with a radius of 3.5mm and a height of 10mm. From the center of this cylinder, remove a threaded hole with a diameter of 5.5mm and a height of 10mm. Additionally, create two smaller cylin...
include <polyScrewThread.scad> PI=3.141592; $fn=100; flat_height=5; flat_width=5.5; flat_lenght=37; flat_tapper_height=2; flat_tapper_offset_mag_side=flat_height; flat_tapper_offset_trigger_side=14; flat_tapper_offset_trigger_side_lenght=9; thread_height=10; bolt_lenght=30; bolt_diam=5; bolt_offset=5; bolt_hole_diam...
glb/cad_4c968d344377.glb
Create a vertical bearing holder by starting with a cylinder that has a radius of 12.5mm and a height of 58mm. Center this cylinder on the origin. Remove a smaller concentric cylinder from the center with a radius of 9.6mm and a height of 62mm to create a hollow sleeve. To allow for the insertion of a bearing, cut a ...
use <polyholes.scad> bearing_diameter = 19; module horizontal_bearing_base(bearings=1){ translate(v=[0,0,6]) cube(size = [24,8+bearings*25,12], center = true); } module horizontal_bearing_holes(bearings=1){ cutter_lenght = 10+bearings*25; one_holder_lenght = 8+25; holder_lenght = 8+bearings*25; difference(){ ...
glb/cad_5cc29bce115e.glb
Create a tiskarna X-end idler. Start with a base block and remove a series of holes and pockets to form the geometry. Create two primary vertical bearing holes. At each hole location, remove a cylinder with a radius of 5.5mm and a height of 5mm. Within these same locations, remove a smaller concentric cylinder with a...
use <x-end.scad> use <bearing.scad> use <polyholes.scad> module x_end_idler_holes(){ x_end_holes(); translate([0,3.5,0]){ translate(v=[0,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 80, r=1.8, $fn=30); translate(v=[1.5,-22,30.25]) rotate(a=[0,-90,0]) cylinder(h = 10, r=3.1, $fn=30); translate(v=[-2...
glb/cad_84bc68cd5727.glb
Create a tiskarna X-axis end effector base. Start with a main rectangular block measuring 17mm wide, 39mm deep, and 58mm high, centered on the X and Y axes. At the bottom of the block, create a cylindrical nut trap with a height of 8mm and a radius of 10mm, using a 25-facet resolution. Within this trap, center a hexag...
use <bearing.scad> use <polyholes.scad> rod_distance = 45; module x_end_base(){ height = 58; translate(v=[-15,-7,height/2]) cube(size = [17,39,height], center = true); vertical_bearing_base(); translate(v=[0,-19,0]) poly_cylinder(h = 8, r=10, $fn=25); translate(v=[-6,-10.6,10]) rotate([0,0,48.2]) cube(size = [...
glb/cad_bf94f2767497.glb
Create a Z axis bottom holder consisting of two mirrored symmetrical parts. For each part, start with a base composed of three rectangular plates: one measuring 8x49x41mm, one measuring 30x4x22mm, and a larger base plate of 50x52.5x5mm. Modify the geometry by removing several angular sections. Create two 30x30x51mm c...
module z_bottom_base(){ translate([0,-1.5,0]) cube([8,49,16+25]); translate([0,-5,0]) cube([30,4.01,22]); translate([0,41.5,0]) cube([30,6.01,22]); translate([0,-5,0]) cube([50,52.5,5]); } module z_bottom_fancy(){ translate([0.5,-2.5,0]) rotate([0,0,-45-180]) translate([-15,0,-1]) cube([30,30,51]); translate([0...
glb/cad_41b821cae4e1.glb
Create an Arduino timer model starting with a main rectangular box measuring 95mm by 70mm with a height of 25mm. Inside this box, place a battery block measuring 50mm by 36mm by 12mm, positioned against the left wall and shifted toward the back. Centered on the top surface, add an LCD screen assembly consisting of two ...
lcd_size=[38, 56, 11.2]; battery_size=[50, 36, 12]; box_size=[95, 70, 25]; board_size=[lcd_size[0] * 2 + 1, box_size[1]-5, 3]; knob_h=15; knob_r=12.5; encoder_size=[15, 15, 15]; buzzer_r=8; buzzer_h=10; translate([-box_size[0]/2, box_size[1]/2 - battery_size[1], 0]) { color("black", 0.2) cube(battery_size); } tr...
glb/cad_d6aa5ba1d1c9.glb
Create a wall mounted dock for a phone. Start with a main outer hull that is a cylinder with a radius of 92mm and a height of 25mm. Inside this hull, carve out a central rectangular cavity to hold a phone that is 80mm wide, 155mm high, and 20mm thick. This cavity should be centered and leave a 5mm wall padding around...
phone_width = 80; phone_height = 155; phone_thickness = 20; coord_width = 6; usb_connector_width = 14; usb_connector_height = 12; usb_connector_thickness = 7; hook_width = 22; hook_height = 72; hook_min_thickness = 10; hook_max_thickness = 30; hook_overhang = hook_height/2 + hook_width/2; wall_padding = 5; coord_inl...
glb/cad_862f9ebd41c9.glb
Create a wall-mounted dock with a total width of 80mm, height of 100mm, and thickness of 20mm. The main body is a rectangular block with a 5mm padding around the edges. Carve out a central rectangular cavity that is 80mm wide and 80mm high, leaving a 20mm thick wall at the bottom. On the front face, create a beveled ...
width = 80; height = 100; thickness = 20; padding = 5; front_bevel_thickness = 4; coord_width = 7; coord_connector_width = 15; coord_connector_height = 12; coord_connector_thickness = 8; letter_indent_amount = 3/4 * front_bevel_thickness; left_letter = "R"; right_letter = "S"; module basic_mount_outline () { dif...
glb/cad_31da3388f26e.glb
Create a rectangular block measuring 15mm wide, 60mm long, and 25mm high. At each end of the block, centered 6.5mm from the short edges and 7.5mm from the long edges, create a vertical blind hole 15mm deep with a diameter of 9mm. Within each of these holes, add a narrower concentric centering hole with a diameter of 2m...
difference(){ cube([15,60,25]); translate([7.5,6.5,0]) cylinder(d1=9,d2=9,h=15); translate([7.5,6.5,14]) cylinder(d1=2,d2=2,h=15); translate([7.5,6.5,17]) cylinder(d1=12,d2=12,h=15); translate([7.5,60-6.5,0]) cylinder(d1=9,d2=9,h=15); translate([7.5,60-6.5,14]) cylinder(d1=2,d2=2,h=15); ...
glb/cad_6d6efed5a7ed.glb
Create a 3D model of a small container consisting of a hollowed cylinder and a conical cap. First, construct a cylinder with a diameter of 7mm, a height of 15mm, and a 15-sided polygonal cross-section. Remove a concentric inner cylinder from this shape with a diameter of 4.8mm and the same 15mm height to create a thin-...
union(){ difference(){ cylinder(d1=7, d2=7, h=15,center=true, $fn=15); cylinder(d1=4.8, d2=4.8, h=15,center=true, $fn=15); } translate([0,0,15/2+5/2]) cylinder(d1=7,d2=2,h=5,center=true); }
glb/cad_458e0f5bf4a4.glb
Create a 3D model for a roller blind clip. Start by creating a rectangular base block that is 50mm wide, 25mm deep, and 6mm thick. From this base, remove a complex cutout to create a slot. This cutout begins as a rectangular volume measuring 25mm wide, 20mm deep, and slightly more than 6mm thick to ensure it passes com...
hm = 0; rm = 0; g = 50; h = 25; i = 1.2; a = 25-2*rm; b = 25-2*rm; c = 6-2*hm; d = 25+2*rm; e = 20+2*rm; f = c + 0.1; hc = c + 0.1; dc = 9+2*rm; $fn=15; minkowski(){ union(){ translate([-g/2+a/2,0,-c/2]) cube([g,h,i],center = true); difference(){ cube([a,b,c], center = true); ...
glb/cad_ccfe6f57a6ae.glb
Create a holder for a roller blind rod consisting of a thin base plate and a vertical support block. Start with a rectangular base plate measuring 50mm in length, 25mm in width, and 1mm in height. Centered on this plate, add a rectangular support block that is 25mm wide, 25mm deep, and 5mm high. Within this support b...
hm = 0; rm = 0; g = 50; h = 25; i = 1; a = 25-2*rm; b = 25-2*rm; c = 5-2*hm; d = 25+2*rm; e = 20+2*rm; f = c + 0.1; hc = c + 0.1; dc = 9+2*rm; $fn=15; minkowski(){ union(){ translate([+g/2-a/2,0,-c/2]) cube([g,h,i],center = true); rotate([0,180,0])difference(){ cube([a,b,c], cent...
glb/cad_cdc95b37d57e.glb
Create a 3D model consisting of two identical mirrored components positioned side-by-side. For each component, start with a cube measuring 10mm on all sides, centered on its local origin. From this cube, remove a rectangular slot by centering a smaller rectangular volume that is 5mm wide, 10.1mm long, and 1.8mm high. P...
difference(){ cube([10,10,10], center=true); translate([2.6,0,2]){ cube([5,10.1,1.8],center=true); } } translate([-5,0,0]){ mirror([-1,0,0]){ difference(){ cube([10,10,10], center=true); translate([2.6,0,2]){ cube([5,10.1,1.8],center=true); ...
glb/cad_5b9be74da145.glb
Create a rectangular block measuring 20mm wide, 60mm long, and 25mm high. At both the front and back ends, centered 12.5mm from the side edge and 6mm from the end faces, remove a cylindrical hole 9mm in diameter and 15mm deep. Within each of these holes, remove a smaller concentric cylinder 3mm in diameter starting at ...
dcyl = 39; union(){ difference(){ cube([20,60,25]); translate([12.5,6,0]) cylinder(d1=9,d2=9,h=15); translate([12.5,6,14]) cylinder(d1=3,d2=3,h=15); translate([12.5,6,17]) cylinder(d1=12,d2=12,h=15); translate([12.5,60-6,0]) cylinder(d1=9,d2=9,h=15); translate([...
glb/cad_6bf870ffe538.glb
Create a cube with dimensions of 10mm x 10mm x 10mm, centered on the origin. From this main volume, remove a smaller rectangular prism to create a slot. This cutout should measure 5mm in width, 10.1mm in length, and 2mm in height. Position the cutout so its center is located at x=2.6mm, y=0mm, and z=2mm relative to the...
difference(){ cube([10,10,10], center=true); translate([2.6,0,2]){ cube([5,10.1,2.0],center=true); } }
glb/cad_145ea25a0093.glb
Create a Passive Commutator Intan Interface by constructing a rectangular block with overall dimensions of 35mm in width, 40mm in depth, and 28mm in height. Hollow out the center of the block to create a rectangular cavity that is 27mm wide, 32mm deep, and 24mm high, leaving a base thickness of 2mm and wall thicknesses...
$fn=400; translate([0,-5,1]) { difference() { cube([35,40,2],center=false,$fn=400); { } } } translate([0,-5,1]) { difference() { cube([35,40,26],center=false,$fn=200); { translate([4,4,2]) { cube([27,32 ,24],center=false,$fn=200); } ...
glb/cad_9f0ff155b359.glb
Create a Passive Commutator Intan Interface consisting of a series of stacked, concentric hollow cylinders centered on a single vertical axis. All cylinders have a consistent internal bore diameter of 3.5mm. Starting from the base, create a thin circular flange with an outer diameter of 4mm and a height of 0.4mm. Above...
translate([0,0,3.785]) { difference() { cylinder(1.3,2.45,2.45,$fn=200); cylinder(1.3,1.75,1.75,$fn=200); } } translate([0,0,5.085]) { difference() { cylinder(0.2,4,4,$fn=100); cylinder(0.2,1.75,1.75,$fn=200); } } translate([0,0,5.285]) { difference() { ...
glb/cad_02d278f0ca17.glb
Create a ramrod end piece by constructing a composite body and removing a spherical section and a threaded hole. Start with a base cylinder 2.5mm thick with a 25mm diameter. Above this base, create a conical section that transitions from the 25mm base diameter up to a top diameter of 24mm. Atop this cone, place a cylin...
use <misc/threads.scad>; thr_minor_d = 17; thr_major_d = 20; thr_l = 23; thr_p = 5; thr_w = 4; radius = 80; barrel_d = 50; thickness = 2.5; thr_h = thr_major_d - thr_minor_d; conc_offset = -sqrt(pow(radius, 2) - pow(barrel_d / 2, 2)); conc_depth = radius + conc_offset; $fn = 100; module body_shape() union() { ...
glb/cad_c2c313ffd0c0.glb
Create a card holder base by starting with a rounded rectangular block. The block should have a width of 54.4mm, a height of 25mm, and a total thickness of 11mm, with all vertical corners rounded to a radius of 2mm. Carve out a large rectangular void from the top of the block, leaving a 3mm margin from the edges. Wit...
$fn = 100; row_count = 10; column_count = 2; slope_angle = 22.5; edge_radius = 2; edge_margin = 3; slot_length = 24.2; slot_width = 2.2; slot_depth = 8; slot_spacing = 2; vertical_step = 1; module rounded_cube(xyz, r) { hull() { translate([r, r, 0]) cylinder(xyz.z, r=r); translate...
glb/cad_e36fd604bd78.glb
Create a model consisting of a square base and a vertical cylinder. Start by creating a cube with a width and depth of 12mm and a height of 10mm. Centered on top of this base, place a cylinder with a radius of 5mm and a height of 75mm. To finish the piece, remove a horizontal cylindrical section from the top of the mod...
height = 75; radius = 5; rod_radius = 4.5; base_width = 12; base_height = 10; $fn = 50; difference() { union() { cube([base_width, base_width, base_height]); translate([base_width / 2, base_width / 2]) cylinder(r=radius, h=height); } translate([base_width / 2, base_width, height + rod_radius / 2]...
glb/cad_a02de0f7b91a.glb
Create a hard drive mounting plate with a thickness of 3mm. The overall plate is composed of six repeating drive mount sections stacked vertically. Each section is a rectangle 146mm wide and 35mm high (comprising a 25mm drive thickness and 10mm of spacing). Within each of these six sections, create three circular mou...
$fn = 100; hdd_thickness = 25; hdd_spacing = 10; hdd_length = 146; hdd_count = 6; hdd_hole_diameter = 2.70; hdd_mount_thickness = 3; hdd_hole_0_offset_x = 15.40; hdd_hole_1_offset_x = 76.00; hdd_hole_2_offset_x = 117.50; hole_margin = 10; corner_radius = 5; module hdd_mount() { difference() { square([hdd_leng...
glb/cad_2176bcda6251.glb
Create two identical mirrored components positioned 12mm apart. For each component, start with a base block that is 12mm wide and 10.4mm deep. On the top surface, create a wedge-shaped profile with a 50-degree angle and a height of 10mm. Within the main body, incorporate a recessed inset area measuring 29.9mm by 35.5...
block_angle_height = 10; block_angle_measure = 50; block_angle_chamfer = 45; block_inset_length_0 = 29.9; block_inset_length_1 = 35.5; block_inset_depth = 10.4; block_inset_width = 12; block_burr_radius = 1.5; block_burr_depth = 0.8; block_sink_depth = 0.4; block_sink_margin_sides = 4; block_sink_margin_top = 2; modul...
glb/cad_2cf6900a70eb.glb
Create a curved hook by extruding a specific crescent-like profile to a total height of 84mm. First, define the base profile as the intersection of two circles, each with a diameter of 60mm, where the centers are offset from each other by 30mm along the Y-axis. To create the wall thickness, remove a smaller concentric ...
hook_r = 60; hook_l = 80; hook_t = 4; hole_d = 4.5; hole_o = 3; $fn = 150; hook(); module base_shape() intersection() { translate([0, hook_r / 4, 0]) circle(d=hook_r); translate([0, hook_r / -4, 0]) circle(d=hook_r); } module extrude_shape() difference() { base_shape(); translate([0, hook_r / 4...
glb/cad_9c8739a99e84.glb
Create a rectangular holder with a total height of 20mm, a width of 65mm, and a length of 140mm. The outer shell should have rounded corners with a radius of 3mm. The base of the holder must be a solid floor with a thickness of 5mm. Carve six identical rectangular slots into the top of the block, arranged in a single...
rows = 6; columns = 1; wallThickness = 5; cornerRadius = 3; slotWidth = 7.1; slotLength = 133.5; holderHeight = 20; $fn = 100; module drawBase(width, length, height) { translate([0, 0, height / 2]) union() { minkowski() { cube([width - cornerRadius * 2, length - cornerRadius * 2, height - ...
glb/cad_234250ceeabf.glb
Create a battery holder consisting of a main shell and a removable cover. For the shell, create a rounded rectangular box with external dimensions of 21mm width, 30.1mm length, and 78.3mm height, using a corner radius of 3mm. Hollow out the center of this box by removing a rectangular volume of 17mm by 26.1mm by 74.3mm...
batt_w = 17; batt_l = 26.1; batt_h = 52.3; shell_r = 3; shell_t = 2; lip_w = 2; lip_h = 4; wire_w = 1.4; wire_s = 5; wire_o = 5; sw_d = 22; sw_r = 4.88; sw_nub_w = 1.4; module round_cube(xyz, r, center=false) { translate(center ? -[xyz[0] / 2, xyz[1] / 2, xyz[2] / 2] : [0, 0, 0]) hull() { translate([r, ...
glb/cad_6d376b8939b3.glb
Create a CPU protector tool consisting of a base and a cover. For the base, create a rounded rectangular block with a total width of 55mm, height of 14.6mm, and depth of 27.5mm. The four vertical corners should have a fillet radius of 3.375mm. Carve out a central rectangular cavity for the PCB, measuring 45mm wide, 4...
part = "cover"; print_part(); cpu_width = 45; cpu_depth = 42.5; cpu_height = 4.6; pcb_height = 1.6; lip_height = 1.1; lip_depth = 2.1; lip_cutout = 0; width_margin = 5; box_width = cpu_width + width_margin * 2; depth_margin = 5; box_depth = cpu_depth + depth_margin * 3; height_margin = 5; box_height = cpu_he...
glb/cad_ae6fb6a61f4c.glb
Create a 3D model consisting of a hexagonal base and a cylindrical top. Start by constructing a hexagonal prism with a flat-to-flat diameter of 8mm and a height of 10mm. Centered on the top face of this hexagon, add a smooth cylinder with a diameter of 6mm and a height of 15mm, extending upwards from the base.
d0 = 6; d1 = 8; l0 = 15; l1 = 10; union() { cylinder(r=d1 / 2, h=l1, $fn=6); translate([0, 0, l1]) cylinder(r=d0 / 2, h=l0, $fn=50); }
glb/cad_453145847224.glb
Create a block for holding arrows. Start with a main body that is a polyhedron with a face size of 12.6mm (the sum of an 8.6mm arrow diameter and 4mm of minimum thickness). The block's height is determined by a 15mm hole depth plus the vertical offset created by the arrow angle. The block's width is calculated as the ...
arrowSpread = 300; arrowLength = 787.4; arrowDiameter = 8.6; holeDepth = 15; minThickness = 2; backInset = 0.35; backInsetScale = 0.8; fudge = 0.001; fw = 0.5; function afn(r) = 180 / asin(fw / (2 * r)); module drawCorner(r, height) { translate([r, r]) rotate([0, 0, 180]) linear_extrude(height) difference() { ...
glb/cad_6de0b90e4913.glb
Create a cube with side lengths of 20mm, 20mm, and 20mm, centered on the origin. From this main volume, remove a smaller cube with side lengths of 10mm, 10mm, and 10mm. Position the smaller cube such that its center is at the origin, effectively carving out a cubic void from one corner of the larger block. Rotate the f...
rotate([0, 0, 270]) difference() { cube([20, 20, 20], center=true); cube([10, 10, 10]); }
glb/cad_83981d0c0b1c.glb
Create a fan shroud for an 80mm fan. Start with a square base plate measuring 80mm by 80mm with a thickness of 3mm. In this base, place four 4.5mm diameter screw holes centered 71.5mm apart from each other. Construct the main shroud body as a hollow hemispherical shell with a wall thickness of 3mm and an outer diamete...
view_mode = "Preview"; quality = 70; fan_size = 80; hole_size = 4.5; hole_spacing = 71.5; shroud_height = 40; shroud_angle = 22.5; shroud_offset = 10; enable_brace = "Yes"; shroud_thickness = 3; $fn = quality; shroud_brace = enable_brace == "Yes" ? true : false; module cylinders(xyz, r, center=false) { ...
glb/cad_24290cf67c65.glb
Create a raspi-cam-lensholder by starting with a rectangular base block measuring 25mm by 24mm with a height of 5mm. Carve out a central rectangular section measuring 22mm by 21mm, starting from a height of 3mm and extending to the top, leaving a 1.5mm wall thickness around the perimeter. Add four cylindrical pillars, ...
include <threads.scad> difference() { union() { difference() { cube([25, 24, 5]); translate([1.5, 1.5, 3]) cube([22, 21, 2]); } translate([23, 2, 0]) cylinder(d=4, h=5, $fn=30); translate([2, 2, 0]) cylinder(d=4, h=5, $fn=30); translate([23, 14.5, ...
glb/cad_1c301d8dfc88.glb
Create a raspi-cam-lensholder by constructing a tiered cylindrical object with a central hole. Start by creating a metric thread with a diameter of 12mm, a pitch of 0.75mm, and a length of 4mm. On top of this threaded base, add a cylinder with a diameter of 14mm and a height of 3mm, followed by a larger cylinder with a...
include <threads.scad> difference() { union() { metric_thread(diameter=12, pitch=0.75, length=4); translate([0, 0, 4]) cylinder(d=14, h=3); translate([0, 0, 7]) cylinder(d=24, h=12); } cylinder(d=9, h=100, $fs=0.2); }
glb/cad_6a288cd69dfa.glb
Create an LEDLamp consisting of a series of nested, concentric cubic shells that rotate and shrink as they move inward. Start with an outer cube of 35mm per side. Each shell is formed by taking a solid cube and removing three intersecting rectangular prisms from its center—one along each primary axis—leaving behind a s...
wall_thickness = 3; size = 35; steps = 17; total_rotation = 70; layer = 0.2; module make_cube_edges(size, rotation, must_etch_base) { d1 = size - wall_thickness * 2; d2 = size + wall_thickness; rotate([0, 0, rotation]) difference() { cube([size, size, size], true); cube([d2, d1, d1], tr...
glb/cad_92dd3f7ec532.glb
Create a knitting machine needle and thread slipper. Start by constructing the needle: create a central rectangular prism 100mm high, 2mm wide, and 8mm deep. At the top of this prism, form a hook by combining two small cylinders with a 1.5mm radius and a 3mm height, positioned 9mm apart and connected by a hull. Modify ...
$fn=100; color("black"){ nh=100; wn=2; lenn=8; hc=3; dc=3; translate([0,0,7]) union(){ rotate([0,0,180]){ translate([5.5,-5,(-nh/2)]) difference(){ difference(){ difference(){ cube([lenn,wn,nh], center=true); translate([lenn-2,0,(nh/2)+1]) rotate([0,35,0]) cube([lenn*2,wn*2,lenn*2], center=true); } translate([0,0,...
glb/cad_077c89fd7d42.glb
Create a SmartClassroom box by constructing a rectangular hollow shell with an outer footprint of 25.4mm by 22.1mm and a wall thickness of 1.2mm, resulting in an internal cavity of 23mm by 12.61mm. The walls of this shell should be 8mm high. Attach two vertical cylindrical pillars to the bottom of this shell; each cyli...
$fn=160; translate([0,0,0])cylinder(h=30, r=3.15); translate([0,27,0])cylinder(h=30, r=3.15); translate([0,0,11.5]) difference(){ cylinder(h=6, r1=5,r=1); translate([-5,-8,-1]) cube([10,5,9]); translate([-5,3,-1]) cube([10,5,9]); } translate([0,27,11.5]) differen...
glb/cad_e5f9d8c49706.glb
Create a SmartClassroom mounting box for a servo motor. Start with a circular base plate with a radius of 35mm and a height of 5mm. On top of this plate, center a rounded rectangular housing created by the intersection of a 60mm by 32mm block and a cylinder with a 30mm radius, reaching a total height of 27.4mm. Hollow...
include <Libs.scad> $fn = 200; difference(){ union(){ intersection(){ translate([-30,-16,-0.1]) cube([60,32,27.6]); cylinder(h=27.4,r1=30,r2=30); } cylinder(h=5,r1=35,r2=35); } translate([-20,-8,-0.2]) cube([40.0, 16.0, 28]); translate([-20,-10,19.6]) ...
glb/cad_471c446a71ae.glb
Create a set of SmartClassroom project boxes consisting of three distinct components. First, create a hollow rectangular box with outer dimensions of 57mm by 59mm and a height of 30mm. This box should have rounded corners with a 5mm radius. The interior should be hollowed out by removing a centered rectangular volume o...
$fn=99; translate([-0.01,0,0])difference(){ roundedRect([57, 59, 30], 5); translate([0,0,3]) roundedRect([52, 54, 33], 5, $fn=99); translate([27,0,7.5]) rotate([0,90,0]) cylinder(10,4.5,4.5); translate([-32,8.60,6]) cube([5,16,16]); translate([-32,-24,6]) cube([5,16,16]); } module roundedRect(size, ...
glb/cad_2d597ec54aaa.glb
Create a two-part electronics enclosure consisting of a top lid and a bottom base. The bottom base is a rounded rectangular box with outer dimensions of 43mm by 27mm and a height of 18mm, featuring 5mm corner radii. The interior is hollowed out to a depth of 16mm with a wall thickness of 4mm, leaving an inner ledge o...
module screwsupport(){ difference() { union(){ cylinder(h=18,r=3,$fn=99); difference(){ cylinder(h=2,r=4,$fn=99); rotate([0,0,-45]) translate([-5,-9,-1]) cube([8,8,6]); } } translate([0,0,-1]) cylinder(h=21,r=2,$fn=99); ...
glb/cad_0fdca2265882.glb
Create a SmartClassroom box by starting with a main cylinder that has a radius of 32mm and a height of 23mm. Hollow out the center of this cylinder by removing a smaller cylinder with a radius of 27.5mm and a height of 21mm, starting from a height of 4.5mm from the base, to create a thick-walled container. On the top s...
$fn=300; translate([0,0,0])difference(){ cylinder(37,23,32); translate([0,0,4.5])cylinder(35,21,27.5); } translate([0,0,0])difference(){ translate([0,0,28.2]) difference(){ translate([0,0,5.9]) cylinder(h=3, r=38); cylinder(9,28,28); } translate([34,0,34])c...
glb/cad_7781c367dd09.glb
Create a SmartClassroom 3D design box by starting with a solid cylinder that has a height of 20mm and a radius of 6.5mm. Remove a smaller concentric cylindrical hole from the bottom of the shape with a radius of 2.6mm and a height of 6.6mm. Finally, carve out a rectangular slot from the top of the cylinder that measure...
$fn = 200; difference(){ cylinder(h=20,r1=6.5,r2=6.5); translate([0,0,-1]) cylinder(h=6.6,r1=2.6,r2=2.6); translate([-1.25,-3.25,5.5]) cube([2.5,6.5,16.0]); }
glb/cad_32450b26d020.glb
Create a 3D geometric pattern consisting of a grid of interlocking, winding paths. The base unit is a square-shaped S-curve with a wall thickness of 1mm and a gap width of 1mm. Each S-curve unit is composed of straight line segments that travel from the bottom-left to the top-left, across to the right, down to the cent...
WallWidth = 1.0; GapWidth = 1.0; module line(p1, p2) { hull() { translate(p1) circle(WallWidth/2, $fn=4); translate(p2) circle(WallWidth/2, $fn=4); } } BaseOffset = WallWidth / 2 + GapWidth + WallWidth / 2; module Scurve() { s = BaseOffset; union() { line([-2*s,-2*s], [-2*s, 2...
glb/cad_0cb88eca2e9c.glb
Create a 3D relief of a repeating geometric pattern extruded to a height of 3mm. The base pattern is a series of connected lines with a thickness of 10mm, formed by rounding the corners of a specific path. This path consists of six connected line segments: from [17.32, 10] to [0, 20], then to [0, 40], then to [20, 60],...
module line(p1, p2) { hull() { translate(p1) circle(r=5, $fn=16); translate(p2) circle(r=5, $fn=16); } } module hexagonify() { children(0); for (a = [0:60:300]) { rotate(a) children(0); } } module hex_gridify() { for (i = [0:5], j = [0:5]) { s = sqrt(3)/2; ...
glb/cad_0ed4bfeb3e04.glb
Create a 3D model of a circular base and collar. Start by creating a wide, flat circular disc with a radius of 35mm and a height of 3mm. Centered on top of this disc, add a hollow cylindrical collar with an outer diameter of 40mm and a total height of 25.2mm. The wall thickness of this collar is 4mm, leaving an inner d...
outer_black_biggest = 8.5; black_height = 15.5; white_small_height = 9.7; white_bigger = 10; white_smaller = 8; white_top_bigger = 11.6; white_top_smaller = 9.8; extra_space = 0.4; extra_height = 0; circle_diameter = 40; main_height = white_small_height + black_height + extra_height; fix = 0.01; $fn = 100; module m...
glb/cad_96fbbd008cbb.glb
Create a geocoin token by starting with a dodecagonal prism (a 12-sided cylinder) that has a radius of 20mm and a height of 5mm. Bore a cylindrical hole through the center of the prism with a radius of 4.25mm. Engrave the following text into the top and bottom faces of the token to a depth of 1mm. On the top face, ce...
vyska = 5; polomerdira = 4.25; pocet_sten = 12; polomer=20; velikost_pisma_nahore=8; velikost_pisma_dole=8; hloubka_pisma=1; scale = 0.5; font_scale = 20/35; difference() { cylinder(vyska,polomer,polomer,$fn=pocet_sten); translate([0,0,vyska * -0.5]) cylinder(h=vyska * 2, r=polomerdira); translate([0,...
glb/cad_3acf0a02b030.glb
Create a rectangular mounting frame with an outer boundary of 128mm by 83mm and a thickness of 3mm. The frame is primarily a hollow rectangle with a central open area. At the four corners, create cylindrical mounting pillars. Each pillar consists of a base cylinder 8mm in diameter and 3mm high, topped with a smaller c...
$fn = 100; width = 67; height = 128; bottom_width = 83; diff_dole = (bottom_width-width)/2; vzdalenost_vlevo = 3; posun = -1; mid_hole = 35.5; holes = 0; module m3nuthole() { translate([0,0,1.49]) cube([3.4,5.8,3.01],true); translate([0,0,1.49]) rotate([0,0,60]) cube([3.4,5.8,3.01],true); translate([0,0,1...
glb/cad_2a8ba32304c3.glb
Create a Guitar String Winder consisting of a handle, a crank, and a head. First, create the handle as a cylinder with a length of 75mm and an outer radius of 9mm. Hollow out the center of this cylinder with a smaller concentric hole of 5mm radius, leaving a 5mm thick wall at the bottom. Next, construct the crank. C...
print_pin = 0; print_handle = 0; print_crank = 1; winder_width=21; winder_height=8; winder_depth=15; handle_radius=5; handle_radius2=9; handle_length=75; crank_length=(25); crank_height=4; crank_width=(winder_height + 3); module winder_head() { difference() { cube(size = [winder_width + 3, winder_height + 3, w...
glb/cad_7a47e0b06999.glb
Create a guitar pick with a thickness of 1.05mm. The overall shape is a rounded triangle, formed by combining several overlapping cylinders and ellipses. Specifically, center a cylinder with a radius of 6mm and a height of 1.05mm, then add two overlapping cylinders with a radius of 5mm, height of 1.05mm, and a scale of...
$fn = 100; pick_height=1.05; logo_height=pick_height; use_text = true; hole_diameter = 3; fudge = 0.1; line_fn = 4; min_line_width = 1.0; function min_line_mm(w) = max(min_line_width, w) * 90/25.4; s = 0.7; caption = pick_height == 1 ? "1.0" : str(pick_height); path12_0_center = [5.226885,-8.196161]; path12_0_point...
glb/cad_4c2afe32b92c.glb
Create a guitar pick with a thickness of 0.8mm. The overall shape is a rounded triangle formed by the union of three overlapping cylinders: one centered at [0, 13, 0] with a radius of 6mm and scaled by [2, 1, 1], two centered at [-5, 2, 0] and [5, 2, 0] with a radius of 5mm and scaled by [1, 2.8, 1] and rotated by 25 a...
$fn = 100; pick_height=0.8; logo_height=pick_height; use_text = true; hole_diameter = 4.0; fudge = 0.1; line_fn = 4; min_line_width = 1.0; function min_line_mm(w) = max(min_line_width, w) * 90/25.4; s = 0.7; caption = pick_height == 1 ? "1.0" : pick_height == 2 ? "2.0" : str(pick_height); path12_0_center = [5.226885...
glb/cad_3629ce09ab06.glb
Create a 3D model of a hollowed-out guitar pick container. First, construct the primary outer shell by combining four overlapping cylinders centered on the same axis: one cylinder with a radius of 6mm scaled by 2 in the X-axis, two cylinders with a radius of 5mm scaled by 2.8 in the Y-axis and rotated 25 degrees in opp...
pick_height=60; module plek(height) { $fn=50; translate([0, 0, height/2])union() { translate([0,13,0]) scale([2,1,1])cylinder(r=6, h=height, center=true); translate([-5,2,0]) rotate([0,0,25])scale([1,2.8,1])cylinder(r=5, h=height, center=true); translate([ 5,2,0]) rotate([0,0,-25])scale([1,2.8,1])cylinder(r=5,...
glb/cad_1f3e9b61fff4.glb
Create a cube with dimensions of 40mm x 40mm x 40mm, centered on the origin. On the front face of the cube, centered both horizontally and vertically, carve out the words "Indented Text" with a font size of 3.6mm and a depth of 2mm. On the opposite rear face, carve out the word "Cut" with a font size of 16mm and a dept...
use <text_on/text_on.scad> cube_dim=40; difference() { translate([0,0,0]) cube(cube_dim,center=true); translate([0,-cube_dim/2,cube_dim/2*1/4]) rotate(90,[1,0,0]) text_extrude("Indented Text",size=3.6,extrusion_height=2,center=true); translate([0,0,-cube_dim/4]) rotate(90,[1,0,0]) text_extrude("Cut",size=16,...
glb/cad_a0cbf2fd3ef2.glb
Create a Lego-compatible grid beam by starting with a solid rectangular block measuring 40mm in length, 40mm in width, and 4mm in height. Within this block, remove a grid of 25 cylindrical holes to create a 5x5 array. Each hole must have a diameter of 5.1mm and be drilled completely through the thickness of the block. ...
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([5*beam_width,5*beam_width,beam_width/2])...
glb/cad_d15a5e512f1f.glb
Create a Lego-compatible grid beam consisting of a rectangular slab 48mm long, 40mm wide, and 4mm thick. Within this slab, remove a grid of 30 cylindrical holes, each with a diameter of 5.1mm and a depth that passes completely through the thickness of the slab. The holes should be arranged in 6 rows and 5 columns. Posi...
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([6*beam_width,5*beam_width,beam_width/2])...
glb/cad_387304ce8548.glb
Create a github-themed geometric plate by starting with a central equilateral triangular prism that has a radius of 28mm and a height of 9mm, centered on the origin. From this main body, remove a central vertical cylinder with a radius of 4.3mm. Additionally, remove a horizontal cylinder with a radius of 1.5mm and a le...
beam_width = 8; hole_diameter = 5.25; hole_radius = hole_diameter / 2; clipping_distance = 26; difference(){ cylinder(r=56/2, h=9, $fn=3, center=true); translate([0,0,-10]) cylinder(r=4.3, h=20, $fn=30); rotate([60,90,0]) translate([0,0,0]) cylinder(r=1.5, h=20, $fn=30); rotate(-60) translate(...
glb/cad_febe483795ca.glb
Create a Tapster Mobile Automation Robot beam. Start with a main rectangular base 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 center of the base, starting from the left edge and offset by 6mm from the side. Add a small 4mm by 4mm ...
beam_width = 8; hole_diameter = 5.25; 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_e4d4697574c0.glb
Create a cylindrical mount for a threaded rod by starting with a solid cylinder 9mm in diameter and 20.5mm tall. Remove a central vertical hole with a radius of 1.75mm that extends from the bottom of the cylinder up to a height of 13mm. Additionally, create a second, wider concentric hole with a radius of 2.6mm that st...
servo_hole_radius = 3.5/2; difference(){ cylinder(r=4.5, h=20.5, $fn=45); translate([0,0,11.9]) cylinder(r=2.6, h=9, $fn=45); translate([0,0,-1]) cylinder(r=servo_hole_radius, h=13, $fn=45); }
glb/cad_3d571d6af226.glb
Create a joint for a Tapster 2 Plus by starting with a solid rectangular block measuring 18mm in width, 10mm in depth, and 8mm in height. Carve a rectangular slot through the center of the block that is 16mm wide, 4.2mm deep, and 10mm high, leaving walls on the sides. Remove two cylindrical holes with a diameter of 5.1...
hole_diameter = 5.1; hole_radius = hole_diameter / 2; tolerance = 0.2; difference(){ cube([18,10,8]); translate([8,3-(tolerance/2),-1]) cube([16,4+tolerance,10]); rotate([90,0,0]) translate([14,4,-14]) cylinder(r=hole_radius, h=16, $fn=30); translate([4,5,-4]) cylinder(r=hol...
glb/cad_471937065bd2.glb
Create a rectangular block measuring 76.2mm in length, 30mm in width, and 30mm in height. From this main volume, remove a large central rectangular section measuring 60.2mm by 34mm by 34mm, positioned 8mm from the front edge and centered along the width, to create a deep open cavity. Additionally, remove a large diagon...
hole_diameter = 5.3; hole_radius = hole_diameter / 2; difference(){ cube([76.2,30,30]); translate([-2,-2,-2]) rotate([45,0,0]) cube([80,50,25]); translate([8,-10,5]) cube([76.2-16,34,34]); translate([22.1,15,-5]) cylinder(r=hole_radius, h=20, $fn=30); translate([76.2-22.1,15,-...
glb/cad_9660fb62a8c1.glb
Create a 3D model of a GitHub-themed geometric object. Start with a central rectangular block measuring 32mm wide, 14mm deep, and 20mm high, centered on the origin. From this main body, remove a large rectangular section measuring 40mm wide, 16mm deep, and 20mm high, positioned at a Z-offset of -16mm. Carve out a squar...
beam_width = 8; hole_diameter = 5.1; hole_radius = hole_diameter / 2; union() { difference() { cube([32,14,20], center=true); translate([0,0,-16]) cube([40,16,20], center=true); translate([-27,0,0]) rotate([0,90,0]) cube([8.4,8.4,50], center=true); tr...
glb/cad_d0204e3ba454.glb
Create a GitHub-themed connector model. Start with a hexagonal base plate that has a radius of 32mm and a height of 4mm, using 6-sided resolution for the hexagonal shape. Centered on this base, place a hexagonal prism with a radius of 13mm and a height of 20mm, also using 6-sided resolution. From this central prism, ...
beam_width = 8; hole_diameter = 5.1; hole_radius = hole_diameter / 2; plate_radius = beam_width * 4; distance_of_edge_from_center = sqrt(pow(plate_radius,2)-pow(plate_radius/2,2)); module beam_holes(number_of_holes, step=8) { beam_length = number_of_holes * 8; for (x=[4 : step : beam_length]) { ...
glb/cad_cfe6becaa6e5.glb
Create a Bitbeam construction toy piece by starting with a rectangular prism that is 24mm long, 8mm wide, and 8mm high. Remove three cylindrical holes, each with a diameter of 5.1mm and a 30-facet resolution, to create the connection points. Position the first hole vertically through the center of the top and bottom fa...
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_dd4a2a56518f.glb