Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Offsets, shells and features

Everything here is in ogeom::offset.

Offsetting

FunctionWhat it does
offset_shapeMoves a solid’s boundary along its normals (outward, or inward with a negative distance) and rebuilds the intersections where offset surfaces collide.
make_thick_solidShelling: removes the named faces, offsets the rest inward and joins them. Gives a hollow part with an opening.
offset_wire2D offset of a planar wire. The caller picks the Join style (arcs or intersections). Useful for tool-path-like outlines.
apply_draftTilts faces by a draft angle about a neutral plane, for moulded parts.

Sweeps

The general sweeps share this module’s machinery:

  • make_pipe and make_pipe_skinned: sweep along a single spine edge.
  • make_loft and make_loft_skinned: loft through profile sections.
  • make_evolved: sweep a profile along a planar spine.
  • make_filling: build an N-sided patch face that fills a boundary.

Features

Feature operations combine a sketch with a solid in one step:

  • feature_prism: bosses and pockets.
  • feature_revol: revolved bosses and grooves.
  • feature_rib and feature_slot.

Each is a constrained boolean internally and records history like every other operation.

normal_projection projects a wire onto a shape along the shape’s normals (for engraving). It returns the Projected curves on the target faces.