javascript - Unexpected RangeError in Three.js - Stack Overflow

I've been using Three.js to generate 3D objects in my website and I just came across this problem

I've been using Three.js to generate 3D objects in my website and I just came across this problem yesterday.

I was gonna generate a PlaneGeometry with widthSegments = 1100 and heightSegments = 17500

Now then the points would have been stored in a position array with

length = 3 * widthSegments * heightSegments = 57750000

which is way lower than the imposed 2^32 length limit of arrays.

But when I tried to run it, it threw a RangeError: Invalid array length

What?

Tried testing it on a Three.js playground, and got the same results.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745584095a4634422.html

相关推荐

  • javascript - Unexpected RangeError in Three.js - Stack Overflow

    I've been using Three.js to generate 3D objects in my website and I just came across this problem

    12小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信