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

Commit

Permalink
Triangulation.boundary_simplicial_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 0a09ca4 commit 0845f03
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/sage/geometry/triangulation/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,15 +686,22 @@ def boundary_simplicial_complex(self):
EXAMPLES::
sage: p = polytopes.cuboctahedron()
sage: sc = p.triangulate(engine='internal').boundary_simplicial_complex()
sage: sc
sage: triangulation = p.triangulate(engine='internal')
sage: bd_sc = triangulation.boundary_simplicial_complex()
sage: bd_sc
Simplicial complex with 12 vertices and 20 facets
The boundary of every convex set is a topological sphere, so it has
spherical homology::
sage: sc.homology()
sage: bd_sc.homology()
{0: 0, 1: 0, 2: Z}
It is a subcomplex of ``self`` as a :meth:`simplicial_complex`::
sage: sc = triangulation.simplicial_complex()
sage: all(f in sc for f in bd_sc.maximal_faces())
True
"""
from sage.topology.simplicial_complex import SimplicialComplex
return SimplicialComplex(self.boundary(), maximality_check=False)
Expand Down

0 comments on commit 0845f03

Please sign in to comment.