b3dFlipSurfaceWindingOrder

Reverses triangle winding order in surface (flips front/back faces). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int

Returns

Void

Quick Summary

Reverses triangle winding order in surface (flips front/back faces). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns nothing.

Technical Exegesis...

Reverses triangle winding order in surface (flips front/back faces). Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns nothing. Validates mesh exists, type is ENTITY_MESH, is surface-based, and surface index valid. Swaps indices 1 and 2 of each triangle: (v0, v1, v2) becomes (v0, v2, v1). Reverses winding order: CCW -> CW or CW -> CCW. Sets surface->needsGPUUpload=true and mesh->needsGPUUpload=true. Silently returns on validation errors.

Example

Example.bam
; No example implemented yet