3D / 4D图形Python和wxPython的? [英] 3D/4D graphics with Python and wxPython?

查看:823
本文介绍了3D / 4D图形Python和wxPython的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的日常工作​​作为博士生,我做地质建模。在我的业余时间(主要是为了好玩),我学习Python和尝试写一个简单的程序来观看3D地质细胞模型。

In my day job as a PhD student, I do geological modeling. In my spare time (mainly for fun), I am learning Python and trying to write a simple program to view 3D geocellular models.

该地质细胞模型仅仅是一个三维网格,每一个网格单元有一定价值(如右图所示)。所以,我希望我的观众能够显示像右侧的图片三维网格模型。同时,我希望它能够通过模型在X,Y和Z方向显示截面(这是显示在左侧图)。

The geocellular model is just a 3D grid where every grid cell has some value (as shown in the right figure). So, I would want my viewer to be able to display a 3D grid model like the picture on the right side. As well, I would like it to be able to display cross sections through the model in the x, y and z directions (this is shown in the left figure).

我也希望这些模型可以绕所有三个轴和放大或缩小。

I would also want the models to be able to rotate around all three axes and zoom in and out.

我已经做了一些preliminary调查(主要这里),它看起来像VisVis和VTK有两个可能的选择。我想使用的wxPython的主界面,它看起来像两个方案将与wxPython的工作,据我可以告诉。

I've done some preliminary investigation (mainly here) and it seems like VisVis and VTK are two potential options. I am trying to use wxPython for the main GUI and it looks like both options will work with wxPython as far as I can tell.

问题:

  1. 我是正确的,当我说我想VisVis和VTK将工作我想要什么?是preferable其他?

  1. Am I right when I say that I think VisVis and VTK would work for what I want? Is one preferable to the other?

这这两个选项是最容易实现的?

Which of these two options would be the easiest to implement?

有没有办法,我也应该考虑另一种选择?

Is there another option that I also should consider?

请记住,我是新望以Python和很新的wxPython的。

Keep in mind that I'm newish to Python and very new to wxPython.

推荐答案

您在找什么叫体素的可视化的素电网的或此类。我会认真考虑 Mayavi的(从来没有使用过,但我一直关注它) ,似乎有什么东西href="http://docs.enthought.com/mayavi/mayavi/mlab.html#visualizing-volumetric-scalar-data" rel="nofollow">这里非常接近

What you are looking for is called voxel visualization, voxel grid or such. I would seriously consider MayaVi (never used it, but I keep eye on it), it seems to have something very close here.

的Paraview ,建在VTK就像Mayavi的,可能是一个不错的选择,太多。

Paraview, built atop VTK just like MayaVi, might be a good option, too.

我想直接去VTK进行可视化是困难的,实在是太低了,水平,将可能使你只是感到沮丧。这就是说,你将要为保存数据作为VTK数据集开放Mayavi中/的Paraview;它并不难,你只需要选择合适的结构(vtkGrid,vtkUnstructedGrid,...)。

I think going straight to VTK for visualization is difficult, it is too low-level and will probably make you just frustrated. That said, you will want to save your data in as VTK datasets for opening in MayaVi/Paraview; it is not difficult, you just have to pick the right structure (vtkGrid, vtkUnstructedGrid, ...).

这篇关于3D / 4D图形Python和wxPython的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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