我是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);
是的,您可能没有看到几何体,但它已经加载了。尝试调用ViewportLayout.ZoomFit()
和ViewportLayout.Invalidate()
将其带入观看视锥。