Project

General

Profile

« Previous | Next » 

Revision d7829514

Added by Leszek Koltunski almost 4 years ago

1) Cube: convert it to the latest library. Main difference: objects are rendered better, individual cubits have rounded corners.
2) Examples: some adjustments to MeshJoin & Predeform
3) Library: fix a bug in main_vertex_shader's 'degree' function, which didn't work proprely in case of a vertex which was exactly at the center (i.e. vector PS was zero)

View differences:

src/main/java/org/distorted/examples/predeform/PredeformActivity.java
330 330

  
331 331
    }
332 332

  
333
///////////////////////////////////////////////////////////////////////////////////////////////////
334

  
335
  int getWidth()
336
    {
337
    return mNumCols;
338
    }
339

  
340
///////////////////////////////////////////////////////////////////////////////////////////////////
341

  
342
  int getHeight()
343
    {
344
    return mNumRows;
345
    }
346

  
347
///////////////////////////////////////////////////////////////////////////////////////////////////
348

  
349
  int getDepth()
350
    {
351
    return mNumSlic;
352
    }
353

  
354 333
///////////////////////////////////////////////////////////////////////////////////////////////////
355 334

  
356 335
  @Override

Also available in: Unified diff