getBounds method

  1. @override
Aabb3 getBounds()
inherited

Gets bounds of a model (min and max coordinates).

Implementation

@override
Aabb3 getBounds() {
  if (figures.isEmpty) return Aabb3();
  final result = Aabb3.copy(figures.first.getBounds());
  for (var e in figures) {
    result.hull(e.getBounds());
  }
  return result;
}