qsm_topology | R Documentation |
Compute topology from a qsm file
qsm_topology(QSM_file)
QSM_file |
a qsm file |
the qsm file now includin axid_ID, axis sections and branching order
# import the obj file output from adTree
file = system.file("extdata", "adtree_qsm.obj", package="lidUrb")
mesh = Morpho::obj2mesh(file)
# transform the adTree mesh into a qsm file, simplify the mesh and compute
# some woody structure features
qsm = lidUrb::adtree2qsm(mesh)
# compute qsm topology
qsm$qsm = lidUrb::qsm_topology(qsm$qsm)
rgl::open3d()
rgl::shade3d(qsm$mesh,col=rep(qsm$qsm$branching_order,each=20),meshColor = "faces",add=T)
rgl::open3d()
rgl::shade3d(qsm$mesh,col=rep(qsm$qsm$axis_ID,each=20),meshColor = "faces",add=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.