glVisible: determine visibility of mesh's vertices

View source: R/glview.r

glVisibleR Documentation

determine visibility of mesh's vertices

Description

Determine which vertices of a rendered mesh are visible from the current viewpoint

Usage

glVisible(mesh, offset = 0.001)

Arguments

mesh

triangular mesh of class "mesh3d". Must be currently rendered in an rgl window.

offset

initial offset to move vertex slightly away from the surface.

Value

returns logical vector, assigning TRUE/FALSE to each vertex of a mesh.

Author(s)

Stefan Schlager

See Also

selectVertex, cutMesh

Examples

## Not run: 
require(rgl)
require(Morpho)
data(nose)
shade3d(shortnose.mesh,col=3)
visi <- glVisible(shortnose.mesh)
points3d(vert2points(shortnose.mesh)[which(visi),])

## End(Not run)

zarquon42b/mesheR documentation built on Nov. 14, 2024, 3:30 p.m.