Prompt
stringlengths
38
2.2k
Code
stringlengths
7
5.77M
3d_glb
stringlengths
24
24
Create a LenslessDive stereoscope consisting of a face section, a connecting tube, and a phone holder. First, construct the face section as a block 150mm wide, 67mm high, and 70mm long. Hollow out the center to create a face-shaped cavity with a width of 126mm. Incorporate a central divider wall 3mm thick that runs t...
diveWidth = 150; faceWidth = 126; diveHeight = 67; faceLength = 70; tubeLength = 35; hWall = 3; vWall = hWall; dividerWall = hWall; strapWidth = 40; connectorHeight = 10; connectorWidth = connectorHeight; connectorThickness = 5; eCut = 0.1; module faceCut() { headR = faceWidth * 0.625; noseSize = 35; noseWidth = no...
glb/cad_8805228acc3d.glb
Create a candy dispenser consisting of four main components: a bottom base, a sliding mechanism, a top reservoir, and a lid. Construct the bottom base as a cylinder with a radius of 21mm and a height of 17mm. Remove a central vertical cylinder with a radius of 7.5mm and a height of 2mm. Cut a rectangular slot through ...
candyr = 7.5; overlap = 0; wall = 2; tolerance=1; outwall = 6; hheight = 25; cheight = 10; candyh = 5; inleth = candyh/2; outleth = 2; handlewy = 6; handlewx = candyr*2+wall+outwall+tolerance*2; buttonx = 3; buttony = 8; doveoffset = 22; slidewx = candyr*4 - overlap + wall*2; slotwx = candyr*6 - overlap*2 + wall*2 +...
glb/cad_d1250b04ee0f.glb
Create a candy dispenser consisting of a bottom base, a sliding mechanism, and a top hopper. For the bottom base, create a cylinder with a height of 11mm and a radius of 15mm. Subtract a central cylinder with a radius of 7.5mm and a height of 2mm from the bottom. Cut a rectangular slot through the center of the base ...
candyr = 7.5; overlap = 0; wall = 2; tolerance=1; outwall = 6; hheight = 25; cheight = 10; candyh = 9; inleth = candyh/2; outleth = 2; handlewy = 4; handlewx = candyr*2+wall+outwall+tolerance*2; buttonx = 3; buttony = 8; doveoffset = 22; slidewx = candyr*4 - overlap + wall*2; slotwx = candyr*6 - overlap*2 + wall*2 ...
glb/cad_bee8c8f45fd6.glb
Create a Tank Cradle designed to hold a cylinder with a diameter of 133.35mm. Start with a solid rectangular base that is 100mm long, 100mm wide, and 66.675mm high. From the top face of this block, remove a semi-cylindrical volume with a radius of 66.675mm and a length of 150mm, centered along the length of the block...
MM_PER_INCH=25.4; FiveLbTankDiameter=5.25*MM_PER_INCH; TenLbTankDiameter=6.875*MM_PER_INCH; tankDiameter=133.35; holderLength=100; holderWidth=0.75*tankDiameter; baseMin=3; tInset=5; tInset2=tInset/2; tLen=holderLength/2-tInset2; tWid=holderWidth/2-tInset2; module tank(){ translate([0, 0, tankDiameter/2 + baseM...
glb/cad_c3410d5e8c5e.glb
Create a tool holder base as a rounded rectangular plate measuring 135mm wide, 50mm high, and 3mm thick. On the mounting side, create two circular holes with a radius of 2.125mm. Add structural support using three triangular prisms: one measuring 50mm by 75mm by 8mm, and two smaller ones measuring 17.5mm by 17mm by 3...
holder_w = 135; holder_h = 50; holder_d = 3; mount_d = 8; shaft_r = 4.25; micrometer_w = 17.6; micrometer_h = 8; micrometer_d = 17; micrometer_s_w = 16; micrometer_s_h = 13; micrometer_s_d = 12; micrometer_w_o = 45; micrometer_h_o = 30; tweezers_w = 10; tweezers_h = 3; tweezers_d = 10; spanner_w = 25; spanner_h...
glb/cad_7170082fe36e.glb
Create a 5V Relay case consisting of a base and a lid. For the base, create a rounded rectangular box with outer dimensions of 52mm in length, 33mm in width, and 18mm in height, using a corner radius of 2mm. Hollow out the center to create an interior cavity of 48mm by 29mm with a floor thickness of 2mm and wall thic...
$fn = 20 ; Length=48 ; Width=29 ; Base_height=16 ; Top_height=5 ; Thickness=2 ; Margin=0.1 ; Hole_x=43; Hole_z=9; Hole_r=3; Pin_y=7.5; Pin_z=9; Pin_size_y=11; Pin_size_z=5; Text="S + -"; Support_x=28; Support_y=21; module roundedCube(size, radius) { hull() { translate([radius, radius]) cylind...
glb/cad_1a613a8dc69c.glb
Create a y-axis bearing support for a 12mm steel rod. Start with a central rectangular block measuring 35mm by 35mm with a height of 25mm. Carve out a horizontal cylindrical channel through the center of the block to house the bearing; this channel consists of a central bore with a diameter of 21mm and a length of 30mm...
difference() { cube([35,35,25],center=true); union() { translate([0,0,12]) cube([36,36,25],center =true); translate([0,-14,0]) cylinder(37,2.5,2.5, center = true,$fn=200); translate([0,14,0]) cylinder(37,2.5,2.5, center = true,$fn=200); rotate([0,90,0]) union() { cylinder(30,10.5,10.5, center = true,$fn=200); cylinder...
glb/cad_d7cfe4873d7b.glb
Create a y-axis bearing holder for a RoBo 3D printer by starting with a central rectangular block measuring 35mm by 35mm with a height of 25mm, centered on the origin. Carve a horizontal cylindrical channel through the center of the block to accommodate a bearing and a 12mm steel rod; this channel consists of a central...
difference() { cube([35,35,25],center=true); union() { translate([0,0,12]) cube([36,36,25],center =true); translate([10,-14,0]) cylinder(37,2.5,2.5, center = true,$fn=200); translate([10,14,0]) cylinder(37,2.5,2.5, center = true,$fn=200); translate([-10,-14,0]) cylinder(37,2.5,2.5, center = true,$fn=200); translate([-...
glb/cad_d910f3341c32.glb
Create a Y-axis bearing support for a 12mm steel rod. Start by forming a main body that is a hybrid shape: create a cylinder with a radius of 8mm and a height of 10mm, then use a convex hull to merge it with a centered cube measuring 16mm by 16mm by 8mm. Position this combined mass so it is centered on the origin. From...
difference(){ hull(){ rotate([90,0,90]) translate([0,0,-1]) cylinder(10,8,8,center,$fn=90); translate([7,0,-15]) cube([16,16,8],center=true); } union(){ translate([3,0,-15]) cube([17,17,4],center=true); translate([-3,0,0]) rotate([90,0,90]) cylinder(20,6,6,center,$fn=90); } }
glb/cad_f31104966636.glb
Create a shopping cart token based on the Inkscape logo. Start by creating a cylindrical coin base with a total height of 5mm and a diameter of approximately 86.6mm (derived from the logo's coordinate bounds). On the top surface of the coin, extrude the Inkscape logo geometry to a height of 2.2mm. The logo consists o...
fudge = 0.1; height = 5; line_fn = 4; min_line_width = 1.0; function min_line_mm(w) = max(min_line_width, w) * 96/25.4; rect829_0_center = [-2.081149,10.045146]; rect829_0_points = [[23.637256,14.871769],[8.884657,14.209526],[-4.234070,12.976181],[-28.246669,9.731830],[-27.799553,5.218523],[-10.379545,7.897713],[6.696...
glb/cad_b143d9dd1cc4.glb
Create a 2.5D Inkscape Logo Coin by extruding the Inkscape logo geometry to a total height of 8mm. The model is a flat, stylized graphic consisting of several distinct polygonal regions that form the logo's silhouette. The primary shape is a thick, organic form resembling a stylized ink drop or splash, which should b...
fudge = 0.1; zsize = 8; line_fn = 4; min_line_width = 1.0; function min_line_mm(w) = max(min_line_width, w) * 90/25.4; path2_0_center = [0.000000,0.000000]; path2_0_points = [[-3.097764,-179.563698],[-7.306465,-179.379344],[-11.470107,-178.808881],[-15.554062,-177.851520],[-19.523701,-176.506471],[-23.344394,-174.7729...
glb/cad_49ddcb08905c.glb
Create a chain of hollow rhombic dodecahedra. Each individual module is based on a rhombic dodecahedron with a total height of 40mm. To create the hollow shell, remove the interior volume by subtracting three smaller rhombic dodecahedra from the center, each scaled to 0.75 of the original size and rotated 90 degrees re...
L=40; w=0.5; d=16.5; f=1.03; n=28; s=w/2+0.5; halfchain(3); %cube([220,140,1],center=true); module loop(p){ translate([-p*d,0,0])ring(n/2); translate([0,2*d*f/sin(360/n),0])chain(p); rotate([0,0,180]){translate([-p*d,0,0])ring(n/2); translate([0,2*d*f/sin(360/n),0])chain(p);} } module ring(m){ for(i=[0:(m-1)]){ ...
glb/cad_7b8544571b57.glb
Create a bowl based on a hollow sphere with an outer radius of 35mm and a wall thickness of 4mm. The bowl is open at the top, formed by subtracting a large cube from the upper section. At the bottom, add a circular base with a radius of 10mm and a height of 3.5mm, positioned at z = -34.5mm. Around the top edge, add a ...
thomson_scale =35; array_thickness = 6; base_offset = -thomson_scale + .5; base_height = 3.5; rim_offset = 3; rim_height = 1; bowl_wall = 4; make_bowl(thomson_40,40); module make_bowl(thomson,nthomson) { rotate([0,180,0]) difference() { union() { translate([0,0,base_offset]) linear_extrude(height=...
glb/cad_ab0b01163420.glb
Create an espresso steam knob by starting with a main cylinder 40mm in diameter and 25mm high. Hollow out the center of this cylinder with a smaller concentric hole 30mm in diameter, starting 5mm from the base, to create a thick-walled ring. Around the outer perimeter of the main body, create seven evenly spaced vertic...
module knob() { render() difference() { cylinder(r=20, h=25); translate([0,0,5]) cylinder(r=15,h=25); for(i=[1:7]) { rotate([0,0,i*360/7]) translate([25,0,0]) cylinder(r=7, h=20); } } cylinder(r=8, h=30); for (i=[1:7]) { rotate([0,0,(i+0.5)*360/7]) translate([10,0,12.5]) cube([18,2,25],c...
glb/cad_9cd29d1e9180.glb
Create a Customizable Frustum Ring designed to repair a pestle. Construct a hollow, tapered ring with a consistent wall thickness of 2.3mm. The ring should have a height of 23mm, but the total height including the rounded edges is 25.3mm. The inner diameter at the base is 44.6mm, tapering upward to an inner diameter of...
$fn=90; base_inner_dia=44.6; top_inner_dia=39; ring_height=23; ring_thick=2.3; total_height=ring_height+ring_thick; echo("total_height",total_height); color("LightGreen") rotate_extrude(angle=360,convexity=10) hull(){ translate([base_inner_dia/2+ring_thick/2,0,0]) circle(ring_thick/2); translate...
glb/cad_b98df7712895.glb
Create a Yacht Race Board Game Token. Start by forming the boat's hull as a 3mm high extruded polygon with a base width of 8mm and a length of 17mm, tapering slightly outward. Carve a rectangular void into the center of the hull measuring 6mm wide by 9.6mm long and 3mm deep, leaving a 1mm thick floor. Place two small r...
wid=8; len=17; baseHei=3; mastHei=11; small=0.01; difference() { linear_extrude(height=baseHei, scale=1.2) translate([-wid/2,6,0]) polygon([ [0,0], [wid/2,wid], [wid,0], [wid,-(len-wid)], [0,-(len-wid)] ]); translate([-wid*.75/2,-3,1]) cube([wid*.75, wid*1.2, 3]); } tra...
glb/cad_f2c5b906ff7e.glb
Create a set of 10 interlocking temple pieces for the board game Tikal. Each piece is a tiered platform with a height of 4.5mm, a base width of 45mm, and a base depth of 40mm. Construct the pieces such that each successive level shrinks in size by a factor of 0.07mm relative to the one below it. Each piece should fea...
part = "temple_exploded"; piece_height=4.5; piece_width=45; piece_depth=40; shrink_factor=.07; stairs_per_piece=3; small_corner=.92; large_corner=.85; stair_width_percent=.3; use <write/Write.scad> fontfilename="Letters.dxf"; startstufe=1; endstufe=10; anzahlstufen=endstufe-startstufe; tempelhoehe=piece_hei...
glb/cad_b10a3380098d.glb
Create a Pole Clamp consisting of a cylindrical bracket with a central hole and a curved cutout to grip a pole. Start with a main cylinder that has a diameter of 17.32mm and a height of 17.75mm. Through the center of this cylinder, create a vertical hole with a diameter of 8.8mm. Attached to this central cylinder, cre...
BoltClearanceHole=8.8; BoltHeadDimmensions=13; BoltHeadThickness=5.5; PoleDiameter=28.5; ClampGap=5; LengthOfClamp=50; BoltClearance=5; WallThickness=5; NutHole=false; BracketThickness=max(PoleDiameter/2+WallThickness-ClampGap/2,NutHole?WallThickness+BoltHeadThickness:0); BracketWidth=BoltHeadDimmensions/cos(30)+2*Wa...
glb/cad_efafea015ef3.glb
Create a Pole Clamp consisting of a central mounting bracket and a securing knob. Start with a main bracket body that is 13.6mm wide and 5mm thick. The bracket features a central circular hole with a diameter of 8.8mm to accommodate a bolt, passing through the center of the part. The outer profile of the bracket is a...
BoltClearanceHole=8.8; BoltHeadDimmensions=13; ClampGap=5; BoltClearance=5; WallThickness=5; BracketWidth=BoltHeadDimmensions/cos(30)+2*WallThickness; $fn=50; translate([0,0,BracketWidth/2])rotate([0,90,0])intersection(){ difference(){ union(){ translate([0,0,1.5]){ cylinder(...
glb/cad_41e8219fdd70.glb
Create a knurled knob for a pole clamp. Start with a main cylinder that has a diameter of approximately 20.46mm and a total height of 11.5mm. Bore a central hole through the entire height with a diameter of 8.8mm. Inside the cylinder, starting at a height of 6mm from the base, create a hexagonal recess with a flat-to...
use <../Libraries/Spiral_Extrude.scad> BoltClearanceHole=8.8; BoltHeadDimmensions=14; BoltHeadThickness=5.5; WallThickness=6; KnerlDepth=1; KnobDiameter=BoltHeadDimmensions/cos(30)+2*WallThickness; difference(){ cylinder(d=KnobDiameter,h=WallThickness+BoltHeadThickness); translate([0,0,-.1])cylinder(d=Bolt...
glb/cad_cba352975eab.glb
Create a parametric clamp for a heated bed by extruding a specific 2D profile to a total width of 10mm. The profile is a symmetrical, closed polygon that forms a C-shaped gripping mechanism. The pinching section of the clamp has a length of 6mm and a gap of 5.4mm between the two arms. The wider base section of the clam...
width = 10; thickness = 3; gap = 5.4; l1 = 6; l2 = 7; g2 = max(10, gap + 4); r = 0.45 * thickness; d = 0.1 * thickness; hg = gap/2; hg2 = g2/2; $fn=50; p = [ [ -l1, -hg - r], [ -l1, -hg - d - r], [ 0, -hg - d - r], [ l2, -hg2 - d - r], [ l2 + d, -hg2 - d - r], [ l2 + d, hg2 + d + r], [ l2, hg2 + d + r], ...
glb/cad_c93a73d45420.glb
Create a biquad UHF antenna mount consisting of a square base and a vertical cylindrical tower. Start with a square base 73mm wide and 6mm thick. In this base, create four rectangular slots to accommodate reflector wires; these slots should be 3.66mm wide and 88.15mm long, positioned symmetrically around the center. Ad...
$fn = 50; module base() { bsiz = 73; bthk = 6; slotsiz= (0.120 * 25.4) + 0.6; slotspc= (0.930 * 25.4)-(0.120 * 25.4); tscrew = (0.130*25.4); difference() { cube([bsiz,bsiz,bthk],center=true); { translate ([-0.5*slotspc,0.0,-bthk/2.0+slotsiz*0.375]) ...
glb/cad_7841f3ed6999.glb
Create a customizable step pulley. The model consists of one or more stacked pulley sections. For each section, create a central cylinder with a height of 0.5 inches (belt width) and a diameter of 5 inches. The pulley profile is formed by a central cylinder of diameter 4.375 inches (inner diameter) and a tapered oute...
include <write/Write.scad> RoundingQuality = 60; beltWidth = .5; beltHeight = .3125; BeltAngle = 40; arborOuterDiameter = .5; axleKey = .125; PulleyEdge = "true"; Pulley1Diameter = 5; Pulley2Diameter = 0; Pulley3Diameter = 0; Pulley4Diameter = 0; Pulley5Diameter = 0; Pulley6Diameter = 0; IncludeSetScrew = 0; ...
glb/cad_387d61eb3337.glb
Create a metric customizable step pulley consisting of a stack of two stepped sections. Each section is based on a belt width of 12.5mm and a belt height of 10mm, with a belt angle of 40 degrees. For the first pulley section, create a conical shape with a maximum diameter of 100mm and a minimum diameter of 80mm (calcu...
RoundingQuality = 60; beltWidth = 12.5; beltHeight = 10; BeltAngle = 40; arborOuterDiameter = 12.5; axleKey = 3.175; PulleyEdge = "true"; Pulley1Diameter = 100; Pulley2Diameter = 90; Pulley3Diameter = 0; Pulley4Diameter = 0; Pulley5Diameter = 0; Pulley6Diameter = 0; IncludeSetScrew = 0; module DrawErrorFlag(st...
glb/cad_5b1ff873fcfe.glb
Create a Parametric Hinged Token Case consisting of a bottom tray and a top lid. The internal dimensions of the case are 117mm in length, 112mm in width, and 25.5mm in height, with a wall thickness of 2mm. For the bottom tray, create a rectangular box with rounded corners (4mm fillet). The walls should feature a 0.8mm...
$fn=50; part = "bottom"; Defined_Dimensions = "inside"; Notch = "no"; case_length= 117; case_width= 112; case_height = 25.5; ff = 0.1; c_wall_full = 2; c_wall_lip = 0.8; c_fillet = 4; c_lip_height = 1.5; oi_d = 1; oi_h = 6; oi_v = 3; hbc_y_t = 20; hb_p_z = 10; hb_width = 25; latch_height = 7.5; h_or = 2.5; h_ir...
glb/cad_660da557105b.glb
Create a Koch Snowflake Vase by extruding a specific fractal polygon vertically. Start with a base 5-sided regular polygon centered on an ellipse with radii of 50mm for both the X and Y axes. Apply a Koch snowflake recursion to a depth of 2 on each edge of this polygon to create the complex, jagged star-like perimeter....
POLYGON = 5; DEPTH = 2; RADIUS_A = 50; RADIUS_B = 50; HEIGHT = 120; SCALE = 0.75; TWIST = 120; LAYER = 0.2; SLICES = HEIGHT / LAYER; $vpr=[55,0,45]; $vpt=[0,0,0]; $vpd=500; points = [for (i=[0:ceil(360/POLYGON):ceil(360/POLYGON)*(POLYGON-1)]) [cos(i)*RADIUS_A, sin(i)*RADIUS_B]]; points_koch = [for (i=[0:le...
glb/cad_a28e19753fd5.glb
Create a customizable mug by starting with a main cylindrical body that has a radius of 50mm and a height of 130mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a radius of 48mm, leaving a wall thickness of 2mm and a base thickness of 1mm. On the exterior side of the mug, attac...
echo(version=version()); height = 130; radius = 50; width = 1; handle_width1 = 20; handle_width2 = 10; handle_radius = 40; char = "\u2665"; font = "Cardo"; char_size = 80; char_depth = 2; type = "out"; if (type == "in"){ radius = radius-char_depth; } color("pink") difference(){ union(){ translate([0...
glb/cad_feb4951a3776.glb
Create a Universal Spool consisting of a central hollow tube and a base. Start by creating a hollow cylinder for the main tube with an outer diameter of 21mm, a height of 42mm, and a wall thickness of 1.5mm. To allow for material insertion, cut a small notch 1.2mm wide into the wall of this cylinder. Inside the tube,...
bottom = 0; lines = 3; diameter = 21; height = 42; notch = 1.2; rod = 13; thickness = 1.5; top = 0; function angles(end = 360, inc = 45, init = []) = end > 0 ? angles(end - inc, inc, concat(init, [ end - inc ])) : init; module propeller(diameter, height, thickness = 1.2, ang...
glb/cad_15c939bc69a3.glb
Create a Cell Phone Tripod Mount by starting with a solid rectangular block measuring 76.5mm in length, 15mm in width, and 74mm in height. Hollow out the center of this block by removing a smaller rectangular volume of 72.5mm by 11mm by 64mm, positioned 2mm from each outer wall and starting 10mm up from the base, to cr...
length = 72.5; width = 11; height = 70; box_thickness = 2; box(); module box() { difference() { cube([length+box_thickness*2, width+box_thickness*2, height+box_thickness*2]); translate([box_thickness,box_thickness,10]) { cube([length, width, height+10]); } translate([le...
glb/cad_3bda694c47b6.glb
Create a Bike Handlebar Plug consisting of a hollow cylindrical body with a rounded base. Start by creating a base disk with an outer radius of 12mm, an inner radius of 8.5mm, and a thickness of 3mm. The outer edge of this base disk should be rounded with a radius of 1.5mm. Above this base, extend a hollow cylinder upw...
thickness = 3; rInner=10; rOuter=12; height = 18; slitWidth=2; slitDepth=10; slitHeight=15; numSlits=6; difference(){ union(){ cylinder(r=rOuter, h=thickness); cylinder(r=rInner, h=height); translate([0,0,height]){ rotate_extrude(convexity = 10, $fn = 100) translate([rInner-thickness/2, 0, 0]) circle(r = ...
glb/cad_b8e2b9c638a9.glb
Create an ISO Metric Nut with a thread size of 8mm. Start by creating a hexagonal prism with a height of 5mm and a diameter of 16mm to serve as the nut body. At the center of this prism, create a vertical hole with a diameter of 8mm. Within this hole, carve an internal ISO coarse thread. The thread should have a pitc...
$fn = 30; WrenchSizes = 0; Type = 0; Thread = 8; Length = 16; Accros = 1; Down = 1; Space = 17; do_it(); module do_it() { for (ac=[1:Accros]) { for (dn=[1:Down]) { translate([ -(((Accros-1)*Space)/2)+((ac-1)*Space), -(((Down-1)*Space)/2)+((dn-1)*Space), 0]) { if (Type==0) hex_n...
glb/cad_6e4be136f7fa.glb
Create an iPhone 4 tripod mount starting with a main rectangular block measuring 80mm in length, 20mm in width, and 30mm in height. Centered within this block, create a vertical internal threaded hole with a 1/4-20 English thread specification, 20mm deep, positioned 60mm from the front edge along the center axis. To ...
include <threads.scad> difference(){ translate([0,-20/2,-10]) cube(size = [80,20,30]); translate([60,0,-21]) english_thread(1/4 + 0.025, 20, 2, internal=true); translate([25,-20/2,5]) cube(size=[80,20,30]); translate([25,0,5]) rotate(v=[0,1,0], a=45) translate([-30,-10,0]) cube(size=[30,20,20]); translate([8+5,1...
glb/cad_1f662b4e39cc.glb
Create a Quadcopter Flight Controller Customizable Stand-Off maker consisting of four hollow cylindrical standoffs connected by a square frame. Position four hollow cylinders at the corners of a square, each with a total height of 6mm, an inner radius of 2.2mm, and an outer radius of 3.2mm. These cylinders should be ...
standoff_height = 6; standoff_radius = 2.2; standoff_thickness = 1; mounting_hole_distance = 30.5; connector_height = 2; cyl_outside_r = standoff_radius + standoff_thickness; mnt_distance = mounting_hole_distance/2; mnt_holes_num = 4; difference(){ rotate([0,0,45]){ difference(){ cube([mnt_distance...
glb/cad_be61a69857a0.glb
Create a glasses case consisting of two symmetrical mirrored halves that fit together. Each half is a hollowed-out shell with a wall thickness of 1.5mm and a base thickness of 0.6mm. The outer footprint of each half is a rounded rectangle. The main straight sections are 137mm long and 35mm wide. The four corners of e...
$fn=100; thk=1.5; bthk=0.6; hi = 7; case(); module case() { top(); bot(); } module top() { translate([0,-52-thk-9,0]) { difference() { union() { base(thk*2,hi+bthk); base(thk-0.1,(hi*2)+bthk); } translate([0,0,bthk]) base(0,(hi*2)+1); translate([69.5,52-35-thk,thk+2]) rotate([0,90,0]) ...
glb/cad_af356a3db610.glb
Create a round plug with a cap and retention clips. Start by creating a main cylindrical body with a diameter of 12.25mm and a height of 40.84mm. On top of this cylinder, add a circular cap with a diameter of 16.25mm and a height of 2mm, featuring a slight bevel on the edges. At the base of the cylinder, add two reten...
PlugH = 40.84; PlugD = 12.25; CapD = 4; CapH = 2; CapDimple = 0; ClipH=3; ClipW=3; Resolution = 60; $fn=Resolution; CLipL = PlugD+5; color("gray") difference() { union(){ translate([0,0,PlugH]) Cap(CapD+PlugD,CapH,25,CapDimple); cylinder(d=PlugD,h=PlugH); if (ClipH > 0 ...
glb/cad_99ec38c085f6.glb
Create a Terraforming Mars colony organizer with a total height of 17mm and a base thickness of 2mm. The object consists of two main rounded rectangular sections joined together. The left section is a rounded block with a radius of 25mm. Carve out a rectangular storage area for information cards measuring 99mm by 140m...
$fn=100; height = 17; perimiter = 0.8; bottom_thickness = 2; storage_perimiter = 5; leftbase_radii = 25; rightbase_radii = 25; x_infocard = 99; y_infocard = 140; z_infocard = 2; r_infocard = 25; r_token = 25; x_colony = 101.5; y_colony = 59; z_colony = 6*z_infocard; r_colony = 25; x_leftbase = x_infocard + perimit...
glb/cad_d7adbb39a316.glb
Create a dog food can lid with an overall diameter of 75mm. Start by constructing a shallow main cylinder with a height of 4.5mm and a wall thickness of 1.5mm. This base should be a hollow ring, created by removing a concentric inner cylinder of 72mm diameter from the 75mm outer cylinder, leaving a solid floor at the b...
Diameter_Including_Top_Rim = 75; Rim_Height = 3; Rim_Thickness_x_10 = 7; Lid_Wall_Thickness_x_10 = 15; Smoothness = 60; smooth=Smoothness; wt=Lid_Wall_Thickness_x_10/10.0; rimd = Rim_Thickness_x_10/10.0; rimh = Rim_Height; d = Diameter_Including_Top_Rim; pad = 0.1; r = d/2+wt+rimd; h = rimh + wt*2; union () { di...
glb/cad_64ca42353cda.glb
Create a Model UFO LED ring by constructing a thin, circular disk with a height of 10mm and an outer diameter of 140mm. Remove a concentric cylindrical core from the center with a diameter of 120mm to create a ring shape. Around the body of this ring, create 20 small circular holes to house LEDs. Each hole must have a ...
Disk(); module Disk(){ ringH = 10; ringOD = 140; ledring = 124; ringID = 120; ledID = 5.1; ledqty = 20; difference() { translate([0, 0, 0]) { cylinder(h = ringH,r = ringOD, $fn=100); } translate([0, 0, -1]) { cylinder(h = ringH+2,r = ringID, $fn=100); } ...
glb/cad_5a2d4ad8d4b0.glb
Create a model of a UFO by constructing a main body and a top bubble. For the main body, start with a sphere scaled to 30mm in the X and Y axes and 6mm in the Z axis. Remove a central vertical cylinder with a radius of 240mm and a height of 360mm from the center. Additionally, remove seven smaller cylinders, each with ...
scale([6,6,6]){ MainBodyTop(); rotate([0,0,0]) { MainTopBubble(); } } module MainBodyTop() { difference() { translate([0, 0, 0]){ scale([5,5,1]){ sphere(5, $fn=100); } } translate([0, 0, -60]) { cylinder(h = 60, r = 40); } ...
glb/cad_870bfc1b6555.glb
Create a model of a UFO with a central cockpit and a wide base. Start by creating the main body as a highly flattened sphere, scaled to 30mm in the X and Y axes and 6mm in the Z axis. Remove a large central cylinder with a radius of 240mm and a height of 360mm from the center of this body. To create the lighting ports,...
scale([6,6,6]){ rotate([180,0,0]) { MainBodyBottom(); MainBottomBubble(); } } module MainBodyTop() { difference() { translate([0, 0, 0]){ scale([5,5,1]){ sphere(5, $fn=100); } } translate([0, 0, -60]) { cylinder(h = 60, r = 40); ...
glb/cad_d01514434d20.glb
Create a SnapPipes connector consisting of two mirrored C-shaped clips joined by a central rectangular rod. The first clip is a partial hollow cylinder with an inner radius of 24.3mm and a wall thickness of 3.2mm. The second clip is a partial hollow cylinder with an inner radius of 33.4mm and a wall thickness of 3.2m...
$fn = 128; r1 = 48.6/2; thickness1 = 3.2; r2 = 66.8/2; thickness2 = 3.2; height = 25.0; rod_thickness = 10; rod_length = 10.0; open_angle = 90; main(); module main() { snap_pipe_with_rod(r1, height, thickness1, open_angle, rod_length/2, rod_thickness); mirror([1,0,0]) snap_pipe_with_rod(r2, height,...
glb/cad_0fa4bf7fb673.glb
Create a Raspberry Pi tablet case consisting of a hollowed-out bottom tray. The main outer dimensions of the base are 167.2mm in width and 110mm in depth. The walls of this tray are 2mm thick. The interior of the tray is designed to house a display board measuring 163.2mm by 104mm with a height of 4.5mm. To accommodat...
tabs=1; displayOuterX = 163.2; displayOuterY = 104; displayZ = 4.5; displayActiveX = 152.4+5; displayActiveY = 91.4+5; bottomMargin = 3; controlHeight = 10; controlMargin=1; displayActiveMarginX = (displayOuterX-displayActiveX)/2; displayActiveMarginY = (displayOuterY-displayActiveY-bottomMargin)/2; echo("margins",...
glb/cad_9c9220d2a68f.glb
Create a hexagonal nut cap. Start by creating a hexagonal prism with a flat top and bottom, a height of 13.2mm, and a width across the flats of 17.2mm. From the bottom of the prism, remove a cylindrical bore with a diameter of 6.5mm that extends upward to a height of 12mm. At the top of the prism, create a hexagona...
use <MCAD/polyholes.scad> show_debugging_cube = false; show_nutnut = true; show_x = 2; show_y = 2; show_offset = 25; layer_h = 0.3; nozzle_d = 0.4; de = 0.1; P10 = 17.2; P11 = 12; P12 = 1.2; P20 = 10.2; P21 = 3; P30 = 6.5; assembly(); module assembly() { union() { if (show_debugging_cube) { ...
glb/cad_1b034c7afbe1.glb
Create a minimalist figure of Finn from Adventure Time. Start by constructing the main head and torso as a single block measuring 8.45mm wide, 18mm deep, and 3mm thick, centered on the X and Z axes and shifted 1mm down on the Y axis. At the top of the head, add two ears by creating hulls between small cylinders (radius...
scale([3,3,3]){ difference(){ union(){ translate([0,-1,0])cube(size=[8.45,18,3],center=true); hull(){ translate([-3.4,8.1,-1.5])scale([1,1.3,1])cylinder(h=2,r1=.8,r2=.8,$fn=30); translate([-4,4,-1.5])cube(size=[.8,2,2]); } hull(){ translate([3.4,8.1,-1.5])scale([1,1.3,1])cylinder(h=2,r1=.8,r2=.8,$fn=30); translat...
glb/cad_5d43ddf7d587.glb
Create a Bad USB plug marker by combining three geometric elements. Start with a rounded box measuring 14.99mm in length, 7.73mm in width, and 2mm in height, with a corner radius of 2mm. Centered on top of this base, add a rectangular block measuring 12.55mm by 2.1mm with a height of 9mm, positioned 5mm above the base....
include <mcad/boxes.scad>; $fn=20; union() { roundedBox([14.99,7.73,2],2, true); translate([0,1,5]) cube([12.55,2.1,9], true); translate([0,0,-1.25]){ rotate([0,0,20]) cube([12,0.5,0.75], true); rotate([0,0,-20]) cube([12,0.5,0.75], true); } }
glb/cad_fe0b76bb0d73.glb
Create a Volcano Solid Valve Funnel consisting of two stacked, hollow conical sections with a wall thickness of 0.8mm. The base section is a truncated cone with a height of 10mm, tapering from a bottom radius of 26mm to a top radius of 16mm. Directly on top of this, add a second truncated cone with a height of 10mm tha...
r1 = 26; r2 = 16; r3 = 11; h1 = 10; h2 = 10; extruder_thickness = .4; thickness = 2*extruder_thickness; minor_h_offset = 0.1; $fn=200; difference() { cylinder(r1=r1, r2=r2, h=h1); translate([0, 0, -minor_h_offset]) cylinder(r1=r1-thickness, r2=r2-thickness-.15, h=h1+2*minor_h_offset); } translate([0, 0, h1]) diff...
glb/cad_b1912e943efb.glb
Create a Pax Funnel by constructing a hollowed-out trapezoidal prism. Start with a solid outer prism that has a rectangular base measuring 9mm by 20mm and a larger rectangular top measuring 19mm by 34mm. The height of this outer shell should be 14mm. The walls of the funnel should slope linearly from the base to the to...
overlap_offset = 0.1; extruder_thickness = .4; depth = 14; thickness = 2*extruder_thickness; lower_width = 9; upper_width_offset = 5; upper_width = lower_width + 2*upper_width_offset; lower_length = 20; upper_length_offset = 7; upper_length = lower_length + 2*upper_length_offset; module trapezoid_prism(thickness_off...
glb/cad_2a86c46a3264.glb
Create a Volcano Solid Valve Bag Ring by constructing a hollow cylindrical ring with an inner radius of 21mm and a total height of 20mm. The base of the ring consists of a low lip with a height of 2mm and a radius of 23mm. Above this lip, the main body of the ring extends to the full height, maintaining a radius of 23m...
$fn=500; ring_inner_r = 21; ring_total_h = 20; ring_lip_h = 2; ring_main_dr = 2; ring_lip_dr = 1 + ring_main_dr; peg_width = 3; peg_gap_width = 1; peg_nub_dr = 2; peg_nub_base_height_ratio = 1.4; overlap_offset = .1; module peg(a) { rotate([0, 0, a]) translate([ring_inner_r - 2*overlap_offset, peg_width/2, ring_lip...
glb/cad_beb635567ac9.glb
Create a MiniRailway Sklmmp acid container carriage chassis. The main chassis is a rectangular frame with a width of 3000mm, a length of 13000mm, and a height of 315mm (all scaled by the chosen model scale). The frame features a hollowed-out center with a wall thickness of 0.6mm, except for a raised central section tha...
$fn=40; view = "parts"; model_scale = 160; include_bumpers_to_chassis = true; chassis_wall_thickness = 0.6; real_rail_thickness = 120; bed_rail_join = 1; bolt_hole = 2.5; bogie_offset = 12.2; bogie_pivot_d = 5; bogie_pivot_h = 2.6; body_y_offset = 600 / model_scale; chassis_length = 13000 / model_scale; chas...
glb/cad_7411d24e9e99.glb
Create a CNC foot support consisting of a base plate, a central tube holder, and four support fins. Start with a square base plate measuring 27mm by 27mm with a thickness of 3mm. In the center of the base, create a hollow cylindrical tube holder with an outer radius of 13.5mm and an inner radius of 10.5mm, extending ...
$fn = 50; thinkness = 3; radius = 10.5; depth = 15; support_size = 10; hole_radius=1.5; epsilon = 0.2; infinity = 1/0.001; mounting_hole_raduis = 1.5; module foot(thinkness, size){ color("green") cube ([size, size, thinkness], center = true); }; module support(thinkness, size){ color("LightSeaGreen...
glb/cad_85af4b57d222.glb
Create a spool holder block by starting with a solid rectangular cube measuring 20mm by 20mm by 30mm. Carve a semi-cylindrical groove with a radius of 4.5mm along the entire length of one 30mm edge, centered 10mm from the side, to create a cradle. Additionally, bore a complete circular hole with a radius of 4.5mm throu...
rotate([90,0,90]){ difference(){ cube([20, 20, 30]); translate([0,(10+0),0]){ rotate([00,90,0]) cylinder(h=99, r=4.5); } translate([(10+0),50,20]){ rotate([90,90,0]) cylinder(h=99, r=4.5); } } }
glb/cad_b548ed02975a.glb
Create a toy mixer beater consisting of a wire-like loop and a central axle. Start by forming a large, flattened elliptical ring with a cross-sectional radius of 1.5mm. This ring is created by rotating a circle of 1.5mm radius around an axis at a distance of 7mm, then scaling the resulting torus by a factor of 4 along ...
$fs=0.1; $fa=5; radius_a = 1.5; scale_a = 4; radius_b = 7; radius_c = 2.3; radius_d = 4.5; radius_e = 2.6; length_c = 30; length_d = 2.8; length_e = 7.5; center_width = 1.5; total_length = 3 * (length_c+length_d+length_e+radius_b*(scale_a+1)); difference () { beater(); translate ([ -total_length/2, -total_length/2, ...
glb/cad_1ccad393282a.glb
Create a split ring sizer tool consisting of five aligned ring segments. Each segment is a half-cylinder with a height of 8mm and a wall thickness of 2mm. The inner diameters of the rings increase sequentially, starting from a size 4 ring (14.88mm diameter) and increasing by two ring sizes for each subsequent segment. ...
generate=2; first_ring_size=4; num_rings=5; ring_size_incriment=2; ring_w = 8; ring_thick = 2; use<write/Write.scad> RING_SIZES = [ [0, 11.63], [1, 12.45], [2, 13.26], [3, 14.07], [4, 14.88], [5, 15.70], [6, 16.51], [7, 17.32], [8, 18.14], [9, 18.95], [10, 19.76], [11, 20.57], [12, 21.39], [13, 22.20], [14, 23.0...
glb/cad_07f9cba59258.glb
Create an Adafruit Mini Thermal Printer Enclosure consisting of a main housing and a removable rear lid. For the main housing, create a rectangular block measuring 111mm wide, 101mm deep, and 62.4mm high. Hollow out the center by removing a block of 104mm by 60mm by 67mm, starting from a floor thickness of 2.4mm. In ...
PARTNO = 2; wallThickness = 3.5; floorThickness = 2.4; printerX = 104; printerY = 60; printerZ = 60; lipX = 6; lipY = 5; lipZ = 7; gearSpace = 35; powerPortDia = 10.65; module new_case() { difference() { cube([printerX + (wallThickness * 2), printerY + (wallThickness * 2) + gearSpace, printerZ + floor...
glb/cad_be6017717ad4.glb
Create a Mississippi Queen game piece designed to hold two dice. Start by constructing the main hull: create a shape that is the intersection of two cylinders, each with a radius of 25mm and a height of 5mm, positioned 30mm apart (one at x=15 and one at x=-15). Merge this intersection with a 20mm by 20mm by 5mm cube ce...
module hull(){ rad = 25; union(){ intersection(){ translate([15, 0, 0]) cylinder(h = 5, r = rad); translate([-15, 0, 0]) cylinder(h = 5, r = rad); } translate([-10, -20, 0]) cube([20, 20, 5]); } } module tray(){ translate([-15, -11, 0]) cube([30, 15, 5]); } module boat(){ union(){ t...
glb/cad_8770db876475.glb
Create an Inner Diameter Gauge consisting of two adjustable legs and a adjustment mechanism. First, create the lower leg. Start with a cylinder of radius 20mm and height 5mm. Attach a rectangular arm extending from this cylinder with a length of 120mm, a width of 5mm, and a height of 5mm. At the end of this arm, crea...
lng=120; ow=0; show=0; $fn=100; wms=atan(10/lng); kms=sqrt(lng*lng+100); module SchraubeM4(lg=20, lm=3.1, vu=false) { union() { cylinder(r=4.2, h=lm, $fn=6); translate([0, 0, lm-0.1]) cylinder(d=4.5, h=lg+0.1); } if(vu) { translate([0, 0, lm]) cylinder(r1=4.2, r2=4.5/2, h=4.2-4.5/2, $fn=6); } } ...
glb/cad_2a3c6b6a0f40.glb
Create a Holder Cup designed as a rectangular sleeve with a hook feature. Start with a solid rectangular block measuring 78mm in length, 50mm in width, and 23mm in height. From this main body, remove a central rectangular section to create a hollow cavity that is 78mm long, 46mm wide, and 18mm deep, leaving a base thic...
hook_gap=15; hook_height=3; overall_length=78; translate([0,-23+hook_gap,0]) rotate([0,-90,0]) union() { difference() { translate([0,23-hook_gap,0]) cube([overall_length,7+hook_gap,50]); translate([-0.1,22.9-hook_gap,-0.1]) cube([overall_length+0.2,3.2,46-hook_height]); translate([-0.1,26-hook_gap,-0.1]) cube...
glb/cad_b978478addc3.glb
Create a coaster holder by starting with a solid rectangular block measuring 90mm by 90mm with a height of 15mm. Round all four vertical corners of this block with a radius of 6mm. From the top face, remove a centered rectangular section to create an inset hole measuring 74.5mm by 75.5mm with a depth of 3.8mm, leaving ...
coaster_size_x=90; coaster_size_y=90; coaster_height=15; coaster_corner_r=6; inset_size_x=74.5; inset_size_y=75.5; inset_height=3.8; do_feet = 0; feet_height_div2=3.2; feet_radius=3.5; module roundedRect(size, radius) { x = size[0]; y = size[1]; z = size[2]; linear_extrude(height=z) hull() { translate([(-x...
glb/cad_a54f0caa8a9c.glb
Create a circle cutter attachment for a rotary tool. The main body is a hollowed conical frustum with a base radius of 35mm and a top radius of 14mm, reaching a total height of 35mm. The bottom 5mm of the body is a solid cylinder with a radius of 35mm, above which the walls taper upward to the top radius. The walls of ...
include<Thread_Library.scad> include<RiunxTools.scad> threadRad=9.0; nutRad=14; nutDepth=9.5; baseRad=35; baseDepth=35; baseLift=5; wallThickness=4; holeRad=15; $fn=0; $fa=0.6; $fs=4; module routerAttachment() { translate([0,0,baseDepth]) trapezoidNut(length=nutDepth, radius=nutRad, pitch=2.0, pitchRadi...
glb/cad_ce0b5f211901.glb
Create a circle cutter attachment for a rotary tool. The main body is a hollowed-out conical frustum with a base radius of 25mm and a top radius of 14mm, reaching a total height of 45mm. The bottom 5mm of the object is a solid cylinder with a radius of 25mm. From the 5mm mark upward, the walls taper inward to the top r...
module TearDrop(radius=1,length=1,drop=1.5,tradius=1) { union(){ translate([0,radius*drop,0])cylinder(h=length,r=tradius, center = true,$fn=20); translate([0,0,-length/2])linear_extrude(height=length)polygon(points= [[-radius,0 ],[-tradius,radius*drop],[tradius,radius*drop],[radius,0] ,[-radius,0 ]], paths=[[1,2,3,4,5 ...
glb/cad_bbc340c54c4b.glb
Create a Prusa Mendel i2 modified x-axis endstop holder. Start by constructing two identical rod clamps positioned opposite each other. Each clamp consists of a cylinder with a radius of 7.8mm and a height of 10mm, merged with a rectangular block measuring 15.5mm by 15.6mm by 10mm. From each clamp, remove a central cyl...
m3_nut_diameter_horizontal = 6.1; m8_diameter=9; m3_diameter=3.6; outer_diameter = m8_diameter/2+3.3; opening_size = m8_diameter-1.5; module endstop() { rodclamp(0); rotate(a=180, v=[1,0,0]) translate([0,-65,-10]) rodclamp(1); translate([0,15,0]) { difference() { cube([5,38,10]); union() { tra...
glb/cad_4790a2e8a629.glb
Create a Prusa Mendel i2 modified x-axis endstop holder. The main body consists of two identical rod clamps connected by a central bridge. Each rod clamp is based on a cylinder with a radius of 7.3mm and a height of 10mm, combined with a rectangular block measuring 15.5mm by 14.6mm by 10mm. A central bridge measuring 5...
m3_nut_diameter_horizontal = 6.5; m8_diameter=8; m3_diameter=3.6; outer_diameter = m8_diameter/2+3.3; opening_size = m8_diameter-1.5; cable_tie_hole_d = 4.3; switch_length = 20; cable_tie_hole = 3; m2_d = 2.2; module endstop() { difference() { union() { { rodclamp(0); rotate(a=180, v=...
glb/cad_5f39c6269501.glb
Create a Dremel router attachment consisting of a main body and a threaded top nut. Start by creating the main body: a cylinder with a base radius of 35mm and a height of 5mm. Above this base, add a conical section that transitions from the 35mm base radius up to a 14mm radius at a total height of 35mm. Hollow out th...
include<Thread_Library.scad> include<RiunxTools.scad> threadRad=9.0; nutRad=14; nutDepth=9.5; baseRad=35; baseDepth=35; baseLift=5; wallThickness=4; holeRad=15; $fn=0; $fa=0.6; $fs=4; module routerAttachment() { translate([0,0,baseDepth]) trapezoidNut(length=nutDepth, radius=nutRad, pitch=2.0, pitchRadi...
glb/cad_71d021ca54f2.glb
Create a CDI Lithopane rectangular plaque with a horizontal orientation. The main body is a rectangular slab measuring 133mm by 100mm. The base thickness is 0.4mm. On the top surface, create a textured lithopane effect based on an image, where the thickness varies up to a maximum height of 2.4mm (12 layers of 0.2mm). ...
use <utils/build_plate.scad> use <write/Write.scad> picture_shape = "standard"; picture_orientation = "horizontal"; pane_size = "large"; image_file = "image-surface.dat"; include_hole = "yes"; hole_diameter = 10; layer_height = 0.2; number_of_layers = 12; use_header_footer = "yes"; text_header ="IT braucht"; te...
glb/cad_cd7afd068ddc.glb
Create a Minimis 2x2x1 puzzle cube consisting of four identical quadrant pieces. For each piece, start with a spherical shell that has an outer radius of 18mm and an inner radius of 12mm. Intersect this shell with a cube of size 20mm centered on the origin to isolate a single quadrant. Within this quadrant, create a ...
middle = 6; inner = 12; outer = 18; conemax = 29; tolerance=0.5; downscale = 0.5 * (19/20); postradius = 1.7; module quadrant( index ) { rotate(a=[0,0,90*index]) translate( v=[-(outer+2),(outer+2),0]) cube ( size=(outer+2)*2, center=true ); } module postcap( index ) { intersection() { rotate(a=[90,0,90*index]) cyli...
glb/cad_ab822bf701e1.glb
Create a Yin and Yang Portafilter Coffee Smoother. Start by constructing a wide, flat circular ring with an outer diameter of 72mm and an inner diameter of 68mm, with a height of 9.6mm. Inside this ring, create a second, thinner concentric ring with an outer diameter of 60mm and an inner diameter of 56.4mm, extending t...
Porta_Filter_Outside_Diameter = 71; Porta_Filter_Inside_Diameter = 60; Reach_Into_Porta_Filter_x_10 = 24; Outside_Wall_Height_x_10 = 36; Clearance = 0.5; Smoothness=40; pf_r = Porta_Filter_Outside_Diameter/2; circle_thickness = 3; support_height=6; tab_height=Outside_Wall_Height_x_10/10; central_column_h = 5; central_...
glb/cad_b76986ccee36.glb
Create a Tesla Car Jack Pad starting with a circular base that has a diameter of 100mm and a thickness of 8mm. Centered on top of this base, place a rectangular block with a width of 52mm, a height of 20mm, and a length of 95mm. On the top surface of this rectangular block, add two tapered cylindrical alignment posts. ...
padWid=52; padHei=20; postSep=40; post1Dia=25; post2Dia=25; postHei=20; postTaper=0.87; mountDia=100; mountThi=8; small=0.01; padLen=postSep+post1Dia/2+post2Dia/2+20; cylinder(d=mountDia, h=mountThi); translate([-padWid/2,-padLen/2, mountThi]) cube([padWid, padLen, padHei-small]); translate([0,-postSep/2,padHei+...
glb/cad_cd7d2d1679d2.glb
Create a Wall-Plate tealight stand by starting with a base cube measuring 38mm x 38mm x 5mm. Centered on the top face of this cube, remove a cylindrical volume with a radius of 20mm and a height of 5mm, but leave a remaining rectangular section measuring 28mm x 28mm x 5mm starting from a 5mm offset from the edges. To c...
difference(){ union(){ cube([38,38,5]); translate([9.5,0,2.4]) rotate([90,0,0]) cylinder(h=15, r=2.4, $fa=5, $fs=0.1); translate([28.5,0,2.4]) rotate([90,0,0]) cylinder(h=15, r=2.4, $fa=5, $fs=0.1); translate([19,43,0]) cylinder (h=5, r=25, $fa=5, $fs=0.1); } translate([19,43,2]) cylinder (h=5, r=20, $fa=5, $fs=0.1); t...
glb/cad_f42133e5811e.glb
Create a set of game tokens for the board game THUD!, consisting of 8 troll pieces, 32 dwarf pieces, and one mountain piece. Each token should have an organic, irregular "stone" appearance created by a hull of randomly rotated and positioned small cubes. The dwarf and troll tokens are 10mm tall, while the mountain to...
include <figures.scad> include <knurledFinishLib.scad> deep = 1; small_height=10; large_height=30; delta = 20; delta2 = 2; mode = "stone2"; module base(height){ knurled_cyl(height, 28, 2.5, 2.5, 1, 2, 10); } module f_dwarf(){ difference(){ if(mode=="cyl"){ base(small_height); } ...
glb/cad_35122c107923.glb
Create a marker holder consisting of a central dome-like structure with a flat base and a honeycomb of hexagonal holes. Start by creating a solid base cylinder with a diameter of 91.5mm and a height of 3mm. Above this base, construct a composite shape consisting of a sphere with a diameter of 91.5mm centered at a heigh...
use <Polygon.scad> $fn=100; hauteur=30.5; rayon=16.1; epaisseur=1; fond=3; decalage=rayon+epaisseur; main(); module unite(x, y) { translate([x * decalage * cos(30), x * decalage * sin(30) + y * decalage, 0]) Hexagon(A=rayon/2, h=hauteur * 4); } module triangle() { for (i=[-1:2]) for (j=[-1: 1...
glb/cad_6810c4bc9c2e.glb
Create a lens cover for a Mobius action camera by constructing a shallow cylinder with an outer diameter of 20mm and a height of 4mm. Hollow out the center of this cylinder by removing a smaller concentric cylinder with a diameter of 18mm and a height of 3mm, positioned 1mm from the base. This results in a circular cap...
$fn=360; difference() { cylinder(4,10,10); translate([0,0,1]) cylinder(3,9,9); }
glb/cad_c3a766be1e09.glb
Create a Horizontal Filament Spinner Roller Thrust Bearing consisting of two main components: a spinner top and a base. For the spinner top, create a flat circular flange with a radius of 33.5mm and a height of 2.4mm. On top of this flange, center a cylindrical body with a radius of 27.5mm and a height of 7.1mm. This ...
$fn = 96; part_to_generate = 3; spool_hole_diameter = 56 ; hub_nub_slop = .5; support_flange_extension = 7; bearing_diameter = 4.5; bearing_channel_width_slop = .2; bearing_channel_extra_depth = 5; bearing_tongue_slop = 1; bearing_loading_well_depth = 2; wall_thickness = 1.2; part_clearance = 1.2; container_heigh...
glb/cad_94bd1f61d54a.glb
Create a Horizontal Filament Spinner Roller consisting of two main components: a spinner top and a base. For the spinner top, create a central cylinder with a height of 2.4mm and a radius of 15.5mm. Above this, add a tiered wall structure: a main cylinder with a height of 7.1mm and a radius of 15.5mm, a second tier wi...
$fa = .5; $fs = .5; part_to_generate = 3; test = 0; spool_hole_diameter = 32 ; spool_hole_diameter2 = 42 ; spool_hole_diameter3 = 52 ; hub_nub_slop = .5; support_flange_extension = 18; bearing_diameter = 4.5; bearing_channel_width_slop = .3; bearing_channel_extra_depth = 5; bearing_tongue_slop = .6; bearing_loadin...
glb/cad_faa85faccc48.glb
Create a battery cover replacement for an Xbox One controller. Start with a main rectangular base plate measuring 33mm by 55.6mm with a thickness of 1.61mm. Along the top edge, add a wedge-shaped protrusion that is 55.6mm long, 2.6mm wide, and 2.6mm high. Along the opposite bottom edge, add a larger wedge-shaped prot...
module triangle_wedge(x1, y1, z1, x2, y2, z2) { polyhedron( points= [ [x1, y1, z1], [x1, y2, z1], [x1, y1, z2], [x2, y1, z1], [x2, y2, z1], [x2, y1, z2] ], triangles=[ [0,1,2], [3,5,...
glb/cad_084d45b8899c.glb
Create an XL belt tensioner consisting of a main base and a sliding component. Construct the base as a rectangular block 30mm long, 20mm wide, and 12.5mm high. Hollow out the center to create a socket 15mm wide and 24mm long, leaving a floor thickness of 1mm and roof thickness of 2.8mm. At the front end of the base, ...
dRise = 0; tBase = 1.5; tFull = 2.7; wTooth = 2.6; wSpace = 2.4; wBelt = 10; wHex = 6.9; dHex = 2.5; rM3 = 1.7; sDrop = wHex/2-0.5; Adjust = 0.5; pWidth = 9; pHeight = 5; bwExt = 20; bwInt = 15; blExt = 30; blHed = 6; bdExt = 12.5; bRoof = 2.8; bFloor = 1; bdSoc = bdExt-(bRoof+bFloor); swMax = bwInt - Adjust; sdMax...
glb/cad_bf7aecceca47.glb
Create a tripod repair part for a Velbon CX440. Start with a central rectangular block measuring 60mm by 36mm with a height of 18mm. Attach a second rectangular plate measuring 15mm by 36mm with a height of 60mm, positioned perpendicularly to the first block. Remove a central cylinder with a radius of 13mm and a heigh...
difference() { union() { body(); plat(); M6(); } trou(); percage(); creu(); fente(); translate([-13, 15.5, 2]) rotate([90,90,0]) fhex(10.3,5); } module body() { translate([10, 0, -9]) color("blue") linear_extrude(height = 18) ...
glb/cad_abc20f19cb40.glb
Create a rectangular sleeve for a tripod leg locker. Start by creating a solid rectangular block that is 50mm wide, 40mm deep, and 15mm high. From this block, remove a smaller centered rectangular section to create a hollow interior. This interior cutout should be 36mm wide and 25mm deep, and it must pass completely th...
difference() { union() { body(); } creu(); } module body() { translate([0, 0, 0]) color("blue") linear_extrude(height = 15) square([50, 40], center = true); } module creu() { color("yellow") translate([0, 0, -5]) rotate([0,0,0]) li...
glb/cad_ddb2bbfab72d.glb
Create a repair part for a tripod leg lock. Start with a central rectangular block measuring 39mm in width, 15mm in depth, and 25mm in height. Through the center of this block, create two perpendicular cylindrical holes with a radius of 3mm. One hole should run along the X-axis and the other along the Z-axis. To cre...
difference() { union() { body(); M6(); } creu(); percage(); trou(); translate([0, -4.8, 0]) rotate([90,90,0]) fhex(10.3,5.5); creu2(); } module body() { translate([10, 0, -12.5]) color("blue") linear_extrude(height = 25) square([39, ...
glb/cad_add770478617.glb
Create a Modular Castle Kit consisting of various Lego-compatible building components. To create the Wizard Tower, construct a base plate 8mm x 8mm with a height of 1mm. On this base, add a central tower structure created by linearly extruding a circle with a radius of 3mm to a height of 47mm, applying a 360-degree t...
SCALE =0.5; LEGO_DIV = true; include <doblo-factory-1-11.scad>; wizard_tower (); module corner_tower () { tower(); corner (); } BLOCK_SIZE = 8*PART_WIDTH; module large_example () { translate([-BLOCK_SIZE, BLOCK_SIZE, 0]) { rotate (a=90, v=[0,0,1]) { corner (); }}; translate([0, BLOCK_SIZE, 0]) { p...
glb/cad_bcb07f054917.glb
Create an inner tube isolation foot designed to hold a bicycle inner tube. The part consists of a vertical plate that supports a cylindrical cutout for the tube. Start with a vertical rectangular plate. The width of this plate is 8mm for a single-width foot or 16mm for a double-width foot. The plate should have a heig...
plate_width = 8.0; inner_tube_diameter = 32; part = "single width ⟍ foot"; style = -0.5; preview = 1; w = 1.6; tw = 5; p = 2.0; min_ph = 10; cs = 0.2; tau = 2 * PI; angle = 45; z_factor = tan(angle); some_distance = 1.2*inner_tube_diameter; ms = 0.01; pna = 40; pnb = 15; pa = 5; ps = 1; rna = 180; rnb = 30; ra ...
glb/cad_b7706efd5ede.glb
Create an isolation inner tube corner foot by starting with a main cylinder that has a radius of 15mm and a height of 20mm. From this cylinder, remove a large rectangular section to create a wide, open U-shaped channel; this is done by removing two intersecting blocks of 60mm by 5.65mm by 15mm, one aligned along the X-...
translate([0,0,8]) rotate([180,0,0]) { { foot(); } } module foot () { difference () { translate ([ 15, 15, -12]) cylinder (h=20, r=15, $fn=100); translate ([-10,6,1]) cube (size = [60,5.65,15], center = false); rotate ([0,0,270]) translate ([-50,6,1]) cu...
glb/cad_0d026ad06079.glb
Create a cutting machine guide consisting of a central base and symmetrical support structures. Start with a rectangular base block. In the center of this base, create two parallel longitudinal tunnels to accommodate rails. These tunnels should be carved out of the base, and within these tunnels, include mounting holes...
$fn = 50; include<common_paths.scad>; function tunnel_offset(bottom_offset, tunnen_external_size) = [0,0,+(bottom_offset - sqrt_2*tunnen_external_size)]; module support(lendth, width, height, thinkness, side="left"){ hip = sqrt(lendth*lendth + height*height); sin_y = lendth/hip; sign_ = side == "left" ? 1...
glb/cad_adfb7c40482b.glb
Create a cutting machine guide consisting of a central rectangular base and symmetrical extending arms. The central base is a rectangular prism with dimensions 18mm in thickness, 59.45mm in width, and a length determined by the distance between the rails. From the central base, extend two symmetrical arms. Each arm is...
$fn = 50; include<common_paths.scad>; emulation = false; noizzle_diameter = 1.1; noizzle_correction = noizzle_diameter/2; infinity = 1000; air_gap = 5.1; caret_thickness = 18; caret_lendth = rails_between_tunnels_offset; caret_width = 60 - noizzle_correction; external_integration_matrix_size = [60 ,60]; caret_m...
glb/cad_cb975f7cc979.glb
Create a cutting machine guide rig support. Start by creating a rectangular base block with dimensions of 20mm in height, 60mm in width, and 20mm in depth. From this base, remove a cylindrical section to create a curved facade. This cutout should be a cylinder with a radius of 56.15mm and a height of 20mm, centered r...
$fn = 50; include<common_paths.scad>; emulation_depth = 15; emulation = false; noizzle_diameter = 1.1; noizzle_correction = noizzle_diameter/2; infinity = 1000; caret_width = 60 - noizzle_correction; rig_thickness = 4; rig_width = caret_width; rig_height = 20; rig_offset = 0; mounting_hole_interstate = caret_wid...
glb/cad_4a6b5915dc04.glb
Create a leg buffer for a paramotor frame by starting with a sphere 40mm in diameter. From this sphere, remove several intersecting geometric volumes. First, remove a cylinder with a 15mm diameter and 60mm height, positioned at [10, 0, -20] and rotated 20 degrees around the Y-axis. Second, remove a hollow cylindrical r...
$fn=100; difference() { sphere(d=40); translate([10,0,-20])rotate([0,-20,0])cylinder(d=15,h=60); translate([3,0,3])rotate([0,-20,0])difference() { cylinder(d=25,h=3); translate([0,0,-0.1])cylinder(d=21,h=3.2); } translate([0,0,10])rotate([0,-20,0])difference() { cylinder(d=2...
glb/cad_4033ff1e8ac7.glb
Create a rectangular slab for an office building roof with a total width of 98 mm, a depth of 42 mm, and a thickness of 2 mm. The width is calculated as the sum of two 2 mm margins and four 20 mm intervals between five 18 mm wide windows. The depth is calculated as the sum of two 2 mm margins and one 20 mm interval bet...
horizontal_windows_front=5; Nfront=horizontal_windows_front; horizontal_windows_side=2; Nside=horizontal_windows_side; Xinit=2*1; Yinit=6*1; Xspace=20*1; Yspace=20*1; Zbase=2*1; Xwin=18*1; Xfront=Xinit*2+Xspace*(Nfront-1)+Xwin-2*Zbase; Xside=Xinit*2+Xspace*(Nside-1)+Xwin; cube([Xfront,Xside,Zbase]); echo(Xfront,Xsi...
glb/cad_6c866acc656e.glb
Create an office building facade with overall dimensions of 102mm wide, 68mm high, and 46mm deep. Start with a main wall block that is 102mm wide, 62mm high, and 2mm thick. On the front face of the wall, create a grid of 15 rectangular window openings arranged in 3 rows of 5. Each window should be 18mm wide and 12mm h...
$fn=36*1; use <MCAD/shapes.scad> horizontal_windows=5; Ncol=horizontal_windows; vertical_windows=3; Nrow=vertical_windows; show_door="yes"; show_windows="yes"; show_bricks="yes"; show_roof="no"; Xinit=2*1; Yinit=6*1; Xspace=20*1; Yspace=20*1; Zbase=2.0*1; Xwin=18*1; Ywin=12*1; Zwin=2*1; Xmuntin=0.7*1; Ymuntin=Xmunt...
glb/cad_3440671a98eb.glb
Create a customizable cable organizer for shelves. Start with a base structure that is 10mm high. The main body consists of a rectangular section and a curved section. Create a rectangular block with a width of 6mm and a length of 20mm. Attached to this, create a second rectangular block that extends the total length t...
$fn=72; Thickness_of_shelf=36.5; Length_of_top_segment=20; Passage_for_cables_radius=15; Thickness_of_structure=6; Extrusion_height=10; difference() { union() { cube([Thickness_of_structure,Length_of_top_segment,Extrusion_height]); translate([Thickness_of_shelf+Thickness_of_structure,0,0]) cube([Thickness_of_stru...
glb/cad_fe0fc1354eec.glb
Create a mold for an RC car traffic cone. Start by creating a hexagonal base block with a height of 34mm. This block is a truncated hexagonal pyramid (or a 6-sided prism with tapered sides) that has a bottom diameter of 86mm and a top diameter of 56mm. Inside this block, carve out a hexagonal void to create the mold f...
use <write.scad> de = 0.1; fn_hole = 12; show_positive = true; P10 = 80; P11 = 50; P12 = 30; P13 = 6; P20 = 20; P21 = 13; P22 = 1.8; P23 = "PM"; P30 = 3; P31 = 2+P22; P32 = P13; P41 = 1; P42 = 1; P43 = 3; difference() { MoldBase(); translate([0, 0, -de]) PyloneMatrix(); } if (show_positive) { translate(...
glb/cad_863e9c57f4d0.glb
Create an Overhang Test Mushroom by combining a hollowed dome with a tapered stem. Start with a sphere of 15mm radius. Create a void within this sphere by removing a cube centered at the origin with dimensions of 30mm width, 30mm depth, and 25mm height, shifted 5mm down along the Z-axis. Additionally, remove a second s...
union(){ difference(){ sphere(15,$fs=.1); translate([0,0,-5])cube([30,30,25], true); translate([0,0,-3])sphere(15,$fs=.1); } translate([0,0,-5.5])cylinder(r1=4, r2=2, h=20); }
glb/cad_8d7ea7178bc3.glb
Create a circular soap dish with a total diameter of 60mm and a thickness of 2mm. The main body is a flat disc featuring a pattern of circular drainage holes, each 5mm in diameter. These holes are arranged in concentric rings around a central hole, with the inner walls of the holes tapering slightly to create a chamfer...
d = 60; th = 2; d_holes = 5; chamfer = 1.15; n_legs = 6; h_legs = 5; d_legs = 3; $fn = 256; fn_small = 32; epsilon = 0.01; for (i = [1:n_legs]) rotate (360/n_legs * i) translate ([d/2 - d_legs/2, 0, th]) cylinder (d = d_legs, h = h_legs, $fn = fn_small); sieve (d, th, d_holes, d_l...
glb/cad_96dbd0af3870.glb
Create a circular LED clock housing with an outer radius of 120mm and an inner radius of 40mm. The overall height of the ring is 14.6mm (calculated as height plus width). The main body is a hollow cylinder with walls 1.6mm thick. Within the ring, create 60 radial beams. Each beam is a wedge-shaped compartment 13mm hi...
radius_outer = 120 ; radius_inner = 40 ; width = 1.6 ; spacer_width = 0.8 ; height = 13 ; ws_count = 60 ; ws_size = 5.5 ; wire_height = 1.6 ; wire_width = 3 ; parts = 1 ; PI = 3.141592654 ; $fa = 6 ; $fs = 1 ; module ws() { rMin = ...
glb/cad_bb79eeb75b41.glb
Create a customizable knob with a hidden mounting hole. Start by constructing the main knob body as a revolved shape: create a profile consisting of a rectangle 12mm wide and a semi-circle with a 6mm radius centered on the rectangle's edge, then rotate this profile 360 degrees to form a rounded disc with a total diamet...
knobDia = 50; knobDepth = 12; baseDia = 36; baseDepth = 10; roundnessPercentage = 65; screwHead = 8.5; screwDia = 3.5; screwDepth = 8; acc = 2; roundness = roundnessPercentage / 100; xTranslate = (knobDia/2)-(knobDepth*roundness/2); screwDisplacement = baseDia/2 - (1.5*screwHead + 1.5); fnScrew = acc * 16; fn...
glb/cad_b0585a83346a.glb
Create a replacement gas container cap by stacking three concentric cylindrical sections. Start with a base cylinder 22.3mm in diameter and 7.7mm high, which has a concentric hole 22.3mm in diameter and 7.8mm deep removed from its center. Within this base, place three small square lugs measuring 1.75mm by 1.75mm and 7m...
union () { translate([0,0,7.7]) cylinder(r=39.75/2,h=1.65,$fn=40); translate([0,0,1.5+7.6]) cylinder(r=29.7/2,h=4.75,$fn=40); difference(){ cylinder(r=22.3/2,h=7.7); translate([0,0,-0.1]) cylinder(r=22.3/2-1.5,h=7.8); } for(i=[0:2]) { rotate([0,0,i*360/3]) translate ([22.3/2-0.2,0,0.71]) cube(size=[1.75,1.75,7.0]); ...
glb/cad_e57953a8a9bd.glb
Create a ship adapter by starting with a solid block that is 40mm wide, 40mm deep, and approximately 11.42mm tall. From the center of this block, remove a rectangular section that is 33.8mm wide and 40mm deep, starting from a height of 9.92mm and extending upwards. At the top surface, create a central circular cutout w...
tactics_base_diameter = 37.8; tactics_base_height = 6.8; TEMPLATE_WIDTH = 20; TEMPLATE_LIP = 1.5; BASE = 40; BASE_INNER_HEIGHT = 8.92 + 1; BASE_HEIGHT = BASE_INNER_HEIGHT + TEMPLATE_LIP + 0.5; base_inner_diameter = 26.3; base_inner_height = 2; SHIPCARD = 33.8; module attackwing_base() { difference() { polyhedro...
glb/cad_c5970c29ff82.glb
Create a collection of geometric hardware components. First, create a cube with side lengths of 15mm. Next, create a hexagonal nut by starting with a hexagonal prism 18mm in diameter and 6mm high. Remove a centered vertical hole using a threaded nut profile with a diameter of 10mm and a length of 6mm. Repeat this pro...
use <threads-library-by-cuiso-v1.scad> thread_for_screw(diameter=10, length=20); cylinder(d=18, h=4, $fn=6); translate([20,0,0]) difference(){ cylinder(d=18, h=6, $fn = 6); thread_for_nut(diameter=10, length=6); } translate([20,20,0]) difference(){ cylinder(d=18, h=6, $fn = 6); thread_for_nut(diameter=10, length=6, ...
glb/cad_e0eeb7901abf.glb
Create a screw and a matching nut based on ISO metric thread proportions. For the screw, create a cylindrical threaded rod with a diameter of 8mm and a length of 15mm. The thread should have a pitch of 1.25mm. The profile of the thread consists of a series of stacked, rotating helical ridges that wrap around the cent...
drawrod=1; drawnut=1; diameter=8; lengthrod=15; lengthnut=7; if(drawrod==1)thread_for_screw(diameter=diameter, length=lengthrod); if(drawnut==1) translate([diameter,1.5*diameter,0]){ thread_for_nut(diameter=diameter, length=lengthnut); } stddivs=50; module thread_for_screw(diameter, length) { stdpitch=get_std_pitc...
glb/cad_fffc50d08849.glb
Create a pencil case with a rectangular body and rounded ends. The main body is 130mm long, 70mm wide, and 50mm high. The walls are 5mm thick. Construct the base as a flat plate 130mm by 70mm with a thickness of 5mm. The two short ends of the base are semi-circles with a radius of 40mm. Build the side walls 50mm high...
$fn=30; hcoffre= 50; lcoffrex= 130; llamey= 5; lcoffrey=70; module base(){ cube([lcoffrex,lcoffrey,llamey]) ; translate([0,lcoffrey/2+5,0])cylinder(h=llamey,r=lcoffrey/2+5) ; translate([lcoffrex,lcoffrey/2+5,0])cylinder(h=llamey,r=lcoffrey/2+5) ; cube([lcoffrex,llamey,hcoffre]) ; translate([0,lcoffrey,0])cube([l...
glb/cad_21c3ef73d5d3.glb
Create a pencil case consisting of a hollowed-out rectangular container with rounded ends. The main body is a box with a length of 130mm, a width of 70mm, and a height of 25mm. The walls of the container have a thickness of 5mm. The two shorter ends of the case are semi-cylindrical, created by rounding the corners wit...
$fn=18.5; hcoffre= 25; lcoffrex= 130; llamey= 5; lcoffrey=70; module head(coffrex,coffrey,coffrez){ difference(){union(){difference(){cube([coffrex,llamey,coffrez]) ; union(){union() {translate([0,0,0])cube([10,llamey,5]) ; rotate([90,0,90])translate([llamey/2,llamey,0])cylinder(h=12,r=llamey/2) ;} translate([lcof...
glb/cad_ce3a509736fd.glb
Create a pencil case consisting of a hollowed-out rectangular base with rounded ends. The base is 130mm long, 70mm wide, and 5mm thick. The main body is formed by a central rectangular section 120mm long and 60mm wide, flanked by two semi-cylindrical ends with a radius of 35mm. Construct the walls of the case to a hei...
$fn=30; hcoffre= 50; lcoffrex= 130; llamey= 5; lcoffrey=70; module base(){ cube([lcoffrex,lcoffrey,llamey]) ; translate([0,lcoffrey/2+5,0])cylinder(h=llamey,r=lcoffrey/2+5) ; translate([lcoffrex,lcoffrey/2+5,0])cylinder(h=llamey,r=lcoffrey/2+5) ; cube([lcoffrex,llamey,hcoffre]) ; translate([0,lcoffrey,0])cube([l...
glb/cad_e854df210b7d.glb