Learn R Programming

Rvcg (version 0.24)

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)

Value

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

Arguments

mesh

object of class mesh3d

facecheck

logical: check the existence of valid triangular faces

normcheck

logical: check the existence of valid normals