Revision ad7907b0
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/helpers/ObjectShape.java | ||
---|---|---|
26 | 26 |
private final double[][] mVertices; |
27 | 27 |
private final int[][] mVertIndices; |
28 | 28 |
private final float[][] mBands; |
29 |
private final int[][] mBandIndices;
|
|
29 |
private final int[] mBandIndices; |
|
30 | 30 |
private final float[][] mCorners; |
31 |
private final int[][] mCornerIndices;
|
|
31 |
private final int[] mCornerIndices; |
|
32 | 32 |
private final float[][] mCenters; |
33 |
private final int[][] mCenterIndices;
|
|
33 |
private final int[] mCenterIndices; |
|
34 | 34 |
private final int mNumComponents; |
35 | 35 |
private final float[] mConvexityCenter; |
36 | 36 |
|
37 | 37 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
38 | 38 |
|
39 |
public ObjectShape(double[][] vertices, int[][] vertIndices, float[][] bands, int[][] bandIndices,
|
|
40 |
float[][] corners, int[][] cornIndices, float[][] centers, int[][] centIndices,
|
|
39 |
public ObjectShape(double[][] vertices, int[][] vertIndices, float[][] bands, int[] bandIndices, |
|
40 |
float[][] corners, int[] cornIndices, float[][] centers, int[] centIndices,
|
|
41 | 41 |
int numComponents, float[] convexityCenter) |
42 | 42 |
{ |
43 | 43 |
mVertices = vertices; |
... | ... | |
75 | 75 |
|
76 | 76 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
77 | 77 |
|
78 |
public int[][] getBandIndices()
|
|
78 |
public int[] getBandIndices() |
|
79 | 79 |
{ |
80 | 80 |
return mBandIndices; |
81 | 81 |
} |
... | ... | |
89 | 89 |
|
90 | 90 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
91 | 91 |
|
92 |
public int[][] getCornerIndices()
|
|
92 |
public int[] getCornerIndices() |
|
93 | 93 |
{ |
94 | 94 |
return mCornerIndices; |
95 | 95 |
} |
... | ... | |
103 | 103 |
|
104 | 104 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
105 | 105 |
|
106 |
public int[][] getCenterIndices()
|
|
106 |
public int[] getCenterIndices() |
|
107 | 107 |
{ |
108 | 108 |
return mCenterIndices; |
109 | 109 |
} |
Also available in: Unified diff
Important step towards making the implementation of an individual puzzle code-free (i.e. data-only): move the 'MeshBase[] mMeshes' variable from the individual classes to the parent TwistyObject.