[英]How to use same HelixViewport3D screen two different form c#
I want to see the HelixViewport3D 3D area I designed in form 1 with a different camera angle in form 2. 我想看看我在表格1中设计的HelixViewport3D 3D区域,在表格2中具有不同的摄影机角度。
I want to look at the production line that I can look at in the first form from the angle I want at the same time in the 2nd Form and the movements in Form 1 will appear in the 2nd Form at the same time. 我想从我想同时在第二个表格中看到的角度来看我可以在第一个表格中看到的生产线,并且表格1中的动作将同时出现在第二个表格中。
I tried the following sample code but it didn't work 我尝试了以下示例代码,但是没有用
Visual Studio 视觉工作室
public Window2()
{
InitializeComponent();
MainWindow screen1 = new MainWindow();
viewport3dScreen2 = screen1.viewPort3d; // Window2 helixviewport3d name -> viewport3dScreen2
viewport3dScreen2.Camera.LookDirection = new Vector3D(-144.937, 1.720, -14284.246);
viewport3dScreen2.Camera.UpDirection = new Vector3D(-0.923, -0.009, -0.440);
viewport3dScreen2.Camera.Position = new Point3D(1806.793, -519.229, 5594.084);
}
您需要创建两个视点,并对两个视口使用相同的模型。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.