From b2f528eb0a534c37f2cad7b4d427407f07c116e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Sat, 5 Jul 2014 18:59:27 +0000 Subject: [PATCH] fixed template deduction error with float precision meshes git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1099 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh b/src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh index bb6151f1..fff084b9 100644 --- a/src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh +++ b/src/OpenMesh/Tools/Subdivider/Uniform/LongestEdgeT.hh @@ -177,7 +177,7 @@ protected: } else { const typename MeshType::Point to = _m.point(_m.to_vertex_handle(_m.halfedge_handle(a.first,0))); const typename MeshType::Point from = _m.point(_m.from_vertex_handle(_m.halfedge_handle(a.first,0))); - const typename MeshType::Point midpoint = 0.5 * ( to + from ); + const typename MeshType::Point midpoint = static_cast(0.5) * (to + from); const typename MeshType::VertexHandle newVertex = _m.add_vertex(midpoint); _m.split(a.first,newVertex);