Extracts the dual of a mesh object.
mesh.dual(
mesh,
returnclass = c("list", "sf", "sv", "SP"),
mc.cores = getOption("mc.cores", 2L)
)
one of the three in 'returnclass'
a 2d mesh object.
if 'list' return a list of polygon coordinates, if "sf" return a 'sf' sfc_multipolygon object, if "sv" return a 'terra', SpatVector object, if "SP" return a 'sp' SpatialPolygons object.
number of threads to be used.