mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
Fix a bug that NbShapes() and ShapeInfo() return 2 solids for a box
This commit is contained in:
parent
5256eb5b52
commit
f8537beabe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user