Project

General

Profile

« Previous | Next » 

Revision 4e9f2df5

Added by Leszek Koltunski over 2 years ago

Simplify.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyMirror.java
196 196
    float ZL = -0.5f - (zrow==     0 ? DZ : 0);
197 197
    float ZR = +0.5f - (zrow==numL-1 ? DZ : 0);
198 198

  
199
    float[][] vertices = new float[][]
199
    float[][] vertices =
200 200
          {
201 201
              { XR, YR, ZR },
202 202
              { XR, YR, ZL },
......
208 208
              { XL, YL, ZL },
209 209
          };
210 210

  
211
    int[][] vert_indices = new int[][]
211
    int[][] indices =
212 212
          {
213 213
              {2,3,1,0},
214 214
              {7,6,4,5},
......
218 218
              {3,7,5,1}
219 219
          };
220 220

  
221
    return new ObjectShape(vertices,vert_indices,getNumCubitFaces(),6);
221
    return new ObjectShape(vertices, indices, getNumCubitFaces(), 6);
222 222
    }
223 223

  
224 224
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff