diff --git a/src/GrainsAsEllipsoids.cpp b/src/GrainsAsEllipsoids.cpp index abb5105..91ff19f 100644 --- a/src/GrainsAsEllipsoids.cpp +++ b/src/GrainsAsEllipsoids.cpp @@ -74,9 +74,11 @@ GrainsAsEllipsoids::GrainsAsEllipsoids(ccPointCloud *cloud, ccMainAppInterface * } // remove data corresponding to stacks were the fit was not successful + Eigen::Array3f nullArray; + nullArray.fill(NAN); for (auto el : m_fitNotOK) { - m_center[el] << NAN, NAN, NAN; + m_center[el] = nullArray; } m_ccBBoxAll.setValidity(true);