Skip to content

Commit

Permalink
add missing method implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Feb 28, 2021
1 parent eaa8454 commit 103831b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ const draco_point_attr* dracoMeshGetAttributeByUniqueId(const draco_mesh *mesh,
return reinterpret_cast<const draco_point_attr*>(attr);
}


int32_t dracoMeshGetNamedAttributeId(const draco_mesh *mesh, draco_geometry_type geo_type) {
auto type = static_cast<draco::GeometryAttribute::Type>(geo_type);
return reinterpret_cast<const draco::Mesh*>(mesh)->GetNamedAttributeId(type);
}

template <class T>
static bool GetAttributeDataArrayForAllPoints(const draco::PointCloud *pc,
const draco::PointAttribute *pa,
Expand Down

0 comments on commit 103831b

Please sign in to comment.