shapeVertsCopy = (Vertex[]) Vertex.rotateZVectorArray(shapeVertsCopy, testShape.getCenterPointLocal(), -gradAngle);
//Create a temporary polygon with the roated vertices to calc BBox
MTPolygon inverseRotatedShape = new MTPolygon(shapeVertsCopy, pa);
//Calculate a bounding rectangle from the rotated shape
BoundsZPlaneRectangle inverseRotatedBounds = new BoundsZPlaneRectangle(inverseRotatedShape);
Vector3D[] invBoundsVecs = inverseRotatedBounds.getVectorsLocal();
//Get the positions where the offsets are on the gradient vector
float bBoxWidth = invBoundsVecs[1].x - invBoundsVecs[0].x;
logger.debug("BBox width: " + bBoxWidth);
float w = bBoxWidth/*/100*/;