read_brainmaps_meshes: Read 3D meshes via the brainmaps API

View source: R/brainmaps-api.R

read_brainmaps_meshesR Documentation

Read 3D meshes via the brainmaps API

Description

Read 3D meshes via the brainmaps API

Usage

read_brainmaps_meshes(
  x,
  volume = getOption("fafbseg.brainmaps.volume"),
  meshName = getOption("fafbseg.brainmaps.meshName"),
  ...
)

Arguments

x

Vector of integer segment ids

volume

String identifier for the volume containing segments

meshName

String identifier for the meshes

...

Additional arguments passed to brainmaps_fetch

Value

A mesh3d object

See Also

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.

Examples

## 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)

natverse/fafbseg documentation built on Nov. 11, 2024, 9:50 p.m.