MeshData.java 801 B

12345678910111213141516171819202122232425262728293031
  1. package eu.tankernn.gameEngine.loader.colladaLoader;
  2. import eu.tankernn.gameEngine.loader.obj.ModelData;
  3. public class MeshData extends ModelData {
  4. private static final int DIMENSIONS = 3;
  5. private int[] jointIds;
  6. private float[] vertexWeights;
  7. public MeshData(float[] vertices, float[] textureCoords, float[] normals, float[] tangents, int[] indices,
  8. int[] jointIds, float[] vertexWeights, float furthestPoint) {
  9. super(vertices, textureCoords, normals, tangents, indices, furthestPoint);
  10. this.jointIds = jointIds;
  11. this.vertexWeights = vertexWeights;
  12. }
  13. public int[] getJointIds() {
  14. return jointIds;
  15. }
  16. public float[] getVertexWeights(){
  17. return vertexWeights;
  18. }
  19. public int getVertexCount() {
  20. return getVertices().length / DIMENSIONS;
  21. }
  22. }