public void addSprite(float x,float y,float z,int w,int h,int d,float pixelScale,boolean rotX,boolean rotY,boolean rotZ,boolean mirrorX,boolean mirrorY,float expansion){
  String[] mask=new String[h];
  char[] str=new char[w];
  Arrays.fill(str,'1');
  Arrays.fill(mask,new String(str));
  addSprite(x,y,z,mask,d,pixelScale,rotX,rotY,rotZ,mirrorX,mirrorY,expansion);
}

public void addSprite ( float x , float y , float z , int w , int h , int d , float pixelScale , boolean rotX , boolean rotY , boolean rotZ , boolean mirrorX , boolean mirrorY , float expansion ) { String [ ] mask = new String [ h ] ; char [ ] str = new char [ w ] ; Arrays . fill ( str , '1' ) ; Arrays . fill ( mask , new String ( str ) ) ; addSprite ( x , y , z , mask , d , pixelScale , rotX , rotY , rotZ , mirrorX , mirrorY , expansion ) ; }
creates a model shaped like the exact image on the texture . note that this method will increase the amount of quads on your model , which could effectively slow down your pc , so unless it is really a necessity to use it , i ' d suggest you avoid using this method to create your model .
