Revision 7d8cc029
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistySkewb.java | ||
---|---|---|
185 | 185 |
super(size, 2*size-2, quat, texture, mesh, effects, moves, ObjectList.SKEW, res, scrWidth); |
186 | 186 |
} |
187 | 187 |
|
188 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
189 |
|
|
190 |
double[][] getVertices(int cubitType) |
|
191 |
{ |
|
192 |
if( cubitType==0 ) return VERTICES_CORNER; |
|
193 |
if( cubitType==1 ) return VERTICES_EDGE; |
|
194 |
if( cubitType==2 ) return VERTICES_FACE; |
|
195 |
return null; |
|
196 |
} |
|
197 |
|
|
198 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
199 |
|
|
200 |
int[][] getVertIndexes(int cubitType) |
|
201 |
{ |
|
202 |
if( cubitType==0 ) return VERT_INDEXES_CORNER; |
|
203 |
if( cubitType==1 ) return VERT_INDEXES_EDGE; |
|
204 |
if( cubitType==2 ) return VERT_INDEXES_FACE; |
|
205 |
return null; |
|
206 |
} |
|
207 |
|
|
208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
209 |
|
|
210 |
int getNumCubitTypes(int numLayers) |
|
211 |
{ |
|
212 |
return numLayers==2 ? 2 : 3; |
|
213 |
} |
|
214 |
|
|
215 | 188 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
216 | 189 |
|
217 | 190 |
private int getNumCorners() |
Also available in: Unified diff
Simplify.