三个 js JSON 属性中的 "index" 是什么

what are "index" in Three js JSON attributes

我已经使用 Blender 将 3D 模型导出到 json。 看起来像: index is highlighted with yellow.

我的问题是这个"index"代表什么?它是如何填充的?

Index 表示索引 BufferGeometry 的索引缓冲区。来自 documentation:

Allows for vertices to be re-used across multiple triangles; this is called using "indexed triangles" and works much the same as it does in Geometry: each triangle is associated with the indices of three vertices. This attribute therefore stores the index of each vertex for each triangular face. If this attribute is not set, the renderer assumes that each three contiguous positions represent a single triangle.

顺便说一句:Blender JSON 导出器已用 R93 删除。请改为将您的模型导出为 glTF。这是three.js推荐的3D格式。阅读以下指南以获取有关此主题的更多信息:

https://threejs.org/docs/index.html#manual/en/introduction/Loading-3D-models

three.js R100