brepjs API Reference
    Preparing search index...

    Function circularPattern

    • Create a circular pattern of a shape around an axis.

      A full turn (fullAngle of ±360) spaces the copies fullAngle / count apart, so the last copy does not land on the first. Any other angle is an open arc: the first copy stays in place, the last lands at fullAngle, and they are spaced fullAngle / (count - 1) apart.

      Parameters

      • shape: Shape3D

        The shape to replicate

      • axis: Vec3

        Rotation axis direction

      • count: number

        Total number of copies (including the original)

      • fullAngle: number = 360

        Angle in degrees the copies span (default: 360)

      • center: Vec3 = ...

        Center point of rotation (default: [0,0,0])

      • Optionaloptions: BooleanOptions

        Boolean options for the fuse operation

      Returns Result<Shape3D>

      Fused shape of all copies