Project

General

Profile

« Previous | Next » 

Revision 7d8cc029

Added by Leszek Koltunski about 3 years ago

Simplify.

View differences:

src/main/java/org/distorted/objects/TwistyRedi.java
209 209
    super(size, size, quat, texture, mesh, effects, moves, ObjectList.REDI, res, scrWidth);
210 210
    }
211 211

  
212
///////////////////////////////////////////////////////////////////////////////////////////////////
213

  
214
  double[][] getVertices(int cubitType)
215
    {
216
    if( cubitType==0 ) return VERTICES_CORNER;
217
    if( cubitType==1 ) return VERTICES_EDGE;
218
    return null;
219
    }
220

  
221
///////////////////////////////////////////////////////////////////////////////////////////////////
222

  
223
  int[][] getVertIndexes(int cubitType)
224
    {
225
    if( cubitType==0 ) return VERT_INDEXES_CORNER;
226
    if( cubitType==1 ) return VERT_INDEXES_EDGE;
227
    return null;
228
    }
229

  
230
///////////////////////////////////////////////////////////////////////////////////////////////////
231

  
232
  int getNumCubitTypes(int numLayers)
233
    {
234
    return 2;
235
    }
236

  
237 212
///////////////////////////////////////////////////////////////////////////////////////////////////
238 213

  
239 214
  float getScreenRatio()

Also available in: Unified diff