Revision 13884c8a
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/examples/meshfile/MeshFileActivity.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
private LinearLayout mLayout; |
49 | 49 |
private int mResource; |
50 |
private String[] mNames = new String[] { "polygon" , |
|
50 |
private String[] mNames = new String[] { "procedural" , |
|
51 |
"polygon" , |
|
51 | 52 |
"multigon" , |
52 |
"procedural" , |
|
53 | 53 |
"deferredjob", |
54 | 54 |
"meshjoin" , |
55 | 55 |
"predeform" , |
... | ... | |
198 | 198 |
{ |
199 | 199 |
switch(pos) |
200 | 200 |
{ |
201 |
case 0: mResource = POLYGON ; break;
|
|
202 |
case 1: mResource = MULTIGON ; break;
|
|
203 |
case 2: mResource = PROCEDURAL ; break;
|
|
201 |
case 0: mResource = PROCEDURAL ; break;
|
|
202 |
case 1: mResource = POLYGON ; break;
|
|
203 |
case 2: mResource = MULTIGON ; break;
|
|
204 | 204 |
case 3: mResource = R.raw.deferredjob; break; |
205 | 205 |
case 4: mResource = R.raw.meshjoin ; break; |
206 | 206 |
case 5: mResource = R.raw.predeform ; break; |
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
417 | 417 |
float h1 = 0.035f; |
418 | 418 |
float h2 = 0.010f; |
419 | 419 |
int angle = 30; |
420 |
float R = 0.7f;
|
|
420 |
float R = 0.1f;
|
|
421 | 421 |
float S = 0.5f; |
422 | 422 |
int N = 6; |
423 |
int exI = 2;
|
|
424 |
int exV = 2;
|
|
423 |
int exI = 0;
|
|
424 |
int exV = 0;
|
|
425 | 425 |
float[][] bands = { {h1,angle,R,S,N,exI,exV}, {h2,angle,R,S,N,exI,exV} }; |
426 | 426 |
int[] bandIndices= { 0,0,1,1 }; |
427 | 427 |
float[] convex = null; |
Also available in: Unified diff
Minor.