Learn R Programming

Rvcg (version 0.12.2)

meshintegrity: check if an object of class mesh3d contains valid data

Description

checks for existance and validity of vertices, faces and vertex normals of an object of class "mesh3d"

Usage

meshintegrity(mesh, facecheck = FALSE, normcheck = FALSE)

Arguments

mesh
object of class mesh3d
facecheck
logical: check the existence of valid triangular faces
normcheck
logical: check the existence of valid normals

Value

  • if mesh data are valid, the mesh is returned, otherwise it stops with an error message.