# \donttest{
url <- "https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/SCAP001.stl"
bone_filepath <- tempfile(fileext = ".stl")
download.file(url, bone_filepath, mode = "wb")
scap_001_mesh <- import_mesh(bone_filepath)
landmark_path <- system.file("extdata", "SCAP001_landmarks.fcsv",
package = "BoneDensityMapping")
scap_001_lmk <- import_lmks(landmark_path)
template_coords <- surface_points_template(scap_001_mesh, scap_001_lmk,
1000)
url2 <- "https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/SCAP002.stl"
bone_filepath <- tempfile(fileext = ".stl")
download.file(url2, bone_filepath, mode = "wb")
scap_002_mesh <- import_mesh(bone_filepath)
landmark_path <- system.file("extdata", "SCAP002_landmarks.fcsv",
package = "BoneDensityMapping")
scap_002_lmk <- import_lmks(landmark_path)
scap_002_remapped <- surface_points_new(scap_002_mesh, scap_002_lmk,
template_coords, mirror = "x",
plot_check = FALSE)
# }
Run the code above in your browser using DataLab