Description Usage Arguments Value Author(s) See Also
Compute the signed distances from points 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.
1 |
p |
A matrix with 2 columns (3 in |
regionA |
vectorized function describing region A in the union / intersection / difference |
regionB |
vectorized function describing region B in the union / intersection / difference |
... |
additional arguments passed to |
A vector of length nrow(p) containing the signed
distances to the boundary of the region.
Raoul Grasman; translated from original Matlab sources of Per-Olof Persson.
distmesh2d, mesh.dcircle,
mesh.drectangle mesh.dsphere
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.