/** * Returns the bounding box of the region that this arc represents. * * @return the bounding box */ public float[][] getBBox() { float[][] bbox = new float[2][3]; bbox[0][0] = mt.fragments[lowestPatch].bbox[0][0]; bbox[0][1] = mt.fragments[lowestPatch].bbox[0][1]; bbox[0][2] = mt.fragments[lowestPatch].bbox[0][2]; bbox[1][0] = mt.fragments[lowestPatch].bbox[1][0]; bbox[1][1] = mt.fragments[lowestPatch].bbox[1][1]; bbox[1][2] = mt.fragments[lowestPatch].bbox[1][2]; for ( int patchId = lowestPatch + 1; patchId <= highestPatch; patchId++ ) { enlargeBBox( bbox, mt.fragments[patchId].bbox ); } return bbox; }