brepjs API Reference
    Preparing search index...

    Function revolution

    • Revolve a face around an axis to create a solid of revolution (OOP API).

      Parameters

      • face: Face

        The face to revolve.

      • center: PointInput = ...

        A point on the rotation axis. Defaults to the origin.

      • direction: PointInput = ...

        Direction vector of the rotation axis. Defaults to Z-up.

      • angle: number = 360

        Rotation angle in degrees (0-360). Defaults to a full revolution.

      Returns Result<Shape3D>

      Result containing the revolved 3D shape, or an error if the result is not 3D.

      extrudeFns!revolveFace | revolveFace for the functional API equivalent.