From 752c8ef7d23b0538dc2ee1594203add180ae8ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 9 Apr 2019 13:27:03 +0200 Subject: [PATCH] Fixed loop subdivider with external vector type --- src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh b/src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh index 41ca3c6e..0fb5d353 100644 --- a/src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh +++ b/src/OpenMesh/Tools/Subdivider/Uniform/LoopT.hh @@ -321,7 +321,7 @@ private: // topological modifiers typename mesh_t::VertexHandle vh1(_m.to_vertex_handle(heh)); typename mesh_t::Point midP(_m.point(_m.to_vertex_handle(heh))); midP += _m.point(_m.to_vertex_handle(opp_heh)); - midP *= static_cast(0.5); + midP *= 0.5; // new vertex vh = _m.new_vertex( midP ); @@ -393,7 +393,7 @@ private: // geometry helper // boundary edge: just average vertex positions if (_m.is_boundary(_eh) ) { - pos *= static_cast(0.5); + pos *= 0.5; } else // inner edge: add neighbouring Vertices to sum {