瀏覽代碼

Docs: Clarify Mesh.drawMode.

Mugen87 5 年之前
父節點
當前提交
3af57ac129

+ 1 - 7
docs/api/en/constants/DrawModes.html

@@ -11,13 +11,7 @@
 		<h1>Draw Mode Constants</h1>
 		<h1>Draw Mode Constants</h1>
 
 
 		<p class="desc">
 		<p class="desc">
-			These are valid values for [page:Mesh.drawMode], and control how the list of vertices is interpeted once sent to the GPU.<br /><br />
-
-			Note that these only work when [page:Mesh.geometry] is a [page:BufferGeometry]. Changing this
-			when [page:Mesh.geometry] is a [page:Geometry] will have no effect.<br /><br />
-
-
-
+			These are valid values for [page:Mesh.drawMode], and control how the list of vertices is interpeted once sent to the GPU.
 		</p>
 		</p>
 
 
 		<h2>Draw Modes</h2>
 		<h2>Draw Modes</h2>

+ 7 - 3
docs/api/en/objects/Mesh.html

@@ -43,9 +43,13 @@
 
 
 		<h3>[property:Integer drawMode]</h3>
 		<h3>[property:Integer drawMode]</h3>
 		<p>
 		<p>
-		Determines how the mesh triangles are constructed from the vertices.
-		See the draw mode [page:DrawModes constants] for all possible values.
-		Default is [page:DrawModes TrianglesDrawMode].
+			Determines how the mesh triangles are constructed from the vertices.
+			See the draw mode [page:DrawModes constants] for all possible values.
+			Default is [page:DrawModes TrianglesDrawMode].
+		</p>
+		<p>
+			A sensible usage of this property is only possible when [page:Mesh.geometry] is of type [page:BufferGeometry BufferGeometry]
+			since the engine always assumes *THREE.TrianglesDrawMode* for [page:Geometry Geometry].
 		</p>
 		</p>
 
 
 
 

+ 0 - 6
docs/api/zh/constants/DrawModes.html

@@ -12,12 +12,6 @@
 
 
 		<p class="desc">
 		<p class="desc">
 			这些是[page:Mesh.drawMode]的有效值,控制着顶点列表一旦被发送到GPU中将如何被解释。
 			这些是[page:Mesh.drawMode]的有效值,控制着顶点列表一旦被发送到GPU中将如何被解释。
-			请注意,只有当[page:Mesh.geometry]是一个[page:BufferGeometry]的时候,这些值才会生效。当[page:Mesh.geometry]是一个
-			[page:Geometry]的时候,改变这个值不会有任何效果。
-<br /><br />
-
-
-
 		</p>
 		</p>
 
 
 
 

+ 4 - 1
docs/api/zh/objects/Mesh.html

@@ -46,7 +46,10 @@
 			请参阅draw mode [page:DrawModes constants](绘图模式常量)来查看其所有可能的值。
 			请参阅draw mode [page:DrawModes constants](绘图模式常量)来查看其所有可能的值。
 			其默认值是[page:DrawModes TrianglesDrawMode]。
 			其默认值是[page:DrawModes TrianglesDrawMode]。
 		</p>
 		</p>
-
+		<p>
+			A sensible usage of this property is only possible when [page:Mesh.geometry] is of type [page:BufferGeometry BufferGeometry]
+			since the engine always assumes *THREE.TrianglesDrawMode* for [page:Geometry Geometry].
+		</p>
 
 
 		<h3>[property:Boolean isMesh]</h3>
 		<h3>[property:Boolean isMesh]</h3>
 		<p>
 		<p>