Ported Slic3r::Surface to XS