# \donttest{
# import aRchi file
aRchi=system.file("extdata","Tree_2.aRchi",package = "aRchi")
aRchi = aRchi::read_aRchi(aRchi)
# smooth the skeleton
aRchi = aRchi::smooth_skeleton(aRchi,th = 0.01)
# clean point cloud
aRchi = aRchi::clean_point_cloud(aRchi)
# add missing axes
aRchi = aRchi::add_non_reconstructed(aRchi,th = 3)
# plot the skeleton with reconstructed axes in red
plot(aRchi,color="reconstructed",show_point_cloud = TRUE)
# }
Run the code above in your browser using DataLab