Project

General

Profile

« Previous | Next » 

Revision 06ed13b5

Added by Leszek Koltunski over 2 years ago

New API: set components centers of all components all in one go.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
1273 1273
       }
1274 1274
     }
1275 1275

  
1276
///////////////////////////////////////////////////////////////////////////////////////////////////
1277
/**
1278
 * Set the centers of a all components to the same value in one go.
1279
 */
1280
   public void setAllComponentCenters(float centerX, float centerY, float centerZ)
1281
     {
1282
     if( mJobNode[0]==null )
1283
       {
1284
       setComponentCenterNow(-1, centerX, centerY, centerZ);
1285
       }
1286
     else
1287
       {
1288
       mJobNode[0] = DeferredJobs.componentCenter(this,-1,centerX, centerY, centerZ);
1289
       }
1290
     }
1291

  
1276 1292
///////////////////////////////////////////////////////////////////////////////////////////////////
1277 1293
/**
1278 1294
 * Adds an empty (no vertices) texture component to the end of the text component list.

Also available in: Unified diff