If we define a polyhedron as the intersection of half planes and then
ask for the list of vertices and a plot, there is weird behavior.

p=Polyhedron(ieqs = [[2, 1, -1]])
print p.Vrepresentation()
p.render_solid(aspect_ratio=1).show()

Here there is only one half plane (2+x-y>=0), and sage gives:

[A line in the direction (1, 1), A vertex at (-2, 0), A ray in the
direction (1, 0)]

and plots what looks like a strip, with one boundary component
correct. The description above is correct, but the plot strongly
suggests a strip and not a half plane.

In the following variant:

q=Polyhedron(ieqs = [[2/3, 1/3, -1/3*sqrt(3)]])

it gives an error:

AttributeError: 'Polyhedron' object has no attribute '_ambient_dim'

This happens even if there are more half planes so that the
intersection is compact.

Mladen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to