from numpy import array
from circpacker.basegeom import Polygon
from circpacker.packer import CircPacking as cp
coordinates = array([[1, 1], [2, 5], [4.5, 6], [6, 4], [8, 3],
                     [7, 1], [4.5, 1], [4, 0]])
polygon = Polygon(coordinates)
boundCoords = polygon.boundCoords
pckCircles = cp(boundCoords, depth=8)
pckCircles.logDiagram()