本文介绍了如何在matlab中绘制Geosphere?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在matlab中绘制一个Geosphere?

How to draw a Geosphere in matlab?

通过 Geosphere 球体(Geosphere例如在3Ds Max中)。

By Geosphere I mean the way of discretization points on a sphere (Geosphere is, for example in 3Ds Max).

在下图中,它显示 Sphere (左侧)和 Geosphere (右侧)

On the image below, it is shown Sphere (on the left) and Geosphere (on the right)

在Matlab中有一个函数 sphere ,它给出了这样一个结果:

In Matlab there is a function sphere, which gives such a result:

我需要得到一个Geosphere的图像。我有一个矩阵Nx3,xyz坐标为Geosphere的每一点。

I need to get such an image of a Geosphere. I have a matrix Nx3, with xyz coordinates of every point of Geosphere.

更新:

我只在显示(绘图)geosphere时遇到问题,因为我已经有了每个点的数据 - xyz坐标。这就是为什么 Gunther Struyf 的答案帮助了我,并且我接受了它。

I had problem only with displaying (drawing) geosphere, because I already have data - xyz coordinates of every point. Thats why Gunther Struyf's answer helped me and I accepted it.

我以这种方式显示:(地球因子= 6,N = 362)

This I got with such way of displaying: (Geosphere of factor = 6, N=362)

如何获得地圈的3d点?我使用了免费的图书馆,领域。 (在图书馆里有不同的离散化方式)

How to get 3d points of geosphere? I used free library SPHERE_GRID to get points of 3d-sphere. (In library there are different ways of discretization sphere).

另外,为了计算Geosphere的点数,感谢 @Rody Oldenhuis 以下回答。

Also, for calculating points of Geosphere, thanks @Rody Oldenhuis for answer below.

推荐答案

如果您已经有了这些观点,我认为您可以使用与

If you already have the points, I think you can use the same solution as here:

tri = convhull(xyz);
trisurf(tri,xyz(:,1),xyz(:,2),xyz(:,3));

这篇关于如何在matlab中绘制Geosphere?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!