brepjs API Reference
    Preparing search index...

    Function twistExtrude

    • Extrude a wire along a normal with helical twist and optional profile scaling.

      Constructs a helical auxiliary spine that rotates the profile by angleDegrees over the extrusion length. Combines twist with optional s-curve or linear scaling when profileShape is provided.

      Parameters

      • wire: Wire

        The profile wire to sweep.

      • angleDegrees: number

        Total twist rotation in degrees. Must be non-zero.

      • center: Vec3

        Start point of the extrusion spine.

      • normal: Vec3

        Direction and length of the extrusion. Must be non-zero.

      • OptionalprofileShape: ExtrusionProfile

        Optional scaling profile applied along the extrusion.

      • shellMode: boolean = false

        When true, return [shell, startWire, endWire] instead of a solid.

      Returns Result<Shape3D | [Shape3D, Wire, Wire]>

      Result containing the twisted extruded shape or a shell tuple.

      extrude!twistExtrude | twistExtrude (OOP) for the class-based equivalent.