Browse Source

Docs: Mention .fromBufferAttribute on BufferAttribute page. (#23772)

Don McCurdy 3 years ago
parent
commit
d5f11e72d0

+ 5 - 0
docs/api/en/core/BufferAttribute.html

@@ -13,6 +13,11 @@
 		This class stores data for an attribute (such as vertex positions, face indices, normals,
 		This class stores data for an attribute (such as vertex positions, face indices, normals,
 		colors, UVs, and any custom attributes ) associated with a [page:BufferGeometry], which allows
 		colors, UVs, and any custom attributes ) associated with a [page:BufferGeometry], which allows
 		for more efficient passing of data to the GPU. See that page for details and a usage example.
 		for more efficient passing of data to the GPU. See that page for details and a usage example.
+		When working with vector-like data, the <i>.fromBufferAttribute( attribute, index )</i>
+		helper methods on [page:Vector2.fromBufferAttribute Vector2],
+		[page:Vector3.fromBufferAttribute Vector3],
+		[page:Vector4.fromBufferAttribute Vector4], and
+		[page:Color.fromBufferAttribute Color] classes may be helpful.
 		</p>
 		</p>
 
 
 		<h2>Constructor</h2>
 		<h2>Constructor</h2>

+ 6 - 0
docs/api/ko/core/BufferAttribute.html

@@ -16,6 +16,12 @@
 
 
 		데이터는 모든 길이가 벡터로 저장되며 ([page:BufferAttribute.itemSize itemSize]로 정의된 값),
 		데이터는 모든 길이가 벡터로 저장되며 ([page:BufferAttribute.itemSize itemSize]로 정의된 값),
 		일반적으로 인덱스 값으로 전달될 경우 메서드 내에서 밑줄이 쳐지며 자동으로 벡터 길이에 곱해집니다.
 		일반적으로 인덱스 값으로 전달될 경우 메서드 내에서 밑줄이 쳐지며 자동으로 벡터 길이에 곱해집니다.
+
+		When working with vector-like data, the <i>.fromBufferAttribute( attribute, index )</i>
+		helper methods on [page:Vector2.fromBufferAttribute Vector2],
+		[page:Vector3.fromBufferAttribute Vector3],
+		[page:Vector4.fromBufferAttribute Vector4], and
+		[page:Color.fromBufferAttribute Color] classes may be helpful.
 		</p>
 		</p>
 
 
 		<h2>생성자</h2>
 		<h2>생성자</h2>

+ 6 - 0
docs/api/zh/core/BufferAttribute.html

@@ -15,6 +15,12 @@
 
 
 			在 BufferAttribute 中,数据被存储为任意长度的矢量(通过[page:BufferAttribute.itemSize itemSize]进行定义),下列函数如无特别说明,
 			在 BufferAttribute 中,数据被存储为任意长度的矢量(通过[page:BufferAttribute.itemSize itemSize]进行定义),下列函数如无特别说明,
 			函数参数中的index会自动乘以矢量长度进行计算。
 			函数参数中的index会自动乘以矢量长度进行计算。
+
+			When working with vector-like data, the <i>.fromBufferAttribute( attribute, index )</i>
+			helper methods on [page:Vector2.fromBufferAttribute Vector2],
+			[page:Vector3.fromBufferAttribute Vector3],
+			[page:Vector4.fromBufferAttribute Vector4], and
+			[page:Color.fromBufferAttribute Color] classes may be helpful.
 		</p>
 		</p>
 
 
 		<h2>构造函数</h2>
 		<h2>构造函数</h2>