Skip to content
Snippets Groups Projects
Commit b2f528eb authored by Matthias Möller's avatar Matthias Möller
Browse files

fixed template deduction error with float precision meshes

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1099 fdac6126-5c0c-442c-9429-916003d36597
parent 0b28f7f6
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ protected: ...@@ -177,7 +177,7 @@ protected:
} else { } else {
const typename MeshType::Point to = _m.point(_m.to_vertex_handle(_m.halfedge_handle(a.first,0))); 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 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<typename MeshType::Point::value_type>(0.5) * (to + from);
const typename MeshType::VertexHandle newVertex = _m.add_vertex(midpoint); const typename MeshType::VertexHandle newVertex = _m.add_vertex(midpoint);
_m.split(a.first,newVertex); _m.split(a.first,newVertex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment