Project

General

Profile

« Previous | Next » 

Revision 7c55263f

Added by Leszek Koltunski almost 4 years ago

Library: introduce a new form of the MeshRectangular grid, where the individual rows and columns can be each of different width. This help reduce the number of vertices in objects as typically we are only interested at distorting a certain subregion.

Modify the Bean app to take advantage of this.

View differences:

src/main/java/org/distorted/examples/meshfile/MeshFileSurfaceView.java
95 95

  
96 96
///////////////////////////////////////////////////////////////////////////////////////////////////
97 97

  
98
    @Override public boolean onTouchEvent(MotionEvent event) 
98
    @Override
99
    public boolean onTouchEvent(MotionEvent event)
99 100
      {
100 101
      int action = event.getAction();
101 102
      int x = (int)event.getX();

Also available in: Unified diff