dist_from_mask_surf | R Documentation |
Identify the vertices within boundary_width
edges of a vertex in the
input mask on a triangular mesh. Returns the number of edges a vertex is
away from the closest mask vertex.
dist_from_mask_surf(faces, mask, boundary_width = 10)
faces |
An |
mask |
A length |
boundary_width |
A positive integer representing the width of the
boundary to compute. The furthest vertices from the input mask will be this
number of edges away from the closest vertex in the input mask. Default:
|
A length-V numeric vector. Each entry corresponds to the vertex with the same index. For vertices within the boundary, the value will be the number of vertices away from the closest vertex in the input mask. Vertices inside the input mask but at the edge of it (i.e. the vertices that define the boundary) will have value 0. Then, all other vertices will have value -1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.