Skip to main content
OG_OPERATION_REVOLVE turns a closed profile a full turn into a solid. The parameters are { profile, axis? }:
  • profile: a closed OG_PRIMITIVE_PROFILE wire.
  • axis: { point: [u, v], direction: [du, dv] } in the profile’s own [u, v]. By default it is { point: [0, 0], direction: [0, 1] }, the profile plane’s v axis.
Each profile edge off the axis becomes one plane, cylinder, cone, sphere or ring torus face. An edge on the axis makes no face.

A bowl

On the default ground plane, the v axis runs along −Z, so the solid would lie on its side. Draw the profile on an upright plane instead, with u as the radius and v as the height. The bowl then stands upright about the Y axis:

Rules

These throw InvalidParameter:
  • A profile that crosses the axis, touches it at a single point, or meets it along two separate stretches.
  • An arc whose circle meets the axis.
  • A zero direction.
Not built:
  • A partial turn. There is no sweep angle; every revolve is a full turn.
  • A profile with holes. OG_OPERATION_REVOLVE takes no holes.
  • The shell of a full-turn revolve throws CoverageGap.
Last modified on November 10, 2026