Revision dea555b9
Added by Leszek Koltunski almost 5 years ago
src/main/java/org/distorted/examples/dynamic/DynamicSurfaceView.java | ||
---|---|---|
202 | 202 |
di3D.setCount(count); |
203 | 203 |
} |
204 | 204 |
|
205 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
206 |
|
|
207 |
public void setConvexity(float convexity) |
|
208 |
{ |
|
209 |
di1D.setConvexity(convexity); |
|
210 |
di2D.setConvexity(convexity); |
|
211 |
di3D.setConvexity(convexity); |
|
212 |
} |
|
213 |
|
|
205 | 214 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
206 | 215 |
|
207 | 216 |
public void setNoise(float noise0, float noise1, float noise2) |
... | ... | |
436 | 445 |
{ |
437 | 446 |
float gx,gy,gz; |
438 | 447 |
int len; |
439 |
|
|
448 |
|
|
440 | 449 |
switch(currentDim) |
441 | 450 |
{ |
442 | 451 |
case DIM_1D: len = di1D.getNumPoints(); |
443 |
|
|
452 |
|
|
444 | 453 |
for(int g=0; g<len; g++) |
445 | 454 |
{ |
446 | 455 |
p1D = di1D.getPoint(g); |
Also available in: Unified diff
Add the 'convexity' param to Dynamics and the Dynamic app.