I´ve been looking for in Slicer Github how to access this souce code but I just have found the dll of scale mesh module? Any idea how to fix it?
Thanks on advance
The reason why scaling does not happen using some arbitrary centerpoint, such as center of gravity of a model because you would end up with intersecting models when you scale multiple models. The translation provides space for the enlarged models.
If you want to make your model centered after scaling then you can enable the Translate / Center option:
If you want to scale the model by keeping a certain point at a fixed position then you can apply a translation transform that moves the model’s coordinate system to that point, concatenate it with a scaling transform, and concatenate it with a transform that reverses the first translation.