Closed mkoeppe closed 2 years ago
Author: Matthias Koeppe
Description changed:
---
+++
@@ -1,2 +1,4 @@
This new method creates a geometric polyhedral complex corresponding to the triangulation.
+Also we change the constructor of `PolyhedralComplex` so that it accepts a `Triangulation` as input.
+
Description changed:
---
+++
@@ -1,4 +1,2 @@
This new method creates a geometric polyhedral complex corresponding to the triangulation.
-Also we change the constructor of `PolyhedralComplex` so that it accepts a `Triangulation` as input.
-
Branch pushed to git repo; I updated commit sha1. New commits:
fff67c3 | Triangulation.boundary_{simplicial,polyhedral}_complex: New |
Description changed:
---
+++
@@ -1,2 +1,4 @@
-This new method creates a geometric polyhedral complex corresponding to the triangulation.
+`polyhedral_complex` creates a geometric polyhedral complex corresponding to the triangulation.
+`boundary_simplicial_complex` and `boundary_polyhedral_complex` are combinations of `boundary` (which gives a set of simplices) with `simplicial_complex` (which gives an abstract simplicial complex) and `polyhedral_complex`, respectively
+
The docstring for boundary_simplicial_complex
ends with
The boundary of every convex set is a topological sphere::
Thanks! I'll add the missing example
Branch pushed to git repo; I updated commit sha1. New commits:
0a09ca4 | src/sage/geometry/triangulation/element.py: Add missing example |
Would it be possible to illustrate that boundary_simplicial_complex is a sub complex of simplicial_complex?
Branch pushed to git repo; I updated commit sha1. New commits:
0845f03 | Triangulation.boundary_simplicial_complex: Expand example |
Branch pushed to git repo; I updated commit sha1. New commits:
80165ba | Triangulation.boundary_polyhedral_complex: Expand example |
Replying to @yuan-zhou:
Would it be possible to illustrate that boundary_simplicial_complex is a sub complex of simplicial_complex?
Good idea, done
It looks like abstract simplicial complexes don't have an is_subcomplex
method. Should we add one?
Cubical complexes also define is_subcomplex
.
Defining is_subcomplex
for abstract simplicial complexes is probably beyond the scope of the current ticket. I think that polyhedral complex has the method is_subcomplex
, so it can at least be added to the doctests of polyhedral_complex
or boundary_polyhedral_complex
.
Replying to @mkoeppe:
It looks like abstract simplicial complexes don't have an
is_subcomplex
method. Should we add one?
Yes, I'm already using it
Replying to @yuan-zhou:
Defining
is_subcomplex
for abstract simplicial complexes is probably beyond the scope of the current ticket.
OK, I've opened #34294 for it
In the docstring of Triangulation.__init__
, it says "In the second case, the point indices of the maximal simplices of the triangulation", which needs rephrasing.
It would be nice to point out that the polyhedral complex and boundary polyhedral complex are actually simplicial complexes. The difference is that they are not abstract.
Never mind. Replying to @yuan-zhou:
It would be nice to point out that the polyhedral complex and boundary polyhedral complex are actually simplicial complexes. The difference is that they are not abstract.
Does it make sense to compare Triangulation.boundary_polyhedral_complex
and PolyhedralComplex.boundary_subcomplex
?
Replying to @yuan-zhou:
Does it make sense to compare
Triangulation.boundary_polyhedral_complex
andPolyhedralComplex.boundary_subcomplex
?
I decided to stay away from that for this ticket because there's a bit of confusion regarding "boundary" vs "relative boundary"
The code on this ticket (other than comment:21) looks good to me.
Branch pushed to git repo; I updated commit sha1. New commits:
65134f1 | src/sage/geometry/triangulation/element.py: Docstring improvements |
I've rephrased it, please take a look
Reviewer: Yuan Zhou, John Palmieri
Thanks!
Changed branch from u/mkoeppe/triangulation_polyhedral_complex to 65134f1
polyhedral_complex
creates a geometric polyhedral complex corresponding to the triangulation.boundary_simplicial_complex
andboundary_polyhedral_complex
are combinations ofboundary
(which gives a set of simplices) withsimplicial_complex
(which gives an abstract simplicial complex) andpolyhedral_complex
, respectivelyCC: @yuan-zhou @jhpalmieri
Component: geometry
Author: Matthias Koeppe
Branch/Commit:
65134f1
Reviewer: Yuan Zhou, John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/33586