# MeshDownloaderChunk Source: https://www.nianticspatial.com/docs/api/swift/NSDK.struct-MeshDownloaderChunk/ 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 | Name | Type | Summary | | --- | --- | --- | | let areaId | String | Identifier of subarea in the site this chunk belongs to, or an empty string when the assethas no subareas. This identifier can be used to optimize which mesh chunk to renderdepending on localization result. | | let geoReference | MeshGeoReference | The georeference of the asset this chunk belongs to. Identical on every chunk of onedownload; 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 ARKitaxes 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 themesh 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