mesh2sparse <- function(mesh)
{
nvb <- dim(mesh$vb)[2]
out <- sparseMatrix(j=1:(nvb*4),i=rbind(1:nvb,1:nvb,1:nvb,1:nvb),x=as.vector(mesh$vb[,]))
invisible(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.