b3dWeldVertices

Merges duplicate vertices within threshold distance using spatial hashing. Takes mesh (surface-based mesh entity), threshold (distance tolerance as double, typically 0.0001 to 0.1). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int
threshold Int

Returns

Void

Quick Summary

Merges duplicate vertices within threshold distance using spatial hashing. Takes mesh (surface-based mesh entity), threshold (distance tolerance as double, typically 0.0001 to 0.1). Returns nothing.

Technical Exegesis...

Merges duplicate vertices within threshold distance using spatial hashing. Takes mesh (surface-based mesh entity), threshold (distance tolerance as double, typically 0.0001 to 0.1). Returns nothing. Validates mesh exists, type is ENTITY_MESH, surface-based, and locked. Processes each surface independently. Builds spatial hash (grid structure, cell size = threshold) mapping 3D grid cells to vertex indices. Creates remap table (old vertex index -> new vertex index).

Example

Example.bam
; No example implemented yet