Function makeVerticesCoordsFoldedFromMatrix2

  • Parameters

    • graph: FOLD

      a FOLD object with vertices_coords, faces_vertices, and if vertices_faces does not exist it will be built.

    • faces_matrix: number[][]

      an array of 2x3 matrices. one per face.

    Returns [number, number][]

    a new set of vertices_coords, transformed.

    Description

    Given a FOLD object and a set of 2x3 matrices, one per face, "fold" the vertices by finding one matrix per vertex and multiplying them.