用于构建3D模型的合适设计模式[关闭](Suitable Design pattern for building a 3D model [closed])

编程入门 行业动态 更新时间:2024-10-25 03:25:21
用于构建3D模型的合适设计模式[关闭](Suitable Design pattern for building a 3D model [closed])

我使用DirectX api和C#.NET实现了一个3D模型应用程序。 最初的目的是使3D模型正常工作,到现在为止,所有代码逻辑和UI内容都在一个* .cs文件中,即主要形式。

你能不能请任何人建议我哪种设计模式适合以适当的方式隔离我的代码?

由于MVVM(Model-View-ViewModel)模式适用于WPF应用程序,因此我认为相同的设计模式可适用于3D渲染应用程序。

如果任何其他设计模式非常适合我的3D建模应用程序,请建议我。 提前致谢。

此致,库马尔

I have implemented a 3D model application using DirectX api and C# .NET. Initially started with an intention to make the 3D model working and by now, all the code logic and UI stuff everything is in one *.cs file i.e., in main form.

Could you please anyone suggest me which design pattern is suitable for segregating my code in a proper way?

As MVVM (Model-View-ViewModel) pattern is suitable for WPF application, Im under the impression that the same design pattern can be suitable for 3D rendering application.

Please suggest me if any other design pattern is well suitable for my 3D modeling application. Thanks in advance.

Regards, Kumar

最满意答案

MVVM设计模式适用于具有数据绑定的框架,例如WPF和Silverlight,如果您使用的是Windows窗体,我建议使用模型视图展示器或模型视图控制器模式

MVVM design pattern is for frameworks with data binding, such as WPF and Silverlight, if you are using windows forms I'd suggest Model View Presenter or Model View Controller patterns

更多推荐

本文发布于:2023-07-26 03:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1270722.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模型   合适   模式   Suitable   Design

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!