Project

General

Profile

« Previous | Next » 

Revision 7d8cc029

Added by Leszek Koltunski about 3 years ago

Simplify.

View differences:

src/main/java/org/distorted/objects/TwistyBandagedFused.java
64 64
       { 0.0f,  0.0f, -1.0f}
65 65
      };
66 66

  
67
  private final double[][] VERTICES_SMALL = new double[][]
68
          {
69
              { 0.5, 0.5, 0.5 },
70
              { 0.5, 0.5,-0.5 },
71
              { 0.5,-0.5, 0.5 },
72
              { 0.5,-0.5,-0.5 },
73
              {-0.5, 0.5, 0.5 },
74
              {-0.5, 0.5,-0.5 },
75
              {-0.5,-0.5, 0.5 },
76
              {-0.5,-0.5,-0.5 },
77
          };
78

  
79
  private final double[][] VERTICES_BIG = new double[][]
80
          {
81
              // TODO
82
          };
83

  
84
  private final int[][] VERT_INDEXES = new int[][]
85
          {
86
              {2,3,1,0},   // counterclockwise!
87
              {7,6,4,5},
88
              {4,0,1,5},
89
              {7,3,2,6},
90
              {6,2,0,4},
91
              {3,7,5,1}
92
          };
93

  
94 67
  private static final int[] QUAT_INDICES = new int[] { 0 };
95 68

  
96 69
///////////////////////////////////////////////////////////////////////////////////////////////////
......
101 74
    super(size, quat, texture, mesh, effects, moves, ObjectList.BAN1, res, scrWidth);
102 75
    }
103 76

  
104
///////////////////////////////////////////////////////////////////////////////////////////////////
105

  
106
  double[][] getVertices(int cubitType)
107
    {
108
     if( cubitType==0 )  // Small cubit
109
      {
110
      return VERTICES_SMALL;
111
      }
112
    if( cubitType==1 )  // Big cubit
113
      {
114
      return VERTICES_BIG;
115
      }
116

  
117
    return null;
118
    }
119

  
120
///////////////////////////////////////////////////////////////////////////////////////////////////
121

  
122
  int[][] getVertIndexes(int cubitType)
123
    {
124
    return VERT_INDEXES;
125
    }
126

  
127
///////////////////////////////////////////////////////////////////////////////////////////////////
128

  
129
  int getNumCubitTypes(int numLayers)
130
    {
131
    return 2;
132
    }
133

  
134 77
///////////////////////////////////////////////////////////////////////////////////////////////////
135 78

  
136 79
  float[][] getPositions()

Also available in: Unified diff