]> gerrit.simantics Code Review - simantics/3d.git/blob - dev/org.simantics.proconf.g3d.occ/src/org/simantics/proconf/g3d/occ/geometry/IndexedGeometry.java
Release
[simantics/3d.git] / dev / org.simantics.proconf.g3d.occ / src / org / simantics / proconf / g3d / occ / geometry / IndexedGeometry.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.occ.geometry;\r
12 \r
13 \r
14 public class IndexedGeometry \r
15 {\r
16         private float[] coordinates=new float[0];\r
17         private float[] tcoordinates=new float[0];\r
18     private float[] normals=new float[0];\r
19         private int[] indices = new int[0];\r
20         private float[] colors=new float[0];\r
21                 \r
22         public IndexedGeometry()\r
23         {               \r
24         }\r
25         \r
26         \r
27         \r
28         public int[] getIndices()\r
29         {\r
30                 return indices;\r
31         }\r
32         \r
33         public float[] getCoordinates()\r
34         {\r
35                 return coordinates;\r
36         }\r
37         \r
38         public float[] getTCoordinates()\r
39         {\r
40                 return tcoordinates;\r
41         }\r
42         \r
43         \r
44         public void setIndices(int[] value)\r
45         {\r
46                 indices=value;\r
47         }\r
48         \r
49         public void setCoordinates(float[] value)\r
50         {\r
51                 coordinates=value;\r
52         }\r
53         \r
54         public void setTCoordinates(float[] value)\r
55         {\r
56                 tcoordinates=value;\r
57         }\r
58         \r
59         public float[] getColors()\r
60         {\r
61                 return colors;\r
62         }\r
63         \r
64         public void setColors(float[] arg)\r
65         {\r
66                 colors=arg;\r
67         }\r
68         \r
69 \r
70     public float[] getNormals()\r
71     {\r
72         return normals;\r
73     }\r
74     \r
75     public void setNormals(float[] arg)\r
76     {\r
77         normals=arg;\r
78     }\r
79 \r
80 \r
81 }\r