#5655: [with patch, needs review] Improved enumeration of vertices and
0-dimensional faces
-------------------------+--------------------------------------------------
Reporter: novoselt | Owner: mhampton
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: geometry | Keywords:
-------------------------+--------------------------------------------------
Current behaviour of 0-dimensional faces of LatticePolytope's is a bit
confusing:
{{{
sage: ReflexivePolytope(2,0).faces(dim=0)
[[2], [1], [0]]
}}}
This means that the 0-th 0-dimensional face of this polytope is spanned by
the 2-nd vertex. (The reason behind this is that poly.x orders faces
according to facets containing them.)
The patch adds a line of code sorting the 0-dimensional faces so that the
0-th 0-dimensional face is spanned by the 0-th vertex.
While this is quite trivial, I found the current enumeration very
confusing when it is necessary to keep track of face correspondenses for
several related polytopes. (In fact, I was unable to keep track of it
correctly and instead made this change as an easier solution.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5655>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---