Skip to main content

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

ParamTypeDescription
morton_codesArray.<number> | Uint32Arrayoutput where the morton codes are to be written to, matching order in index_array
tri_countnumber
index_arrayArray.<number> | Uint8Array | Uint16Array | Uint32Array
position_arrayArray.<number> | Float32Array
aabb_x0number
aabb_y0number
aabb_z0number
aabb_x1number
aabb_y1number
aabb_z1number