CesiumGS / cesium-native

Apache License 2.0
415 stars 210 forks source link

Add `AccessorUtility.h` #764

Closed j9liu closed 9 months ago

j9liu commented 10 months ago

This PR adds AccessorUtility.h, which is just the GltfAccessors.h file from Cesium for Unreal. It provides typedefs for the possible types of feature ID, index, and texcoord accessors, as well as visitors to retrieve their data. This is useful for retrieving feature IDs and texture coordinates without requiring them to be baked into mesh data, enabling picking.

This is a PR into #756 , so merge that first.

kring commented 10 months ago

This file is still using Unreal conventions for function names (starting with a capital letter) instead of the cesium-native convention (starting with a lowercase letter). Other than that, this looks good to me!

kring commented 9 months ago

Thanks @j9liu!