Skip to main content
←API Reference ←NSDK

MeshDownloaderChunk


Declaration​

struct MeshDownloaderChunk

Summary​

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​

NameTypeSummary
let areaIdString
Identifier of subarea in the site this chunk belongs to, or an empty string when the asset
has no subareas. This identifier can be used to optimize which mesh chunk to render
depending on localization result.
let geoReferenceMeshGeoReference
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 imageDataNSDKBuffer
The texture image data for the mesh, or an empty buffer if texture was not requested.
let meshDataMeshData
The mesh geometry data containing vertices, faces, and texture coordinates.
let transformsimd_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 vertex
lands in tracking space at assetToTrackingTransform * transform * v, where v is the
vertex converted to ARKit axes (see MeshData/verticesPtr).
let vpsMapAssetIdString
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