Rectangle::getSurfaceArea() was wrong

metadata
Wenzel Jakob 2012-10-05 00:24:15 -04:00
parent 9318ac71fb
commit 262308b9b9
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@ Import('env', 'sys', 'os')
bidirEnv = env.Clone()
bidirEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_BIDIR']])
#bidirEnv.RemoveFlags(['-O3'])
#bidirEnv.Append(CXXFLAGS = ['-O0']);
# bidirEnv.RemoveFlags(['-O3'])
# bidirEnv.Append(CXXFLAGS = ['-O0']);
libbidir = bidirEnv.SharedLibrary('mitsuba-bidir', [
'common.cpp', 'rsampler.cpp', 'vertex.cpp', 'edge.cpp',

View File

@ -119,7 +119,7 @@ public:
}
Float getSurfaceArea() const {
return 4 * m_dpdu.length() * m_dpdv.length();
return m_dpdu.length() * m_dpdv.length();
}
inline bool rayIntersect(const Ray &_ray, Float mint, Float maxt, Float &t, void *temp) const {