Project

General

Profile

« Previous | Next » 

Revision 7d8cc029

Added by Leszek Koltunski about 3 years ago

Simplify.

View differences:

src/main/java/org/distorted/objects/TwistyCube.java
128 128
    super(size, size, quat, texture, mesh, effects, moves, ObjectList.CUBE, res, scrWidth);
129 129
    }
130 130

  
131
///////////////////////////////////////////////////////////////////////////////////////////////////
132

  
133
  double[][] getVertices(int cubitType)
134
    {
135
    return VERTICES;
136
    }
137

  
138
///////////////////////////////////////////////////////////////////////////////////////////////////
139

  
140
  int[][] getVertIndexes(int cubitType)
141
    {
142
    return VERT_INDEXES;
143
    }
144

  
145
///////////////////////////////////////////////////////////////////////////////////////////////////
146
// in the sense of shape, there's always only 1 cubit type.
147

  
148
  int getNumCubitTypes(int numLayers)
149
    {
150
    return 1;
151
    }
152

  
153 131
///////////////////////////////////////////////////////////////////////////////////////////////////
154 132

  
155 133
  MeshBase createCubitMesh(int cubit, int numLayers)

Also available in: Unified diff