Function deviation

  • Parameters

    • data: number[]

      either a 2D or 3D array

    • holeIndices: number[] = []

      indices of the holes

    • dim: number = 2

      number of dimensions

    • triangles: number[] = []

      triangles to append to

    Returns number

    • the deviation