Revision 7d8cc029
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyDiamond.java | ||
---|---|---|
146 | 146 |
super(size, size, quat, texture, mesh, effects, moves, ObjectList.DIAM, res, scrWidth); |
147 | 147 |
} |
148 | 148 |
|
149 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
150 |
|
|
151 |
double[][] getVertices(int cubitType) |
|
152 |
{ |
|
153 |
if( cubitType==0 ) return VERTICES_OCTA; |
|
154 |
if( cubitType==1 ) return VERTICES_TETRA; |
|
155 |
return null; |
|
156 |
} |
|
157 |
|
|
158 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
159 |
|
|
160 |
int[][] getVertIndexes(int cubitType) |
|
161 |
{ |
|
162 |
if( cubitType==0 ) return VERT_INDEXES_OCTA; |
|
163 |
if( cubitType==1 ) return VERT_INDEXES_TETRA; |
|
164 |
return null; |
|
165 |
} |
|
166 |
|
|
167 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
168 |
|
|
169 |
int getNumCubitTypes(int numLayers) |
|
170 |
{ |
|
171 |
return 2; |
|
172 |
} |
|
173 |
|
|
174 | 149 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
175 | 150 |
|
176 | 151 |
float getScreenRatio() |
Also available in: Unified diff
Simplify.