Ported MonotonePiecesTriangulationPanel to painting layer