Skip to main content
←API Reference ←NSDK

NSDKMeshDownloader

A session-scoped utility for downloading mesh geometry associated with VPS locations.

Declaration​

final class NSDKMeshDownloader

Methods​

NameTypeSummary
requestLocationMeshMeshDownloaderResults
[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 object
containing the downloaded geometry data.
requestLocationMeshByAssetAsyncThrowingStream<MeshDownloaderChunk, any Error>
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 are
sorted by proximity to the provided GPS position and downloaded sequentially, closest first.
Each decoded chunk is yielded to the returned stream immediately upon completion, enabling
incremental mesh generation without waiting for the full download.

Relationships​

conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype