#10336: Cannot plot non-strictly convex cones
----------------------------------+-----------------------------------------
Reporter: vbraun | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: algebraic geometry | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------------+-----------------------------------------
Plotting cones relies on the cone's face lattice:
{{{
sage: halfspace = Cone([(1,0,0), (0,1,0), (-1,-1,0), (0,0,1)])
sage: halfspace.plot()
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call
last)
/home/vbraun/opt/sage-4.6/devel/sage-main/<ipython console> in <module>()
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/geometry/cone.pyc in plot(self, **options)
2623 if self.dim() >= 2:
2624 # Modify wall labels to match the ambient cone or fan
too.
-> 2625 walls = self.faces(2)
2626 try:
2627 ambient_walls = self.ambient().faces(2)
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/geometry/cone.pyc in faces(self, dim, codim)
2015 if "_faces" not in self.__dict__:
2016 self._faces = tuple(self._sort_faces(e.element for e
in level)
-> 2017 for level in
self.face_lattice().level_sets())
2018 # To avoid duplication and ensure order consistency
2019 if self.dim() > 0:
/home/vbraun/Sage/sage/local/lib/python2.6/site-
packages/sage/geometry/cone.pyc in face_lattice(self)
1854 # We need to compute face lattice on our own
1855 if not self.is_strictly_convex():
-> 1856 raise NotImplementedError("face lattice is
currently "
1857 "implemented only for strictly
convex cones!")
1858 def ConeFace(rays, facets):
NotImplementedError: face lattice is currently implemented only for
strictly convex cones!
}}}
Is there any reason for why we can't compute the face lattice of a non-
strictly convex cone? If there is, we might want to still plot something
reasonable in that case...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10336>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.