jme.geometry.model
Class Vertex

java.lang.Object
  extended byjme.geometry.model.Vertex

public class Vertex
extends java.lang.Object

A Vertex is a 3D point (x,y,z) along with a 2D texture map point (u,v). It also knows which bone (Joint) it is associated with for animations.

Version:
0.1
Author:
naj

Field Summary
 int boneIndex
          The index into the array of bones (Joint) in the model.
 int flags
          The flags in MS3D.
 float u
          The x value of the 2D texture point.
 float v
          The y value of the 2D texture point.
 float x
          The x value of the 3D point.
 float y
          The y value of the 3D point.
 float z
          The z value of the 3D point.
 
Constructor Summary
Vertex()
           
Vertex(int flags, float x, float y, float z, float u, float v, int boneIndex)
          Creates a Vertex with the given 3D point and texture coordinates, as well as a bone reference if used in animations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flags

public int flags
The flags in MS3D.


x

public float x
The x value of the 3D point.


y

public float y
The y value of the 3D point.


z

public float z
The z value of the 3D point.


u

public float u
The x value of the 2D texture point.


v

public float v
The y value of the 2D texture point.


boneIndex

public int boneIndex
The index into the array of bones (Joint) in the model.

Constructor Detail

Vertex

public Vertex()

Vertex

public Vertex(int flags,
              float x,
              float y,
              float z,
              float u,
              float v,
              int boneIndex)
Creates a Vertex with the given 3D point and texture coordinates, as well as a bone reference if used in animations.

Parameters:
flags - the flags in MS3D.
x - the x value of the 3D point.
y - the y value of the 3D point.
z - the z value of the 3D point.
u - the x value of the 2D texture point.
v - the y value of the 2D texture point.
boneIndex - the index into the array of bones (Joint) in the model.