From: eap Date: Fri, 4 Oct 2013 08:54:58 +0000 (+0000) Subject: Fix a bug that NbShapes() and ShapeInfo() return 2 solids for a box X-Git-Tag: BR_hydro_v_0_3_1~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8537beabe1d4da20522946e4a97cb0cf72289cc;p=modules%2Fgeom.git Fix a bug that NbShapes() and ShapeInfo() return 2 solids for a box --- 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