Questions on Smoothing Function meshOptimizer::optimizeTransformation_LocalAverageSmoot

Hi,

I am not a C++ programmer, but I am trying to extract and implement smoothing code in Python to smooth my HBM (Human Body Model). I have two questions regarding this process:

I found the code for transformation smoothing, specifically meshOptimizer::optimizeTransformation_LocalAverageSmooth, which uses VTK. I converted this to a Python version and tested it in Blender. I noticed that running the smoothing function multiple times in Blender morphs the target model to the reference model, despite having a threshold function and loop check. However, this behavior does not occur in Piper; multiple smooth operations in Piper yield consistent results. Could you help me understand why there is a difference? The smooth function should have the same capability.

I am uncertain about how the selection box interacts with the smooth function. The argument fixedNodes seems to relate to locking entities, but I don't see any reference to node selection within the box. Could you clarify how the selection box should be used with the smoothing function?

Thank you for your assistance.

@tjanak