Closed kliem closed 4 years ago
Description changed:
---
+++
@@ -8,6 +8,7 @@
False
sage: V = P.Vrepresentation()
sage: H = P.Hrepresentation()
+sage: parent = P.parent()
sage: dic = {True: 0, False: 0}
sage: for V1 in Permutations(V):
....: P1 = parent._element_constructor_(
Branch: public/29125
New commits:
3f9cc75 | check sign of circumcenter using all vertices of simplex |
Reviewer: Jean-Philippe Labbé
Looks good to me. Thanks for fixing this error!
Again, the pyflakes is fixed in another ticket.
Changed branch from public/29125 to 3f9cc75
Currently the inscription test for polyhedra depends on the order of vertices:
The algorithm constructs a sphere around
dim + 1
vertices in general position. The circumcenter is computed up to sign. Then, one vertex is taken to determine, which sign to choose. However, up todim
vertices might lie on the intersection of both spheres.We fix this by checking distance from the circumcenter for all vertices of that simplex.
CC: @jplab @LaisRast
Component: geometry
Keywords: polytopes, is inscribed
Author: Jonathan Kliem
Branch/Commit:
3f9cc75
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/29125