Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 15, 2021
1 parent 0538280 commit f2bdbf2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10441,6 +10441,16 @@ def affine_hull_manifold(self, name=None, latex_name=None, start_index=0, ambien
E^3 --> A
(x, y, z) |--> (x0, x1) = (-x + y + 1, -1/2*x - 1/2*y + z + 1/2)
Arrangement of affine hull of facets::
sage: D = polytopes.dodecahedron()
sage: E3 = EuclideanSpace(3)
sage: submanifolds = [
....: F.as_polyhedron().affine_hull_manifold(name=f'F{i}', orthogonal=True, ambient_space=E3)
....: for i, F in enumerate(D.facets())]
sage: sum(FM.plot({}, srange(-2, 2, 0.1), srange(-2, 2, 0.1), opacity=0.2)
....: for FM in submanifolds) # not tested
"""
if ambient_space is None:
from sage.manifolds.differentiable.examples.euclidean import EuclideanSpace
Expand Down

0 comments on commit f2bdbf2

Please sign in to comment.