fm_subset | R Documentation |
(from version
0.5.0.9003
)
Constructs a new mesh based on a subset of the triangles of an existing mesh.
The current version drops any edge constraint information from the mesh.
fm_subset(mesh, t_sub)
mesh |
an mesh to subset |
t_sub |
triangle or tetrahedron indices. |
A subset mesh.
Finn Lindgren Finn.Lindgren@gmail.com
mesh_sub <- fm_subset(fmexample$mesh, 1:100)
mesh_sub
plot(mesh_sub)
if (requireNamespace("geometry", quietly = TRUE)) {
print(m <- fm_delaunay_3d(matrix(rnorm(30), 10, 3)))
print(fm_subset(m, seq_len(min(5, nrow(m$graph$tv)))))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.