Methods for constructing and manipulating fm_list
objects.
Usage
fm_list(x, ..., .class_stub = NULL)
fm_as_list(x, ..., .class_stub = NULL)
# S3 method for class 'fm_list'
c(...)
# S3 method for class 'fm_list'
x[i]
Arguments
- x
fm_list
object from which to extract element(s)- ...
Arguments passed to each individual conversion call.
- .class_stub
character; class stub name of class to convert each list element to. If
NULL
, usesfm_as_fm
and auto-detects if the resulting list has consistent class, and then adds that to the class list. If non-null, usespaste0("fm_as_", .class_stub)
for conversion, and verifies that the resulting list has elements consistent with that class.- i
indices specifying elements to extract
Methods (by generic)
c(fm_list)
: The...
arguments should be coercible tofm_list
objects.[
: Extract sub-list
Functions
fm_list()
: Convert each element of a list, or convert a single non-list object and return in a listfm_as_list()
: Convert each element of a list, or convert a single non-list object and return in a list
Examples
fm_as_list(list(fmexample$mesh, fm_segm_join(fmexample$boundary_fm)))
#> [[1]]
#> fm_mesh_2d object:
#> Manifold: R2
#> V / E / T: 279 / 805 / 527
#> Euler char.: 1
#> Constraints: 29 boundary edges (1 group: 1), 54 interior edges (1 group: 1)
#> Bounding box: (-5.331027, 4.061656) x (-3.998161, 5.415609)
#> Basis d.o.f.: 279
#>
#> [[2]]
#> fm_segm object:
#> 72 boundary edges (1 group: 1)
#> Bounding box = (-5.331027, 4.061656) x (-3.998161, 5.415609) x (0,0)
#>
#> attr(,"class")
#> [1] "fm_list" "list"