Skip to content

Commit 3293950

Browse files
committed
Merge branch 'master' of github.com:3-manifolds/SnapPy
2 parents 2ae6b8b + 1f2b24a commit 3293950

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cython/core/triangulation.pyx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,23 @@ cdef class Triangulation():
146146

147147
cdef get_triangulation_from_name(self, name, remove_finite_vertices=True):
148148

149-
# Step 1. The easy databases
149+
# Step 1. The easy databases.
150150
for db in database.__all_tables__.values():
151151
try:
152152
db._one_manifold(name, self)
153153
return
154154
except KeyError:
155-
pass
155+
# Whenever possible, we want knots to come from
156+
# HTLinkExteriors rather than (Non)AlternatingKnots as
157+
# the latter only have DT codes and so return many
158+
# different triangulations.
159+
if is_HT_knot.match(name):
160+
try:
161+
db._one_manifold('K' + name, self)
162+
self.set_name(name)
163+
return
164+
except:
165+
pass
156166

157167
# Step 2. Alternate names for the Rolfsen links
158168
for regex in rolfsen_link_regexs:

0 commit comments

Comments
 (0)