From f9e7a1f79461551815cf1489241789389a36b7ef Mon Sep 17 00:00:00 2001 From: aardgoose Date: Mon, 17 Oct 2016 17:33:49 +0100 Subject: [PATCH] Document Mesh.drawmode (#9873) * add docs for mesh.drawMode and constants * fix whitespace * and fix typo --- docs/api/constants/DrawModes.html | 24 ++++++++++++++++++++++++ docs/api/objects/Mesh.html | 5 +++++ docs/list.js | 1 + 3 files changed, 30 insertions(+) create mode 100644 docs/api/constants/DrawModes.html diff --git a/docs/api/constants/DrawModes.html b/docs/api/constants/DrawModes.html new file mode 100644 index 0000000000..9a1336ab7d --- /dev/null +++ b/docs/api/constants/DrawModes.html @@ -0,0 +1,24 @@ + + + + + + + + + + +

Draw Mode Constants

+ +

Draw Mode

+
+ THREE.TrianglesDrawMode
+ THREE.TriangleStripDrawMode
+ THREE.TriangleFanDrawMode +
+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js] + + diff --git a/docs/api/objects/Mesh.html b/docs/api/objects/Mesh.html index 9a7b1aafd3..5c09002754 100644 --- a/docs/api/objects/Mesh.html +++ b/docs/api/objects/Mesh.html @@ -58,6 +58,11 @@ Undefined by default, but rebuilt [page:Mesh.updateMorphTargets updateMorphTargets]. +

[property:Integer drawMode]

+ +
+ 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]. +

Methods

diff --git a/docs/list.js b/docs/list.js index 4cf67277ee..e21637e992 100644 --- a/docs/list.js +++ b/docs/list.js @@ -10,6 +10,7 @@ var list = { "Reference": { "Constants": [ [ "CustomBlendingEquation", "api/constants/CustomBlendingEquations" ], + [ "DrawModes", "api/constants/DrawModes" ], [ "GLState", "api/constants/GLState" ], [ "Materials", "api/constants/Materials" ], [ "ShadowingTypes", "api/constants/ShadowingTypes" ], -- GitLab