mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 10:15:36 +05:00
020095: EDF 896 SMESH : Advanced Mesh info on a group
Additional fix
This commit is contained in:
parent
41393b6a4b
commit
3d5450c932
@ -28,10 +28,22 @@ algo2D.MaxElementArea(10.)
|
||||
algo3D = tetra.Tetrahedron(smesh.NETGEN)
|
||||
algo3D.MaxElementVolume(900.)
|
||||
|
||||
# Creation of SubMesh
|
||||
Regular_1D_1_1 = tetra.Segment(geom=Face_1)
|
||||
Nb_Segments_1 = Regular_1D_1_1.NumberOfSegments(5)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
Quadrangle_2D = tetra.Quadrangle(geom=Face_1)
|
||||
isDone = tetra.Compute()
|
||||
submesh = Regular_1D_1_1.GetSubMesh()
|
||||
|
||||
# compute the mesh
|
||||
tetra.Compute()
|
||||
|
||||
# print information about the mesh
|
||||
# Creation of group
|
||||
group = tetra.CreateEmptyGroup( SMESH.FACE, 'Group' )
|
||||
nbAdd = group.Add( [ 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76 ] )
|
||||
|
||||
# Print information about the mesh
|
||||
print "Information about mesh:"
|
||||
print "Number of nodes : ", tetra.NbNodes()
|
||||
print "Number of edges : ", tetra.NbEdges()
|
||||
@ -54,10 +66,6 @@ for i in keys:
|
||||
print " %s : %d" % ( i, info[i] )
|
||||
pass
|
||||
|
||||
# Creation of group
|
||||
group = tetra.CreateEmptyGroup( SMESH.FACE, 'Group' )
|
||||
nbAdd = group.Add( [ 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76 ] )
|
||||
|
||||
# Get Information About Group by GetMeshInfo
|
||||
print "\nInformation about group by GetMeshInfo:"
|
||||
info = smesh.GetMeshInfo(group)
|
||||
@ -66,14 +74,6 @@ for i in keys:
|
||||
print " %s : %d" % ( i, info[i] )
|
||||
pass
|
||||
|
||||
# Creation of SubMesh
|
||||
Regular_1D_1_1 = tetra.Segment(geom=Face_1)
|
||||
Nb_Segments_1 = Regular_1D_1_1.NumberOfSegments(5)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
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)
|
||||
@ -81,6 +81,6 @@ keys = info.keys(); keys.sort()
|
||||
for i in keys:
|
||||
print " %s : %d" % ( i, info[i] )
|
||||
pass
|
||||
|
||||
\endcode
|
||||
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user