浏览代码

Merge pull request #15192 from WestLangley/dev-buffergeometry_docs

BufferGeometry docs: clarification
Mr.doob 6 年之前
父节点
当前提交
214ed20fe8
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      docs/api/en/core/BufferGeometry.html

+ 6 - 4
docs/api/en/core/BufferGeometry.html

@@ -119,12 +119,13 @@
 
 
 		<h3>[property:Object drawRange]</h3>
 		<h3>[property:Object drawRange]</h3>
 		<p>
 		<p>
-			Used to determine what part of the geometry should be rendered. This should not
-			be set directly, instead use [page:.setDrawRange].<br />
-			Default is
+			Determines the part of the geometry to render. This should not
+			be set directly, instead use [page:.setDrawRange]. Default is
 			<code>
 			<code>
 				{ start: 0, count: Infinity }
 				{ start: 0, count: Infinity }
 			</code>
 			</code>
+			For non-indexed BufferGeometry, count is the number of vertices to render.
+			For indexed BufferGeometry, count is the number of indices to render.
 		</p>
 		</p>
 
 
 		<h3>[property:Array groups]</h3>
 		<h3>[property:Array groups]</h3>
@@ -316,7 +317,8 @@
 		<p>Set the [page:.index] buffer.</p>
 		<p>Set the [page:.index] buffer.</p>
 
 
 		<h3>[method:null setDrawRange] ( [param:Integer start], [param:Integer count] )</h3>
 		<h3>[method:null setDrawRange] ( [param:Integer start], [param:Integer count] )</h3>
-		<p>Set the [page:.drawRange] buffer. See that property for details.</p>
+		<p>Set the [page:.drawRange] property. For non-indexed BufferGeometry, count is the number of vertices to render.
+		For indexed BufferGeometry, count is the number of indices to render.</p>
 
 
 		<h3>[method:BufferGeometry setFromObject] ( [param:Object3D object] )</h3>
 		<h3>[method:BufferGeometry setFromObject] ( [param:Object3D object] )</h3>
 		<p>Sets the attributes for this BufferGeometry from an [page:Object3D].</p>
 		<p>Sets the attributes for this BufferGeometry from an [page:Object3D].</p>