extractPoints method

Map<String, dynamic> extractPoints(
  1. dynamic divisions
)

divisions -- The fineness of the result.

Call getPoints on the shape and the holes array, and return an object of the form:

where shape and holes are arrays of Vector2.

Implementation

Map<String, dynamic> extractPoints(divisions) {
  return {
    "shape": getPoints(divisions),
    "holes": getPointsHoles(divisions)
  };
}