Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc893fd
)
Fix for #19226 : ViscousLayers2D can't be created on a group from SHAPERSTUDY in...
author
mpv
<mikhail.ponikarov@opencascade.com>
Tue, 9 Jun 2020 11:01:07 +0000
(14:01 +0300)
committer
mpv
<mikhail.ponikarov@opencascade.com>
Tue, 9 Jun 2020 11:01:07 +0000
(14:01 +0300)
src/SMESH_SWIG/smesh_algorithm.py
patch
|
blob
|
history
diff --git
a/src/SMESH_SWIG/smesh_algorithm.py
b/src/SMESH_SWIG/smesh_algorithm.py
index 768900eb095d40505b18f372283278b85b1a6556..8ee3718a3839b43650811b5842125d84af7bfed3 100644
(file)
--- a/
src/SMESH_SWIG/smesh_algorithm.py
+++ b/
src/SMESH_SWIG/smesh_algorithm.py
@@
-350,7
+350,10
@@
class Mesh_Algorithm:
from SHAPERSTUDY_utils import getEngine
gen = getEngine()
if gen:
from SHAPERSTUDY_utils import getEngine
gen = getEngine()
if gen:
- faceIDs = gen.GetIShapesOperations().GetAllSubShapesIDs(shape, self.mesh.geompyD.ShapeType["FACE"], False)
+ aShapeOp = gen.GetIShapesOperations()
+ ff = aShapeOp.ExtractSubShapes( shape, self.mesh.geompyD.ShapeType["FACE"], False)
+ for f in ff:
+ faceIDs.append( aShapeOp.GetSubShapeIndex( self.mesh.geom, f ))
faces = faceIDs
hyp = self.Hypothesis("ViscousLayers",
[thickness, numberOfLayers, stretchFactor, faces, isFacesToIgnore],
faces = faceIDs
hyp = self.Hypothesis("ViscousLayers",
[thickness, numberOfLayers, stretchFactor, faces, isFacesToIgnore],
@@
-410,7
+413,10
@@
class Mesh_Algorithm:
from SHAPERSTUDY_utils import getEngine
gen = getEngine()
if gen:
from SHAPERSTUDY_utils import getEngine
gen = getEngine()
if gen:
- edgeIDs = gen.GetIShapesOperations().GetAllSubShapesIDs(shape, self.mesh.geompyD.ShapeType["EDGE"], False)
+ aShapeOp = gen.GetIShapesOperations()
+ ee = aShapeOp.ExtractSubShapes( shape, self.mesh.geompyD.ShapeType["EDGE"], False)
+ for e in ee:
+ edgeIDs.append( aShapeOp.GetSubShapeIndex( self.mesh.geom, e ))
edges = edgeIDs
hyp = self.Hypothesis("ViscousLayers2D",
[thickness, numberOfLayers, stretchFactor, edges, isEdgesToIgnore],
edges = edgeIDs
hyp = self.Hypothesis("ViscousLayers2D",
[thickness, numberOfLayers, stretchFactor, edges, isEdgesToIgnore],