From 69ec1871ad169bb36f61b02910ed72fb38546ec6 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 24 Aug 2001 07:49:17 +0000
Subject: [PATCH] stronger test on nb intersect in IsoSimplex

---
 Graphics/IsoSimplex.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Graphics/IsoSimplex.cpp b/Graphics/IsoSimplex.cpp
index ecaa568547..1647fa3ec3 100644
--- a/Graphics/IsoSimplex.cpp
+++ b/Graphics/IsoSimplex.cpp
@@ -168,7 +168,7 @@ void IsoSimplex( Post_View *View,
     }
   }
 
-  if(nb < 3)return;
+  if(nb < 3 || nb > 4)return;
 
   EnhanceSimplexPolygon (View, nb, Xp, Yp, Zp, PVals, X, Y, Z, Val, norms, preproNormals);
 
-- 
GitLab