【问题标题】:Getting problem while setting the position attribute of the Buffer Geometry设置缓冲区几何的位置属性时出现问题
【发布时间】:2022-11-02 04:28:14
【问题描述】:

我正在使用Math.sin()Math.cos() 设置缓冲区几何的位置属性的位置,我收到了这个错误

三.BufferGeometry.computeBoundingSphere():计算半径为NaN。 “位置”属性可能具有 NaN 值。

我期望没有错误,只需在其中填充此值

【问题讨论】:

标签: three.js


【解决方案1】:

问题是你正在使用Math.PI.branches,它不存在,所以branchAngle 是NaN。从那以后,使用branchAngle 的所有内容都将是 NaN,并且您的 BufferGeometry 将无效。

此外,请不要发布代码截图,而是以文本形式粘贴代码本身。

【讨论】:

    猜你喜欢
    • 2013-07-11
    • 1970-01-01
    • 1970-01-01
    • 2012-10-22
    • 2014-06-14
    • 2016-02-08
    • 1970-01-01
    • 1970-01-01
    • 2011-07-24
    相关资源
    最近更新 更多