Skip to content
FastTool

Make & Plan

STL Part Generator

Make a washer, spacer, cup or block from your measurements in millimeters, check it in 3D and download it as an STL file for your slicer. For a cup, enter the capacity you want and the generator works out the height.

Start with a useful shape

01 / SHAPE & SIZE

Your part, your dimensions.

Design a cup by capacity

Keep diameter, wall and base fixed; calculate the height needed for your ideal brim capacity.

The target is applied only when you select Solve cup height.

The model updates as you type. Each dimension can be 0.1–500 mm, and the outside diameter at least 0.4 mm. With a 0.4 mm nozzle, walls thinner than about 0.8 mm may not print well.

Loading the generator…

LIVE GEOMETRY76 × 76 × 90 mm

Drag to rotate. Click the view, then scroll or press + and − to zoom. Arrow keys rotate it too.

Material volume—cm³, ideal shape
Cavity capacity—mL to the ideal rim
Mesh volume difference—less than the ideal shape

Waiting for the geometry calculation.

Dimension guides and the cutaway change only the preview, not your STL.

STL files don’t store units. Import this one as millimeters. The part stands on Z = 0, exactly as previewed.

How it works

The math behind each shape.

A cup is two cylinders.

Let R be the outside radius, r = R − wall thickness, H the total height and b the base thickness. Subtract the empty interior from the outer cylinder.

Material V = πR²H − πr²(H − b)
Capacity = πr²(H − b) ÷ 1,000 mL

The default 76 × 90 mm cup, with a 3 mm wall and 4 mm base, holds about 330.97 mL filled to the brim. FDM prints can leak between layers, so test a printed cup with water first.

From a curve to triangles.

STL stores flat triangles, not exact cylinders. A circle is sampled at N equally spaced points, so the surface sits slightly inside the ideal curve.

Radial deviation = R[1 − cos(π/N)]
Volume ratio = N sin(2π/N) ÷ 2π

More segments reduce this difference. For the default cup at 128 segments, the largest gap between the flat facets and the true circle is about 0.0114 mm, far smaller than a typical printer’s accuracy.

A starting point, not full CAD.

Use it for sizing, learning, prototypes and basic shapes. It doesn’t add fillets, threads, fit allowances, supports or printer compensation.

Material volume is the solid shape, not the filament your slicer will use with infill. Check units, hole clearances and orientation in your slicer before printing, and don’t use these parts where a failure could hurt someone.

Washer & spacer

A through-hole subtracts one cylinder from another.

V = π(R² − r²)H
Surface A = 2π(R + r)H + 2π(R² − r²)

A 30 mm outside diameter, 8 mm hole and 3 mm height has an ideal material volume of about 1.970 cm³. The presets aren’t matched to standard fastener sizes, so measure your bolt first.

Block & solid cylinder

Use a block to compare a product envelope or test basic dimensions. Use a cylinder to explore volume and diameter.

Block V = width × depth × height
Cylinder V = πR²H

A 40 × 30 × 20 mm block is exactly 24 cm³. Its planar STL surfaces need only 12 triangles; changing curve resolution does not change a block.

Files and privacy

Runs in your browser. Nothing is uploaded. The JSON file records your exact dimensions, units, ideal volume and how closely the mesh follows the curves.

The Library of Congress STL format description documents triangle surfaces and the format’s limitations. Binary STL does not preserve our preview color, lighting or dimensions as editable features.

How does design by capacity work?

For inside radius r in millimeters and target C in milliliters, total height is H = base + 1,000C / (πr²). For a 76 mm diameter, 3 mm wall and 4 mm base, a 250 mL cup needs a height of approximately 68.9612 mm. Select “Solve cup height” to apply the solution, then check it and download the updated part. Targets outside the dimension limits are rejected.

Why is an “open cup” still a closed mesh?

The cavity is open at the top, but the material forms one continuous skin: outer wall, underside, rim, inner wall and floor. Every edge is shared by exactly two triangles, which is what slicers expect. Whether the printed cup holds water depends on your print settings.

Why does my part import 25.4 times too big?

STL files store plain numbers with no unit. This file uses millimeters; a program that reads it as inches makes every size 25.4 times larger. Choose millimeters when you import, or scale by 3.937% (1 ÷ 25.4) to correct it.

How much filament will it use?

Material volume gives the most a solid print could use. For PLA, at about 1.24 g/cm³, the default cup’s 77.3 cm³ would weigh about 96 g printed solid. With normal walls and 15–20% infill your slicer will report less, and its estimate is the one to trust.

How are invalid dimensions handled?

Missing or out-of-range numbers stop the calculation and pause the downloads until you fix them. A hole can’t cut through the outer wall, and a cup’s base can’t reach its rim. Very small parts are allowed so you can explore; your slicer will tell you whether your printer can make them.

Found a mistake? Tell us.