MeshDownloaderData
One downloaded mesh chunk.
Declaration
data class MeshDownloaderDataConstructors
constructor(meshData: MeshData, imageData: ByteArray, transform: FloatArray, geoReference: MeshGeoReference, vpsMapAssetId: String = "", areaId: String = "")
Parameters
| Name | Type | Summary |
|---|---|---|
| meshData | MeshData | - |
| imageData | ByteArray | - |
| transform | FloatArray | - |
| geoReference | MeshGeoReference | - |
| vpsMapAssetId | String | - |
| areaId | String | - |
Properties
| Name | Type | Summary |
|---|---|---|
| areaId | String | 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. |
| geoReference | MeshGeoReference | Georeference of the asset's origin space, for placing the chunk geographically. |
| imageData | ByteArray | The chunk's encoded texture image, empty for untextured assets. |
| meshData | MeshData | The chunk's geometry, in its own local space. See [MeshData] for its axis convention. |
| transform | FloatArray | 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. |
| vpsMapAssetId | String | 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-baseddownload. |