简体   繁体   English

如何使用相同的HelixViewport3D屏幕两种不同形式的C#

[英]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.

相关问题 在WPF应用程序中旋转HelixViewport3D中的对象 - Rotate an object in HelixViewport3D in a WPF app 在Helix 3D工具包中向HelixViewport3D添加模型/内容 - Adding models/content to the HelixViewport3D in Helix 3D Toolkit 在后面的代码中定义 HelixViewport3D 与在 XAML 中不同吗? - Define HelixViewport3D in code behind is diffrent then in XAML? 屏幕中两个位置相同但不同的表格 Position - Two form with the same Location but different Position in the screen C#如何使用同一命名空间的两个不同版本(即Kinect 1.8和Kinect 2.0) - C# How to use two different versions of the same namespace (i.e. Kinect 1.8 and Kinect 2.0) 如何在 ASP.net C# 中使用两个不同的文本 colors - How to use two different colors of text in same TextBox TextMode = "MultiLine" in ASP.net C# C#如何在不同的datagridview中选择两个具有相同名称的项目? - C# How to select two items with the same name in different datagridview? 如何检查不同picBox中的图片是否相同? C#Windows窗体 - How to check if pictures in different picBoxes are the same? c# windows form 如何使用HelixViewport提高渲染3D场景的性能 - How to improve performance of rendering 3D scene using HelixViewport 如何在C#中比较两个不同类对象的相同属性? - How to compare the same properties of two different class objects in C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM