|
@@ -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"]
|
|
|
|===
|
|
|
|