molaR_Clean: Clean up problem ply files

View source: R/molaR_Clean.R

molaR_CleanR Documentation

Clean up problem ply files

Description

Function will remove floating verticies, and faces with zero area. These can cause issues when using molaR's primary functions of DNE, RFI, and OPC

Usage

molaR_Clean(plyFile, cleanType = "Both", verbose = TRUE)

Arguments

plyFile

An object of classes 'mesh3d' and 'shape3d'

cleanType

String with three arguments defining what to clean: Vertices, Faces, or Both. Defaults to Both.

verbose

Logical indicating if the function should report changes to ply

Details

This function cleans up problematic ply files. Some smoothed files will have faces of zero area, or floating vertices. DNE and OPC cannot be calculated on these files. Running the plys through this function will allow those calculations to be made.

Examples

Tooth <- molaR_Clean(Tooth)

molaR documentation built on Feb. 16, 2023, 10:33 p.m.