b3dDeleteTriangle

Removes triangle from surface by erasing its three indices from index array. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), triangleIndex (triangle number, 0-based). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
surface Int
triangleIndex Int

Returns

Void

Quick Summary

Removes triangle from surface by erasing its three indices from index array. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), triangleIndex (triangle number, 0-based). Returns nothing.

Technical Exegesis...

Removes triangle from surface by erasing its three indices from index array. Takes mesh (surface-based mesh entity), surface (surface handle, 0-based), triangleIndex (triangle number, 0-based). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, surface index valid, and mesh is locked. Calculates index offset: baseIndex = triangleIndex * 3 (each triangle = 3 indices). Validates baseIndex in range [0, indices.size()-2] (ensures 3 indices exist).

Example

Example.bam
; No example implemented yet