Triangulating planar figures