From dcef517f0412b60895fee0bcb6cddbbbd4bdc318 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sun, 12 May 2019 16:30:09 +0800 Subject: [PATCH] utils: fix isInfinite() --- utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 1832f5d..6e183c8 100644 --- a/utils.py +++ b/utils.py @@ -83,9 +83,9 @@ def deduceSelectedElement(obj,subname): def isInfinite(shape): # A face without edge or an edge without vertex is considered infinite if shape.countElement('Face'): - return shape.countElement('Edge') - else: - return shape.countElement('Vertex') + return not shape.countElement('Edge') + elif shape.countElement('Edge'): + return not shape.countElement('Vertex') def getElementShape(obj,tp=None,transform=False,noElementMap=True): if not isinstance(obj,(tuple,list)):