Revision c187cb69
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/helpers/ObjectShape.java | ||
---|---|---|
34 | 34 |
private final int[] mCenterIndices; |
35 | 35 |
private final int mNumComponents; |
36 | 36 |
private final float[] mConvexityCenter; |
37 |
private final int mNumOutsideFaces; |
|
37 | 38 |
|
38 | 39 |
private float[][] mBands; |
39 | 40 |
|
... | ... | |
41 | 42 |
|
42 | 43 |
public ObjectShape(float[][] vertices, int[][] vertIndices, float[][] bands, int[] bandIndices, |
43 | 44 |
float[][] corners, int[] cornIndices, float[][] centers, int[] centIndices, |
44 |
int numComponents, float[] convexityCenter) |
|
45 |
int numComponents, float[] convexityCenter, int numOutside)
|
|
45 | 46 |
{ |
46 | 47 |
mVertices = vertices; |
47 | 48 |
mVertIndices = vertIndices; |
... | ... | |
53 | 54 |
mCenterIndices = centIndices; |
54 | 55 |
mNumComponents = numComponents; |
55 | 56 |
mConvexityCenter = convexityCenter; |
57 |
mNumOutsideFaces = numOutside; |
|
56 | 58 |
|
57 | 59 |
if( ObjectControl.isInIconMode() ) |
58 | 60 |
{ |
... | ... | |
138 | 140 |
{ |
139 | 141 |
return mConvexityCenter; |
140 | 142 |
} |
143 |
|
|
144 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
145 |
|
|
146 |
public int getNumOutside() |
|
147 |
{ |
|
148 |
return mNumOutsideFaces; |
|
149 |
} |
|
141 | 150 |
} |
Also available in: Unified diff
Initial commit