Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Triangulation.boundary_polyhedral_complex: Expand example
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 6, 2022
1 parent 0845f03 commit 80165ba
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sage/geometry/triangulation/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,9 @@ def boundary_polyhedral_complex(self, **kwds):
sage: pc = PointConfiguration(P.vertices())
sage: T = pc.placing_triangulation(); T
(<0,1,2,7>, <0,1,5,7>, <0,2,3,7>, <0,3,4,7>, <0,4,5,7>, <1,5,6,7>)
sage: C = T.boundary_polyhedral_complex(); C
sage: bd_C = T.boundary_polyhedral_complex(); bd_C
Polyhedral complex with 12 maximal cells
sage: [P.vertices_list() for P in C.maximal_cells_sorted()]
sage: [P.vertices_list() for P in bd_C.maximal_cells_sorted()]
[[[-1, -1, -1], [-1, -1, 1], [-1, 1, 1]],
[[-1, -1, -1], [-1, -1, 1], [1, -1, -1]],
[[-1, -1, -1], [-1, 1, -1], [-1, 1, 1]],
Expand All @@ -808,6 +808,12 @@ def boundary_polyhedral_complex(self, **kwds):
[[-1, 1, 1], [1, 1, -1], [1, 1, 1]],
[[1, -1, -1], [1, -1, 1], [1, 1, 1]],
[[1, -1, -1], [1, 1, -1], [1, 1, 1]]]
It is a subcomplex of ``self`` as a :meth:`polyhedral_complex`::
sage: C = T.polyhedral_complex()
sage: bd_C.is_subcomplex(C)
True
"""
from sage.geometry.polyhedral_complex import PolyhedralComplex
from sage.geometry.polyhedron.constructor import Polyhedron
Expand Down

0 comments on commit 80165ba

Please sign in to comment.