]> Creatis software - creaVtk.git/commitdiff
#3510 Bug windows CreateMeshFromPoints box
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 2 Jun 2023 20:33:54 +0000 (22:33 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 2 Jun 2023 20:33:54 +0000 (22:33 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx

index b804dff795705d81e803d1bcdd80e364db1799e4..21e8f72dd1f88bdde179203af6e6ba2c36712650 100644 (file)
@@ -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];