fmesher_subdivide | R Documentation |
Subdivide a mesh with congruent subtriangles
fmesher_subdivide(
mesh_loc,
mesh_tv,
mesh_boundary,
mesh_interior,
subdivisions,
options
)
mesh_loc |
numeric matrix; mesh vertex coordinates |
mesh_tv |
3-column integer matrix with 0-based vertex indices for each triangle |
mesh_boundary |
2-column integer matrix with 0-based vertex indices for boundary constraints |
mesh_interior |
2-column integer matrix with 0-based vertex indices for interior constraints |
subdivisions |
integer; number of new points along each edge. |
options |
list of triangulation options ( |
A list of line splitting information objects
fm_split_lines()
mesh <- fm_mesh_2d(
boundary = fm_segm(rbind(c(0,0), c(1,0), c(1,1), c(0, 1)), is.bnd = TRUE)
)
splitter <- fm_segm(rbind(c(0.8, 0.2), c(0.2, 0.8)))
segm_split <- fm_split_lines(mesh, splitter)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.