mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 00:00:32 +05:00
Fix mispells
This commit is contained in:
parent
7a940415de
commit
0b6314ea9e
@ -98,23 +98,23 @@ critaria = [ \
|
||||
]
|
||||
filt = GetFilterFromCriteria( critaria )
|
||||
filtGroup = mesh.GroupOnFilter( FACE, "group on filter", filt )
|
||||
print "Group on filter conatains %s elemens" % filtGroup.Size()
|
||||
print "Group on filter contains %s elemens" % filtGroup.Size()
|
||||
|
||||
# group on filter is updated if the mesh is modified
|
||||
hyp1D.SetStartLength( 2.5 )
|
||||
hyp1D.SetEndLength( 2.5 )
|
||||
mesh.Compute()
|
||||
print "After mesh change, group on filter conatains %s elemens" % filtGroup.Size()
|
||||
print "After mesh change, group on filter contains %s elemens" % filtGroup.Size()
|
||||
|
||||
# set a new filter defining the group
|
||||
filt2 = GetFilter( FACE, FT_RangeOfIds, "1-50" )
|
||||
filtGroup.SetFilter( filt2 )
|
||||
print "With a new filter, group on filter conatains %s elemens" % filtGroup.Size()
|
||||
print "With a new filter, group on filter contains %s elemens" % filtGroup.Size()
|
||||
|
||||
# group is updated at modification of the filter
|
||||
filt2.SetCriteria( [ GetCriterion( FACE, FT_RangeOfIds, "1-70" )])
|
||||
filtIDs3 = filtGroup.GetIDs()
|
||||
print "After filter modification, group on filter conatains %s elemens" % filtGroup.Size()
|
||||
print "After filter modification, group on filter contains %s elemens" % filtGroup.Size()
|
||||
|
||||
salome.sg.updateObjBrowser(1)
|
||||
\endcode
|
||||
|
Loading…
Reference in New Issue
Block a user