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/shape.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/shape.cpp')
-rw-r--r-- | assetFactory/shape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/shape.cpp b/assetFactory/shape.cpp index ec6594e..3261354 100644 --- a/assetFactory/shape.cpp +++ b/assetFactory/shape.cpp @@ -9,7 +9,7 @@ Shape::addToMesh(ModelFactoryMesh & mesh, const std::span<const glm::vec3> verti { std::vector<OpenMesh::VertexHandle> vhs; std::transform(vertices.begin(), vertices.end(), std::back_inserter(vhs), [&mesh](const auto & p) { - return mesh.add_vertex({p.x, p.y, p.z}); + return mesh.add_vertex(p); }); return vhs; } |