Skip to content

dijkstra surface path - customize edge weights #4426

Answered by Grantim
czc98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

geodesic paths always use edgeLengthMetric, but we have these functions for custom shortest edge paths

/// builds shortest path in given metric from start to finish vertices; if no path can be found then empty path is returned
[[nodiscard]] MRMESH_API EdgePath buildSmallestMetricPath( const MeshTopology & topology, const EdgeMetric & metric,
VertId start, VertId finish, float maxPathMetric = FLT_MAX );
/// finds the smallest metric path from start vertex to finish vertex,
/// using bidirectional modification of Dijkstra algorithm, constructing the path simultaneously from both start and f…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@czc98
Comment options

@czc98
Comment options

Answer selected by czc98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants