regina 7.4.1__cp314-cp314-macosx_10_13_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. regina/.dylibs/libgmp.10.dylib +0 -0
  2. regina/.dylibs/libgmpxx.4.dylib +0 -0
  3. regina/__init__.py +192 -0
  4. regina/engine.cpython-314-darwin.so +0 -0
  5. regina/plainCompleter.py +221 -0
  6. regina/pyCensus/__init__.py +14 -0
  7. regina/pyCensus/christy-knots-links.tdb +0 -0
  8. regina/pyCensus/closed-hyp-census-full.tdb +0 -0
  9. regina/pyCensus/closed-nor-census-11.tdb +0 -0
  10. regina/pyCensus/closed-or-census-11.tdb +0 -0
  11. regina/pyCensus/cusped-hyp-nor-census-9.tdb +0 -0
  12. regina/pyCensus/cusped-hyp-or-census-9.tdb +0 -0
  13. regina/sageRegina/__init__.py +2 -0
  14. regina/sageRegina/config.py +9 -0
  15. regina/sageRegina/test.py +131 -0
  16. regina/sageRegina/testsuite/CMakeLists.txt +64 -0
  17. regina/sageRegina/testsuite/O2_1.rga +15 -0
  18. regina/sageRegina/testsuite/O2_1.tri +28 -0
  19. regina/sageRegina/testsuite/README.txt +21 -0
  20. regina/sageRegina/testsuite/alltypes-exc.out +698 -0
  21. regina/sageRegina/testsuite/alltypes-exc.test +92 -0
  22. regina/sageRegina/testsuite/alltypes-noexc.out +698 -0
  23. regina/sageRegina/testsuite/alltypes-noexc.test +85 -0
  24. regina/sageRegina/testsuite/alltypes.out +698 -0
  25. regina/sageRegina/testsuite/alltypes.test +85 -0
  26. regina/sageRegina/testsuite/angles.out +102 -0
  27. regina/sageRegina/testsuite/angles.test +70 -0
  28. regina/sageRegina/testsuite/arrow.out +86 -0
  29. regina/sageRegina/testsuite/arrow.test +224 -0
  30. regina/sageRegina/testsuite/base64.out +2 -0
  31. regina/sageRegina/testsuite/base64.test +37 -0
  32. regina/sageRegina/testsuite/basic_callback.out +124 -0
  33. regina/sageRegina/testsuite/basic_sub.out +7 -0
  34. regina/sageRegina/testsuite/binom.out +14 -0
  35. regina/sageRegina/testsuite/binom.test +69 -0
  36. regina/sageRegina/testsuite/bool.out +6 -0
  37. regina/sageRegina/testsuite/bool.test +62 -0
  38. regina/sageRegina/testsuite/bytes.out +17 -0
  39. regina/sageRegina/testsuite/bytes.test +76 -0
  40. regina/sageRegina/testsuite/callbacks.out +515 -0
  41. regina/sageRegina/testsuite/callbacks.test +279 -0
  42. regina/sageRegina/testsuite/census.out +120 -0
  43. regina/sageRegina/testsuite/census.test +156 -0
  44. regina/sageRegina/testsuite/clone.out +18 -0
  45. regina/sageRegina/testsuite/clone.test +99 -0
  46. regina/sageRegina/testsuite/comparison.out +41 -0
  47. regina/sageRegina/testsuite/comparison.test +47 -0
  48. regina/sageRegina/testsuite/construction.out +120 -0
  49. regina/sageRegina/testsuite/construction.test +63 -0
  50. regina/sageRegina/testsuite/constructors.out +14 -0
  51. regina/sageRegina/testsuite/constructors.test +95 -0
  52. regina/sageRegina/testsuite/cube.orb +87 -0
  53. regina/sageRegina/testsuite/discs.out +3 -0
  54. regina/sageRegina/testsuite/discs.test +38 -0
  55. regina/sageRegina/testsuite/docstrings.filter +22 -0
  56. regina/sageRegina/testsuite/docstrings.out +802 -0
  57. regina/sageRegina/testsuite/docstrings.out.v2 +799 -0
  58. regina/sageRegina/testsuite/docstrings.test +55 -0
  59. regina/sageRegina/testsuite/dodec.orb +309 -0
  60. regina/sageRegina/testsuite/embeddings.out +23 -0
  61. regina/sageRegina/testsuite/embeddings.test +87 -0
  62. regina/sageRegina/testsuite/enumerate.out +62 -0
  63. regina/sageRegina/testsuite/enumerate.test +80 -0
  64. regina/sageRegina/testsuite/equality.out +112 -0
  65. regina/sageRegina/testsuite/equality.test +308 -0
  66. regina/sageRegina/testsuite/euler.out +15 -0
  67. regina/sageRegina/testsuite/euler.test +93 -0
  68. regina/sageRegina/testsuite/exception.out +7 -0
  69. regina/sageRegina/testsuite/exception.test +98 -0
  70. regina/sageRegina/testsuite/facenumbering.out +546 -0
  71. regina/sageRegina/testsuite/facenumbering.test +72 -0
  72. regina/sageRegina/testsuite/faces.out +40 -0
  73. regina/sageRegina/testsuite/faces.test +70 -0
  74. regina/sageRegina/testsuite/file.out +1229 -0
  75. regina/sageRegina/testsuite/file.test +68 -0
  76. regina/sageRegina/testsuite/file1.rga +0 -0
  77. regina/sageRegina/testsuite/file2.rga +0 -0
  78. regina/sageRegina/testsuite/file3.rga +119 -0
  79. regina/sageRegina/testsuite/flags.out +38 -0
  80. regina/sageRegina/testsuite/flags.out.v2 +38 -0
  81. regina/sageRegina/testsuite/flags.test +81 -0
  82. regina/sageRegina/testsuite/flype.out +37 -0
  83. regina/sageRegina/testsuite/flype.test +48 -0
  84. regina/sageRegina/testsuite/generic.out +116 -0
  85. regina/sageRegina/testsuite/generic.test +74 -0
  86. regina/sageRegina/testsuite/groups.out +70 -0
  87. regina/sageRegina/testsuite/groups.test +115 -0
  88. regina/sageRegina/testsuite/hash.out +66 -0
  89. regina/sageRegina/testsuite/hash.test +84 -0
  90. regina/sageRegina/testsuite/hypersurfaces.out +681 -0
  91. regina/sageRegina/testsuite/hypersurfaces.test +89 -0
  92. regina/sageRegina/testsuite/i18n-latin1.rga +8 -0
  93. regina/sageRegina/testsuite/i18n-utf8.rga +8 -0
  94. regina/sageRegina/testsuite/i18n.out +6 -0
  95. regina/sageRegina/testsuite/i18n.test +89 -0
  96. regina/sageRegina/testsuite/id.out +2 -0
  97. regina/sageRegina/testsuite/id.test +45 -0
  98. regina/sageRegina/testsuite/index.out +2 -0
  99. regina/sageRegina/testsuite/index.test +41 -0
  100. regina/sageRegina/testsuite/integer.out +74 -0
  101. regina/sageRegina/testsuite/integer.test +54 -0
  102. regina/sageRegina/testsuite/italian.orb +90 -0
  103. regina/sageRegina/testsuite/iterators.out +118 -0
  104. regina/sageRegina/testsuite/iterators.test +126 -0
  105. regina/sageRegina/testsuite/knotted-Y.orb +47 -0
  106. regina/sageRegina/testsuite/listener.out +43 -0
  107. regina/sageRegina/testsuite/listener.test +99 -0
  108. regina/sageRegina/testsuite/listview.out +416 -0
  109. regina/sageRegina/testsuite/listview.test +251 -0
  110. regina/sageRegina/testsuite/lookup.out +13 -0
  111. regina/sageRegina/testsuite/lookup.test +42 -0
  112. regina/sageRegina/testsuite/lst.out +844 -0
  113. regina/sageRegina/testsuite/lst.test +195 -0
  114. regina/sageRegina/testsuite/memory1.out +62 -0
  115. regina/sageRegina/testsuite/memory1.test +152 -0
  116. regina/sageRegina/testsuite/memory2.out +62 -0
  117. regina/sageRegina/testsuite/memory2.test +122 -0
  118. regina/sageRegina/testsuite/memory3.out +92 -0
  119. regina/sageRegina/testsuite/memory3.test +214 -0
  120. regina/sageRegina/testsuite/misc.out +7 -0
  121. regina/sageRegina/testsuite/misc.test +54 -0
  122. regina/sageRegina/testsuite/operators.out +129 -0
  123. regina/sageRegina/testsuite/operators.test +59 -0
  124. regina/sageRegina/testsuite/orb.out +441 -0
  125. regina/sageRegina/testsuite/orb.test +47 -0
  126. regina/sageRegina/testsuite/pdf.out +4 -0
  127. regina/sageRegina/testsuite/pdf.test +47 -0
  128. regina/sageRegina/testsuite/perm.out +36 -0
  129. regina/sageRegina/testsuite/perm.test +74 -0
  130. regina/sageRegina/testsuite/plantri.out +12 -0
  131. regina/sageRegina/testsuite/plantri.test +58 -0
  132. regina/sageRegina/testsuite/poincare.tri +55 -0
  133. regina/sageRegina/testsuite/presentations.out +11 -0
  134. regina/sageRegina/testsuite/presentations.test +59 -0
  135. regina/sageRegina/testsuite/refs.out +51 -0
  136. regina/sageRegina/testsuite/refs.test +126 -0
  137. regina/sageRegina/testsuite/repr.out +951 -0
  138. regina/sageRegina/testsuite/repr.out.v2 +951 -0
  139. regina/sageRegina/testsuite/repr.test +546 -0
  140. regina/sageRegina/testsuite/runbasic.in +75 -0
  141. regina/sageRegina/testsuite/safeheldtype_basic.out +17 -0
  142. regina/sageRegina/testsuite/safeheldtype_basic.test +111 -0
  143. regina/sageRegina/testsuite/safeheldtype_packet.out +58 -0
  144. regina/sageRegina/testsuite/safeheldtype_packet.test +179 -0
  145. regina/sageRegina/testsuite/sample.pdf +0 -0
  146. regina/sageRegina/testsuite/sets.out +7 -0
  147. regina/sageRegina/testsuite/sets.test +42 -0
  148. regina/sageRegina/testsuite/skeleton.out +308 -0
  149. regina/sageRegina/testsuite/skeleton.test +52 -0
  150. regina/sageRegina/testsuite/snappea.out +90 -0
  151. regina/sageRegina/testsuite/snappea.test +133 -0
  152. regina/sageRegina/testsuite/snapshot.out +15 -0
  153. regina/sageRegina/testsuite/snapshot.test +76 -0
  154. regina/sageRegina/testsuite/sort.out +78 -0
  155. regina/sageRegina/testsuite/sort.test +58 -0
  156. regina/sageRegina/testsuite/special.out +4 -0
  157. regina/sageRegina/testsuite/special.test +45 -0
  158. regina/sageRegina/testsuite/standardtri.out +12101 -0
  159. regina/sageRegina/testsuite/standardtri.test +453 -0
  160. regina/sageRegina/testsuite/surfaces.out +2133 -0
  161. regina/sageRegina/testsuite/surfaces.test +112 -0
  162. regina/sageRegina/testsuite/swapping.out +25 -0
  163. regina/sageRegina/testsuite/swapping.test +86 -0
  164. regina/sageRegina/testsuite/testall.in +174 -0
  165. regina/sageRegina/testsuite/testbasic.in +277 -0
  166. regina/sageRegina/testsuite/testcallback.in +148 -0
  167. regina/sageRegina/testsuite/testsub.in +148 -0
  168. regina/sageRegina/testsuite/theta_in_solid_torus.orb +65 -0
  169. regina/sageRegina/testsuite/tightencode.out +40 -0
  170. regina/sageRegina/testsuite/tightencode.test +106 -0
  171. regina/sageRegina/testsuite/treedecomp.out +135 -0
  172. regina/sageRegina/testsuite/treedecomp.test +64 -0
  173. regina/sageRegina/testsuite/treetraversal.out +52 -0
  174. regina/sageRegina/testsuite/treetraversal.test +188 -0
  175. regina/sageRegina/testsuite/trigeneral.out +1251 -0
  176. regina/sageRegina/testsuite/trigeneral.test +153 -0
  177. regina/sageRegina/testsuite/utf8.out +42 -0
  178. regina/sageRegina/testsuite/utf8.test +92 -0
  179. regina/sageRegina/testsuite/whitehead.tri +47 -0
  180. regina/sageRegina/version.py +5 -0
  181. regina/sageSetup.py +41 -0
  182. regina/test.py +6 -0
  183. regina-7.4.1.dist-info/METADATA +109 -0
  184. regina-7.4.1.dist-info/RECORD +186 -0
  185. regina-7.4.1.dist-info/WHEEL +6 -0
  186. regina-7.4.1.dist-info/top_level.txt +4 -0
@@ -0,0 +1,214 @@
1
+ # Regina - A Normal Surface Theory Calculator
2
+ # Python Test Suite Component
3
+ #
4
+ # Copyright (c) 2015-2025, Ben Burton
5
+ # For further details contact Ben Burton (bab@debian.org).
6
+ #
7
+ # Tests the independence and lifespans of engine-generated packets.
8
+ #
9
+ # This file is a single component of Regina's python test suite. To run
10
+ # the python test suite, move to the main python directory in the source
11
+ # tree and run "make check".
12
+ #
13
+ # This program is free software; you can redistribute it and/or
14
+ # modify it under the terms of the GNU General Public License as
15
+ # published by the Free Software Foundation; either version 2 of the
16
+ # License, or (at your option) any later version.
17
+ #
18
+ # As an exception, when this program is distributed through (i) the
19
+ # App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
20
+ # (iii) Google Play by Google Inc., then that store may impose any
21
+ # digital rights management, device limits and/or redistribution
22
+ # restrictions that are required by its terms of service.
23
+ #
24
+ # This program is distributed in the hope that it will be useful, but
25
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
26
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27
+ # General Public License for more details.
28
+ #
29
+ # You should have received a copy of the GNU General Public License
30
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
31
+
32
+ class Watcher(PacketListener):
33
+ def __init__(self, packet, label):
34
+ PacketListener.__init__(self)
35
+ packet.setLabel(label)
36
+ packet.listen(self)
37
+ def packetBeingDestroyed(self, packet):
38
+ print('Destroying: ' + packet.label())
39
+
40
+
41
+ print('Vertices of triangulation: vertices()')
42
+ print('Step 1')
43
+ t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
44
+ print('Step 2')
45
+ v = t.vertices() # v keeps t alive
46
+ print('Step 3')
47
+ t = None
48
+ print('Step 4')
49
+ v = None # destroys t
50
+ print('Step 5')
51
+
52
+ print('Vertices of triangulation: edges()')
53
+ print('Step 1')
54
+ t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
55
+ print('Step 2')
56
+ e = t.edges() # e keeps t alive
57
+ print('Step 3')
58
+ t = None
59
+ print('Step 4')
60
+ e = None # destroys t
61
+ print('Step 5')
62
+
63
+ print('Vertices of triangulation: vertex()')
64
+ print('Step 1')
65
+ t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
66
+ print('Step 2')
67
+ v = t.vertex(0) # v keeps t alive
68
+ print('Step 3')
69
+ t = None
70
+ print('Step 4')
71
+ v = None # destroys t
72
+ print('Step 5')
73
+
74
+ print('Vertices of triangulation: edge()')
75
+ print('Step 1')
76
+ t = PacketOfTriangulation5(Example5.sphere()); tw = Watcher(t, 't')
77
+ print('Step 2')
78
+ e = t.edge(0) # e keeps t alive
79
+ print('Step 3')
80
+ t = None
81
+ print('Step 4')
82
+ e = None # destroys t
83
+ print('Step 5')
84
+
85
+ print('Vertices of triangulation: faces<0>()')
86
+ print('Step 1')
87
+ t = PacketOfTriangulation5(Example5.sphere()); tw = Watcher(t, 't')
88
+ print('Step 2')
89
+ v = t.faces(0) # v keeps t alive
90
+ print('Step 3')
91
+ t = None
92
+ print('Step 4')
93
+ v = None # destroys t
94
+ print('Step 5')
95
+
96
+ print('Vertices of triangulation: faces<1>()')
97
+ print('Step 1')
98
+ t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
99
+ print('Step 2')
100
+ e = t.faces(1) # e keeps t alive
101
+ print('Step 3')
102
+ t = None
103
+ print('Step 4')
104
+ e = None # destroys t
105
+ print('Step 5')
106
+
107
+ print('Vertices of triangulation: face<0>()')
108
+ print('Step 1')
109
+ t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
110
+ print('Step 2')
111
+ v = t.face(0, 0) # v keeps t alive
112
+ print('Step 3')
113
+ t = None
114
+ print('Step 4')
115
+ v = None # destroys t
116
+ print('Step 5')
117
+
118
+ print('Vertices of triangulation: face<1>()')
119
+ print('Step 1')
120
+ t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
121
+ print('Step 2')
122
+ e = t.face(1, 0) # e keeps t alive
123
+ print('Step 3')
124
+ t = None
125
+ print('Step 4')
126
+ e = None # destroys t
127
+ print('Step 5')
128
+
129
+ print('Vertices of simplex')
130
+ print('Step 1')
131
+ t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
132
+ print('Step 2')
133
+ s = t.simplex(0) # s keeps t alive
134
+ print('Step 3')
135
+ # None of these keep t alive
136
+ f1 = s.vertex(0)
137
+ f2 = s.edge(0)
138
+ f3 = s.face(0, 0)
139
+ f4 = s.face(1, 0)
140
+ print('Step 4')
141
+ t = None
142
+ print('Step 5')
143
+ s = None # destroys t
144
+ print('Step 6')
145
+ f1 = None; f2 = None; f3 = None; f4 = None
146
+ print('Step 7')
147
+
148
+ print('Vertices of face')
149
+ print('Step 1')
150
+ t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
151
+ print('Step 2')
152
+ f = t.triangle(0) # f keeps t alive
153
+ print('Step 3')
154
+ # None of these keep t alive
155
+ f1 = f.vertex(0)
156
+ f2 = f.edge(0)
157
+ f3 = f.face(0, 0)
158
+ f4 = f.face(1, 0)
159
+ print('Step 4')
160
+ t = None
161
+ print('Step 5')
162
+ f = None # destroys t
163
+ print('Step 6')
164
+ f1 = None; f2 = None; f3 = None; f4 = None
165
+ print('Step 7')
166
+
167
+ print('Vertices of component')
168
+ print('Step 1')
169
+ t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
170
+ print('Step 2')
171
+ c = t.component(0) # c keeps t alive
172
+ print('Step 3')
173
+ # None of these keep t alive
174
+ f1 = c.vertices()
175
+ f2 = c.vertex(0)
176
+ f3 = c.edges()
177
+ f4 = c.edge(0)
178
+ f5 = c.faces(0)
179
+ f6 = c.face(0, 0)
180
+ f7 = c.faces(1)
181
+ f8 = c.face(1, 0)
182
+ print('Step 4')
183
+ t = None
184
+ print('Step 5')
185
+ c = None # destroys t
186
+ print('Step 6')
187
+ f1 = None; f2 = None; f3 = None; f4 = None
188
+ f5 = None; f6 = None; f7 = None; f8 = None
189
+ print('Step 7')
190
+
191
+ print('Vertices of boundary component')
192
+ print('Step 1')
193
+ t = PacketOfTriangulation4(Example4.ball()); tw = Watcher(t, 't')
194
+ print('Step 2')
195
+ b = t.boundaryComponent(0) # b keeps t alive
196
+ print('Step 3')
197
+ # None of these keep t alive
198
+ f1 = b.vertices()
199
+ f2 = b.vertex(0)
200
+ f3 = b.edges()
201
+ f4 = b.edge(0)
202
+ f5 = b.faces(0)
203
+ f6 = b.face(0, 0)
204
+ f7 = b.faces(1)
205
+ f8 = b.face(1, 0)
206
+ print('Step 4')
207
+ t = None
208
+ print('Step 5')
209
+ b = None # destroys t
210
+ print('Step 6')
211
+ f1 = None; f2 = None; f3 = None; f4 = None
212
+ f5 = None; f6 = None; f7 = None; f8 = None
213
+ print('Step 7')
214
+
@@ -0,0 +1,7 @@
1
+ 3
2
+ Z_5
3
+ True False False
4
+ False True True
5
+ True False False
6
+ False True True
7
+ <built-in function open>
@@ -0,0 +1,54 @@
1
+ # Regina - A Normal Surface Theory Calculator
2
+ # Python Test Suite Component
3
+ #
4
+ # Copyright (c) 2007-2025, Ben Burton
5
+ # For further details contact Ben Burton (bab@debian.org).
6
+ #
7
+ # Provides small miscellaneous tests to ensure that things are up and running.
8
+ #
9
+ # This file is a single component of Regina's python test suite. To run
10
+ # the python test suite, move to the main python directory in the source
11
+ # tree and run "make check".
12
+ #
13
+ # This program is free software; you can redistribute it and/or
14
+ # modify it under the terms of the GNU General Public License as
15
+ # published by the Free Software Foundation; either version 2 of the
16
+ # License, or (at your option) any later version.
17
+ #
18
+ # As an exception, when this program is distributed through (i) the
19
+ # App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
20
+ # (iii) Google Play by Google Inc., then that store may impose any
21
+ # digital rights management, device limits and/or redistribution
22
+ # restrictions that are required by its terms of service.
23
+ #
24
+ # This program is distributed in the hope that it will be useful, but
25
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
26
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27
+ # General Public License for more details.
28
+ #
29
+ # You should have received a copy of the GNU General Public License
30
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
31
+
32
+ # The most trivial test: can we talk to the calculation engine at all?
33
+ print(regina.testEngine(3))
34
+
35
+ # Some slightly less trivial tests.
36
+ t = Example3.lens(5, 1)
37
+ print(t.homology())
38
+
39
+ # Does equality work correctly?
40
+ a = Perm4(2,3)
41
+ b = Perm4()
42
+ c = Perm4(2,3)
43
+ print(a == c, a == b, b == c)
44
+ print(a != c, a != b, b != c)
45
+
46
+ t = regina.Example3.poincare()
47
+ a = t.tetrahedron(0)
48
+ b = t.tetrahedron(1)
49
+ c = t.tetrahedron(0)
50
+ print(a == c, a == b, b == c)
51
+ print(a != c, a != b, b != c)
52
+
53
+ # Have we clobbered python's builtin open() function?
54
+ print(open)
@@ -0,0 +1,129 @@
1
+ 0 -> 1 (1230), 1 -> 0 (2103)
2
+ Size of the skeleton:
3
+ Tetrahedra: 2
4
+ Triangles: 4
5
+ Edges: 3
6
+ Vertices: 1
7
+
8
+ Tetrahedron gluing:
9
+ Tet | gluing: (012) (013) (023) (123)
10
+ -----+---------------------------------------------------------
11
+ 0 | 0 (123) 1 (013) 1 (023) 0 (012)
12
+ 1 | 1 (123) 0 (013) 0 (023) 1 (012)
13
+
14
+ Vertices:
15
+ Tet | vertex: 0 1 2 3
16
+ -----+--------------------------
17
+ 0 | 0 0 0 0
18
+ 1 | 0 0 0 0
19
+
20
+ Edges:
21
+ Tet | edge: 01 02 03 12 13 23
22
+ -----+--------------------------------
23
+ 0 | 0 1 2 0 1 0
24
+ 1 | 0 1 2 0 1 0
25
+
26
+ Triangles:
27
+ Tet | face: 012 013 023 123
28
+ -----+------------------------
29
+ 0 | 0 1 2 0
30
+ 1 | 3 1 2 3
31
+
32
+
33
+ Size of the skeleton:
34
+ Tetrahedra: 2
35
+ Triangles: 4
36
+ Edges: 3
37
+ Vertices: 1
38
+
39
+ Tetrahedron gluing:
40
+ Tet | gluing: (012) (013) (023) (123)
41
+ -----+---------------------------------------------------------
42
+ 0 | 0 (301) 0 (120) 1 (310) 1 (210)
43
+ 1 | 0 (321) 0 (320) 1 (312) 1 (230)
44
+
45
+ Vertices:
46
+ Tet | vertex: 0 1 2 3
47
+ -----+--------------------------
48
+ 0 | 0 0 0 0
49
+ 1 | 0 0 0 0
50
+
51
+ Edges:
52
+ Tet | edge: 01 02 03 12 13 23
53
+ -----+--------------------------------
54
+ 0 | 0 1 0 0 1 2
55
+ 1 | 2 1 0 0 1 0
56
+
57
+ Triangles:
58
+ Tet | face: 012 013 023 123
59
+ -----+------------------------
60
+ 0 | 0 0 1 2
61
+ 1 | 2 1 3 3
62
+
63
+
64
+ 0:3 1:1 1:2 0:0 | 1:3 0:1 0:2 1:0
65
+ 1:3 1:2 0:3 0:2 | 1:1 1:0 0:1 0:0
66
+ Size of the skeleton:
67
+ Tetrahedra: 2
68
+ Triangles: 5
69
+ Edges: 4
70
+ Vertices: 1
71
+
72
+ Tetrahedron gluing:
73
+ Tet | gluing: (012) (013) (023) (123)
74
+ -----+---------------------------------------------------------
75
+ 0 | boundary boundary 1 (013) 1 (120)
76
+ 1 | 0 (312) 0 (023) 1 (312) 1 (230)
77
+
78
+ Vertices:
79
+ Tet | vertex: 0 1 2 3
80
+ -----+--------------------------
81
+ 0 | 0 0 0 0
82
+ 1 | 0 0 0 0
83
+
84
+ Edges:
85
+ Tet | edge: 01 02 03 12 13 23
86
+ -----+--------------------------------
87
+ 0 | 0 1 2 2 1 3
88
+ 1 | 1 3 2 2 3 2
89
+
90
+ Triangles:
91
+ Tet | face: 012 013 023 123
92
+ -----+------------------------
93
+ 0 | 0 1 2 3
94
+ 1 | 3 2 4 4
95
+
96
+
97
+ Size of the skeleton:
98
+ Tetrahedra: 2
99
+ Triangles: 5
100
+ Edges: 4
101
+ Vertices: 1
102
+
103
+ Tetrahedron gluing:
104
+ Tet | gluing: (012) (013) (023) (123)
105
+ -----+---------------------------------------------------------
106
+ 0 | 1 (320) 0 (302) 0 (130) 1 (310)
107
+ 1 | boundary 0 (321) 0 (210) boundary
108
+
109
+ Vertices:
110
+ Tet | vertex: 0 1 2 3
111
+ -----+--------------------------
112
+ 0 | 0 0 0 0
113
+ 1 | 0 0 0 0
114
+
115
+ Edges:
116
+ Tet | edge: 01 02 03 12 13 23
117
+ -----+--------------------------------
118
+ 0 | 0 1 0 2 1 0
119
+ 1 | 0 2 1 3 2 0
120
+
121
+ Triangles:
122
+ Tet | face: 012 013 023 123
123
+ -----+------------------------
124
+ 0 | 0 1 1 2
125
+ 1 | 3 2 0 4
126
+
127
+
128
+ 1:3 1:2 bdry bdry | 1:1 1:0 0:1 0:0
129
+ 1:2 0:2 0:1 1:1 | bdry 0:3 0:0 bdry
@@ -0,0 +1,59 @@
1
+ # Regina - A Normal Surface Theory Calculator
2
+ # Python Test Suite Component
3
+ #
4
+ # Copyright (c) 2015-2025, Ben Burton
5
+ # For further details contact Ben Burton (bab@debian.org).
6
+ #
7
+ # Tests bindings for various C++ operator overloads.
8
+ #
9
+ # This file is a single component of Regina's python test suite. To run
10
+ # the python test suite, move to the main python directory in the source
11
+ # tree and run "make check".
12
+ #
13
+ # This program is free software; you can redistribute it and/or
14
+ # modify it under the terms of the GNU General Public License as
15
+ # published by the Free Software Foundation; either version 2 of the
16
+ # License, or (at your option) any later version.
17
+ #
18
+ # As an exception, when this program is distributed through (i) the
19
+ # App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
20
+ # (iii) Google Play by Google Inc., then that store may impose any
21
+ # digital rights management, device limits and/or redistribution
22
+ # restrictions that are required by its terms of service.
23
+ #
24
+ # This program is distributed in the hope that it will be useful, but
25
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
26
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27
+ # General Public License for more details.
28
+ #
29
+ # You should have received a copy of the GNU General Public License
30
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
31
+
32
+ iso = Isomorphism3(2)
33
+ iso.setSimpImage(0, 1)
34
+ iso.setSimpImage(1, 0)
35
+ iso.setFacetPerm(0, Perm4(1,2,3,0))
36
+ iso.setFacetPerm(1, Perm4(0,2))
37
+ print(iso)
38
+
39
+ tri = Example3.s2xs1()
40
+ p = FacetPairing3(tri)
41
+
42
+ print(tri.detail())
43
+ tri = iso(tri)
44
+ print(tri.detail())
45
+
46
+ print(p)
47
+ p = iso(p)
48
+ print(p)
49
+
50
+ tri = Example3.lst(1,3)
51
+ p = FacetPairing3(tri)
52
+
53
+ print(tri.detail())
54
+ tri = iso(tri)
55
+ print(tri.detail())
56
+
57
+ print(p)
58
+ p = iso(p)
59
+ print(p)