brepjs API Reference
    Preparing search index...

    Function gridPattern

    • Create a 2D grid pattern of a shape along two directions.

      Parameters

      • shape: Shape3D

        The shape to replicate

      • directionX: Vec3

        First direction vector for the grid

      • directionY: Vec3

        Second direction vector for the grid

      • countX: number

        Number of copies along directionX

      • countY: number

        Number of copies along directionY

      • spacingX: number

        Distance between copies along directionX

      • spacingY: number

        Distance between copies along directionY

      • Optionaloptions: BooleanOptions

        Boolean options for the fuse operation (used in fallback path)

      Returns Result<Shape3D>

      Compound shape containing all copies, or fused result