Scale Mesh in Surface Toolbox Module trouble with centers

Hi everyone,

I´m trying to scale a model with Scale Mesh Tool of Surface Toolbox Module and I have some problem with the way it works with centers.

An example:


Red model is the result of a 2x scale operation of the yellow model.

Scale_2

If I do a “Translate center to origin” operation li ke this (red is traslated model),
Scale_3

Big red model is right what I need from smal red model…

Is there any way to add an options to the tool? Something like “from origin” and “from model center”. Or just fix it…

PD: Why result models form operations are all red? What does it mean?

Thanks on advance!!!

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:

image

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.