Skip to main content
API Reference com.nianticspatial.nsdk.mesh MeshingSession

getData

Gets the data for a single mesh chunk. Calling this function will reset the updated flag for the mesh chunk; i.e. after calling this function, future calls of [getUpdatedInfos] will only mark the chunk with id as having updated if its mesh data has changed since the call to this function.

Declaration

fun getData(id: Long): MeshData?

Summary

Gets the data for a single mesh chunk. Calling this function will reset the updated flag for the mesh chunk; i.e. after calling this function, future calls of [getUpdatedInfos] will only mark the chunk with id as having updated if its mesh data has changed since the call to this function.

Returns

The mesh data if a mesh chunk with id exists, null if otherwise.


ON THIS PAGE