Lua 如何在斐波那契球体的点之间绘制三角形?
我在这里使用这个函数创建点Lua 如何在斐波那契球体的点之间绘制三角形?,lua,mesh,fibonacci,Lua,Mesh,Fibonacci,我在这里使用这个函数创建点 local GR = (math.sqrt(5) + 1) / 2 local GA = (2 - GR) * (2 * math.pi) local function fibonacciSpiralSphere(num_points) local vectors = {} for i = 1, num_points do local lat = math.asin(-1 + 2 * i / (num_points + 1))
local GR = (math.sqrt(5) + 1) / 2
local GA = (2 - GR) * (2 * math.pi)
local function fibonacciSpiralSphere(num_points)
local vectors = {}
for i = 1, num_points do
local lat = math.asin(-1 + 2 * i / (num_points + 1))
local lon = GA * i
local x = math.cos(lon) * math.cos(lat)
local y = math.sin(lon) * math.cos(lat)
local z = math.sin(lat)
table.insert(vectors, Vector3.new(x, y, z))
end
return vectors
end
结果如何。我就是想不出如何用它们来制作球体网格。像这样的问题通常都是用计算机来解决的
由于您对点集有一些了解,您可以简单地找到每个点的近邻。因此,通过点集查看距离。如何让delaunay三角测量在3D空间中工作?我想你可能把它误认为是某种研究服务。我只能给你指出一个方向。请不要期望我为您编写按需教程或总结资源,这样您就不必阅读它们。我一开始就给了你很多信息。是什么阻止你仔细阅读维基百科的链接文章?或者只是在网上搜索“曲面delauny球体”?