selectVertex | R Documentation |
select a subset of a surface mesh interactively.
selectVertex(
mesh,
col = 3,
visible = TRUE,
add = FALSE,
render = c("shade", "wire"),
offset = 0.001,
...
)
mesh |
triangular mesh of class "mesh3d" |
col |
color to render the mesh. |
visible |
select only vertices visible (from the present point of view) |
add |
logical: add the surface to an existing window. |
render |
character: how to render the surface. Possible values are "shade" or "wire". |
offset |
initial offset to move vertex slightly away from the surface. |
... |
additional arguments passed to the rendering functions shade3d and wire3d from package "shapes". |
select vertices or trim a triangular mesh by selecting a subset - either restricted to visible from the current point of view or by rectangular region. Visibility is determined by the fact that the vector from the viewpoint to the selected vertex does not intersect the mesh.
selectVertex returns the indices of the selected vertices.
cutMesh returns the trimmed mesh.
Stefan Schlager
vcgPlyRead
, glVisible
, cutMesh
## Not run:
require(Morpho)
data(nose)
selection <- selectVertex(shortnose.mesh)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.