p to a
region defined by the difference, union or intersection
of regions specified by the functions regionA and
regionB. regionA and regionB must
accept a matrix p with 2 columns as their first
argument, and must return a vector of length
nrow(p) containing the signed distances of the
supplied points in p to their respective regions.mesh.diff(p, regionA, regionB, ...)mesh.dsphere), each row representing a point in
the plane.regionA
and regionBnrow(p) containing the signed
distances to the boundary of the region.distmesh2d, mesh.dcircle,
mesh.drectangle mesh.dsphere