Revision 3821ebef
Added by Leszek Koltunski 11 months ago
src/main/java/org/distorted/objectlib/helpers/ObjectFaceShape.java | ||
---|---|---|
46 | 46 |
{ |
47 | 47 |
return mConvexityCenter; |
48 | 48 |
} |
49 |
|
|
50 |
|
|
51 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
52 |
|
|
53 |
public void debug() |
|
54 |
{ |
|
55 |
StringBuilder str = new StringBuilder(); |
|
56 |
|
|
57 |
for(float[] ba : mBands) |
|
58 |
{ |
|
59 |
str.append(ba[0]); |
|
60 |
str.append(' '); |
|
61 |
str.append(ba[1]); |
|
62 |
str.append(' '); |
|
63 |
str.append(ba[2]); |
|
64 |
str.append(' '); |
|
65 |
str.append(ba[3]); |
|
66 |
str.append(' '); |
|
67 |
str.append(ba[4]); |
|
68 |
str.append(' '); |
|
69 |
str.append(ba[5]); |
|
70 |
str.append(' '); |
|
71 |
str.append(ba[6]); |
|
72 |
str.append(' '); |
|
73 |
str.append("\n"); |
|
74 |
} |
|
75 |
|
|
76 |
for(int i : mBandIndices ) |
|
77 |
{ |
|
78 |
str.append(i); |
|
79 |
str.append(' '); |
|
80 |
} |
|
81 |
|
|
82 |
str.append("\n"); |
|
83 |
|
|
84 |
if( mConvexityCenter!=null ) |
|
85 |
{ |
|
86 |
str.append(mConvexityCenter[0]); |
|
87 |
str.append(' '); |
|
88 |
str.append(mConvexityCenter[1]); |
|
89 |
str.append(' '); |
|
90 |
str.append(mConvexityCenter[2]); |
|
91 |
} |
|
92 |
else |
|
93 |
{ |
|
94 |
str.append("convexityCenter null"); |
|
95 |
} |
|
96 |
|
|
97 |
android.util.Log.e("D", "ObjectFaceShape: \n"+str); |
|
98 |
} |
|
49 | 99 |
} |
Also available in: Unified diff
speedups (correctly remove the internal walls of joined elements)