Last change
on this file since 65 was
65,
checked in by Maciej Komosinski, 13 years ago
|
added sources of the 3D client for the Framsticks server
|
File size:
1.2 KB
|
Line | |
---|
1 | package com.framsticks.net.client3D.graphics.loaders;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 |
|
---|
5 | import pl.vorg.mowa.core.graphics.Vec2;
|
---|
6 | import pl.vorg.mowa.core.graphics.Vec3;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * 3d mesh.
|
---|
10 | *
|
---|
11 | * @author vorg
|
---|
12 | */
|
---|
13 | public class OBJMesh {
|
---|
14 | private String name;
|
---|
15 | private ArrayList<OBJFace> faces = new ArrayList<OBJFace>();
|
---|
16 | private ArrayList<Vec3> normals = new ArrayList<Vec3>();
|
---|
17 | private ArrayList<Vec2> texCoords = new ArrayList<Vec2>();
|
---|
18 | private ArrayList<Vec3> vertices = new ArrayList<Vec3>();
|
---|
19 |
|
---|
20 | public ArrayList<OBJFace> getFaces() {
|
---|
21 | return faces;
|
---|
22 | }
|
---|
23 | public void setFaces(ArrayList<OBJFace> faces) {
|
---|
24 | this.faces = faces;
|
---|
25 | }
|
---|
26 | public String getName() {
|
---|
27 | return name;
|
---|
28 | }
|
---|
29 | public void setName(String name) {
|
---|
30 | this.name = name;
|
---|
31 | }
|
---|
32 | public ArrayList<Vec3> getNormals() {
|
---|
33 | return normals;
|
---|
34 | }
|
---|
35 | public void setNormals(ArrayList<Vec3> normals) {
|
---|
36 | this.normals = normals;
|
---|
37 | }
|
---|
38 | public ArrayList<Vec2> getTexCoords() {
|
---|
39 | return texCoords;
|
---|
40 | }
|
---|
41 | public void setTexCoords(ArrayList<Vec2> texCoords) {
|
---|
42 | this.texCoords = texCoords;
|
---|
43 | }
|
---|
44 | public ArrayList<Vec3> getVertices() {
|
---|
45 | return vertices;
|
---|
46 | }
|
---|
47 | public void setVertices(ArrayList<Vec3> vertices) {
|
---|
48 | this.vertices = vertices;
|
---|
49 | }
|
---|
50 |
|
---|
51 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.