【问题标题】:How do i draw triangles between the points of a fibonacci sphere?如何在斐波那契球的点之间绘制三角形?
【发布时间】:2021-05-31 22:47:02
【问题描述】:

我在这里使用这个函数创建点。

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

积分结果如何。

我只是不知道如何用它们制作一个球体网格。

【问题讨论】:

    标签: lua mesh fibonacci


    【解决方案1】:

    此类问题通常使用Delaunay Triangulation 解决。

    由于您对点集有所了解,因此您可以简单地找到每个点最近的邻居。所以遍历点集并检查距离。

    【讨论】:

    • 如何让 delaunay 三角测量在 3D 空间中工作?
    • 我认为您将其误认为是某种研究服务。我只能为你指明一个方向。请不要指望我为您编写按需教程或汇总资源,这样您就不必阅读它们。我给了你很多信息。是什么阻止您仔细阅读链接的维基百科文章?或者只是在网上搜索“表面延迟球”? fsu.digital.flvc.org/islandora/object/fsu:182663/datastream/PDF/…
    猜你喜欢
    • 1970-01-01
    • 2011-02-16
    • 1970-01-01
    • 2020-01-10
    • 2015-07-25
    • 1970-01-01
    • 2016-01-21
    • 2012-12-29
    • 1970-01-01
    相关资源
    最近更新 更多