| generateBoundaryLayer | mPower Reference Home |
generateBoundaryLayer[{{hx1,hy1},{hx2,hy2},...},options] returns an artificial layer of cells surrounding a convex hull.
The input to generateBoundaryLayer must be a list of two-dimensional coordinates {{xh1,yh1},{xh2,yh2},...} specifying the convex hull of the desired set of points.The points do not have to be sorted.
For three-dimensional data, use generateBoundaryLayer3D.
If the convex hull is not known it can be calculated from the actual points {{x1,y1},{x2,y2},...} as follows:
points={{x1,y1},{x2,y2},...};
v=vertexCoordinates/.convexHull[points];
and then the boundary layer can be calculated as:
generateBoundaryLayer[v,options];
Options:
traceqhull→FalseExample
A set of points.![]() |
Their complex hull.![]() |
A boundary layer of artificial points.![]() |
Original points together with boundary layer and complex hull.![]() |