MeshDownloaderChunk
Declaration
struct MeshDownloaderChunkSummary
A single decoded mesh chunk from a streaming portal mesh download.
Chunks are delivered incrementally via
NSDKMeshDownloader/requestLocationMeshByAsset(vpsMapAssetId:latitude:longitude:getTexture:maxChunks:maxSizeKb:maxDecodedSizeKb:pollingInterval:)
as each graph node finishes downloading, rather than waiting for the full download to complete.
Properties
| Name | Type | Summary |
|---|---|---|
| let areaId | String | |
| let geoReference | MeshGeoReference | The georeference of the asset this chunk belongs to. Identical on every chunk of one download; compose it with transform to place this chunk geographically. |
| let imageData | NSDKBuffer | The texture image data for the mesh, or an empty buffer if texture was not requested. |
| let meshData | MeshData | The mesh geometry data containing vertices, faces, and texture coordinates. |
| let transform | simd_float4x4 | Transform from this chunk's local vertex space into the asset's origin space, in ARKit axes with translation in meters. The asset's origin space is the one Vps2AssetTrackingData/assetToTrackingTransform places in AR tracking space, so a vertexlands in tracking space at assetToTrackingTransform * transform * v, where v is thevertex converted to ARKit axes (see MeshData/verticesPtr). |
| let vpsMapAssetId | String | The VPS map asset ID the download was requested with. Not the ID of the mesh asset the geometry came from, so it matches the asset Vps2LocalizedAsset/assetId reports. Identical on every chunk of one download. |
Relationships
conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype
has no subareas. This identifier can be used to optimize which mesh chunk to render
depending on localization result.