View source: R/brainmaps-api.R
read_brainmaps_meshes | R Documentation |
Read 3D meshes via the brainmaps API
read_brainmaps_meshes(
x,
volume = getOption("fafbseg.brainmaps.volume"),
meshName = getOption("fafbseg.brainmaps.meshName"),
...
)
x |
Vector of integer segment ids |
volume |
String identifier for the volume containing segments |
meshName |
String identifier for the meshes |
... |
Additional arguments passed to |
A mesh3d
object
read_segments2
to read skeleton fragments and
brainmaps_listfragments
(to identify the fragments that must
be read). See compare_ng_neuron
to compare skeletons and 3D
meshes.
## Not run:
segs=find_merged_segments(7186840767)
samplemesh=read_brainmaps_meshes(segs)
sampleskel=read_segments2(segs)
dot3d(samplemesh, col='grey')
plot3d(sampleskel, lwd=2)
# or compare mesh and skeleton colouring points by distance from skeleton
compare_ng_neuron(samplemesh, sampleskel, pointsize=1, sample_dots = 0.3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.