meshintegrity {Rvcg}R Documentation

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.


[Package Rvcg version 0.23 Index]