mask_with_boundary_surf | R Documentation |
Make a boundary around a mask with two levels of decimation, and apply to a mask.
mask_with_boundary_surf(
vertices,
faces,
mask,
width1 = 4,
k1 = 2,
width2 = 6,
k2 = 3
)
vertices |
A |
faces |
An |
mask |
A length |
width1 , width2 |
the width of the middle/outer region. All vertices in the middle/outer region
are between 1 and |
k1 , k2 |
roughly, the triangle size multiplier. Every |
The boundary consists of a width1
-vertex-wide middle region and a
width2
-vertex-wide outer region, for a total of width1 + width2
layers
of vertices surrounding the input mask. In the first layer, every k1
vertex within every k1
layer (beginning with the innermost
layer) is retained; the rest are discarded. In the second layer, every
k2
vertex within every k2
layer (beginning with the innermost
layer) is retained; the rest are discarded. It is recommended to make width1
a multiple of k1
and width2
a multiple of k2
.
Default boundary: a 4-vertex wide middle region with triangles twice as long, and a 6-vertex wide outer region with triangles three times as long.
A new mesh (list with components vertices and faces)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.