Skip to content

Method creating dual curve objects in SnapPea kernel - #161

Merged
NathanDunfield merged 6 commits into
3-manifolds:masterfrom
Shakugannotorch:master
Nov 13, 2026
Merged

NathanDunfield merged 6 commits into
3-manifolds:masterfrom
Shakugannotorch:master

Conversation

@Shakugannotorch

Copy link
Copy Markdown
Contributor

This adds a Cython method snappy.extensions.SnapPy.DualOneSkeletonCurve.from_face_intersections for creating a dual curve in SnapPea kernel, provided its face intersections. For example:

>>> snappy.extensions.SnapPy.DualOneSkeletonCurve.from_face_intersections(
    [[True, False, True, False],  
    [True, True,  False, False]])
DualCurve(0)

It also adds some basic guards in snappy.Manifold.drill() to avoid drilling a dual curve in an unmatched triangulation.

For now, my_malloc is made public so that from_face_intersections uses it to avoid causing mismatch for check_SnapPea_memory() when the dual curves created in this way are freed.

This also adds import of some classes in Spheorgram for knot polynomial computations.

@NathanDunfield
NathanDunfield merged commit 0aae228 into 3-manifolds:master Nov 13, 2026
18 of 19 checks passed
@NathanDunfield

Copy link
Copy Markdown
Member

@Shakugannotorch I made it so “drill” accepts the array of face intersections directly so you don’t have to dig into the extensions module and create a DualOneSkeletonCurve. I added a doctest for that functionality and merged the PR into SnapPy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants