easy-iso

Iso-surface extraction from volume data
git clone https://git.0xfab.ch/easy-iso.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2e900236529d1155f5c7a0a51a756b91d62a1907
parent 6f3b69690ae7de4f54b60bae876909f248a25789
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date:   Wed, 30 Nov 2016 08:41:45 +0100

fixed floor issue for negative ints

Diffstat:
Msrc/Interpolator.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Interpolator.h b/src/Interpolator.h @@ -110,7 +110,7 @@ protected: // helper std::function<Real(const Real, const int)> _getH; - inline int _idx(const Real x) const { return x*m_invh; } + inline int _idx(const Real x) const { return std::floor(x*m_invh); } inline Real _pos(const int i) const { return i*m_h; } private: