From: Eduardo DAVILA Date: Fri, 2 Jun 2023 20:33:54 +0000 (+0200) Subject: #3510 Bug windows CreateMeshFromPoints box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d2b393d39efdb9e3e3dfae53784667708ac72f0a;p=creaVtk.git #3510 Bug windows CreateMeshFromPoints box --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx index b804dff..21e8f72 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx @@ -61,7 +61,7 @@ void CreateMeshFromPoints::Process() pointsCentroid[1] /= sizeLstX; pointsCentroid[2] /= sizeLstX; - if(bbGetInputCloseSurface()) + if ((bbGetInputCloseSurface()==true) && (lstIndexs.size()>=2) ) { //Correct surface normals if needed double pointSurf1[3], pointSurf2[3], pointSurf3[3];