build_triangle_morton_codes
build_triangle_morton_codes(morton_codes, tri_count, index_array, position_array, aabb_x0, aabb_y0, aabb_z0, aabb_x1, aabb_y1, aabb_z1)
Compute morton codes for each triangle
Kind: global function
Param | Type | Description |
---|---|---|
morton_codes | Array.<number> | Uint32Array | output where the morton codes are to be written to, matching order in index_array |
tri_count | number | |
index_array | Array.<number> | Uint8Array | Uint16Array | Uint32Array | |
position_array | Array.<number> | Float32Array | |
aabb_x0 | number | |
aabb_y0 | number | |
aabb_z0 | number | |
aabb_x1 | number | |
aabb_y1 | number | |
aabb_z1 | number |