smesh/doc/examples/quality_controls_ex24.py
cconopoima 9ac965c0e3 bos #32738 [CEA] Scaled Jacobian quality mesh measure for volumetric elements.
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.
2023-08-08 13:35:47 +02:00

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)