July 2017
Beginner to intermediate
390 pages
10h 53m
English
Use the following code to get the actual mesh data:
public async Task AddOrUpdateAsync(SpatialSurfaceInfo spatialSurfaceInfo, SpatialSurfaceMeshOptions options) { var mesh = await spatialSurfaceInfo.TryComputeLatestMeshAsync(1000.0d, options); if (mesh == null) return; var tempList = new Dictionary<Guid, SurfaceMesh>(_internalList); // See if we already have this one.... var hasOne = tempList.ContainsKey(mesh.SurfaceInfo.Id); if (hasOne) { // Update var surfaceMesh = tempList[mesh.SurfaceInfo.Id]; if (surfaceMesh.UpdateTime < mesh.SurfaceInfo.UpdateTime) { surfaceMesh.CalculateAllVertices(mesh); surfaceMesh.UpdateTime = mesh.SurfaceInfo.UpdateTime; } } else { // Add new var newMesh = new SurfaceMesh { Id = mesh.SurfaceInfo.Id, ...Read now
Unlock full access