View source: R/delaunay_graph.R
delaunay_graph | R Documentation |
Build and filter a delaunay graph
delaunay_graph(las, global_filter = 0.8, max_edge_length = NULL)
las |
aLAS file. |
global_filter |
numeric between 0 and 1 (optional). If declared, applies a global
edge filter by removing all edges longer than the |
max_edge_length |
numeric (optional). If declared, removes all edges longer than max_edge_length. |
an data.table containing the nodes ID (their position within the LAS data) and the length of the edge.
# import data
file = system.file("extdata", "tree_no_leaves.las", package="lidUrb")
las = lidR::readLAS(file)
# build the knn graph with no filter
delaunay = lidUrb::delaunay_graph(las)
# plot the graph
lidUrb::plot_graph(las = las, graph = delaunay)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.