如何在数据点上创建3D多边形/网格? [英] How do I create a 3D polygon/mesh over data points?
问题描述
我有一个数据点数组, Points = [X,Y,Z]
,其中 X
, Y
& Z
是 nby-1
向量。 x
, y
和 z
值是
I have an array of data points, Points = [X,Y,Z]
, where X
,Y
& Z
are n-by-1
vectors. The x
, y
and z
values are the result of a blackbox.
以下是要点示例:
图。 3D点
我想生成类似以下内容的东西:
I want to generate something that looks like this:
图。网格绘图
如果无法绘制出图形,则就像是变形的圆柱体。凸包不起作用,因为几何中的凹陷会被忽略。
If you can't make the drawing out, it's something like a deformed cylinder. A convex hull does not work because there are dips in the geometry that would be ignored.
推荐答案
我一直在寻找的解决方案是Matlab中的 boundary
函数可在这些点周围创建一个收缩包装。
很难找到此解决方案,因为文献将其称为凹面船体,Matlab将其称为非凸面多边形,因此对前者的搜索未显示任何内容。
网格对象
The solution I was looking for was the boundary
function in Matlab which creates a "shrink wrap" around the points.
It was hard to find this solution because while research & literature refers to this as a "Concave Hull", Matlab refers to it as "Nonconvex polygons" so searches for the former did not turn up anything.
Meshed Object
这篇关于如何在数据点上创建3D多边形/网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!