diff --git a/src/mesh.cc b/src/mesh.cc index 28b67e0..4517a34 100644 --- a/src/mesh.cc +++ b/src/mesh.cc @@ -74,6 +74,12 @@ const draco_point_attr* dracoMeshGetAttributeByUniqueId(const draco_mesh *mesh, return reinterpret_cast(attr); } + +int32_t dracoMeshGetNamedAttributeId(const draco_mesh *mesh, draco_geometry_type geo_type) { + auto type = static_cast(geo_type); + return reinterpret_cast(mesh)->GetNamedAttributeId(type); +} + template static bool GetAttributeDataArrayForAllPoints(const draco::PointCloud *pc, const draco::PointAttribute *pa,