summaryrefslogtreecommitdiff
path: root/assetFactory/faceController.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-10 01:41:19 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-10 01:41:19 +0000
commitd9a0bcf532a44e94f11f23b910d117ec41c92ec8 (patch)
treeb988ce38d48de9ecf87d57bddabc397edeebfff3 /assetFactory/faceController.cpp
parentInplace operator%= for vec3/mat4 mutation (diff)
downloadilt-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/faceController.cpp')
-rw-r--r--assetFactory/faceController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/faceController.cpp b/assetFactory/faceController.cpp
index b6d3d34..1ec1467 100644
--- a/assetFactory/faceController.cpp
+++ b/assetFactory/faceController.cpp
@@ -44,7 +44,7 @@ FaceController::apply(ModelFactoryMesh & mesh, const StyleStack & parents, const
// create new vertices
std::vector<OpenMesh::VertexHandle> vertices;
std::transform(points.begin(), points.end(), std::back_inserter(vertices), [&mesh](auto && p) {
- return mesh.add_vertex({p.x, p.y, p.z});
+ return mesh.add_vertex(p);
});
// create new faces
const auto ofrange = materializeRange(mesh.ff_range(cf.second));