diff --git a/Cassiopee/CPlot/apps/tkCADFix.py b/Cassiopee/CPlot/apps/tkCADFix.py
index c49f0f596..72054bc67 100644
--- a/Cassiopee/CPlot/apps/tkCADFix.py
+++ b/Cassiopee/CPlot/apps/tkCADFix.py
@@ -384,6 +384,7 @@ def trimFaces(event=None):
#==============================================================================
def checkWatertight(event=None):
+ import OCC.PyTree as OCC
if CTK.t == []: return
b = Internal.getNodeFromName1(CTK.t, 'FACES')
if b is None:
@@ -416,19 +417,18 @@ def checkWatertight(event=None):
p = Internal.getNodeFromName1(CTK.t, 'LEAKS')
gnob = C.getNobOfBase(p, CTK.t)
- f = Internal.getZones(b)
- f = G.zip(f, tol)
- f = T.join(f)
- #f = G.close(f, tol)
- ef = T.splitConnexity(f)
+ ef = OCC.getComponents(CTK.t, tol)
+
VARS[6].set('Components: %d'%(len(ef)))
isWatertight = False
try:
- ext = P.exteriorFaces(f)
- ext = T.splitConnexity(ext)
- for i in ext: CTK.add(CTK.t, gnob, -1, i)
- if len(ext) == 0: isWatertight = True
+ isWatertight = True
+ for f in ef:
+ ext = P.exteriorFaces(f)
+ ext = T.splitConnexity(ext)
+ for i in ext: CTK.add(CTK.t, gnob, -1, i)
+ if len(ext) != 0: isWatertight = False
except: isWatertight = True
(CTK.Nb, CTK.Nz) = CPlot.updateCPlotNumbering(CTK.t)
diff --git a/Cassiopee/CPlot/apps/tkTree.py b/Cassiopee/CPlot/apps/tkTree.py
index d9d50a3e4..d3160c892 100644
--- a/Cassiopee/CPlot/apps/tkTree.py
+++ b/Cassiopee/CPlot/apps/tkTree.py
@@ -903,7 +903,7 @@ def PVT_displayNode(self, clear=False):
for z in zones:
base, c = Internal.getParentOfNode(CTK.t, z)
#noz = CPlot.getCPlotNumber(CTK.t, base[0], z[0])
- noz = dnz[base[0], z[0]]
+ noz = dnz[base[0]][z[0]]
selected.append((noz, s))
if clear: CPlot.unselectAllZones()
CPlot.setSelectedZones(selected)
diff --git a/Cassiopee/OCC/OCC/Atomic/identifyTags.cpp b/Cassiopee/OCC/OCC/Atomic/identifyTags.cpp
new file mode 100644
index 000000000..c43c6dbcc
--- /dev/null
+++ b/Cassiopee/OCC/OCC/Atomic/identifyTags.cpp
@@ -0,0 +1,75 @@
+/*
+ Copyright 2013-2024 Onera.
+
+ This file is part of Cassiopee.
+
+ Cassiopee is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Cassiopee is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Cassiopee. If not, see .
+*/
+
+#include "occ.h"
+#include