无法使用Eyeshot devDept在WPF应用程序中加载STL文件

问题描述 投票:-1回答:1

我是WPF的新手,我无法使用EyeShot Devdept将.stl文件加载到我的WPF应用程序中。任何人都可以提供一些指示吗?

代码片段:

Entity[] entList;

// loads the file contents in the entList array
singleViewportLayout1.ReadSTL("fileName.stl", out entList);

// adds the entList to the entities collection
singleViewportLayout1.Entities.AddRange(entList);
wpf eyeshot
1个回答
0
投票

是的,您可能没有看到几何体,但它已经加载了。尝试调用ViewportLayout.ZoomFit()ViewportLayout.Invalidate()将其带入观看视锥。

© www.soinside.com 2019 - 2024. All rights reserved.