Skip to contents

Convert objects to fm_mesh_2d

Usage

fm_as_mesh_2d(x, ...)

fm_as_mesh_2d_list(x, ...)

# S3 method for class 'fm_mesh_2d'
fm_as_mesh_2d(x, ...)

# S3 method for class 'inla.mesh'
fm_as_mesh_2d(x, ...)

# S3 method for class 'fm_mesh_3d'
fm_as_mesh_2d(x, ...)

# S3 method for class 'sfg'
fm_as_mesh_2d(x, ...)

# S3 method for class 'sfc_MULTIPOLYGON'
fm_as_mesh_2d(x, ...)

# S3 method for class 'sfc_POLYGON'
fm_as_mesh_2d(x, ...)

# S3 method for class 'sf'
fm_as_mesh_2d(x, ...)

Arguments

x

Object to be converted

...

Arguments passed on to submethods

Value

An fm_mesh_2d or fm_mesh_2d_list object

Methods (by class)

  • fm_as_mesh_2d(fm_mesh_3d): Construct a 2D mesh of the boundary of a 3D mesh

Functions

  • fm_as_mesh_2d(): Convert an object to fm_mesh_2d.

  • fm_as_mesh_2d_list(): Convert each element of a list

See also

Examples

fm_as_mesh_2d_list(list(fm_mesh_2d(cbind(2, 1))))
#> [[1]]
#> fm_mesh_2d object:
#>   Manifold:	R2
#>   V / E / T:	9 / 16 / 8
#>   Euler char.:	1
#>   Constraints:	8 boundary edges (1 group: 0), 0 boundary edges
#>   Bounding box: (1,3) x (-4.440892e-16, 2.000000e+00)
#>   Basis d.o.f.:	9
#> 
#> attr(,"class")
#> [1] "fm_mesh_2d_list" "fm_list"         "list"