Skip to content

Commit

Permalink
code for shortest path tree is fine with any mesh, not only surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mlivesu committed Nov 24, 2023
1 parent 8a09ac6 commit f3f5cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cinolib/shortest_path_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace cinolib

template<class M, class V, class E, class P>
CINO_INLINE
void shortest_path_tree(AbstractPolygonMesh<M,V,E,P> & m, const uint root, std::vector<bool> & tree)
void shortest_path_tree(AbstractMesh<M,V,E,P> & m, const uint root, std::vector<bool> & tree)
{
// if true, the edge is on the tree
tree = std::vector<bool>(m.num_edges(), false);
Expand Down
2 changes: 1 addition & 1 deletion include/cinolib/shortest_path_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace cinolib

template<class M, class V, class E, class P>
CINO_INLINE
void shortest_path_tree(AbstractPolygonMesh<M,V,E,P> & m, const uint root, std::vector<bool> & tree);
void shortest_path_tree(AbstractMesh<M,V,E,P> & m, const uint root, std::vector<bool> & tree);

}

Expand Down

0 comments on commit f3f5cc0

Please sign in to comment.