as.catmaidmesh | R Documentation |
Convert a mesh to CATMAID format
as.catmaidmesh(x, ...) ## S3 method for class 'hxsurf' as.catmaidmesh(x, ...) ## S3 method for class 'mesh3d' as.catmaidmesh(x, ...) ## Default S3 method: as.catmaidmesh(x, title = NULL, comment = NULL, ...)
x |
A mesh object such as |
... |
Additional fields for the CATMAID mesh object |
title |
The title of the object as it will appear in the catmaid volume manager |
comment |
An informative comment - e.g. how the mesh was generated. |
The CATMAID mesh format is documented in the reference below and typically consists of a json encoded object with fields
title
mesh The mesh itself (a list of length 2)
comments (optional)
In R we hold this list in a list
object with class
catmaidmesh
. This can then be posted to the volume manager API.
https://github.com/catmaid/CATMAID/blob/master/sphinx-doc/source/volumes.rst
catmaid_add_volume
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.