-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Implement stacking onto a face of a polyhedron #24847
Comments
comment:1
Here's a first working version. I hesitated between different approaches. This is not the most flexible implementation, but at least a solid enough implementation. New commits:
|
Dependencies: #22572 |
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch: u/jipilab/24847 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Jean-Philippe Labbé |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/jipilab/24847 to u/moritz/24847 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
That's a nice addition. One question: Should we give the user more control over the base ring of the resulting stacked polytope? At the moment it quietly changes base ring:
Also, in the dual method of face-truncation, there is an option |
comment:8
Replying to @mo271:
Thanks! :)
I do not think it is a good idea. The above is consistent with the
The user should be aware of the type of inputs that are given, and the constructed object is somehow expected to be in the fraction field of the ring. The base_ring of I agree that it would be nice to make this step for the user, but it is a nightmare to implement in a uniform stable way... :-/
I thought about it, but it leads to a lot of case analysis. At least, I did not find a simple way to do this. it seems to me that the dual equivalent has more "accessible" freedom than that one. Although I may be wrong. |
comment:9
ok, I agree with your reasoning above. One more thing: The stacking seems to work nicely for unbounded polyhedra if you stack on bounded faces of them:
Could you add this as an example? What is the desired behavior when stacking on unbounded faces of unbounded polyhedra? |
Reviewer: Moritz Firsching |
comment:11
Could you retrieve the first
Sure!
If one takes "stacking" as adding a vertex "just outside" a face as a definition, then it is not very difficult to extend it to unbounded faces using |
New commits:
|
Changed branch from u/moritz/24847 to public/stackpoly |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
This comment has been minimized.
This comment has been minimized.
comment:14
I made the function a bit more robust: checking if the @mo271: I think that the new examples show the possibilities properly. Needs review again! |
comment:15
branch does not merge |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Now merges cleanly. In the ticket, I also remove two old deprecation warnings... |
Changed reviewer from Moritz Firsching to Moritz Firsching, Frédéric Chapoton |
comment:20
ok, let it be |
comment:21
Thanks for the review! |
comment:22
update milestone 8.3 -> 8.4 |
Changed branch from public/stackpoly to |
From https://www.csun.edu/~ctoth/Handbook/chap15.pdf:
Stacking onto a face of a polytope adds a vertex slightly outside of the polytope positioned over a point in the interior of the face.
This is the "polar" of the truncation operation.
Depends on #22572
CC: @videlec @mo271 @mkoeppe @fchapoton
Component: geometry
Keywords: days93, polytope
Author: Jean-Philippe Labbé
Branch/Commit:
e5838ed
Reviewer: Moritz Firsching, Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/24847
The text was updated successfully, but these errors were encountered: