From 41f622bb116d6b94feef87fea5d3bc18f24cf744 Mon Sep 17 00:00:00 2001 From: Daniel Girardeau-Montaut Date: Wed, 19 Mar 2025 23:25:10 +0100 Subject: [PATCH] Fix compilation error (Visual Studio 2017) --- src/GrainsAsEllipsoids.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);