Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triangulation.polyhedral_complex, boundary_simplicial_complex, boundary_polyhedral_complex #33586

Closed
mkoeppe opened this issue Mar 28, 2022 · 36 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Mar 28, 2022

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

CC: @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

@mkoeppe mkoeppe added this to the sage-9.6 milestone Mar 28, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 29, 2022

Author: Matthias Koeppe

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 Apr 7, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

New commits:

65b7cfeTriangulation.polyhedral_complex: New

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

Commit: 65b7cfe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

fff67c3Triangulation.boundary_{simplicial,polyhedral}_complex: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Changed commit from 65b7cfe to fff67c3

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title Triangulation.polyhedral_complex Triangulation.polyhedral_complex, boundary_simplicial_complex, boundary_polyhedral_complex Aug 6, 2022
@jhpalmieri
Copy link
Member

comment:8

The docstring for boundary_simplicial_complex ends with

The boundary of every convex set is a topological sphere::

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:9

Thanks! I'll add the missing example

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Changed commit from fff67c3 to 0a09ca4

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

0a09ca4src/sage/geometry/triangulation/element.py: Add missing example

@yuan-zhou
Copy link

comment:12

Would it be possible to illustrate that boundary_simplicial_complex is a sub complex of simplicial_complex?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

0845f03Triangulation.boundary_simplicial_complex: Expand example

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Changed commit from 0a09ca4 to 0845f03

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

80165baTriangulation.boundary_polyhedral_complex: Expand example

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Changed commit from 0845f03 to 80165ba

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:15

Replying to @yuan-zhou:

Would it be possible to illustrate that boundary_simplicial_complex is a sub complex of simplicial_complex?

Good idea, done

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:16

It looks like abstract simplicial complexes don't have an is_subcomplex method. Should we add one?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:17

Cubical complexes also define is_subcomplex.

@yuan-zhou
Copy link

comment:18

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?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:19

Yes, I'm already using it

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:20

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

@yuan-zhou
Copy link

comment:21

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.

@yuan-zhou
Copy link

comment:22

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.

@yuan-zhou
Copy link

comment:23

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.

@yuan-zhou
Copy link

comment:24

Does it make sense to compare Triangulation.boundary_polyhedral_complex and PolyhedralComplex.boundary_subcomplex?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:25

Replying to @yuan-zhou:

Does it make sense to compare Triangulation.boundary_polyhedral_complex and PolyhedralComplex.boundary_subcomplex?

I decided to stay away from that for this ticket because there's a bit of confusion regarding "boundary" vs "relative boundary"

@yuan-zhou
Copy link

comment:26

The code on this ticket (other than comment:21) looks good to me.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

65134f1src/sage/geometry/triangulation/element.py: Docstring improvements

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 6, 2022

Changed commit from 80165ba to 65134f1

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:28

I've rephrased it, please take a look

@yuan-zhou
Copy link

Reviewer: Yuan Zhou, John Palmieri

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 6, 2022

comment:30

Thanks!

@vbraun
Copy link
Member

vbraun commented Aug 29, 2022

Changed branch from u/mkoeppe/triangulation_polyhedral_complex to 65134f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants