b3dClearSurface

Clears all vertices and triangles from a surface, resetting it to empty state. 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

Clears all vertices and triangles from a surface, resetting it to empty state. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns nothing.

Technical Exegesis...

Clears all vertices and triangles from a surface, resetting it to empty state. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, and surface index valid. Clears vertices array (surface->vertices.clear()). Clears indices array (surface->indices.clear()). Sets mesh->needsGPUUpload=true (flags for GPU buffer recreation on next unlock). Silently returns on validation errors.

Example

Example.bam
; No example implemented yet