mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Fix for #19226 : ViscousLayers2D can't be created on a group from SHAPERSTUDY in python
This commit is contained in:
parent
cc893fddd4
commit
a18dd5f05c
@ -350,7 +350,10 @@ class Mesh_Algorithm:
|
|||||||
from SHAPERSTUDY_utils import getEngine
|
from SHAPERSTUDY_utils import getEngine
|
||||||
gen = getEngine()
|
gen = getEngine()
|
||||||
if gen:
|
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
|
faces = faceIDs
|
||||||
hyp = self.Hypothesis("ViscousLayers",
|
hyp = self.Hypothesis("ViscousLayers",
|
||||||
[thickness, numberOfLayers, stretchFactor, faces, isFacesToIgnore],
|
[thickness, numberOfLayers, stretchFactor, faces, isFacesToIgnore],
|
||||||
@ -410,7 +413,10 @@ class Mesh_Algorithm:
|
|||||||
from SHAPERSTUDY_utils import getEngine
|
from SHAPERSTUDY_utils import getEngine
|
||||||
gen = getEngine()
|
gen = getEngine()
|
||||||
if gen:
|
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
|
edges = edgeIDs
|
||||||
hyp = self.Hypothesis("ViscousLayers2D",
|
hyp = self.Hypothesis("ViscousLayers2D",
|
||||||
[thickness, numberOfLayers, stretchFactor, edges, isEdgesToIgnore],
|
[thickness, numberOfLayers, stretchFactor, edges, isEdgesToIgnore],
|
||||||
|
Loading…
Reference in New Issue
Block a user