new BVHStrategy()
A BVH Strategy is used to sort and divide objects according to a
set of rules.
- Source:
Methods
-
solve(objects) → {Object}
-
Applies the strategy to the a set of objects.
Parameters:
Name Type Description objects
!Array.<Grape2D.Object2D> List of objects to separate. - Source:
Returns:
An object with left and right properties, each property is an array, that contains Grape2D.Object2D or are empty.- Type
- Object