Constructs a 3D tetrahedralisation object.
Arguments
- loc
Input coordinates that should be part of the mesh. Can be a matrix,
sf
,sfc
,SpatialPoints
, or other object supported byfm_unify_coords()
.- tv
Tetrahedron indices, as a N-by-4 index vector into
loc
- ...
Currently unused.
Functions
fm_delaunay_3d()
: Construct a plain Delaunay triangulation in 3D. Requires thegeometry
package.
Examples
(m <- fm_mesh_3d(
matrix(c(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0), 4, 3, byrow = TRUE),
matrix(c(1, 2, 3, 4), 1, 4, byrow = TRUE)
))
#> fm_mesh_3d object:
#> Manifold: R3
#> V / E / T / Tet: 4 / 6 / 4 / 1
#> Euler char.: 1
#> Bounding box: (0,1) x (0,1) x (0,1)
#> Basis d.o.f.: 4
(m <- fm_delaunay_3d(matrix(rnorm(30), 10, 3)))
#> fm_mesh_3d object:
#> Manifold: R3
#> V / E / T / Tet: 10 / 34 / 45 / 20
#> Euler char.: 1
#> Bounding box: (-0.8232612, 1.7637894) x (-2.446680, 2.648932) x (-1.4522998, 0.9412061)
#> Basis d.o.f.: 10