Convert a mesh to CATMAID format
as.catmaidmesh(x, ...)
# S3 method for hxsurf
as.catmaidmesh(x, ...)
# S3 method for mesh3d
as.catmaidmesh(x, ...)
# S3 method for default
as.catmaidmesh(x, title = NULL, comment = NULL, ...)
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.