Skip to content

Wrong f-vector for unbounded polyhedra #26922

@kliem

Description

@kliem

#28625 fixed the f_vector in the case of unpointed polyhedra/polyhedra with lines.

We add doctests showing that #28625 fixed a bug in f_vector.

Before:

sage: Polyhedron(ieqs=[[1,-1,0],[1,1,0]]).f_vector()
(1, 2, 1)

But this polyhedron does not have zero-dimensional faces, and #28625 has correctly changed that:

sage: Polyhedron(ieqs=[[1,-1,0],[1,1,0]]).f_vector()
(1, 0, 2, 1)

Also we add documentation, specifically warning users that the methods

  • vertices,
  • vertices_list,
  • vertices_generator
  • vertices_matrix,
  • n_vertices,
    treat vertices of the Vrepresentation and not vertices of the polyhedron in the unpointed case.

Depends on #28625

CC: @jplab @mo271

Component: geometry

Author: Jonathan Kliem

Branch/Commit: 1c5378c

Reviewer: Jean-Philippe Labbé

Issue created by migration from https://trac.sagemath.org/ticket/26922

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions