-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Add a face truncation method to Polyhedron class #18128
Comments
Branch: u/jipilab/ge_truncation |
This comment has been minimized.
This comment has been minimized.
Commit: |
comment:4
All test passed on sage 6.6.b5. The tests do not take more than 0.1 sec more than before on my old laptop. |
Author: Jean-Philippe Labbé |
comment:6
Conflicts, can you merge in the latest beta? |
comment:7
Sure, will do. |
comment:9
I don't really know why there are two commits for the merge. Perhaps I typed something more by accident(!?) |
comment:10
You checked in a conflict marker (the thing starting with |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
two failing doctests (should be easy to fix) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:34
I have difficulty decoding what is the test which fails on the bot. |
comment:35
The patchbot librae currently misbehaves. Look at the other bots instead. |
comment:36
Okay, so the other bots seems to give a green flag... Needs proper review again then! |
comment:37
does not apply.. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
This is a rebased version on 7.6.b2, solved the conflicts. All test passed on the three modified files. Let's see what the bot says. |
Changed reviewer from Vincent Delecroix to Vincent Delecroix, Frédéric Chapoton |
comment:40
Salut, two remarks, otherwise this is good to go:
there is no need for the [ ] just inside sum()
inside set() Once done and checked, you can set a positive review on my behalf. |
comment:41
Salut! Replying to @fchapoton:
Just for my information, where is this feature coming from? python3, sage?
Great! Thanks a lot! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:44
This is just python. One can feed them an iterator, this avoids to build the list twice. |
This comment has been minimized.
This comment has been minimized.
comment:46
Good to know! Thanks! |
Changed branch from u/jipilab/ge_truncation to |
Currently, it is possible to do a truncation of a polytope via the method ".edge_truncation()".
See http://en.wikipedia.org/wiki/Truncation_%28geometry%29
I currently need the notion of edge-truncation, which is achieve by cutting the polytope along a "well-chosen" hyperplane whose normal vector lies in the normal cone of the edge. This edge truncation uses only one edge. Not all edges at once.
Further, one can define a face truncation similarly with the same code. I am implementing a method called ".face_truncation(face, normal_coefficient, cut_frac)" taking a face of the polytope, and two optional parameters to vary the angle of the cut.
This new method makes the old method ill-named. It should be renamed simply "truncation" or "complete_vertex_truncation".
While at it, I corrected a few writing conventions in the file.
CC: @vbraun @sagetrac-mhampton @mo271
Component: geometry
Keywords: face truncation, polytope
Author: Jean-Philippe Labbé
Branch/Commit:
55f9cf6
Reviewer: Vincent Delecroix, Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/18128
The text was updated successfully, but these errors were encountered: