用于C#的Windows表单应用程序图库 [英] Windows form application graph library to use in C#

查看:73
本文介绍了用于C#的Windows表单应用程序图库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我将在c#中创建一个应用程序,我将需要绘制一些计划对象并将其转换为3D。用户将在计划中绘制对象,并将创建它的3D形式,然后他将添加孔,文本等。我将需要缩放和移动对象,我希望它具有一些效果,例如阴影,玻璃,纹理等。

绘制形状后,我将生成一个机器代码,例如as,G代码,将被发送到与CNC(计算机数字控制)有一些相似之处的机器。

我想知道什么样的图形库更好用,OpenGL,或者其他?我可以在哪里学习它?

原则上我想使用Windows窗体和C#,但我对新想法持开放态度。

提前谢谢。

Hello everybody.
I will create an application in c# where I will need to draw some plan objects and turn it in 3D. The user will draw the object in a plan and a 3D form of it will be created, and then he will add holes, texts and so on. I will need to scale and move the object and I want that it has some effects, such as, shadow, glass, texture and others.
After to draw the shape I will generate a machine code, such as, G code, that will be send to a machine that has some similarities of CNC(Computer Numerical Control).
I want to know what kind of graph library that is better to use, OpenGL, or other? And where I can to learn about it?
In principle I want to use windows forms and C#, but I am open to new ideas.
Thanks in advance.

推荐答案

例如,您可以使用基于OpenGL的开源OpenTK:http://www.opentk.com/doc/chapter/2/glcontrol [ ^ ]。



但坦率地说, System.Windows.Forms 应用程序不是高级(甚至不是那么高级)3D图形的最佳容器;使用WPF可以做得更多,更轻松: http:// msdn.microsoft.com/en-us/library/ms747437%28v=vs.110%29.aspx [ ^ ]。



关于表格,我可以看到一个主要的好处:符合Mono标准的开发的可能性;例如,OpenTK符合Mono标准。如果你不关心它,在大多数情况下,WPF将是明显的赢家。



顺便说一句,如果你真的想要瞄准G代码,CNC和其他CAD / CAM的东西,越早摆脱你的错觉,这项工作非常简单,越好。它不是简化,它足够严重;非常认真地对待它。



-SA
For example, you could use open-source OpenTK, based on OpenGL: http://www.opentk.com/doc/chapter/2/glcontrol[^].

But frankly, System.Windows.Forms application is not the best container for advanced (and even not so advanced) 3D graphics; you can do a lot more and much easier with WPF: http://msdn.microsoft.com/en-us/library/ms747437%28v=vs.110%29.aspx[^].

As to the Forms, I can see one major benefit: the possibility of Mono-compliant development; OpenTK is, for example, Mono-compliant. If you don't care about it, WPF will be, in most cases, the apparent winner.

And by the way, if you are really want to target G code, CNC and other CAD/CAM stuff, the sooner you get rid of your illusion that this work is "very simplified", the better. It is not "simplified", it is serious enough; take it very seriously.

—SA


这篇关于用于C#的Windows表单应用程序图库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆