The doolkit package provides functions to explore the topography of 3d triangle meshes. It was developed with dental surfaces in mind, but could be applied to any triangle mesh of class ‘mesh3d’. The package aims to group all the methods associated to dental topography within the same toolkit. New methods could be included and shall be introduced in later versions of the package.
You can install the released version of doolkit from CRAN with:
install.packages("doolkit")
library(doolkit)
#Import surfaces
#PLY <- Rvcg::vcgImport(choose.files(), updateNormals = TRUE, clean = TRUE, silent = TRUE)
<- dkpongo$OES
PLY
#Computation
<- round(Rvcg::vcgArea(PLY), digits = 2)
Area #...relief
<- round(rfi(PLY, method = "Guy"), digits = 2)
Gamma <- round(rfi(PLY, method = "Ungar"), digits = 2)
Rfi <- round(rfi(PLY, method = "Boyer"), digits = 2)
Lrfi <- round(mean(slope(PLY)), digits = 2)
Slope #...sharpness
<- arc(PLY)
ARC <- round(mean(ARC), digits = 3)
Arc <- round(mean(ARC[ARC >= 0]), digits = 3)
Parc <- round(mean(ARC[ARC < 0]), digits = 3)
Narc <- round(dne(PLY, total = TRUE), digits = 2)
Dne #...complexity
<- round(opcr(PLY)$opcr, digits = 1)
Opcr #...shape indices
<- round(shape.index(PLY)$FormFactor, digits = 3)
FormFactor <- round(shape.index(PLY)$Elongation, digits = 3)
Elongation <- round(shape.index(PLY)$K, digits = 3)
K
#Maps
#...relief
dkmap(dkpongo$OES, doolkit::elev(dkpongo$OES), col = "elev", legend.lab = "Elevation (mm)")
dkmap(dkpongo$OES, doolkit::slope(dkpongo$OES), col.levels = 9, col = "slope", legend.lab = "Slope (degrees)", min.range = 0, max.range = 90)
#...orientation
dkmap(dkpongo$OES, orient(dkpongo$OES), col.levels = 8, col = "orient", legend.lab = "Orientation (degrees)",legend.type = "pie", min.range = 0, max.range = 360)
#...sharpness
dkmap(dkpongo$OES, doolkit::arc(dkpongo$OES), col = "arc", legend.lab = "ARC", min.range = -20, max.range = 20, col.levels = 15)
dkmap(dkpongo$OES, doolkit::dne(dkpongo$OES), col = "dne", legend.lab = "DNE", legend.type = "log")