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 (from parent 1:
91b0f0f
)
Correct test script for mesh information
V5_1_3rc2
author
vsr
<vsr@opencascade.com>
Tue, 10 Nov 2009 13:33:37 +0000
(13:33 +0000)
committer
vsr
<vsr@opencascade.com>
Tue, 10 Nov 2009 13:33:37 +0000
(13:33 +0000)
doc/salome/gui/SMESH/input/tui_viewing_meshes.doc
patch
|
blob
|
history
diff --git
a/doc/salome/gui/SMESH/input/tui_viewing_meshes.doc
b/doc/salome/gui/SMESH/input/tui_viewing_meshes.doc
index 653645d9cfbb668c59981bcb498feae99530f38d..072c105dc8561397e316c4bef75f87b6c15d1d8f 100644
(file)
--- a/
doc/salome/gui/SMESH/input/tui_viewing_meshes.doc
+++ b/
doc/salome/gui/SMESH/input/tui_viewing_meshes.doc
@@
-14,6
+14,7
@@
import SMESH
# create a box
box = geompy.MakeBox(0., 0., 0., 20., 20., 20.)
geompy.addToStudy(box, "box")
# create a box
box = geompy.MakeBox(0., 0., 0., 20., 20., 20.)
geompy.addToStudy(box, "box")
+[Face_1,Face_2,Face_3,Face_4,Face_5,Face_5] = geompy.SubShapeAll(box, geompy.ShapeType["FACE"])
# create a mesh
tetra = smesh.Mesh(box, "MeshBox")
# create a mesh
tetra = smesh.Mesh(box, "MeshBox")
@@
-48,7
+49,8
@@
print " polyhedrons : ", tetra.NbPolyhedrons()
# Get Information About Mesh by GetMeshInfo
print "\nInformation about mesh by GetMeshInfo:"
info = smesh.GetMeshInfo(tetra)
# Get Information About Mesh by GetMeshInfo
print "\nInformation about mesh by GetMeshInfo:"
info = smesh.GetMeshInfo(tetra)
-for i in info:
+keys = info.keys(); keys.sort()
+for i in keys:
print " %s : %d" % ( i, info[i] )
pass
print " %s : %d" % ( i, info[i] )
pass
@@
-59,24
+61,26
@@
nbAdd = group.Add( [ 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
# Get Information About Group by GetMeshInfo
print "\nInformation about group by GetMeshInfo:"
info = smesh.GetMeshInfo(group)
# Get Information About Group by GetMeshInfo
print "\nInformation about group by GetMeshInfo:"
info = smesh.GetMeshInfo(group)
-for i in info:
+keys = info.keys(); keys.sort()
+for i in keys:
print " %s : %d" % ( i, info[i] )
pass
# Creation of SubMesh
print " %s : %d" % ( i, info[i] )
pass
# Creation of SubMesh
-Regular_1D_1_1 = tetra.Segment(geom=Face)
+Regular_1D_1_1 = tetra.Segment(geom=Face
_1
)
Nb_Segments_1 = Regular_1D_1_1.NumberOfSegments(5)
Nb_Segments_1.SetDistrType( 0 )
Nb_Segments_1 = Regular_1D_1_1.NumberOfSegments(5)
Nb_Segments_1.SetDistrType( 0 )
-Quadrangle_2D = tetra.Quadrangle(geom=Face)
+Quadrangle_2D = tetra.Quadrangle(geom=Face
_1
)
isDone = tetra.Compute()
submesh = Regular_1D_1_1.GetSubMesh()
# Get Information About SubMesh by GetMeshInfo
print "\nInformation about Submesh by GetMeshInfo:"
info = smesh.GetMeshInfo(submesh)
isDone = tetra.Compute()
submesh = Regular_1D_1_1.GetSubMesh()
# Get Information About SubMesh by GetMeshInfo
print "\nInformation about Submesh by GetMeshInfo:"
info = smesh.GetMeshInfo(submesh)
-for i in info:
+keys = info.keys(); keys.sort()
+for i in keys:
print " %s : %d" % ( i, info[i] )
pass
\endcode
print " %s : %d" % ( i, info[i] )
pass
\endcode
-*/
\ No newline at end of file
+*/