如何在MS Visual Studio 2012 C#程序中绘制3D图形? [英] How do I draw a 3D-Graphic from within a MS visual Studio 2012 C# program ?

查看:133
本文介绍了如何在MS Visual Studio 2012 C#程序中绘制3D图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我是来自德国Hochheim的FCE GmbH的Wolfgang。我正在编写一个C#progarm,在某些时候,我需要绘制一个函数z = f(x,y)的3D图形。我希望能够围绕两个轴转动这个图形,用网格进行clour编码,Iso-z-lines等。有没有人有想法,我可以用什么软件包?



先谢谢了!伙计们!



沃尔夫冈

Hello everybody,

I am Wolfgang from FCE GmbH in Hochheim, Germany. I am writing a C# progarm, where, at some point, I need to dra a 3D-Graphic of a function z = f(x,y). I would like to be able to turn this graphic around two axes, have it clour-coded with grids, Iso-z-lines etc. Does anybody have an idea, what software package I could use ?

Thanks in advance, guys !

Wolfgang

推荐答案

可以有几种不同的方式。由于您没有分享有关您的目标和偏好的任何细节,我不认为对任何可能的变体进行详细介绍都没有多大意义。



首先,该方法取决于您可以使用的应用程序类型。它可能是 System.Windows.Forms ,WPF,Silverlight,ASP.NET - 你的名字。



现在,从概念上讲,您需要选择其中一条不同的路线。首先,您可以在编程模型中为某些3D世界建模,在3D表面上创建3D对象的投影,并使用2D图形API进行渲染。您可以将此方法用于任何应用程序类型以及任何或多或少的综合2D图形库。



此外,您可以使用提供的3D图形技术。 NET FCL,可在WPF中使用: http://msdn.microsoft .com / zh-CN / library / ms747437%28v = vs.110%29.aspx [ ^ ]。



最后,你可以使用一些第三-party 3D图形框架或自己开发这样的框架。



在所有情况下,都需要大量的学习和研究。



-SA
There can be several different ways. As you did not share any detail on your goals and your preferences, I don't think going into detail for any of those possible variants wouldn't makes much sense.

First of all, the approach depends on what application type you can have. It could be System.Windows.Forms, WPF, Silverlight, ASP.NET — you name it.

Now, conceptually, you need choose one of the different routes. First, you can model some 3D world in your programming model, create projections of your 3D object onto the 2D surface and use 2D graphics API to render it. You can use this approach with any of the application types and with any of more or less comprehensive 2D graphics library.

Also, you can use 3D graphics technology provided by .NET FCL, which is available in WPF: http://msdn.microsoft.com/en-us/library/ms747437%28v=vs.110%29.aspx[^].

Finally, you can use some 3rd-party 3D graphics framework or develop such framework by yourself.

In all cases, some considerable amount of learning and research is required.

—SA


这篇关于如何在MS Visual Studio 2012 C#程序中绘制3D图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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