Good morning,
I have problem with scaling pelvis. Could you help me and show what should I do?
In Annex I send my model.
Thank you for your response.
Best regards, Justyna
Good morning,
I have problem with scaling pelvis. Could you help me and show what should I do?
In Annex I send my model.
Thank you for your response.
Best regards, Justyna
Hi Justyna,
You need to make a small correction to the ScalingLengthMassFat.any in the Model folder for the pelvis. This correction should be similar to the Thigh scaling section in this particular example.
Right.Thigh = {
...
#ifndef CUSTOM_SCALING_Right_Thigh
AnyFunTransform3DLin ScaleFunction = {
ScaleMat = {{(.ms/.ls)^0.5, 0, 0},{0, .ls, 0},{0, 0, (.ms/.ls)^0.5}} ;
Offset = {0, 0, 0};
};
#else
#endif
...
};
...
Pelvis = {
...
#ifndef CUSTOM_SCALING_PelvisSeg
AnyFunTransform3DLin ScaleFunction = {
ScaleMat = {{(.ms/.ls)^0.5, 0, 0},{0, .ls, 0},{0, 0, (.ms/.ls)^0.5}} ;
Offset = {0, 0, 0};
};
#else
#endif
...
};
The logic here is that unless a scaling function is specified - it will use default scaling, but you actually provide a scaling function - so it has to be replaced.
Hope this helps.
Kind regards,
Pavel
Dear Pavel,
Thank you for your response. However it doesn’t work correctly.
There is the next error:
[i]“Configuring model…
ERROR(SCR.PRS7) : D:/AnyB…6.0/AMMR/Body/A…n/T…k/PelvisSeg.any(146) : ‘PelvisTrunkInterface’ : Circular dependency in expression
Model loading skipped”
[/i]Best regards,
Justyna
Hi Justyna,
That looks strange, i could not replicate this particular problem up until now. I seem to be able to make your model start kinematic analysis, but i had to change the anthropometric scaling reference like that:
AnyFunTransform3DIdentity AnthropometricScaling= {};//Main.Studies.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg.Scale.T0;
Strictly speaking we will not benefit from having an anthropometric scaling law (i do not see that you scale it linearly afterwards) in this particular example, so we can just keep to be an identity transformation.
If that does not solve your problem - could you upload a new version of your model that fails? I will have a look when have time.
Kind regards,
Pavel