Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bos #29171 Refactor testing procedure
[modules/smesh.git]
/
doc
/
examples
/
filters_ex20.py
1
# Length
2
3
# create mesh
4
from mechanic import *
5
6
# get edges with length > 14
7
filter = smesh_builder.GetFilter(SMESH.EDGE, SMESH.FT_Length, SMESH.FT_MoreThan, 14)
8
ids = mesh.GetIdsFromFilter(filter)
9
print("Number of edges with length > 14:", len(ids))