addContour function

dynamic addContour(
  1. dynamic vertices,
  2. dynamic contour
)

Implementation

addContour(vertices, contour) {
  for (var i = 0; i < contour.length; i++) {
    vertices.add(contour[i].x);
    vertices.add(contour[i].y);
  }
}