NSDKMeshDownloader
A session-scoped utility for downloading mesh geometry associated with VPS locations.
Declaration
final class NSDKMeshDownloaderMethods
| Name | Type | Summary |
|---|---|---|
| requestLocationMesh | MeshDownloaderResults | |
| requestLocationMeshByAsset | AsyncThrowingStream<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 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, enabling incremental mesh generation without waiting for the full download. |
Relationships
conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype
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
MeshDownloaderResultsobjectcontaining the downloaded geometry data.