Schedules a job to get an anchor's triangle mesh.
This schedules jobs with the Unity Job system to retrieve the mesh data and then perform the necessary conversion to Unity's coordinate space (see
TryGetMeshRawUntransformed).The caller owns the memory of the input arrays and is responsible for allocating them to the appropriate size before passing them to this method. Use
TryGetCounts to determine the required size of each array. Note that indices should be three times the number of triangles (triangleCount) indicated by
TryGetCounts.If the triangle mesh cannot be retrieved, all indices will be set to zero. Use this to check for success after the job completes. For example, if the first three indices are zero, then the mesh is not valid.
ParameterspositionsThe vertex positions of the triangle mesh.
indicesThe triangle indices of the triangle mesh.
dependencies(Optional) A job on which the new jobs will depend.
ReturnsReturns the handle associated with the new job.