Project

General

Profile

« Previous | Next » 

Revision 7d8cc029

Added by Leszek Koltunski about 3 years ago

Simplify.

View differences:

src/main/java/org/distorted/objects/TwistyBandaged2Bar.java
59 59
       { 0.0f, -1.0f, -1.0f}
60 60
      };
61 61

  
62
  private final double[][] VERTICES_SMALL = new double[][]
63
          {
64
              { 0.5, 0.5, 0.5 },
65
              { 0.5, 0.5,-0.5 },
66
              { 0.5,-0.5, 0.5 },
67
              { 0.5,-0.5,-0.5 },
68
              {-0.5, 0.5, 0.5 },
69
              {-0.5, 0.5,-0.5 },
70
              {-0.5,-0.5, 0.5 },
71
              {-0.5,-0.5,-0.5 },
72
          };
73

  
74
  private final double[][] VERTICES_BIG = new double[][]
75
          {
76
              // TODO
77
          };
78

  
79
  private final int[][] VERT_INDEXES = new int[][]
80
          {
81
              {2,3,1,0},   // counterclockwise!
82
              {7,6,4,5},
83
              {4,0,1,5},
84
              {7,3,2,6},
85
              {6,2,0,4},
86
              {3,7,5,1}
87
          };
88

  
89 62
  private static final int[] QUAT_INDICES = new int[] { 2 };
90 63

  
91 64
///////////////////////////////////////////////////////////////////////////////////////////////////
......
96 69
    super(size, quat, texture, mesh, effects, moves, ObjectList.BAN2, res, scrWidth);
97 70
    }
98 71

  
99
///////////////////////////////////////////////////////////////////////////////////////////////////
100

  
101
  double[][] getVertices(int cubitType)
102
    {
103
     if( cubitType==0 )  // Small cubit
104
      {
105
      return VERTICES_SMALL;
106
      }
107
    if( cubitType==1 )  // Big cubit
108
      {
109
      return VERTICES_BIG;
110
      }
111

  
112
    return null;
113
    }
114

  
115
///////////////////////////////////////////////////////////////////////////////////////////////////
116

  
117
  int[][] getVertIndexes(int cubitType)
118
    {
119
    return VERT_INDEXES;
120
    }
121

  
122 72
///////////////////////////////////////////////////////////////////////////////////////////////////
123 73

  
124 74
  int getNumCubitTypes(int numLayers)

Also available in: Unified diff