Commit e28e4796 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed clang warning about unsequenced variable access

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18881 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 29afcc54
......@@ -1015,7 +1015,10 @@ private:
inline
typename Mesh::Normal computedTriMeshNormal(typename Mesh::FaceHandle fh) {
typename Mesh::FVIter fv_iter = mesh_.fv_begin(fh);
return (mesh_.point(*fv_iter) + mesh_.point(*(++fv_iter)) + mesh_.point(*(++fv_iter))) / 3.0;
const typename Mesh::Point p1 = mesh_.point(*fv_iter);
const typename Mesh::Point p2 = mesh_.point(*(++fv_iter));
const typename Mesh::Point p3 = mesh_.point(*(++fv_iter));
return ( p1 + p2 + p3 ) / 3.0;
}
inline
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment