Fix for issue 19964 EDF SMESH 803( Bad dump script of revolutionned mesh with groups).

This commit is contained in:
rnv 2008-09-16 11:16:42 +00:00
parent dae92f6571
commit 8bfa9cdd5d

View File

@ -744,13 +744,14 @@ salome.sg.updateObjBrowser(1)
import math import math
import SMESH_mechanic import SMESH_mechanic
import SMESH
mesh = SMESH_mechanic.mesh mesh = SMESH_mechanic.mesh
smesh = SMESH_mechanic.smesh smesh = SMESH_mechanic.smesh
# create a group of faces to be revolved # create a group of faces to be revolved
FacesRotate = [492, 493, 502, 503] FacesRotate = [492, 493, 502, 503]
GroupRotate = mesh.CreateGroup(SMESH.FACE,"Group of faces (rotate)") GroupRotate = mesh.CreateEmptyGroup(SMESH.FACE,"Group of faces (rotate)")
GroupRotate.Add(FacesRotate) GroupRotate.Add(FacesRotate)
# define revolution angle and axis # define revolution angle and axis