brepjs API Reference
    Preparing search index...

    Function sketchRevolve

    • Revolve a sketch around an axis to produce a solid of revolution.

      Parameters

      • sketch: Sketch

        The sketch to revolve. Consumed (deleted) by this call.

      • OptionalrevolutionAxis: PointInput

        Axis direction (defaults to sketch default direction).

      • Optionaloptions: { origin?: PointInput }

        Optional origin override.

      Returns Shape3D

      The revolved 3D solid.

      Sketch.revolve for the OOP equivalent.