Detailed description |
Hi,
I'm trying to build some visualization capabilities for 3D brain objects in R, similar in spirit to the brainR package.
A feature that would be really useful for my work is the ability to select vertices on a mesh. I've had mixed success with the selectpoints3d function, the difficulty being that when closest = TRUE, the vertex selected may be on the other-side of the mesh. When I select a region instead of a point with closest = FALSE, I get a matrix of vertices some of which are from the other side of the mesh.
My potential solution was to multiply the returned coordinates by the par3d("userMatrix") and take the vertex closest to par3d("observer").
Would this work? Is there a better way? And does this feature belong in rgl?
Thanks,
Chris |
|