* Gets the bounding box of the Gml (including all strokes);
* @return AABB
*/
public AABB getBoundingBox() {
PointCloud pointCloud = new PointCloud();
ArrayList<Vec3D> list = new ArrayList<Vec3D>();
// TODO choose what to return (0 or center) when there is no stroke
for (GmlStroke stroke : getStrokes()) {
AABB bounds = stroke.getBoundingBox();
list.add(bounds.getMin());
list.add(bounds.getMax());
}
pointCloud.addAll(list);
return pointCloud.getBoundingBox();
}