Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a mug by combining a base, a body, a rim, and a handle. Start with the base: a cylinder with a radius of 39mm and a height of 19mm, with a concentric cylindrical hole of radius 37mm and height 18mm removed from the center, starting 2mm from the bottom. For the main body, create a tapered shell using two hulls. T...
toleranta=1; module parte_jos_cana(grosime_jos, raza_jos){ color("Blue")difference() { cylinder(h=grosime_jos,r=raza_jos,$fn=100); { translate([0,0,2])cylinder(h=grosime_jos-1,r=raza_jos-2,$fn=100); } }; } module corp_cana(inaltime_cana, raza_cana_exterior, raza_cana_interior) { c...
glb/cad_b11a9cf38fc0.glb
Create a motor body by starting with a central cylinder that has a height of 10mm and a radius of 10mm. Position a smaller cylinder with a height of 2mm and a radius of 3mm so that its center is at [6, 0, 5]. On top of this smaller cylinder, at [6, 0, 7], place a thin cylinder with a height of 6mm and a radius of 1mm; ...
$fn = 30; $h_body_cy = 10; $r_body_cy = 10; $r2_body_cy = 10; $h_tip_cy = 2; $r_tip_cy = 3; $r2_tip_cy = 3; $tip_translation = [6, 0, 5]; $h_tip_t_cy = 6; $r_tip_t_cy = 1; $r2_tip_t_cy = 1; $tip_diff_cube = [2, 1, 4]; $tip_m_translation = [6, 0, 7]; $h_cube = [5, 24, 0.5]; $h_diff_cy_h = 0.5; $h_diff_cy_r = 2.5...
glb/cad_74179624fc7c.glb
Create a rocket model starting with a main cylindrical body that is 50mm in diameter and 100mm tall. On top of this cylinder, centered at the upper face, add a conical head with a base diameter of 40mm and a height of 40mm. Around the base of the main cylinder, attach three identical triangular wings. Each wing should ...
$fn = 100; rocket_d = 50; rocket_r = rocket_d / 2; rocket_h = 100; cylinder(d = rocket_d, h = rocket_h); head_d = 40; head_r = head_d / 2; head_h = 40; tri_base = head_r; tri_height = head_h; tri_points = [ [0,0], [tri_base,0], [0,tri_height]]; translate([0,0,rocket_h]) rotate_extrude(angle = 360) ...
glb/cad_ad0f66e79bef.glb
Create a vernier caliper consisting of a main scale beam and a sliding jaw. For the main beam, create a rectangular base 170mm long, 15mm wide, and 2mm thick. At one end, attach a fixed jaw that extends perpendicularly from the beam; this jaw should be 15mm wide and 2mm thick, forming a right angle with the beam. On t...
include <write/Write.scad>; module main_body(Length = 170, Width = 15, Thickness = 2, ){ cube([Length,Width,Thickness]); rotate([45,0,0]) cube([Length,Thickness/sqrt(2),Thickness/sqrt(2)]); translate([0,Width,0]) rotate([45,0,0]) cube([Length,Thickness/sqrt(2),Thickness/sqrt(2)]); } module top_caliper(Width = 15,Th...
glb/cad_9155e386466f.glb
Create a three-armed spinner component. Start with a central cylinder that has a radius of 11mm and a height of 6mm, centered on the origin. Remove a smaller concentric cylinder from the center with a radius of 11mm and a height of 9mm to create a central hole. Extend three identical arms from this center, spaced equa...
MARIME_CILINDRU_CENTRU = 22; LUNGIME_BRATE = 60; MARIME_CILINDRU_CAPAT_BRAT = 6; NUMAR_BRATE = 3; for(i=[1:1:NUMAR_BRATE] ){ rotate([0,0,i*360/NUMAR_BRATE]) brat_spinner(); } module brat_spinner(){ difference(){ difference(){ difference(){ hull(){ cylind...
glb/cad_24feb8ff1a26.glb
Create a complex geometric component called a middleRound. Start by constructing a central cylindrical base with a radius of `smallRadius` and a height of `heightDown`, then remove a smaller concentric cylinder of radius `smallRadius - thickness / 2` to create a thin-walled tube. Cut this tube with two rectangular slot...
include <values.scad> module middleRound(greatRadius, smallRadius, radiusUp, heightUp, heightDown, thickness, greatCut, smallCut, edgeDistance, distance, radiusHole, heightHole, radiusGreatHole){ union(){ translate( [greatRadius - edgeDistance - radiusUp / 2, 0, 0] ) cylinder( h = heightUp, r = radiusUp, $f...
glb/cad_3eea9208f837.glb
Create a vertical3 geometric component centered on the origin. Start with a central hollow cylinder with an outer radius of 10mm, an inner radius of 9mm, and a height of 10mm. Surround this center with a larger spherical boundary of 10.1mm radius. Construct the outer structure by combining three identical cubes, each ...
include <values.scad> module vertical3(greatRadius, smallRadius, thickness, height, heightCenter, notch, width, length, heightLongMiddle){ intersection(){ union(){ difference(){ union(){ translate( [0, 0, -thickness / 2] ) cylinder( h = thickness / 2, r = gre...
glb/cad_622b5bfc51b7.glb
Create a 3D model of a wing assembly using the following geometric specifications. First, construct the main wing body by combining a cylinder and a sphere. Create a cylinder with a height of 1.7 times the shaft height and a radius of 1.2 times the base radius, then intersect this with a sphere of radius 1.9 times th...
include <values.scad> module greatWing(radius, heightShaft, thickness, greatHeight, greatWidth){ union(){ intersection(){ difference(){ translate( [-thickness / 2, 0, greatHeight / 1.95] ) cube( [thickness, greatWidth / 1.5, greatHeight / 3.5]); rotate( [-50, 0, ...
glb/cad_8bd5f19cc8bd.glb
Create a champagne glass model consisting of a base, a stem, and a bowl. Start with a base created as a truncated cone with a height of 5mm, a bottom radius of 50mm, and a top radius of 3mm. Centered on top of this base, add a cylindrical stem with a radius of 3mm and a height of 100mm. Atop the stem, place a bowl form...
pahar_sampanie(raza_baza = 50, grosime_baza = 5, raza_picior = 3, inaltime_picior = 100, raza_cupa = 50, grosime_perete = 2); module baza_pahar(raza_baza, grosime_baza, raza_picior) { cylinder(h = grosime_baza, r1 = raza_baza, r2 = raza_picior); } module picior_pahar(inaltime_picior, raza_picior) { cylinder(h ...
glb/cad_db3b4fcb7e32.glb
Create a ventilator housing and blade assembly. Start with a square base plate 50mm wide and 15mm deep, centered on the origin. Round the four corners of this square with a radius of 10mm. Cut a central circular hole through the entire depth of the plate with a diameter of 47mm. Within the remaining material of the s...
$fn=60; ventilator(50, 15, 40); module ventilator(width, depth, mount, mount_diameter=3.4, corner_radius=10, blade_angle=45) { bore_diameter = width - 3; color ("lime") { corp(width, depth, bore_diameter, mount, mount_diameter, corner_radius); ventilatoare(bore_diameter, depth, blade_angle); } } mod...
glb/cad_1ad815ed0ad1.glb
Create a stylized sailing ship model with a total scale dimension of 100mm. Start with the hull: create a hollowed-out, elongated boat shape by combining a scaled cylinder and a cube, then subtracting a smaller internal cylinder to create a thin-walled shell. The hull should be centered and slightly flattened. For t...
th = 1.5; dimensiune_nava=100; fn=40; nava(); module nava(marime=dimensiune_nava) { vele(marime); carena(marime); bompres(marime); } module bompres(bm) { translate([0,bm*37/64,bm*3/64]) rotate([290,0,0]) intersection() { scale([0.5,1,1]) cylinder(r1=bm*8/64,r2=th,h=bm/3,$fn=fn/4,center=true); translate(...
glb/cad_2d688e620d4f.glb
Create a 3D box for OpenTRV by starting with a central cube that has a side length of 8mm and is centered at a height of 4mm. Remove a vertical cylindrical hole from the center of this cube that extends through the entire height; this hole must have a radius of 1mm at the bottom and a radius of 2mm for the upper portio...
small_hole_radius = 1; large_hole_radius = 2; cube_side = large_hole_radius * 4; large_hole_height = cube_side / 2; bridge_layer_height = 0.3; difference() { translate([0, 0, 4]) cube(size=[cube_side, cube_side, cube_side], center=true); translate([0, 0, -0.1]) cylinder(r=small_hole_radius, h=cube_sid...
glb/cad_5c7808167423.glb
Create a connector for the OpenTRV project. Start by constructing a central vertical cylinder with a height of 5mm and an external radius of 4.5mm. This main body should have a hollow center with an internal radius of 3.5mm. At the top of the cylinder, add a 1mm tall bevel that transitions from a radius of 4.83mm to th...
include <settings-trv.scad>; screw_radius = screw_diameter / 2; ext_radius = screw_radius * 13.5 / 15.0; int_radius = screw_radius * 10.5 / 15.0; lip_radius = screw_radius * 14.5 / 15.0 + screw_tolerance; bevel_height = 1; lip_height = 0.5; slit_angle = 360 / connector_slit_number; difference() { union() { ...
glb/cad_a45e4339c026.glb
Create a 3D model for the OpenTRV project consisting of four distinct layers. First, create layer 0 as a base plate. This layer is a composite of three stacked sections: a bottom base with mounting holes and nut recesses, a middle spacer layer, and a top base. Cut ventilation slits into the top, bottom, right, and le...
include <settings-v0_2r1_Bo_battery_powered.scad>; include <box-common.scad>; include <bitmap.scad>; module layer_0_0(thickness=layer_0_0_thickness) { union() { difference() { box_base(thickness); box_mounting_holes(thickness); box_wall_mount_screw_holes(thickness); ...
glb/cad_41e8734e4399.glb
Create a 3D model of a multi-layered electronics enclosure consisting of three primary layers. The first layer is a base plate with a thickness of `layer_0_0_thickness`. It features mounting holes and nut recesses. On top of this, add a second spacer layer with a thickness of `layer_0_1_thickness` and a third layer w...
include <settings-v0_2r1_Bo_Hotwater_Cylinder.scad>; include <box-common.scad>; include <bitmap.scad>; module layer_0_0(thickness=layer_0_0_thickness) { union() { difference() { box_base(thickness); box_mounting_holes(thickness); box_wall_mount_screw_holes(thickness); ...
glb/cad_0457af71943a.glb
Create a 3D model for an OpenTRV box by starting with a solid cube measuring 56mm by 56mm with a height of 11mm. At the coordinates (5, 5), remove a vertical hole with a diameter of 3.1mm that passes completely through the cube. At the same (5, 5) position, remove a wider cylindrical recess with a diameter of 6mm and a...
include <shapes.scad>; union() { difference() { translate([0,0,0]) cube([56,56,11]); translate([5,5,-1]) cylinder(h = 13, r = 1.55); translate([5,5,-2]) cylinder(h = 6, r = 3.0); } translate([0,0,4]) cube([8,8,0.3]); translate([56,0,0]) cylinder(h = 0.3, r = 7); }
glb/cad_458253b50c4d.glb
Create a 3D model for the OpenTRV project consisting of several layered components. First, construct a base layer (layer 0) by combining three sections: a main base, a spacer layer, and a top section. Remove material to create mounting holes, wall-mount screw holes, and nut recesses. Cut ventilation slits into the to...
include <settings-v0_2r1.scad>; include <box-common.scad>; include <bitmap.scad>; module layer_0_0(thickness=layer_0_0_thickness) { union() { difference() { box_base(thickness); box_mounting_holes(thickness); box_wall_mount_screw_holes(thickness); translate([...
glb/cad_79a25f69b030.glb
Create a 3D model for the OpenTRV project consisting of a multi-layered enclosure. The primary structure is a flat plate (layer 3) with a thickness of `layer_3_thickness`. In this plate, create four circular mounting holes for a PCB. Additionally, create four specific functional holes: an LED hole at [14, 10.5], an L...
include <settings-v0_2r1_Bo_battery_powered.scad>; include <box-common.scad>; include <bitmap.scad>; module spacer() { cylinder( r1 = 2nd_board_spacer_radius, r2 = 2nd_board_spacer_radius * 1.5, h = 2nd_board_spacer_height + 0.1, $fn=cylinder_resolution); } module spacers() { c...
glb/cad_3a64bf37479f.glb
Create a collection of four electronic board models. First, create a ChipKIT Uno32 board as a rectangular plate measuring 53mm by 68mm with a thickness of 2mm. Add four 1.5mm radius holes at [7.5, 2.5], [35.5, 2.5], [2.5, 54.5], and [48, 53]. Place a PIC32 SMD chip (10mm by 10mm) with 15 pins on each side at [22, 25,...
use <microchips.scad> use <descrete.scad> all_arduino(); module all_arduino() { chipkit_uno32(); translate([100, 0, 0]) arduino_uno(); translate([200, 0, 0]) arduino_uno_china(); translate([300, 0, 0]) cnc_shield(drivers=true, drivers_radiator=false); } module arduino_uno() { size_x = 53; siz...
glb/cad_e60b8f5c575b.glb
Create a climbing plant scaffold consisting of a rectangular grid and two integrated support stakes. The main grid is 130mm long, 120mm high, and 3mm thick. Construct the outer frame of this grid using 3mm wide bars. Divide the interior of the frame into a 3x3 grid by adding two equally spaced horizontal bars and three...
support_stick_width = 4; support_stick_height = 30; support_spike_height = 45; scaffold_length = 130; scaffold_width = 3; scaffold_height = 120; scaffold_rows = 3; scaffold_cols = 3; module support_stick(w, h1, h2) { cube([w, w, h1]); polyhedron( points = [ [0, 0, 0], [0, w, ...
glb/cad_08b1883ed72c.glb
Create a payload structural chassis by starting with a solid rectangular block measuring 180mm in width, 88mm in depth, and 102mm in height. Centered within this block, remove a cylindrical hole to create a passage for a thruster. This cylinder must have a radius of 30mm and a length of 88mm, extending fully through th...
bit3_x = 180; bit3_y = 88; bit3_z = 102; bit3_thruster_radius = 30; difference(){ cube([bit3_x,bit3_y,bit3_z]); translate(v = [bit3_x/2, bit3_y/2, bit3_z/2]) { rotate([90,0,0]) cylinder(bit3_y, (bit3_thruster_radius), (bit3_thruster_radius), false); } };
glb/cad_2c3ee35a387c.glb
Create a webcam lens hood consisting of a mounting bracket and a detachable hood. First, construct the bracket. Create a rectangular base 48mm wide, 29.5mm high, and 2.3mm thick. Add two cylindrical "knees" with a 1.15mm radius at the top and bottom edges of the sides. Add a central mounting plate 46mm wide and 27.5m...
$fn=128; wall_width=2.3; hood_wall_width=0.6; bracket_depth=5 + wall_width/2; bracket_width=48; bracket_height=29.5; bracket_angle=4.7; hood_height=25; hood_aspect=1920/1080; hood_proximal_radius=4.5; hood_distal_radius=bracket_height * 0.65; snap_fit_gap=0.15; snap_width=wall_width/2; snap_thickness=wall_width - 0....
glb/cad_733b18654ce4.glb
Create a spool holder spacer with a total height of 11mm. The object is a star-shaped ring centered on the Z-axis. First, define the core geometry based on two concentric circles: an inner radius of 12.5mm and an outer radius of 27.5mm. The main body consists of 8 identical arms distributed evenly every 45 degrees ar...
developer_view=false; spool_hole_diameter = 55; axis_diameter = 25; spool_material_thickness = 3; print_thickness = 1.2; arm_count = 8; holder_height = spool_material_thickness + 8; flare_angle=35; outer_flare = (holder_height - spool_material_thickness)/ (2 * tan(90 - flare_angle)); $fn=48; inner_r=axis_diameter ...
glb/cad_f0743ba28549.glb
Create a stacked spool holder consisting of a circular base and a series of concentric rings. Start with a circular bottom plate with a radius of 39.5mm and a thickness of 4mm. In the center of this plate, create a mounting peg that is a cylinder with a radius of 11.5mm and a height of 2.67mm, featuring a central verti...
$fn=128; epsilon=0.1; clearance=0.6; spring_extra=0; diameters=[55 - spring_extra, 51 - spring_extra, 32 - spring_extra]; holder_height=10; transition=0; bottom_width=diameters[0] + 25; wall_thickness_lower=2; wall_thickness_top=1; foot_thickness=4; mount_hole=3 + 0.2; mount_peg_top=diameter...
glb/cad_8be77047c576.glb
Create a DIN rail cable wrap clip with a total length of 12mm. The main body is a mounting clip designed to snap onto a standard DIN rail. Construct the clip using a combination of rectangular and rounded elements. Start with a base structure that includes a central channel to accommodate the rail. Add a vertical wal...
include <BOSL2/std.scad> length=12; wall=2; tolerance=0.1; clipWall=1; clipL=10; $fn = 64; cut=true; union() { mirror([1,0,0]) linear_extrude(length) dinRailClip(wall,clipWall,clipL,tolerance,cut); right(11) fwd(15) cuboid([3,46,length], anchor=RIGHT+FRONT+BOTTOM); right(35) fwd(10) cuboid([25,3,lengt...
glb/cad_1bc8edbc7bb7.glb
Create a 3D model of a symmetrical, grid-like tray structure with a base thickness of 2mm and wall heights of 10mm. Start by constructing a central square base that is 18mm wide and 18mm deep (composed of a 14mm inner square with 2mm thick walls on all sides). Extend this central structure in four cardinal directions...
thickness=2; width=14; padding=0; height=10; extrusion=20; gap=4; m_padding=padding; t_width=width; t_padding=padding; b_width=width; b_padding=padding; r_do = true; t_do = true; l_do = true; b_do = true; align=(width+2*thickness)/2; t_align=(t_width+2*thickness)/2; b_align=(b_width+2*thickness)/2; translate([-ali...
glb/cad_2c75b91f44cd.glb
Create a rectangular block measuring 80mm in width, 30mm in depth, and 50mm in height. From this main volume, remove several geometric voids to create specific fastener housings. First, carve out a parallel nut catch for an M5 nut at position x=-15, y=-15, z=0, with a clearance height of 0.1mm. Second, create a vertica...
include <cyl_head_bolt.scad>; include <materials.scad>; difference() { translate([-15, -15, 0]) cube([80, 30, 50]); rotate([180,0,0]) nutcatch_parallel("M5", clh=0.1); translate([0, 0, 50+e]) hole_through(name="M5", l=50+5, cld=0.1, h=10, hcld=0.4); translate([55, 0, 9+e]) nutcatch_sidecut("M8", l=100, clk=0.1, cl...
glb/cad_b783f631978a.glb
Create a DIN USB Hub mount consisting of a DIN rail clip and a supporting housing. First, construct the DIN rail clip with a wall thickness of 2mm and a clip wall thickness of 1mm, extending it to a total length of 12mm. Attached to this clip, create a housing for the device. The housing should have a total width of ...
include <BOSL2/std.scad> length=12; wall=2; tolerance=0.1; clipWall=1; device_width=31; device_depth=102; clipL=10; $fn = 64; cut=true; union() { mirror([1,0,0]) linear_extrude(length) dinRailClip(wall,clipWall,clipL,tolerance,cut); right(11) { diff() { cuboid([wall,device_depth+wall*2,length], ...
glb/cad_c11902630da0.glb
Create a rectangular block measuring 88mm in length, 12mm in width, and 5mm in height. Drill 11 vertical holes through the block, each with a diameter that increases linearly from 3.8mm for the first hole to 4.2mm for the last. Space the centers of these holes 8mm apart, with the first hole center positioned 8mm from t...
$fn=36; $fs=.01; block_height=5; space_per_hole=8; holes=11; font = "Monsterrat"; bore_min=3.8; bore_max=4.2; bore_step=(bore_max-bore_min)/(holes-1); difference(){ cube([space_per_hole*(holes+1),space_per_hole*1.5,block_height]); for (hole = [0:holes-1]) { offset = space_per_hole*hole+space_per_hole...
glb/cad_bf98cd8dcc21.glb
Create a stake shield designed to protect a garden stake. Start by creating a solid cylinder with a radius of 10mm and a height of 2mm. From the center of this cylinder, remove a smaller concentric cylinder with a radius of 8mm and a height of 2mm to create a hollow base. Above this base, add a secondary section with ...
use <MCAD/2Dshapes.scad>; $fn=360; rotate([180,0,0]) union() { stake_shield(10,3,10); } module cord_hole() { translate([-10, 4, 3]) union() { translate([0,-2,-4]) cube([20,4, 4]); translate([0,0,-2]) cube([20,4, 4]); rotate([0,90,0]) cylinder(20, 2, 2); ...
glb/cad_713daf4ae0f0.glb
Create a Sanding Disk Pegboard Organizer consisting of a backplate and six stacked compartments. The backplate is a rectangular slab 1.2mm thick. Its width is 133.35mm (calculated as 5 inches plus 0.25 inches of tolerance, converted to mm, plus two 1.2mm walls). The total height of the unit is determined by six compart...
compartments = ["2000", "1500", "1200", "1000", "800", "600"]; compartment_count=len(compartments); disk_diam=5; cavity_height=1; mm_per_in=25.4; wall=1.2; compartment_height=cavity_height*mm_per_in+(wall*2); backplate_width=((disk_diam+.25)*mm_per_in)+(wall*2); hang_tab_height=18; peg_hole_radius=3.3; peg_hole...
glb/cad_9a451ea1064a.glb
Create a handle fitting consisting of three stacked sections centered on a common vertical axis. Start with a base handle section 5mm deep, featuring a phyllotaxis seed pattern with a seed diameter of 3.7mm and a minimum inner radius of 3.4mm, with a central circular hole 6.8mm in diameter passing through the center. O...
include <../lib/phyllotaxis.scad>; handle_depth=5; handle_to_square_depth=5; square_fitting_depth=12; square_fitting_od=13.50; square_fitting_inner_width=8.59; square_fitting_chamfer_square=9.74; screw_bore=6.8; max_seeds=100; handle(handle_depth, screw_bore, max_seeds); translate([0,0,handle_depth]) handle_to_squar...
glb/cad_80bf06710fe5.glb
Create a cable mount brace designed to fit around a tube with a radius of 16.125mm. The main body is a curved mount with a thickness of 3mm and an arc of 210 degrees, centered on the tube. This mount has a height of 2.5mm. Attached to this mount is a channel guard that extends along the same curvature for an arc of 2...
use <MCAD/2Dshapes.scad>; $fn=360; tube_radius=32.25/2; cable_distance_from_tube=5; cable_channel_width=2.4; channel_guard_thickness=9; channel_guard_degrees=20; mount_thickness=3; mount_degrees=210; brace_length=5; rounded_corners=1; difference() { union() { linear_extrude(brace_length) rotate(...
glb/cad_bb0c686bc795.glb
Create a 3D object by extruding a specific 2D profile vertically to a height of 98.425mm while applying a 180-degree twist along the Z-axis. The base 2D profile is formed by taking a 100mm by 100mm centered square and adding four circles with radii of 20mm, each centered at the midpoints of the square's four edges (at ...
$fn=60; slats=36; lamp_inner_radius=35; slat_groove_thickness=.5; slat_groove_radius=20; slat_insert_width=.25*3.1415*slat_groove_radius; slat_length=100; slat_disk_thickness=25.4/8; module slat_disc() { difference(){ circle(r=50); for (i=[0:slats-1]) { rotate([0,0,i*360/slats]) ...
glb/cad_5d3678579c93.glb
Create a smart-robot component by constructing a hollowed cylindrical form. Start with a main cylinder that has a radius of 10mm and a total height of 20mm, using a 6-sided polygonal facet resolution. Create a thick outer wall by adding a concentric cylinder with a radius of 12mm and a height of 10mm, positioned to cov...
include <values.scad> module externalA(radius, thickness, height){ union(){ difference(){ cylinder( h = height / 2, r = radius + thickness, $fn = cylinderFaces ); translate( [0, 0, - tolerance] ) cylinder( h = height, r = radius - thickness, $fn = cylinderFaces ); } diffe...
glb/cad_d1ccb93224e1.glb
Create a smart-robot model by constructing a hollowed-out rectangular frame with specific internal geometric features. Start with a main outer cube of 20mm x 20mm x 20mm. Inside this volume, create a central rectangular void by removing a cube of 16mm x 16mm x 22mm, positioned to leave walls of 2mm thickness. At the ...
include <values.scad> module insideEdges(length, widthUp, rightWidth, thicknessUp, thicknessRight, thickness, height, radius){ union(){ difference(){ cube( [length, widthUp, thicknessUp] ); translate( [thicknessRight, thicknessRight, -tolerance] ) cube( [length - 2 * thicknessRight,...
glb/cad_d2bc1271ea8b.glb
Create a smart-robot model by constructing a solid rectangular prism. The shape is formed by the union of two overlapping cubes: one with a width of 10mm, a length of 20mm, and a height of 10mm, and another with a width of 20mm, a length of 10mm, and a height of 10mm. Position both cubes so they are centered on the X a...
include <values.scad> module longMiddle(height, width, length){ union(){ translate( [-(width / 2), -(length / 2), 0] ) cube( [width, length, height] ); translate( [-(length / 2), -(width / 2), 0] ) cube( [length, width, height] ); } } color( [0, 0, 0] ) longMiddle(heightLongMiddle, widthLongMi...
glb/cad_de800a27eca3.glb
Create a smart-robot component consisting of a complex cylindrical assembly. Start by creating a main cylinder with a radius of 10mm and a height of 10mm. From this main body, remove a central cubic volume of 10mm per side, centered and rotated 45 degrees, starting at a height of 2mm. Within the remaining structure, ...
include <values.scad> module vertical2(greatRadius, smallRadius, height, heightBase, cylinderFaces, holeRadius, heightHole, width, length, heightMiddle, space, side, thickness, heightHoleDown, radiusDown, radiusUp, heightUp, tolerance){ union(){ difference(){ translate( [greatRadius - radiusUp ...
glb/cad_51baa7204a67.glb
Create a Getriebe mechanical gear assembly consisting of three interconnected levers and three spur gears. First, create a ground lever of length 60mm and height 6mm. Position a first lever (A-lever) of length 16.67mm and height 6mm, pivoting at one end of the ground lever. At the free end of the A-lever, place a spu...
use <Getriebe.scad> use <../zapfen-5.scad> $fn=64; d=1; alfa=.7; gd= 30; gi= 15.4; gh= 6; gl=120/2; al= 25/1.5; bl= 80/2; cl= 90/2; C=true; oa= 4; ob= 5; oc= 0; ca="blue"; cb="green"; cc="orange"; explosion=gh*.75*0; eps=.001; M=1; ZG=19.5/2; za=22/M*4/2; zc=cl/2/M*4-za; zb=bl/2/M*4-zc; wa=360*$t; x=al*cos(...
glb/cad_e213b583f0f9.glb
Create a mechanical gear linkage system consisting of three connected levers and three spur gears. All components have a uniform height of 10mm. First, create a ground lever centered at the origin. This is a hull of two cylinders with a diameter of 30mm, spaced 120mm apart. Place a bearing at each end: a cylinder with...
use <Getriebe.scad> $fn=164; d=1; alfa=1; gd= 30; gi= 20; gh= 10; gl=120; al= 40; bl= 80; cl= 90; explosion=gh*0; modelCut=false; simple=false; M=4; ZG=19.5; za=20/M*4; zc=cl/2/M*4-za; zb=bl/2/M*4-zc; C=true; ob=12; oc= 6; wa=360*$t; x=al*cos(wa); y=al*sin(wa); e=sqrt(pow(x+gl, 2) + pow(y, 2)); w1=acos((-pow...
glb/cad_b8163f468e7d.glb
Create a 3D model of a NEMA 17 stepper motor. Start by constructing the main body as the intersection of a cube with side lengths of 42.3mm and a cylinder with a diameter of 55mm, both with a height of 34.3mm. On the top face of this body, center a circular protrusion with a diameter of 22mm and a height of 2mm. In the...
$fn=164; eps=0.001; nema17(); M3=3; module nema17() { translate([0,0,34.3/2]) difference() { union() { intersection() { color([0,0,0]) cube([42.3,42.3,34.3], center=true); color([.9,.9,...
glb/cad_ba0b3396abfd.glb
Create a Getriebe mechanical model consisting of seven stacked, horizontally aligned lever arms. Each lever arm is 30mm long and consists of two outer cylinders with an outer diameter of 18mm and a height of 6mm, connected by a central rectangular bridge 8mm wide and 4.5mm thick. Each cylinder is hollowed with an inne...
$fn=73; eps=.001; spiel=.42; s1=.42; s2=.42+1*.44; s3=.42+2*.44; s4=.42+3*.44; module G(cdi=5, hzo=0) { translate([0,0,2]) difference() { union() { translate([0,0,hzo/2+ -1+eps]) cylinder(d=cdi-1-spiel, h=hzo+9+spiel, center=true...
glb/cad_f47b901b98a3.glb
Create a gear mechanism component consisting of three connected lever arms. First, create a base lever arm with a length of 100mm and a height of 7.5mm. Position a second lever arm with a length of 30mm and a height of 7.5mm, connecting it to the first. Add a third lever arm with a length of 80mm and a height of 7.5mm ...
use <../zapfen-2.scad> $fn=164; d=1; gd= 30; gi= 20; gh= 10; gl=100; al= 30; bl= 80; cl= 90; gh=7.5; explosion=2*gh*0; translate([ 0, 0, 0-explosion]) lever(gl = gl, gh=gh, h1=gh, h2=gh); color("royalblue", .75) translate([gl, 0, gh]) rotate([0, 0, 360*$t]) lever(gl = al, gh=gh, h1=0, h2=0); x=al*c...
glb/cad_022fdbc0f55c.glb
Create a BatteryVial cap, which is a threaded cylindrical lid. The cap is based on an inner diameter of 14.2mm for an AA battery. Start with a solid cylinder that has a total height of 24mm (16mm for the threaded section and 8mm for the grip base). The main body of the cap has an outer radius of 8.1mm. At the botto...
part = "cap"; size = "AA"; custom_d = 15.0; custom_l = 51; function cat(nested) = [ for(a=nested) for (b=a) b ]; module helix(radius, height, pitch, poly, start=0) { maxr = max([for (i = poly) i[1]]); maxh = max([for (i = poly) i[0]]); degrees = 360 * (height - maxh) / pitch; vertices = len(poly); ...
glb/cad_c51c50a49c35.glb
Create a eurobot mounting strip by starting with a base shape formed from the convex hull of two cylinders, each with a radius of 2.9mm and a height of 8mm, positioned 80mm apart along the x-axis. From this base, remove three identical screw holes to accommodate M3 screws. Each hole consists of a cylindrical shaft with...
$fn = 32; base_rad = 5.8/2; base_length = 80; base_height = 8; screw_head_rad = 7/2; screw_head_height = 3.4; screw_m3_rad = 3.4/2; difference() { hull() { translate([base_length/2,0,0]) cylinder(r=base_rad,base_height); translate([-base_length/2,0,0]) cylinder(r=base_rad,base_height); } translate([base_leng...
glb/cad_76535888b87e.glb
Create a T5 profile pulley with 24 teeth. The model consists of a toothed upper section and a supporting base. Start with a cylindrical base 8mm high with a diameter of 20mm. Centered on this base, add a toothed cylinder 12mm high with an outside diameter of 11.88mm. The teeth should follow the T5 profile, spaced even...
teeth = 24; profile = 5; motor_shaft = 5.2; m3_dia = 3.2; m3_nut_hex = 1; m3_nut_flats = 5.7; m3_nut_depth = 2.7; retainer = 0; retainer_ht = 1.5; idler = 0; idler_ht = 1.5; pulley_t_ht = 12; pulley_b_ht = 8; pulley_b_dia = 20; no_of_nuts = 1; nut_angle = 90; nut_shaft_distance = 1.2; additional_tooth_width = 0.2; ...
glb/cad_3d03c18e3bf9.glb
Create a eurobot base plate by starting with a central rectangular block measuring 66mm wide, 80mm long, and 6mm high. From this main body, remove two large, identical oblong cutouts centered along the length. Each cutout is formed by the convex hull of two cylinders with 10mm radii, spaced 30mm apart center-to-center ...
$fn = 32; battery_width = 66; slider_base_length = 80; top_plate_height = 6; nut_width = 6; screw_m3_rad = 3.5/2; difference() { cube(size=[battery_width,slider_base_length,top_plate_height],center=true); translate([-battery_width/2-0.1,slider_base_length/2-10,0])rotate([0,90,0]) cylinder(r=screw_m3_rad,20); tran...
glb/cad_6f7fd504c181.glb
Create a eurobot pulley by starting with a timing pulley designed for an XL profile with 11 teeth, a pitch diameter of 64.68mm, and a width of 3.051mm. Build a central hub around the pulley using a hull of two cylinders: one with a radius of 7.5mm and a height of 3.5mm, and another with a radius of 9mm and a height of ...
$fn = 32; teeth = 11; motor_shaft = 1; pulley_t_ht = 16; include <Pulley_T-MXL-XL-HTD-GT2_N-tooth.scad>; shaft_radius = 5.4/2; difference() { union() { pulley ( "XL" , XL_pulley_dia , 1.27, 3.051 ); hull() { cylinder(r=15/2,h=3.5); cylinder(r=18/2,h=3); } } difference() { translate([0,0,-1]) cylind...
glb/cad_25384309f627.glb
Create a eurobot mount by starting with a base shape formed by the convex hull of two cylinders, each with a radius of 5mm and a height of 10mm, positioned 73mm apart along the x-axis. From this main body, remove two vertical holes with a radius of 1.75mm centered at x = 26.25mm and x = -26.25mm, each extending 20mm th...
$fn = 64; pcb_screw_hole_dist = 56-3.5; difference() { hull() { translate([-73/2,0,0]) cylinder(r=5,10); translate([73/2,0,0]) cylinder(r=5,10); } translate([pcb_screw_hole_dist/2,0,-1]) cylinder(r=3.5/2,20); translate([-pcb_screw_hole_dist/2,0,-1]) cylinder(r=3.5/2,20); translate([-73/2,0,6.8]) cylinder(r...
glb/cad_38e0d42e4487.glb
Create an Open Boat Tail Rocket nosecone assembly. Start by creating a cylindrical shoulder with a radius of 12.05mm and a height of 5mm. Centered on top of this shoulder, place a hemispherical cap with a radius of 12.65mm. To create the specific nosecone profile, scale the sphere along the vertical axis to a total hei...
nose_length=55; shoulder_length=5; coupler_radius=24.1/2; body_ext_radius=25.3/2; coupler_length=50; $fn = 100; union(){ difference() { cylinder(h=shoulder_length, r1=coupler_radius, r2=coupler_radius); cylinder(60,19.5/2,19.5/2); } translate ([0,0,shoulder_length]) scale([1,1,nose_length/body_ext_...
glb/cad_b6fb12729410.glb
Create an Open Boat Tail Rocket nosecone and coupler assembly. Start by creating a cylindrical shoulder with a radius of 12.05mm and a height of 5mm. Atop this shoulder, place a nosecone formed by a sphere with a radius of 12.65mm, scaled vertically to a total height of 55mm. The base of this scaled sphere should be fl...
nose_length=55; shoulder_length=5; coupler_radius=24.1/2; body_ext_radius=25.3/2; coupler_length=50; $fn = 100; union(){ difference() { cylinder(h=shoulder_length, r1=coupler_radius, r2=coupler_radius); } translate ([0,0,shoulder_length]) scale([1,1,nose_length/body_ext_radius]) difference() { sphere(r=...
glb/cad_c1ab2d9fd6b9.glb
Create a rocket coupler ring by constructing a hollow cylinder. The outer wall should have a radius of 12.05mm and a total height of 5mm. Remove the center by creating a concentric cylindrical hole with a radius of 9.75mm, resulting in a ring with a wall thickness of 2.3mm. Ensure the geometry is smooth with a high fac...
nose_length=55; shoulder_length=5; coupler_radius=24.1/2; body_ext_radius=25.3/2; coupler_length=50; $fn = 100; difference(){ cylinder(5,coupler_radius,coupler_radius); cylinder(5,19.5/2,19.5/2); }
glb/cad_1f1102275ba0.glb
Create an Open Boat Tail Rocket component consisting of a hollowed cylindrical base and a capped top. Start by creating a main hollow cylinder with an outer radius of 12.05mm and an inner radius of 9.75mm, extending to a height of 24mm. On top of this base, add a solid cylindrical disc with a radius of 12.65mm and a th...
nose_length=55; shoulder_length=5; coupler_radius=24.1/2; body_ext_radius=25.3/2; coupler_length=50; $fn = 100; union(){ difference(){ cylinder(24,coupler_radius,coupler_radius); cylinder(24,19.5/2,19.5/2); } translate([0,0,24])cylinder(5,body_ext_radius,body_ext_radius); translate([0,0,29])difference(){ cy...
glb/cad_68e634dce546.glb
Create a ring-shaped component for an Open Boat Tail Rocket. Construct a hollow cylinder with an outer diameter of 18mm and an inner diameter of 14mm. The height of the cylinder should be 5mm. Ensure the walls are smooth and the geometry is perfectly concentric.
nose_length=55; shoulder_length=5; coupler_radius=24.1/2; body_ext_radius=25.3/2; coupler_length=50; $fn = 100; difference(){ cylinder(5,18/2,18/2); cylinder(5,7,7); }
glb/cad_cef5baeaa453.glb
Create a PrusaFeet support foot by extruding a specific symmetrical profile to a height of 50mm. The profile consists of a central T-shaped section flanked by two outer blocks. Start with a central rectangular column 10mm wide and 1.2mm thick. On each side of this column, create a mirrored slit geometry: the slit begin...
LENGTH = 50; module T3030_flex(height) { slit_uw = 8; slit_lw = 6; slit_d = 6; wall = 2.5; t_w = 10; t_h = 1.2; vertices = [[0,0], [slit_uw/2,0], [slit_uw/2, -wall], [t_w/2, -wall], [t_w/2, -(wall+t_h)], [slit_lw/2, -slit_d], [0, -slit_d], [0,0]]; linear_extrude(height=height) { ...
glb/cad_f001c2e1bfe8.glb
Create a battery-shell consisting of a top and bottom housing clamped together around a central battery pack and PCB. The top housing is a rectangular block with an outer footprint of 68mm by 99mm and a height of approximately 25mm. The bottom housing mirrors these outer dimensions with a height of approximately 25mm...
include <tols.scad> include <smooth_make.scad> include <bolt_params.scad> use <bolts.scad> standoff_h = 44.5; standoff_r = 6/2; feet_h = 15; max_h = 70; pcb_h = 1.55; pcb_x = 64; pcb_bx = 55; pcb_wx = 46; pcb_y = 95; pcb_by = 87; pcb_wy = 76; pcb_br = 3.5/2; bolt_sm = 2*sm_base; form_t = 3; lip_h = 5; top_s = 3;...
glb/cad_92b813a03920.glb
Create a stencil for agar plates by starting with a thin circular disk 85mm in diameter and 1mm thick. Remove material to create a central circular hole 1.5mm in diameter. From this center, carve six identical radial patterns spaced evenly every 60 degrees around the circle. Each radial pattern consists of a thin recta...
outer_diameter=85; thickness=1; number_of_sectors=6; module cutline(rotation){ rotate(rotation){ translate([5,-.75,0]){ cube([35,1.5,10]); } translate([5,0,0]){ cylinder(d=1.5,h=10,$fn=100); } translate([40,0,0]){ cylinder(d=1.5,h=...
glb/cad_8861cce0647a.glb
Create a shallow rectangular tray with a lid. The main body consists of a flat rectangular base measuring 103.2mm by 95.2mm with a thickness of 1.6mm. Attached to the edges of this base are four vertical walls, each 1.6mm thick and 20mm high. Two of these walls run the full length of the base, while the other two are s...
w_width=1.6; hloubka=92; vyska=60; vyska_viko=20; v1=78; v2=v1+24; v3=v2+6; v4=v3+7; v5=v4+6; v6=v5+12; v7=v6+50; delka=v7+7*w_width; mez=0.5; module spodek(add) { translate([0, 0, -w_width]) cube(size=[delka+w_width+add+mez, hloubka+w_width*2+add+mez, w_width], center=false); } module bok_dlouhy(y, add, height, m...
glb/cad_02f721f3ffde.glb
Create a small container by combining a cylinder and a sphere. Start with a cylinder that has a radius of 3.95mm and a height of 5mm, centered on the origin. At the bottom of this cylinder, center a sphere with a radius of 3.95mm. To create the interior cavity, remove a hexagonal prism from the center of the combined s...
vyska=5; sirka=7.9/2; sirka_sroub=6.9/2; $fn=300; difference() { cylinder(r=sirka, h=vyska, center=true); cylinder(r=sirka_sroub, h=vyska+1, center=true, $fn = 6); } translate([0, 0, -vyska/2]) { difference() { sphere(r=sirka); translate([0, 0, 5]) cube(size=[20, 20, 10], center=true); } }
glb/cad_b4d8b1870ef9.glb
Create a 3D model consisting of two rectangular prisms. First, construct a main vertical block with a width of 20mm, a depth of 18mm, and a height of 35mm. Then, place a second, smaller rectangular prism directly on top of the first one. This top piece should have a width of 20mm, a height of 2mm, and a depth of 1.5mm,...
vyska=35; sirka=20; hloubka=18; color("orange") { cube(size=[sirka, hloubka, vyska], center=false); translate([0, 0, vyska]) { cube([sirka, 1.5, 2]); } }
glb/cad_fbb857c607e7.glb
Create a flat, triangular ring with a thickness of 10mm. The outer boundary is a triangle defined by the vertices [0,0], [80,95], and [0,95]. Inside this outer boundary, remove a smaller concentric triangular hole defined by the vertices [5,5], [60,87], and [10,87] to create a consistent wall thickness. Extrude this 2D...
module podpora() { triangle_points =[ [0,0], [12, 0],[80,95],[0, 95], [5,5], [8,5],[60, 87],[10,87] ]; triangle_paths =[[0,1,2,3],[4,5,6,7]]; polygon(triangle_points,triangle_paths); } linear_extrude(height = 10, center = true, convexity = 10, twist = 0) podpora() ;
glb/cad_8c4a438db62b.glb
Create a thin, cylindrical disc with a radius of 24mm and a total height of 2mm. Ensure the shape is centered on all axes.
linear_extrude(height=2, center=true, convexity=10, twist=0) { circle(r=48/2); }
glb/cad_08ac66039932.glb
Create a hexagonal prism with a height of 18mm and a radius of 5mm. Ensure the prism has exactly six sides to maintain a sharp hexagonal profile.
sirka=5; vyska=18; color("red") cylinder(vyska, sirka, sirka, $fn = 6);
glb/cad_6ab9dc4c9f48.glb
Create a 3D model of a cone with a height of 18mm and a base radius of 5mm. The shape should be rendered as a low-resolution prism with only 6 facets around its circumference.
sirka=5; vyska=18; color("green") cylinder(vyska, sirka, 0.5);
glb/cad_1aab979b386c.glb
Create a SlicerTestModels object by starting with a sphere that has a radius of 7.5mm. Remove a thin slice from the bottom of the sphere by centering a cube with a width and depth of 15mm and a height of 1.5mm at the base. Finally, carve a numeral 1 into the top of the sphere; the character should be 6mm in size, cente...
$fn = 120; radius = 7.5; taper_frac = 0.2; text_depth = 1; difference() { sphere(r=radius); translate([-radius, -radius, -radius]) { cube([radius * 2, radius * 2, radius * taper_frac]); } translate([0, 0, radius - text_depth]) { linear_extrude(height = text_depth) { text("1", halign="center", valign="center...
glb/cad_1d83f9c9089c.glb
Create a SlicerTestModel by starting with a solid rectangular prism measuring 30mm in width, 10mm in depth, and 30mm in height. From this main volume, remove a smaller rectangular section to create a cutout. This cutout should measure 20mm in width, 10mm in depth, and 10mm in height, and must be positioned so that its ...
difference() { cube([30, 10, 30]); translate([10, 0, 10]) { cube([20, 10, 10]); } }
glb/cad_819b1593edfc.glb
Create a SlicerTestModels object by starting with a solid rectangular prism measuring 20mm in width, 10mm in depth, and 40mm in height. From this main body, remove two smaller rectangular volumes to create cutouts. Position the first cutout, a 10mm cube, at the bottom center of the front face, extending from the front ...
difference() { cube([20, 10, 40]); translate([10, 0, 20]) { cube([10, 10, 10]); } translate([10, 0, 0]) { cube([10, 10, 10]); } }
glb/cad_b506d0d1b7e0.glb
Create a SlicerTestModel by starting with a solid rectangular base measuring 40mm in width, 40mm in depth, and 5mm in height. From this base, remove a smaller rectangular section to create a hollow cutout. This cutout should be 30mm wide and 35mm deep, positioned 5mm from the front edge and centered along the width, ex...
difference() { cube([40, 40, 5]); translate([5, 0, 0]) { cube([30, 35, 5]); } }
glb/cad_96070e5273ff.glb
Create a SlicerTestModels object by starting with a solid rectangular prism measuring 30mm in width, 10mm in depth, and 30mm in height. From this main volume, remove a smaller rectangular block measuring 20mm wide, 10mm deep, and 10mm high, positioned so its inner face starts 10mm from the left side and 10mm from the b...
overbite = 0.3; difference() { cube([30, 10, 30]); translate([10, 0, 10]) { cube([20, 10, 10]); } translate([30 - overbite, 0, 0]) { cube([overbite, 10, 10]); } }
glb/cad_82e447aa1178.glb
Create a 3D model of the digit "0" by extruding a text character. The shape should be a flat, solid slab with a height of 1mm. The geometry must follow the standard typeface of a zero, forming a continuous loop with a hollow center. Ensure the outer and inner boundaries are defined by the character's glyph, resulting i...
linear_extrude(height = 1) { text("0"); }
glb/cad_967481569d3b.glb
Create a SlicerTestModels object by constructing a hollow cylindrical vessel. Start with a main cylinder that has an outer radius of 22mm and a height of 20mm. Add a wider, thin base disk at the bottom with a radius of 24mm and a height of 2mm. To create the hollow center, remove a cylindrical core with a radius of 21m...
$fn=100; difference() { union() { cylinder(r=22, h=20); cylinder(r=24, h=2); } cylinder(r=21, h=20); }
glb/cad_afa2e4fc2a35.glb
Create a SlicerTestModels object consisting of six distinct geometric layers, each 1mm thick, stacked vertically from z=0 to z=5. The first layer at z=0 is the convex hull of a 1mm cube centered at the origin and a cylinder with a 5mm radius positioned at x=5, y=5. The second layer at z=1 is a cylinder with a 10mm radi...
$fs = 0.1; $fa = 0.5; translate([0, 0, 0]) { hull() { cube(1); translate([5, 5, 0]) { cylinder(r=5, h=1); } } } translate([0, 0, 1]) { difference() { cylinder(r=10, h=1); translate([-10, 0, 0]) { cube([20, 10, 1]); } } translate([-5, 0, 0]) { cylinder(r=5, h=1); } translate([5, 0, 0]) { c...
glb/cad_e649a565fa44.glb
Create a coathook model consisting of a central base and three radiating hooks. Start by creating a central vertical cylinder with a diameter of 14mm and a height of 60mm. From this base, extend three identical hook arms spaced 90 degrees apart. Each arm begins with a rectangular connector block 14mm wide, 10mm thick...
module coathook(fn,basediameter,distance,hookthickness,hookdiameter) { union() { cylinder(r=basediameter / 2, h=60, $fn=fn); for(angle = [0 : 90 : 180]) { rotate([0, 0, angle]) { translate([-basediameter / 2, -basediameter / 2, 0]) { union() { cube([basediameter, basediameter + distance + hookthi...
glb/cad_2b3f874176f2.glb
Create a SlicerTestModels ring by constructing a hollow cylinder. Start with a solid cylinder that has a radius of 30mm and a height of 10mm. From the center of this volume, remove a smaller concentric cylinder with a radius of 28mm and the same height of 10mm to create a thin-walled tube. Ensure the final geometry is ...
rotate([90, 0, 0]) { difference() { cylinder(r=30, $fs=0.2, $fa=1, h=10); cylinder(r=28, $fs=0.2, $fa=1, h=10); } }
glb/cad_b77805227dc8.glb
Create a SlicerTestModels object consisting of six stacked rectangular prisms. Start with a base prism measuring 50mm in width, 10mm in depth, and 10mm in height. Position each subsequent prism directly on top of the previous one, shifting the starting height upward by 10mm for each layer. For every new layer, reduce t...
steps = 5; stepsize = 10; for(step = [0:steps]) { translate([0,0,step * stepsize]) { cube([(steps - step) * stepsize, stepsize, stepsize]); } }
glb/cad_b7ee3867c327.glb
Create a SlicerTestModels corner piece by starting with a cube that is 100mm wide, 100mm long, and 10mm deep. Rotate this base cube 45 degrees around the Z-axis. From this rotated volume, remove a smaller cube measuring 50mm by 50mm by 10mm, positioned such that its center aligns with the center of the larger cube's wi...
module corner(size, depth) { rotate([0, 0, 45]) { translate([-size / 2, -size / 2, 0]) { difference() { cube([size, size, depth]); translate([size / 2, 0, 0]) { cube([size / 2, size / 2, depth]); } } } } ...
glb/cad_b90e8cf81e2f.glb
Create a SlicerTestModels object consisting of two bowl-like components. First, construct a large bowl by creating a sphere with a radius of 50mm and removing a second sphere with a radius of 80mm centered 40mm above the first sphere's center. Second, create a smaller version of this same bowl shape, scaled down to 50%...
module bowl() { difference() { sphere(r = 50, $fn=90); translate([0, 0, 40]) sphere(r = 80, $fn=90); } } bowl(); translate([0, 0, -70]) { mirror([0, 0, 1]) scale([0.5, 0.5, 0.5]) bowl(); }
glb/cad_7255667c93d4.glb
Create a SlicerTestModels bee tile by starting with a hexagonal prism base that has a radius of 25mm and a height of 8mm. Centered on the top surface of this hexagon, carve out a bee-shaped void. Construct the bee's body using three overlapping scaled spheres: a central body sphere scaled to 7.5mm x 3.75mm x 1.875mm,...
tileRadius = 25; tileHeight = 8; $fs = 0.5; $fa = 5; module tile() { cylinder(r = tileRadius,h = tileHeight,$fn = 6); } module bee() { translate([-tileRadius * 0.1, 0, 0]) { scale([2, 1, 0.5]) { sphere(r = tileRadius * 0.15); } translate([tileRadius * 0.06, 0, 0]) { ...
glb/cad_947213ded02f.glb
Create a SlicerTestModel consisting of a semi-circular ring and an attached rectangular block. First, construct a semi-circular arc with a thickness of 4mm, an inner radius of 10mm, and a height of 15mm, spanning 180 degrees. Attached to the flat base of this arc, position a rectangular block measuring 4mm wide, 30mm l...
$fn=180; rotate_extrude(angle=180) { translate([10, 0, 0]) { square([4, 15]); } } translate([10, -30, 0]) { difference() { cube([4, 30, 15]); translate([-1, 15, 7.5]) { rotate([0, 90, 0]) { cylinder(h=6, r=2); } } } }
glb/cad_1a5820e01cf9.glb
Create a heart-shaped pendant with a total scale of 20mm. The main body should be a 3D heart shape that is flattened along its vertical axis to 25% of its original thickness. Pierce two vertical holes through the top of the heart, each with a diameter of 2mm, positioned symmetrically at 5mm from the center on either ...
resolution = 2; size = 20; hole_diameter = 2; front_text = "H"; back_text = "R"; font = "Dancing Script"; alength = 180 / resolution + 1; blength = 360 / resolution + 1; recipsize = 180 / size; function cardioid(x) = cos(x) * x / recipsize; function sardioid(x) = sin(x) * x / recipsize; function halfcircle(x) = sin(x...
glb/cad_19e85e6daa39.glb
Create a wedge triangle with a thickness of 5mm. The base of the wedge is a triangle defined by two legs meeting at a point located at the origin. The first leg extends 8mm along the x-axis, and the second leg extends 15mm from the origin at a 90-degree angle relative to the first leg. Extrude this triangular profile t...
module wedge(angle, leg1, leg2, height = 0.5) { side = [sqrt(leg1 * leg1 + leg2 * leg2 - 2 * leg1 * leg2 * cos(angle)), leg1, leg2]; i = (leg2 > leg1) ? 2 : 1; longest_leg = side[i]; longest_side = (side[0] > longest_leg) ? side[0] : longest_leg; sa = asin(side[3 - i] * sin(angle) / sid...
glb/cad_c29caf583b69.glb
Create a holder for an airborne cosmic radiation dosimeter. Start with a rectangular base block measuring 60.96mm in length, 10mm in height, and 30.48mm in width. Remove material to create four vertical mounting holes for screws. These holes are positioned at the four corners of the base: two at x=5.08mm and two at x...
modul_x=6; modul_y=4; prumer_sroubu=3.2; delka_sroubu=12; prumer_hlavy_sroubu=8.2; vyska_hlavy_sroubu=4.3; vyska_matky=3; sirka_matky=6.7; vzdalenost_der = 10.16; sila_steny=4; pocet_der_zakladny=3; vyska_zakladny=10; PCRDHOLDER01A(); module PCRDHOLDER01A() { difference() { union(){ cube([(modul_x)*vzdalenost_...
glb/cad_764fa166dd97.glb
Create a base plate for an airborne cosmic radiation dosimeter. Start with a rectangular slab measuring 50mm by 30mm with a thickness of 2mm. Round all four vertical corners with a radius of 2mm. At each of the four corners, create a mounting hole. The center of these holes should be positioned 3mm from the side edge...
include <../configuration.scad> UNIBOX04A_D01(); module UNIBOX04A_D01(){ difference () { translate([-(rozmer_x/2-zakulaceni_hrany),-(rozmer_y/2-zakulaceni_hrany),0]) minkowski() { cube([rozmer_x-2*zakulaceni_hrany,rozmer_y-2*zakulaceni_hrany,sila]); ...
glb/cad_d96b270ed02e.glb
Create an electrode holder consisting of two separate parts: a main cap and a stopper. For the main cap, start with a central rectangular block measuring 50mm in length, 25mm in width, and 18mm in height. Remove two horizontal cylindrical tunnels, each 10mm in diameter, running lengthwise through the center of the bl...
flag_throw_together = true; electrode_d = 1; platform_l = 30; holder_grip_l = 50; grip_thick = 4; holder_d = 10; holder_gap = 5; l_stopper = 10; h_stopper = 4; d_screw = 5; h_cap = holder_d + 2*grip_thick; w_cap = 2*holder_d + 2*grip_thick + holder_gap; offset_grip_side = (holder_d+holder_gap)/2; offset_platform =...
glb/cad_af0ca59d7166.glb
Create a 3D floor duct consisting of a hollowed-out ramped shell and a central vertical column. First, construct the outer body as a hull that spans 285mm in width, 135mm in depth, and 30mm in height, tapering from the outer edges toward the center. Hollow this body by removing a smaller internal version of the same ra...
width = 285; depth = 135; height = 30; module side(depth,height,xpos,ypos) { hull(){ translate([xpos,0,0]) cube([1,1,1],true); translate([xpos,0,height]) cube([1,1,1],true); translate([xpos,-depth,0]) cube([1,1,10],true); } } module ramp(width,depth,height) { hull(){ side(depth...
glb/cad_406141da724d.glb
Create a Dyson Fluffy Clamp designed to reinforce a latch. The main body is a vertical semi-cylindrical shell with a height of 20mm. The inner cavity is a cylinder with a radius of 9mm, while the outer boundary is a larger cylinder with a radius of 28mm. The clamp features a central cutout to accommodate the latch, d...
include <tols.scad> include <smooth_make.scad> include <bolt_params.scad> use <bolts.scad> sm = 10*sm_base; dyson_r = 50/2; dyson_w = 23; dyson_h = 8; dyson_rr = 1; dyson_br = 18/2; dyson_fr = 2.7; clamp_t = 3; clamp_bg = 2; clamp_r = dyson_r + clamp_t; clamp_h = 20; clamp_bh = 15; clamp_cc = 3.5; clamp_br = m3_h...
glb/cad_2b71c9149a8e.glb
Create a caddybed, which is a rectangular storage organizer. The main body is a box with an overall width of 110mm, depth of 85mm, and height of 38mm. Construct the side walls by creating two vertical legs on each side. Each leg is a rectangular prism with a thickness of 4mm and a height of 38mm. Position these legs a...
include <caddy.scad>; width = 110; deph = 85; hight = 38; union(){ translate([1,5,0]){ CaddyBox(); } } module bar_v(x,y,l){ color("red"){ cube([x,y,l],false); } } module bar_h(x,y,l){ color("yellow"){ cube([x,l,y],false); } } module bar_t(x,y,l){ color("yellow"){ ...
glb/cad_b4ea37a793e5.glb
Create a rectangular holder for game tokens with overall dimensions of 33.5mm width, 113mm depth, and 47.4mm height. The main body is a solid block, but the bottom front section must have a rectangular cutout measuring 27mm wide and 113mm deep with a height of 4mm to allow for a board to fit. Within the main block, cr...
TOKEN_DIA = 15.5; TOKEN_H = 5.3; TOKEN_GRIP_PCG = 0.4; TOKEN_WALL = 3; FLOOR = 2; BLDNG_BOARD_H = 2; BLDNG_BOARD_EXTRA = 25; BOX_D = 107+6; BOX_W = 33.5; BOX_H = FLOOR + TOKEN_H*8 + BLDNG_BOARD_H; R=1; TEXT_H = 0.5; difference() { translate([-BOX_W/2, -BOX_D/2, 0])cube([BOX_W, BOX_D, BOX_H]); for(y=[-2,-1...
glb/cad_ab376668927f.glb
Create a countersunk mounting hole for an M2 screw. Start by creating a cylindrical screw body with a radius of 1.05mm and a length of 15mm, extending downwards along the z-axis. Above this body, add a conical screw head with a height of 1.25mm, tapering from a top radius of 1.95mm down to the 1.05mm radius of the scre...
module tube(h, inner_r, outer_r) { difference() { cylinder(h=h, r=outer_r); translate([0,0,-iota/2]) cylinder(h=h+iota, r=inner_r); } } din963 = [ [2, 0.4, 3.8, 1.2, 0.5, 0.4], [2.5, 0.45, 4.7, 1.5, 0.6, 0.5], [3, 0.5, 5.6, 1.65, 0.8, 0.6], [3.5, 0.6, 6....
glb/cad_7bcd58b50a97.glb
Create a dust separating cyclone adapter consisting of a tiered cylindrical structure. Start with a base reducer that is 12mm high, tapering from a bottom radius of 32mm to a top radius of 25mm. Atop this reducer, add a cylindrical tube with an outer radius of 25mm and a height of 30mm, featuring a concentric hollow ce...
$fn=360; iota=0.1; use <common.scad>; thickness=3; flange=20; flangeheight=flange/2; outerheight=50; innerheight=50; innerradius=25; module din_adapter(height=40, outer_r=50/2) { inner_r = outer_r - thickness; difference() { cylinder(h=height, r=outer_r); translate([0,0,-iota/2]) ...
glb/cad_009dbb5f5bb3.glb
Create a cyclone mounting ring by constructing a flat, circular washer with a total height of 3mm. The ring should have an inner radius of 32mm and an outer radius of 42mm, resulting in a wall width of 10mm. To complete the part, add nine small mounting holes through the thickness of the ring. These holes should each h...
$fn=360; iota=0.1; use <common.scad>; thickness=3; flange=20; flangeheight=flange/2; outerheight=50; innerheight=50; innerradius=25; module ring(inner_r=64/2, width=20, height=4) { difference() { cylinder(h=height, r=inner_r+width); translate([0, 0, -iota/2]) cylinder(h=height+i...
glb/cad_f57d4ffb4589.glb
Create a hose adapter for a dust separating cyclone. Start by constructing a hollow cylinder with a height of 50mm, an outer radius of 32mm, and an inner radius of 29mm. At the top of this cylinder, add two opposing rectangular notches for a bayonet connector; each notch should be 7mm wide, 5.5mm deep, and 5.5mm high, ...
$fn=360; iota=0.1; use <common.scad>; thickness=3; flange=20; flangeheight=flange/2; outerheight=50; innerheight=50; innerradius=25; module hose_adapter(height=40, inner_r=58/2, outer_r=64/2) { notches_distance=18; module notches(width=7, depth=5.5, height=5.5) { module notch(width, depth, heig...
glb/cad_c285fbff96a6.glb
Create a Twirre drone test platform mount consisting of two distinct flat plates. First, create a rectangular base plate measuring 50mm by 50mm with 5mm rounded corners. This plate has a total thickness of 4mm. On this plate, place four 3mm diameter circular holes centered at the corners, specifically positioned 20mm...
$fn = 30; module _baseMountFlat(MainBoltSunked){ width = 50; height = 50; horSpacing = 40; vertSpacing = 32; edgeRadi = 5; mountDia = 3; pivotDistance = 41; difference(){ hull(){ translate([width/2-edgeRadi,height/2-edgeRadi])circle(r=edgeRadi); translat...
glb/cad_b2c02e0dfa4f.glb
Create two distinct plates for a drone test platform, both with a thickness of 2mm. For the top plate, create a base shape by combining a 32mm by 32mm square centered on the Y-axis (from -16mm to 16mm) with a trapezoidal section defined by vertices at [0,-16], [32,-16], [17,-33], and [3,-33]. Remove four screw holes:...
$thickness = 2; module screw(){ translate([0,0,-$thickness/2]) cylinder(d=3.5,10,$fn=40); translate([0,0,$thickness/2]) cylinder(d=4,10,$fn=40); } module topPlate(){ difference(){ union(){ translate([0,-16,0]) cube([32,32,$thickness]); linear_extrude(height...
glb/cad_e4115818c632.glb
Create a battery compartment for the Twirre drone test platform. Start with a main outer shell that is 151mm long, 58mm wide, and 52mm high (calculated from a base battery size of 142x52x46mm with 3mm walls). Hollow out the center to create a cavity of 142mm by 52mm by 46mm. On the side walls, incorporate ventilation...
include <lib/flamewheel.scad>; include <lib/railSystem.scad>; $batLength = 142; $batHeight = 46; $batWidth = 52; $wallSize = 3; module battery(){ union(){ color([0.2,1,0.2,1]) translate([0,1.5,1.5])cube([$batLength,$batWidth - 3,$batHeight - 3]); rotate([0,-90,0]){ transla...
glb/cad_de7852ed39bb.glb
Create a Twirre drone test platform camera mount. Start with a rail mount base that is 20mm wide. Centered on the top surface, add a rectangular block measuring 3mm by 6mm by 36mm, and another rectangular block measuring 3mm by 6mm by 20mm positioned directly above it. From this combined structure, remove a cylinder ...
include <lib/railSystem.scad>; module IDScamMountHor(){ rotate([0,-90,0]) difference(){ union(){ railMount(20); translate([0,-17,-36/2])cube([3,6,36]); translate([0,-16,-3])cube([3,6,13]); } translate([10,-25,0])cylinder(d=20,20); translate([...
glb/cad_17570257d3e3.glb
Create a landing gear base for a drone test platform. Start by constructing a main body using a polygon with vertices at [-2, -2], [17, -2], [33.5, 36], and [-2, 36], extruded to a height of 9.4mm. From this main body, remove several geometric features: first, create two 10-sided cylindrical holes with a diameter of ...
include <lib/flamewheel.scad>; module landingGear_Base($boltDia = 2.5, $text="Twirre"){ difference(){ translate([0,9.5,0]) rotate([90,0,0]) linear_extrude(height = 9.40) polygon( points=[ [-2,-2], [17,-2], [33.5,36], [-2,36], ]...
glb/cad_419815ee32ca.glb
Create a Twirre drone test platform case. Start by constructing a base floor with a thickness of 4mm. The base should be a union of a rectangle with dimensions 112.5mm by 113.5mm and a second rectangle of 155mm by 40mm, creating an L-shaped footprint. Build vertical walls around the perimeter of this base to a height...
boardWidth = 101.5; boardLength = 101.5; boardEdgeRadi = 4; caseWidth = boardWidth + 7.5; caseDepth = boardLength + 12; caseRearWidth = 155; caseRearDepth = 40; caseWallHeight =70; caseConnectorHeight = 4; caseConnectorSize = 25; caseWallThickness = 5; case_rightholesize = 45; case_rightholeoffset =45; case_leftholes...
glb/cad_d46c2f307a9b.glb
Create a rectangular plate for the Twirre drone test platform with dimensions of 6mm in width, 12mm in length, and 1.5mm in height. Center a circular hole with a diameter of 3.5mm through the thickness of the plate, positioned exactly 6mm from the shorter edge along the center line of the length. Ensure the hole is dri...
difference(){ cube([6.0,12,1.5]); translate([0,6,-1]) cylinder(d=3.5,10,$fn=50); }
glb/cad_fa61da23ed7b.glb
Create a Twirre drone test platform part by starting with a central rectangular block measuring 76mm in length, 7mm in width, and 3mm in height, centered on the origin. At each end of this block, centered on the width and height, add a cylinder with a diameter of 7mm and a height of 8.5mm, extending from a base of -5.5...
difference() { union(){ translate([76/2,0,-5.5]) cylinder(d=7,8.5, $fn=50); translate([-76/2,0,-5.5]) cylinder(d=7,8.5, $fn=50); translate([0,0,-4]) cube([76,7,3],center=true); } translate([76/2,0,-10]) cylinder(d=3.5, 20, $fn=50); ...
glb/cad_fc93bc4c619b.glb