612613614615616617618619620621622
Rectangle4i rect = null; for (QBQuad q : plane) { if (rect == null) { rect = q.flatten(); } else { rect.include(q.flatten()); } } QBImage img = new QBImage(); img.data = new int[rect.w][rect.h];