Skip to content

geodesic_new_mesh causes segmentation fault for non-manifold meshes #55

@p-j-smith

Description

@p-j-smith

To reproduce

load openep_dataset_2.mat
distanceBetweenPoints(userdata, 1, 2, 'method', 'geodesic')

Output
Produces a segmentation fault and geodesic_library raises the error:
Assertion failed: (std::find(map.begin(), map.end(), false) == map.end()), function verify, file ./geodesic_mesh.h, line 404.

Suggested fix
Before calculating geodesic distances, check that both points are referenced in the triangulation (otherwise no geodesic path can be found).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions