Triangulation of Lattice Polytope
Hello! SAGE seems to depend on order when dealing with triangulations and shifts it in some way.
For example, for the identical configurations: (just with the origin (0,0) in a different place)
pt1 = PointConfiguration([(1, 0), (0, 1), (0, -1), (-1, 0), (1, 1), (0, 0)]);
pt2 = PointConfiguration([(0, 0), (1, 0), (0, 1), (0, -1), (-1, 0), (1, 1)]);
triang = pt1.triangulate();
triang.plot(axes=True)
triang = pt2.triangulate();
triang.plot(axes=True)
the second is clearly correct but the first configuration is left-shifted by (-1,0) for some reason.
Any ideas?
many thanks!!
looks like a bug, indeed
Problem located here:
Maybe this is not a bug after all. We use some new coordinates (method reduced_affine instead of method affine) to plot the point configuration. This is potentially useful for 2d configs in 3d.