From: prascle Date: Fri, 22 Mar 2013 00:14:23 +0000 (+0000) Subject: PR: examples adaptation to geomBuilder and smeshBuilder X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bb4cc82c2cecd8cfcea8a4c51bbe4e5b8ce3ca0;p=modules%2Fsmesh.git PR: examples adaptation to geomBuilder and smeshBuilder --- diff --git a/doc/salome/examples/modifying_meshes_ex25.py b/doc/salome/examples/modifying_meshes_ex25.py index e58eed696..4072560c4 100644 --- a/doc/salome/examples/modifying_meshes_ex25.py +++ b/doc/salome/examples/modifying_meshes_ex25.py @@ -49,7 +49,7 @@ isDone = pattern.LoadFromFace(Mesh_2.GetMesh(), Face_2, 0) if (isDone != 1): print 'LoadFromFace :', pattern.GetErrorCode() # apply the pattern to a face of the first mesh -facesToSplit = Mesh_1.GetElementsByType(smesh.SMESH.FACE) +facesToSplit = Mesh_1.GetElementsByType(SMESH.FACE) print "Splitting %d rectangular face(s) to %d triangles..."%(len(facesToSplit), 2*len(facesToSplit)) pattern.ApplyToMeshFaces(Mesh_1.GetMesh(), facesToSplit, 0, 0) isDone = pattern.MakeMesh(Mesh_1.GetMesh(), 0, 0) @@ -92,7 +92,7 @@ smp_hexa = """!!! Nb of points: pattern_hexa.LoadFromFile(smp_hexa) # apply the pattern to a mesh -volsToSplit = Mesh_3.GetElementsByType(smesh.SMESH.VOLUME) +volsToSplit = Mesh_3.GetElementsByType(SMESH.VOLUME) print "Splitting %d hexa volume(s) to %d hexas..."%(len(volsToSplit), 4*len(volsToSplit)) pattern_hexa.ApplyToHexahedrons(Mesh_3.GetMesh(), volsToSplit,0,3) isDone = pattern_hexa.MakeMesh(Mesh_3.GetMesh(), True, True) @@ -131,7 +131,7 @@ smp_pyra = """!!! Nb of points: pattern_pyra.LoadFromFile(smp_pyra) # apply the pattern to a face mesh -volsToSplit = Mesh_4.GetElementsByType(smesh.SMESH.VOLUME) +volsToSplit = Mesh_4.GetElementsByType(SMESH.VOLUME) print "Splitting %d hexa volume(s) to %d hexas..."%(len(volsToSplit), 6*len(volsToSplit)) pattern_pyra.ApplyToHexahedrons(Mesh_4.GetMesh(), volsToSplit,1,0) isDone = pattern_pyra.MakeMesh(Mesh_4.GetMesh(), True, True)