checkFaceOrientation: check the orientation of a mesh

Description Usage Arguments Details Value Examples

View source: R/normorient.r

Description

check the orientation of a mesh assuming that expansion along normals increases centroid size

Usage

1

Arguments

x

mesh of class mesh3d

offset

numeric: amount to offset the mesh along the vertex normals. If NULL a reasonable value will be estimated.

Details

assuming that a correctly (i.e outward) oriented mesh increases its centroid size when 'growing' outwards, this function tests whether this is the case.

Value

returns TRUE if mesh is oriented correctly and FALSE otherwise

Examples

1
2
3
4
5
data(dummyhead)
## now we invert faces inwards
checkFaceOrientation(dummyhead.mesh)
dummyinward <- Morpho::invertFaces(dummyhead.mesh)
checkFaceOrientation(dummyinward)

zarquon42b/Rvcg documentation built on Jan. 17, 2019, 9:10 a.m.