AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Function generateMappingFromPattern

    • generates a system or shuttle mapping from an input pattern based on the input draft

      Parameters

      • drawdown: Drawdown

        the drawdown for which we are creating this mapping

      • pattern: number[]

        the repeating pattern to use when creating the mapping

      • type: string

        specify if this is a 'row'/weft or 'col'/warp mapping

      Returns number[]

      the mapping to use