diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-10 01:41:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-10 01:41:19 +0000 |
commit | d9a0bcf532a44e94f11f23b910d117ec41c92ec8 (patch) | |
tree | b988ce38d48de9ecf87d57bddabc397edeebfff3 /assetFactory/use.cpp | |
parent | Inplace operator%= for vec3/mat4 mutation (diff) | |
download | ilt-d9a0bcf532a44e94f11f23b910d117ec41c92ec8.tar.bz2 ilt-d9a0bcf532a44e94f11f23b910d117ec41c92ec8.tar.xz ilt-d9a0bcf532a44e94f11f23b910d117ec41c92ec8.zip |
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.
Diffstat (limited to 'assetFactory/use.cpp')
-rw-r--r-- | assetFactory/use.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); } } |