synchronized(lockObj) {
if (centroid == null) {
centroid = new Point3d[geometryArray.length];
for (int j = 0; j < centroid.length; j++) {
centroid[j] = new Point3d();
source.localBounds.getCenter(centroid[j]);
source.getCurrentLocalToVworld(0).transform(centroid[j]);
}
}
else {
for (int j = 0; j < centroid.length; j++) {
source.localBounds.getCenter(centroid[j]);
source.getCurrentLocalToVworld(0).transform(centroid[j]);
}
}
}
return;
}
// End of new for 1.3.2
synchronized(lockObj) {
for (int j = 0; j < geometryArray.length; j++) {
if (geometryArray[j] == null)
continue;
synchronized(geometryArray[j].centroid) {
if (geometryArray[j].recompCentroid) {
geometryArray[j].computeCentroid();
geometryArray[j].recompCentroid = false;
}
}
}
if (centroidIsDirty) {
if (centroid == null) {
centroid = new Point3d[geometryArray.length];
for (int j = 0; j < centroid.length; j++) {
if (geometryArray[j] == null)
continue;
centroid[j] = new Point3d(geometryArray[j].centroid);
source.getCurrentLocalToVworld(0).transform(centroid[j]);
}
}
else {
for (int j = 0; j < centroid.length; j++) {