@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); for (final Edge startEdge : shapeStartEdges) { Edge currentEdge = startEdge; while (true) { bounds.addPoint(currentEdge.startPoint); bounds.addPlane(this.planetModel, currentEdge.plane, currentEdge.startPlane, currentEdge.endPlane); currentEdge = currentEdge.next; if (currentEdge == startEdge) { break; } } } }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.addPlane(planetModel, plane1, plane2, plane4) .addPlane(planetModel, plane2, plane3, plane1) .addPlane(planetModel, plane3, plane4, plane2) .addPlane(planetModel, plane4, plane1, plane3) .addPoint(point1).addPoint(point2).addPoint(point3).addPoint(point4); }