glVisible | R Documentation |
Determine which vertices of a rendered mesh are visible from the current viewpoint
glVisible(mesh, offset = 0.001)
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. |
returns logical vector, assigning TRUE/FALSE to each vertex of a mesh.
Stefan Schlager
selectVertex
, cutMesh
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.