Function calculateNormals

Calculates the vertex normals based on the given vertex and index arrays.

  • Parameters

    • vertexArray: any

      The array of vertex positions.

    • indexArray: any

      The array of vertex indices.

    Returns any[]

    • The array of calculated vertex normals.