私はModelVisual3Dをいくつかの立方体で持っています。グループ全体をその中心で回転させたい場合は、どうすればいいですか?ModelVisual3Dの中心
RotateTransform3D rt;
AxisAngleRotation3D ar;
Transform3DGroup grp;
rt = new RotateTransform3D();
ar = new AxisAngleRotation3D();
ar.Axis = new Vector3D(1, 0, 0);
ar.Angle = x; //x a value 0-360
rt.Rotation = ar;
rt.CenterX = //*Here i need the center of the ModelVisual3D X*
rt.CenterY = //*Here i need the center of the ModelVisual3D Y*
rt.CenterZ = //*Here i need the center of the ModelVisual3D Z*
grp = new Transform3DGroup();
grp.Children.Add(rt);
cubes.Transform = grp; //cubes is the ModelVisual3D object that i want to rotate
はStackOverflowのへようこそ!ポストの精度を向上させるためのサンプルコードの簡単な説明を提供する方が良いでしょう。 –