Set a standard viewpoint for MANC data
Arguments
- viewpoint
A string specifying an anatomical viewpoint (defaults to ventral)
- FOV
The Field of View (defaults to 0 => orthographic projection) (see
par3d
for details).- template
The template object implied by the
viewpoint
specification. Currently only the symmetric MANC template is supported.- extramat
An optional extra transformation matrix to be applied after the one implied by the viewpoint argument.
- returnparams
When
FALSE
usespar3d
to change the rgl device. WhenTRUE
just returns the settings for you to use. See examples.- ...
additional arguments passed to
par3d
Details
See slack discussion for details.
Examples
# default parameters
manc_view3d(returnparams=TRUE)
#> $userMatrix
#> [,1] [,2] [,3] [,4]
#> [1,] -1 0.0000000 0.0000000 0
#> [2,] 0 0.3420201 0.9396926 0
#> [3,] 0 0.9396926 -0.3420201 0
#> [4,] 0 0.0000000 0.0000000 1
#>
#> $FOV
#> [1] 0
#>
if (FALSE) { # \dontrun{
plot3d(MANC.tissue.surf.sym)
manc_view3d("ventral")
manc_view3d("dorsal")
manc_view3d("left")
## open a new window
# with regular rgl function
open3d(manc_view3d('ventral', returnparams=TRUE))
# with nat, allowing interactive pan
nopen3d(manc_view3d('ventral', returnparams=TRUE))
plot3d(MANC.tissue.surf.sym)
} # }