Project

General

Profile

« Previous | Next » 

Revision 0729bc41

Added by Leszek Koltunski almost 8 years ago

Add DistortedGridFactory to share Grids among same-shaped DistortedObjects.

View differences:

src/main/java/org/distorted/library/DistortedCubes.java
96 96
   mSizeX= cubeSize*Cs;
97 97
   mSizeY= cubeSize*Rs;
98 98
   mSizeZ= frontOnly ? 1 : cubeSize;
99
   mGrid = new DistortedCubesGrid(cols,desc, frontOnly);
99
   mGrid = DistortedGridFactory.getGrid(cols,desc, frontOnly);
100 100
   initializeData();
101 101
   }
102 102

  
......
120 120

  
121 121
///////////////////////////////////////////////////////////////////////////////////////////////////
122 122

  
123
   protected DistortedObject deepCopy(int flags)
124
     {
125
     return new DistortedCubes(this,flags);
126
     }
123
 protected DistortedObject deepCopy(int flags)
124
   {
125
   return new DistortedCubes(this,flags);
126
   }
127 127

  
128 128
///////////////////////////////////////////////////////////////////////////////////////////////////   
129 129
 }

Also available in: Unified diff