Hi Lukas,
AnyBody is in [m].
I think the problem may be that you are not applying the ‘TSeg2ScaleFrame’ transformation to your Points0unscaled (both in the affinetransformation and the RBF).
AnyFunTransform3D &TSeg2ScaleFrame = Main.HumanModel.Scaling.GeometricalScaling.Right.Thigh.TSeg2ScaleFrame;
AnyFunTransform3DLin2 AffineTransform = {
Points0 = ..TSeg2ScaleFrame(
{{0.0138187,0.00136731,0.0273618},
...
AnyFunTransform3DRBF RBFTransform = {
PreTransforms = {&.AffineTransform};
RBFDef = {
Type = RBF_ThinPlate;
Param = 1;
};
Points0 = ..TSeg2ScaleFrame({
{ 0.0138, 0.0014, 0.0274},
...
Also within the STLTransform function, when you use AnySurfSTL for the source surf, this also should include:
AnySurfSTL SourceSurf = {
FileName = "SourceFemur.stl";
ScaleXYZ = {1, 1, 1};
AnyFunTransform3D &pre = ....TSeg2ScaleFrame;
In the first part of this tutorial it shows where to add this code in: https://anyscript.org/tutorials/Scaling/lesson4.html Hope this helps.
best regards,
Christine