Ver código fonte

Merge pull request #70 from quazi-irfan/patch-1

Update mesh.adoc getID
mitm001 8 anos atrás
pai
commit
e67ad2276a

+ 0 - 1
src/docs/asciidoc/jme3/advanced/custom_meshes.adoc

@@ -321,7 +321,6 @@ Additionally to coloring the faces as just described, you can hide the faces and
 Geometry coloredMesh = new Geometry ("ColoredMesh", cMesh);
 ...
 mesh.setMode(Mesh.Mode.Points);
-mesh.setPointSize(10f);
 mesh.updateBound();
 mesh.setStatic();
 Geometry points = new Geometry("Points", mesh);

+ 11 - 8
src/docs/asciidoc/jme3/advanced/mesh.adoc

@@ -12,7 +12,7 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 image::jme3/dolphin-mesh.png[dolphin-mesh.png,width="",height="",align="right"]
 
 
-All visible game elements in a scene, whether it is a Model or a Shape, are made up of polygon meshes. JME3 has a com.jme3.scene.Mesh class that represents all meshes.
+All visible game elements in a scene, whether it is a Model or a Shape, are made up of polygon meshes. JME3 has a http://javadoc.jmonkeyengine.org/com/jme3/scene/Mesh.html[com.jme3.scene.Mesh] class that represents all meshes.
 
 *  Meshes are made up of triangles: `getTriangleCount(…)` and `getTriangle(…)`
 *  Each mesh has a unique ID: `getId()`
@@ -36,6 +36,9 @@ The VertexBuffer contains a particular type of geometry data used by Meshes. Eve
 
 
 === Mesh Vertex Buffers
+
+Here is the list of http://javadoc.jmonkeyengine.org/com/jme3/scene/VertexBuffer.Type.html[VertexBuffer] types,
+
 [cols="2", options="header"]
 |===
 
@@ -88,18 +91,15 @@ a| Bone indices, used with animation
 
 
 === Mesh Properties
+
+Some Mesh properties from the http://javadoc.jmonkeyengine.org/com/jme3/scene/Mesh.html[Mesh] class,
+
 [cols="2", options="header"]
 |===
 
 a|Mesh method
 a|Description
 
-a|setLineWidth(1)
-a|the thickness of the line if using Mode.Lines
-
-a|setPointSize(4.0f)
-a|the thickness of the point when using Mode.Points
-
 a|setBound(boundingVolume)
 a|if you need to specifiy a custom optimized bounding volume
 
@@ -113,7 +113,7 @@ a|setMode(Mesh.Mode.Points)
 a|Used to set mesh rendering modes, see below.
 
 a|getId()
-a|returns the Mesh ID
+a|returns the Mesh ID, default value is -1
 
 a|getTriangle(int,tri)
 a|returns data of triangle number `int` into variable `tri`
@@ -125,6 +125,9 @@ a|How the texture will be stretched over the whole mesh.
 
 
 === Mesh Rendering Modes
+
+Here is the list of http://javadoc.jmonkeyengine.org/com/jme3/scene/Mesh.Mode.html[Mesh rendering modes],
+
 [cols="2", options="header"]
 |===