Last change
on this file since 66 was
66,
checked in by Maciej Komosinski, 13 years ago
|
set 'eol-style' to 'native'
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[66] | 1 | package com.framsticks.net.client3D.graphics.loaders; |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * A vertice and its attributes. The real data about the attributes are stored |
---|
| 5 | * in the ObjMesh class - only indexes to the array are stored here. |
---|
| 6 | * |
---|
| 7 | * @author vorg |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | public class OBJFaceVertex { |
---|
| 11 | private int normalIndex; |
---|
| 12 | private int texCoordIndex; |
---|
| 13 | private int vertexIndex; |
---|
| 14 | |
---|
| 15 | public int getNormalIndex() { |
---|
| 16 | return normalIndex; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | public void setNormalIndex(int normalIndex) { |
---|
| 20 | this.normalIndex = normalIndex; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | public int getTexCoordIndex() { |
---|
| 24 | return texCoordIndex; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | public void setTexCoordIndex(int texCoordIndex) { |
---|
| 28 | this.texCoordIndex = texCoordIndex; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | public int getVertexIndex() { |
---|
| 32 | return vertexIndex; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | public void setVertexIndex(int vertexIndex) { |
---|
| 36 | this.vertexIndex = vertexIndex; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | @Override |
---|
| 40 | public boolean equals(java.lang.Object obj) { |
---|
| 41 | OBJFaceVertex v = (OBJFaceVertex) obj; |
---|
| 42 | return (vertexIndex == v.getVertexIndex()) |
---|
| 43 | && (normalIndex == v.getNormalIndex()) |
---|
| 44 | && (texCoordIndex == v.getTexCoordIndex()); |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.