private void adjustPoints(){
  if (decodeArr != null) {
    float xMin=decodeArr[0];
    float xMax=decodeArr[1];
    float yMin=decodeArr[2];
    float yMax=decodeArr[3];
    float xw=xMax - xMin;
    float yw=yMax - yMin;
    ArrayList<Point2D> tempPoints=new ArrayList<Point2D>();
    for (    Point2D p : pp) {
      float xx=(float)p.getX();
      float yy=(float)p.getY();
      xx=(xw * xx) + xMin;
      yy=(yw * yy) + yMin;
      tempPoints.add(new Point2D.Float(xx,yy));
    }
    pp.clear();
    for (    Point2D t : tempPoints) {
      pp.add(t);
    }
  }
  Point2D[] pArr=new Point2D[pp.size()];
  for (int i=0; i < pArr.length; i++) {
    pArr[i]=pp.get(i);
  }
  int totalPatches=pp.size() / 12;
  int offset=0;
  for (int i=0; i < totalPatches; i++) {
    Point2D[] pointArr=new Point2D[12];
    Color[] colors={pc.get(i * 4),pc.get(i * 4 + 1),pc.get(i * 4 + 2),pc.get(i * 4 + 3)};
    System.arraycopy(pArr,offset,pointArr,0,12);
    Shape67 sh=new Shape67(pointArr,colors);
    shapes.add(sh);
    offset+=12;
  }
}

private void adjustPoints ( ) { if ( decodeArr != null ) { float xMin = decodeArr [ 0 ] ; float xMax = decodeArr [ 1 ] ; float yMin = decodeArr [ 2 ] ; float yMax = decodeArr [ 3 ] ; float xw = xMax - xMin ; float yw = yMax - yMin ; ArrayList < Point2D > tempPoints = new ArrayList < Point2D > ( ) ; for ( Point2D p : pp ) { float xx = ( float ) p . getX ( ) ; float yy = ( float ) p . getY ( ) ; xx = ( xw * xx ) + xMin ; yy = ( yw * yy ) + yMin ; tempPoints . add ( new Point2D . Float ( xx , yy ) ) ; } pp . clear ( ) ; for ( Point2D t : tempPoints ) { pp . add ( t ) ; } } Point2D [ ] pArr = new Point2D [ pp . size ( ) ] ; for ( int i = 0 ; i < pArr . length ; i ++ ) { pArr [ i ] = pp . get ( i ) ; } int totalPatches = pp . size ( ) / 12 ; int offset = 0 ; for ( int i = 0 ; i < totalPatches ; i ++ ) { Point2D [ ] pointArr = new Point2D [ 12 ] ; Color [ ] colors = { pc . get ( i * 4 ) , pc . get ( i * 4 + 1 ) , pc . get ( i * 4 + 2 ) , pc . get ( i * 4 + 3 ) } ; System . arraycopy ( pArr , offset , pointArr , 0 , 12 ) ; Shape67 sh = new Shape67 ( pointArr , colors ) ; shapes . add ( sh ) ; offset += 12 ; } }
convert small points to x , y full space points
