我如何采取三维立体阵列,并把它转换成一个模式? [英] How do I take a 3d dimensional array and convert it into a model?

查看:269
本文介绍了我如何采取三维立体阵列,并把它转换成一个模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是开放式的简历,我能提取多维数据和图像与我的codeS,但是这将是一个简单的方法来显示呢?我有一个三维数组:

I'm using Open CV and I'm able to extract multidimensional data from and image with my codes but what would be an easy way to display it? I have a 3D array:

line start [x] [y] [z]
line end   [x] [y] [z]

任何在字里行间将填充了坚实的平面上。

Anything in between the lines will be filled with a solid flat surface.

有一些样的功能,我可以用它来轻松地显示给这些点或任何其它点我缺少一个3D图像?

Is there some kind of function I can use to easily display a 3d image given these points or whatever other points I'm missing?

比如这个伪code:

display_3d(x,y,z,angle)

任何帮助是非常AP preciated。另外我使用C ++。

Any help is highly appreciated. Also I'm using C++.

推荐答案

首先,你需要找到凸包贵点这意味着寻找无歧义的,高效的再$ P $点集合的psentation。一旦你这样做,你的将会的需要三角的网格,通常使用德劳内三角 QHull 提供了这样的功能。

First you need to find the convex hull of your points which means finding non-ambiguous and efficient representation of a set of points. Once you do that you will need to triangulate your mesh, usually using delaunay triangulation. QHull provides such functionality.

这篇关于我如何采取三维立体阵列,并把它转换成一个模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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