easy-iso

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

commit 27136c2c41d9c292fdd35c9bf4a0ec8662221243
parent bbcc969a7b81ae81862f540da06339df5c4c6f6e
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date:   Thu,  1 Dec 2016 09:47:36 +0100

fixed initializer list issue

Diffstat:
Msrc/Interpolator.h | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/Interpolator.h b/src/Interpolator.h @@ -60,12 +60,16 @@ public: // init coordinate transform _physicalDataPos = [this](const int i) { return i*this->m_h; }; - m_origin_off = {0.0, 0.0, 0.0}; + m_origin_off[0] = 0.0; + m_origin_off[1] = 0.0; + m_origin_off[2] = 0.0; m_isNodal = 1; if (p("data").asString("cell") == "cell") { _physicalDataPos = [this](const int i) { return (0.5+i)*this->m_h; }; - m_origin_off = {0.5*m_h, 0.5*m_h, 0.5*m_h}; + m_origin_off[0] = 0.5*m_h; + m_origin_off[1] = 0.5*m_h; + m_origin_off[2] = 0.5*m_h; m_isNodal = 0; } }