Dear Andrew,
I assume the issue with using meshes for analysis is that they sometimes overlap a little and there may be more gaps. See the example below in which about 2 % of nodes are outside all neuropil meshes or present in 2 adjacent meshes.
All the best,
Greg.
library(natverse)
library(neuprintr)
# read in the meshes and name the result
roinames=neuprint_ROIs(superLevel = T)
hemibrain.super.rois=nlapply(roinames, neuprint_ROI_mesh)
names(hemibrain.super.rois)=roinames
# a couple of sample neurons
mbons01 <- neuprint_read_skeletons('type:MBON01')
roi.overlap.1 <-
sapply(hemibrain.super.rois, function(roi)
pointsinside(mbons01[[1]], roi))
# summary of how many rois are associated with each point
table(rowSums(roi.overlap.1 ))