# NSDKMeshDownloader Source: https://www.nianticspatial.com/docs/api/swift/NSDK.class-NSDKMeshDownloader/ NSDKMeshDownloader A session-scoped utility for downloading mesh geometry associated with VPS locations. --- ## Declaration final class NSDKMeshDownloader --- ## Methods | Name | Type | Summary | | --- | --- | --- | | requestLocationMesh | MeshDownloaderResults | [Deprecated] Requests all meshes for a VPS location identified by an anchor payload.Initiates a network request to download all meshes associated with the given VPS location.The call suspends until the operation completes successfully, fails, or times out.The method automatically polls for completion and returns a `MeshDownloaderResults` objectcontaining the downloaded geometry data. | | requestLocationMeshByAsset | AsyncThrowingStream | Downloads mesh chunks for a portal asset, streaming each chunk as it completes.Initiates a network request to the portal API for the given `vpsMapAssetId`. Graph nodes aresorted by proximity to the provided GPS position and downloaded sequentially, closest first.Each decoded chunk is yielded to the returned stream immediately upon completion, enablingincremental mesh generation without waiting for the full download. | --- ## Relationships conforms to: Swift.Sendable conforms to: Swift.SendableMetatype