mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 07:40:32 +05:00
Fix detection of GEOM groups for structural elements
This commit is contained in:
parent
9b2fb51c96
commit
e63bb2c6a9
@ -137,7 +137,7 @@ class StructuralElementPart:
|
|||||||
self.name = name
|
self.name = name
|
||||||
self.geom = getGeompy(studyId)
|
self.geom = getGeompy(studyId)
|
||||||
self.baseShapesSet = set()
|
self.baseShapesSet = set()
|
||||||
self.isMainShape = groupGeomObj.IsMainShape()
|
self.isMainShape = (groupGeomObj.GetType() != 37) # See geompyDC.ShapeIdToType for type codes
|
||||||
if not self.isMainShape:
|
if not self.isMainShape:
|
||||||
mainShape = self.geom.GetMainShape(groupGeomObj)
|
mainShape = self.geom.GetMainShape(groupGeomObj)
|
||||||
listIDs = self.geom.GetObjectIDs(groupGeomObj)
|
listIDs = self.geom.GetObjectIDs(groupGeomObj)
|
||||||
|
Loading…
Reference in New Issue
Block a user