Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b2fb51
)
Fix detection of GEOM groups for structural elements
author
barate
<barate>
Wed, 20 Mar 2013 16:55:12 +0000
(16:55 +0000)
committer
barate
<barate>
Wed, 20 Mar 2013 16:55:12 +0000
(16:55 +0000)
src/GEOM_PY/structelem/parts.py
patch
|
blob
|
history
diff --git
a/src/GEOM_PY/structelem/parts.py
b/src/GEOM_PY/structelem/parts.py
index 538724268868689dd83c71af3bd7ad6a14b70d8b..4530b830a2f1a16550d4f8dea3d5d42be749a8da 100644
(file)
--- a/
src/GEOM_PY/structelem/parts.py
+++ b/
src/GEOM_PY/structelem/parts.py
@@
-137,7
+137,7
@@
class StructuralElementPart:
self.name = name
self.geom = getGeompy(studyId)
self.baseShapesSet = set()
- self.isMainShape =
groupGeomObj.IsMainShape()
+ self.isMainShape =
(groupGeomObj.GetType() != 37) # See geompyDC.ShapeIdToType for type codes
if not self.isMainShape:
mainShape = self.geom.GetMainShape(groupGeomObj)
listIDs = self.geom.GetObjectIDs(groupGeomObj)