Project

General

Profile

« Previous | Next » 

Revision 6c295be1

Added by Leszek Koltunski 12 months ago

Progress with BandagedObjectPyraminx.

View differences:

src/main/java/org/distorted/bandaged/BandagedObjectCuboid.java
71 71

  
72 72
///////////////////////////////////////////////////////////////////////////////////////////////////
73 73

  
74
  float[][] getPositions()
74
  float[][][] getPositions()
75 75
    {
76
    float[][] pos = new float[mNumCubits][];
76
    float[][][] pos = new float[1][mNumCubits][];
77 77
    int c=0;
78 78
    int sx = mSize[0];
79 79
    int sy = mSize[1];
......
88 88
         for(int z=0; z<sz; z++)
89 89
           if( x==0 || x==sx-1 || y==0 || y==sy-1 || z==0 || z==sz-1 )
90 90
              {
91
              pos[c++] = new float[] { begX+x,begY+y,begZ+z };
91
              pos[0][c++] = new float[] { begX+x,begY+y,begZ+z };
92 92
              }
93 93

  
94 94
    return pos;
......
185 185

  
186 186
///////////////////////////////////////////////////////////////////////////////////////////////////
187 187

  
188
  MeshBase createMesh(float[] pos, boolean round)
188
  MeshBase createMesh(int variant, float[] pos, boolean round)
189 189
     {
190 190
     FactoryBandagedCuboid factory = FactoryBandagedCuboid.getInstance();
191 191
     return factory.createMesh(pos,mSize[0],mSize[1],mSize[2],false,round);

Also available in: Unified diff