sprunk-engine
    Preparing search index...
    • Triangulates an N-gon face into triangles using the ear clipping method

      Parameters

      • vertices: Float32Array

        The vertex array containing all mesh vertices

      • face: Face

        The face to triangulate

      Returns number[]

      Array of triangle indices