From d9a0bcf532a44e94f11f23b910d117ec41c92ec8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 10 Mar 2023 01:41:19 +0000 Subject: Swap messy glmvec wrapper for OpenMesh Point/Normal with real glm::vec and a custom vector_traits implementation Simplify code previously messy as a result of the original hack. --- assetFactory/use.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'assetFactory/use.cpp') diff --git a/assetFactory/use.cpp b/assetFactory/use.cpp index 5e45c87..9db3495 100644 --- a/assetFactory/use.cpp +++ b/assetFactory/use.cpp @@ -15,9 +15,7 @@ Use::createMesh(ModelFactoryMesh & mesh, float levelOfDetailFactor) const const auto fvr = mesh.fv_range(f.second); for (const auto & v : fvr) { if (!vs.contains(v)) { - glm::vec3 p = mesh.point(v); - p = p % m; - mesh.set_point(v, ModelFactoryMesh::Point(p.x, p.y, p.z)); + mesh.point(v) %= m; vs.insert(v); } } -- cgit v1.2.3