Skip to main content
←API Reference ←com.nianticspatial.nsdk

MeshDownloaderData

One downloaded mesh chunk.

Declaration​

data class MeshDownloaderData

Constructors​

constructor(meshData: MeshData, imageData: ByteArray, transform: FloatArray, geoReference: MeshGeoReference, vpsMapAssetId: String = "", areaId: String = "")

Parameters​

NameTypeSummary
meshDataMeshData
-
imageDataByteArray
-
transformFloatArray
-
geoReferenceMeshGeoReference
-
vpsMapAssetIdString
-
areaIdString
-

Properties​

NameTypeSummary
areaIdString
Identifier of subarea in the site this mesh 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.
geoReferenceMeshGeoReference
Georeference of the asset's origin space, for placing the chunk geographically.
imageDataByteArray
The chunk's encoded texture image, empty for untextured assets.
meshDataMeshData
The chunk's geometry, in its own local space. See [MeshData] for its axis convention.
transformFloatArray
Column-major 4x4 matrix (16 elements) mapping the chunk's local space into the asset's origin space, with translation in meters, in ARCore's coordinate convention. The asset's origin space is the one [com.nianticspatial.nsdk.vps2.Vps2AssetTrackingData.assetToLocalTrackingTransform] places in AR tracking space, so a vertex v (after converting it to ARCore's convention) is at assetToLocalTrackingTransform * transform * v in tracking space.
vpsMapAssetIdString
The VPS map asset ID the download was requested with — not the mesh asset the geometry came
from — so it matches Vps2LocalizedAsset.assetId. Empty on the deprecated payload-based
download.