• Reverse les normals given in a Serie.

    Example

    import { reverseNormals } from '@youwol/geometry'
    import { decodeGocadTS } from '@youwol/io'

    const surfaces = io.decodeGocadTS(buffer)

    // Reverse all the normals for all the loaded surfaces
    surfaces.forEach( surface => {
    surface.indices = reverseNormals(surface.indices)
    })

    Returns

    The new indices as a serie

    Caterogy

    dataframe

    Parameters

    • indices: Serie<IArray>

      The indices of the triangles as a serie (flat-array)

    Returns Serie