OpenSCAD examples

Learn one modeling idea at a time. Start with a useful part, inspect the geometry, then change a parameter and make it your own.

Start here

A guided route from your first solid to reliable boolean operations.

Make a mounting plate
  1. 1.Parametric Mounting Plate
  2. 2.Primitives
  3. 3.2D Plate Profile
  4. 4.From Profile to Solid
  5. 5.Transform Order
  6. 6.Boolean Operations

22 of 22 lessons

Parametric Mounting Plate: compiled 3D model
Beginner
Stepped model

Practical parts

Parametric Mounting Plate

Make a useful first part by subtracting four clearance holes from a rounded plate.

Low compile complexity. Four cylinders and one 2D offset; a good first compile.

Open lesson
Primitives: compiled 3D model
Beginner

Foundations

Primitives

Recognize the three basic solids and understand where their origins sit.

Low compile complexity. Three independent primitives; final sphere tessellation adds triangles.

Open lesson
2D Plate Profile: compiled 2D profile
Beginner
2D · SVG

Foundations

2D Plate Profile

Build a planar profile and export SVG before adding any height.

Low compile complexity. Planar boolean only; use SVG, not STL.

Open lesson
From Profile to Solid: compiled 3D model
Beginner

Foundations

From Profile to Solid

Reuse a 2D module inside linear_extrude to make a slotted solid.

Low compile complexity. One planar boolean followed by a straight extrusion.

Open lesson
Transform Order: compiled 3D model
Beginner

Foundations

Transform Order

See why rotating then translating is not the same as translating then rotating.

Low compile complexity. Transforms are inexpensive; no curved surfaces are needed.

Open lesson
Boolean Operations: compiled 3D model
Beginner
Stepped model

Foundations

Boolean Operations

Compare union, difference, and intersection using genuinely separate child solids.

Medium compile complexity. Three curved booleans; difference should visibly differ from both neighbors.

Open lesson
For Loop Grid: compiled 3D model
Beginner

Profiles & patterns

For Loop Grid

Generate many related solids from two loop variables and a height formula.

Low compile complexity. Cost grows with rows × columns × facet count.

Open lesson
Hex Bolt: compiled 3D model
Beginner

Practical parts

Hex Bolt

Encapsulate a dimensioned hex head in a reusable module.

Low compile complexity. Two overlapping cylinders; the head intentionally has six facets.

Open lesson
Gusseted Angle Bracket: compiled 3D model
Intermediate

Practical parts

Gusseted Angle Bracket

Combine orthogonal plates, gussets, and oriented hole cutters.

Medium compile complexity. Straight profiles and three through-holes; no expensive smoothing.

Open lesson
Open Cable Clip: compiled 3D model
Intermediate

Practical parts

Open Cable Clip

Use a subtractive channel and opening to form a cable-retaining clip.

Medium compile complexity. Two cylindrical booleans and an opening; moderate facet count suffices.

Open lesson
Enclosure, Lid & Screw Bosses: compiled 3D model
Intermediate
Stepped model

Practical parts

Enclosure, Lid & Screw Bosses

Design mating parts using shared dimensions and an explicit fit clearance.

Medium compile complexity. Two parts, eight holes, and a locating rim; export separately for fabrication.

Open lesson
Vase (rotate_extrude): compiled 3D model
Intermediate

Profiles & patterns

Vase (rotate_extrude)

Revolve a closed wall cross-section around Z without crossing the axis.

Medium compile complexity. One rotational sweep; increasing $fn multiplies every profile edge.

Open lesson
Parametric Star: compiled 3D model
Intermediate

Profiles & patterns

Parametric Star

Generate polygon vertices with a list comprehension and twist the extrusion.

Medium compile complexity. Triangles scale with star points and extrusion slices.

Open lesson
Rounded Box (minkowski): compiled 3D model
Advanced

Advanced geometry

Rounded Box (minkowski)

Compare full 3D edge rounding with a cheaper 2D rounded-profile extrusion.

High compile complexity. 3D Minkowski is costly. Use the 2D option for fast iteration.

Open lesson
Coffee Mug: compiled 3D model
Intermediate

Practical parts

Coffee Mug

Combine a hollow body with a capsule-ring handle without filling its opening.

Medium compile complexity. Two hulls and a hollow cylinder; curved booleans dominate.

Open lesson
Phone Stand: compiled 3D model
Intermediate

Practical parts

Phone Stand

Build an angled support that survives ground-plane clipping with its intended height.

Low compile complexity. One 2D rounded base and two slabs; clipping should not shorten the backrest.

Open lesson
Embossed Text Badge: compiled 3D model
Intermediate

Practical parts

Embossed Text Badge

Extrude font outlines into raised lettering that overlaps its base.

Medium compile complexity. Text requires bundled font support; detailed glyph outlines increase cost.

Open lesson
Helical Thread & Matching Cap: compiled 3D model
Advanced

Advanced geometry

Helical Thread & Matching Cap

Construct a real sampled helical ridge and subtract a clearance-adjusted mating thread.

High compile complexity. Helical polyhedra and internal thread subtraction are expensive; preview uses fewer samples.

Open lesson
42 mm Grid Organizer: compiled 3D model
Intermediate
Stepped model

Practical parts

42 mm Grid Organizer

Lay out useful compartments on a fixed pitch while keeping walls, floor, and outside clearance independent.

Low compile complexity. A rounded shell and straight dividers; cost stays modest across the allowed grid sizes.

Open lesson
SVG-Imported Badge: compiled 3D model
Intermediate
Stepped model

Practical parts

SVG-Imported Badge

Import a real project SVG asset, scale its outline, and use it as raised or engraved geometry.

Medium compile complexity. Imports a small bundled SVG; complex replacement paths can increase boolean cost.

Open lesson
2D Laser-Cut Vent Panel: compiled 2D profile
Intermediate
2D · SVG

Practical parts

2D Laser-Cut Vent Panel

Generate a true 2D cutting profile with mounting holes, ventilation slots, and optional measured kerf compensation.

Low compile complexity. Only 2D circles, hulls, and offsets. SVG/DXF export avoids 3D tessellation.

Open lesson
BOSL2 Involute Gear Pair: compiled 3D model
Advanced

Advanced geometry

BOSL2 Involute Gear Pair

Use actual involute gears with matching tooth module, calculated center distance, and the correct rotation ratio.

High compile complexity. Loads bundled BOSL2 and constructs involute profiles; use draft quality while changing counts.

Open lesson

Compile complexity is a relative guide, not a time estimate. Final renders use more detail than previews. These are learning models: verify dimensions, clearances, materials, and intended use before fabrication.