summaryrefslogtreecommitdiff
path: root/assetFactory/cylinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/cylinder.cpp')
-rw-r--r--assetFactory/cylinder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/assetFactory/cylinder.cpp b/assetFactory/cylinder.cpp
index 83cf035..d51dc37 100644
--- a/assetFactory/cylinder.cpp
+++ b/assetFactory/cylinder.cpp
@@ -36,6 +36,9 @@ Cylinder::createMesh(ModelFactoryMesh & mesh, const Mutation::Matrix & mutation)
mesh.add_vertex({xyz1t.x, xyz1t.y, xyz1t.z}),
}));
});
+ for (const auto & [name, face] : surface) {
+ mesh.property(mesh.smoothFaceProperty, face) = true;
+ }
surface.emplace("bottom", mesh.add_face(bottom));
surface.emplace("top", mesh.add_face(top));