Reverse les normals given in a Serie.
import { reverseNormals } from '@youwol/geometry'import { decodeGocadTS } from '@youwol/io'const surfaces = io.decodeGocadTS(buffer)// Reverse all the normals for all the loaded surfacessurfaces.forEach( surface => { surface.indices = reverseNormals(surface.indices)})
The new indices as a serie
dataframe
The indices of the triangles as a serie (flat-array)
Reverse les normals given in a Serie.
Example
Returns
The new indices as a serie
Caterogy
dataframe