From f8537beabe1d4da20522946e4a97cb0cf72289cc Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 4 Oct 2013 08:54:58 +0000 Subject: [PATCH] Fix a bug that NbShapes() and ShapeInfo() return 2 solids for a box --- src/GEOM_SWIG/geomBuilder.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index c4f9c9673..de5589ca5 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -9609,11 +9609,6 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): # Example: see GEOM_TestMeasures.py listSh = self.SubShapeAllIDs(theShape, theType) Nb = len(listSh) - t = EnumToLong(theShape.GetShapeType()) - theType = EnumToLong(theType) - if t == theType: - Nb = Nb + 1 - pass return Nb ## Obtain quantity of shapes of each type in \a theShape. @@ -9639,9 +9634,6 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): if typeSh in ( "AUTO", "SHAPE" ): continue listSh = self.SubShapeAllIDs(theShape, self.ShapeType[typeSh]) Nb = len(listSh) - if EnumToLong(theShape.GetShapeType()) == self.ShapeType[typeSh]: - Nb = Nb + 1 - pass aDict[typeSh] = Nb pass return aDict -- 2.39.2