mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
9ac965c0e3
Erase non tracke files Adding some comments on SMESH_Controls. Fixing compilation warning on SMDS_VolumeTool and add missing lines in interface files. Add implemented tests to tests.set Correction on SMESH_msg_fr and copyright msg of python test.
24 lines
592 B
Python
24 lines
592 B
Python
# Scaled Jacobian
|
|
|
|
from mechanic import *
|
|
|
|
# Criterion : Scaled Jacobian > 0.75
|
|
scaledJacobian = 0.75
|
|
|
|
aFilter = smesh_builder.GetFilter(SMESH.VOLUME, SMESH.FT_ScaledJacobian, SMESH.FT_MoreThan, scaledJacobian)
|
|
|
|
anIds = mesh.GetIdsFromFilter(aFilter)
|
|
|
|
# print the result
|
|
print("Criterion: Scaled Jacobian > ", scaledJacobian, " Nb = ", len(anIds))
|
|
j = 1
|
|
for i in range(len(anIds)):
|
|
if j > 20: j = 1; print("")
|
|
print(anIds[i], end=' ')
|
|
j = j + 1
|
|
pass
|
|
print("")
|
|
|
|
# create a group
|
|
aGroup = mesh.CreateEmptyGroup(SMESH.FACE, "Scaled Jacobian > " + repr(scaledJacobian))
|
|
aGroup.Add(anIds) |