-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Compute the centroid of a polytope #29382
Comments
New commits:
|
Commit: |
Branch: public/29382 |
comment:2
typo in the sentence "the induces Lebesgue measure" |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
Ok. |
comment:5
You should add a comment to the asksage question and point to this ticket. |
comment:6
Ok, did that. |
comment:7
Thanks for doing this. One small comment (and I apologize if this is noise) is that the code seems to give an error on 0-dimensional polytopes (i.e., a single vertex), even though they have an obvious centroid. (One reason for the error seems to be that sage cannot triangulate them. Should this be considered a bug?)
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
I opened some tickets because of small cases. They should work. In case of empty polyhedron, there should be a reasonable error as well. |
comment:10
Batch modifying tickets that will likely not be ready for 9.1, based on a review of the ticket title, branch/review status, and last modification date. |
comment:11
|
comment:12
The following code should appear before the INPUT/OUTPUT I think + If the polyhedron is not compact, a ``NotImplementedError`` is
+ raised. Otherwise, it looks good. It might benefit from a rebase just to have clean bots go through it. |
Changed branch from public/29382 to public/29382-reb |
Last 10 new commits:
|
comment:15
Did you squash commits? |
comment:16
Just ignore the commit messages in comment 13. I didn't use develop as a base. I thought it was clear from the commit messages (I based the branch on #28873, which is of course not needed). |
Reviewer: Laith Rastanawi, Jean-Philippe Labbé |
comment:17
LGTM! |
Changed branch from public/29382-reb to |
This ticket implements a method to compute the center of the mass of a polytope.
It is motivated by
https://ask.sagemath.org/question/8092/compute-the-centroid-of-a-polytope/
CC: @jplab @LaisRast @vbraun
Component: geometry
Keywords: polytopes, centroid
Author: Volker Braun, Jonathan Kliem
Branch/Commit:
4a24902
Reviewer: Laith Rastanawi, Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/29382
The text was updated successfully, but these errors were encountered: