Replace TriangleMesh with the XS port