mesh_to_graph | R Documentation |
Transforms a given mesh into an undirected igraph object for shortest paths and other queries.
mesh_to_graph(mesh)
mesh |
a mesh3d object |
A list containing a) "graph", an igraph object; b) "gVertices", a numeric vector of graph vertices; and c) "edge.curv", a numeric vector of edge curvature values, computed by adding values for the defining vertices
Write unit tests + solve the meanvb versus RMSvb issue.
This is a very simple function which creates an igraph object from a mesh and computes edge weights on the basis of vertex curvature values. The only reason this has been implemented as a separate function is that it is cached, meaning that repeated calls on the same object (e.g. from sPathQuery) are fast.
Cornel M. Pop
data(demoSphere)
graphObj<-Lithics3D:::mesh_to_graph(demoSphere)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.