require(rgl)
data(nose)
shrot.rot <- rotaxis3d(shortnose.mesh,pt1=c(1,1,1),theta=pi)
if (FALSE) {
shade3d(shortnose.mesh,col=3,specular=1)
shade3d(shrot.rot,col=2)
###print rotation axis
#' lines3d(rbind(rep(-0.1,3),rep(0.1,3)))
}
Run the code above in your browser using DataLab