Commit a17e0665 authored by Mike Kremer's avatar Mike Kremer

Avoid returning a reference when multiplying the normal with a scalar.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@203 66977474-1d4b-4f09-8fe9-267525286df2
parent 5c4d24bd
......@@ -85,7 +85,7 @@ public:
return f_normals_[_h.idx()];
}
const typename GeomKernelT::PointT& operator[](const HalfFaceHandle& _h) const {
const typename GeomKernelT::PointT operator[](const HalfFaceHandle& _h) const {
assert((unsigned int)_h.idx() < kernel_.n_halffaces());
double mult = 1.0;
if(_h.idx() % 2 == 1) mult = -1.0;
......@@ -102,7 +102,7 @@ public:
return f_normals_[_h.idx()];
}
typename GeomKernelT::PointT& operator[](const HalfFaceHandle& _h) {
typename GeomKernelT::PointT operator[](const HalfFaceHandle& _h) {
assert((unsigned int)_h.idx() < kernel_.n_halffaces());
double mult = 1.0;
if(_h.idx() % 2 == 1) mult = -1.0;
......
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