Project

General

Profile

« Previous | Next » 

Revision e30c522a

Added by Leszek Koltunski over 2 years ago

Progress with serializing object to JSON: shapes.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyDino.java
204 204

  
205 205
///////////////////////////////////////////////////////////////////////////////////////////////////
206 206

  
207
  protected ObjectShape getObjectShape(int cubit, int[] numLayers)
207
  public ObjectShape getObjectShape(int variant)
208 208
    {
209 209
    double[][] vertices = new double[][] { {-1.5, 0.0, 0.0},{ 1.5, 0.0, 0.0},{ 0.0,-1.5, 0.0},{ 0.0, 0.0,-1.5} };
210 210
    int[][] vert_indices= new int[][] { {2,1,0},{3,0,1},{2,3,1},{3,2,0} };
......
227 227

  
228 228
///////////////////////////////////////////////////////////////////////////////////////////////////
229 229

  
230
  protected int getNumCubitVariants(int[] numLayers)
230
  public int getNumCubitVariants(int[] numLayers)
231 231
    {
232 232
    return 1;
233 233
    }
234 234

  
235 235
///////////////////////////////////////////////////////////////////////////////////////////////////
236 236

  
237
  protected int getCubitVariant(int cubit, int[] numLayers)
237
  public int getCubitVariant(int cubit, int[] numLayers)
238 238
    {
239 239
    return 0;
240 240
    }

Also available in: Unified diff