Skip to contents

Mesh construction

Functions for contructing meshes and function spaces.

fm_mesh_1d()
Make a 1D mesh object
fm_mesh_2d() fm_mesh_2d_inla()
Make a 2D mesh object
fm_rcdt_2d() fm_rcdt_2d_inla() fm_delaunay_2d()
Refined Constrained Delaunay Triangulation
fm_subdivide() experimental
Split triangles of a mesh into subtriangles
fm_lattice_2d()
Make a lattice object
fm_segm() fm_segm_join() fm_segm_split() fm_is_bnd() `fm_is_bnd<-`()
Make a spatial segment object
c(<fm_segm>) c(<fm_segm_list>) `[`(<fm_segm_list>)
Methods for fm_segm lists
fm_nonconvex_hull() fm_extensions()
Compute an extension of a spatial object
fm_nonconvex_hull_inla() fm_nonconvex_hull_inla_basic()
Non-convex hull computation
fm_simplify() experimental
Recursive curve simplification.
fm_tensor() experimental
Make a tensor product function space

Property methods

Functions for computing or accessing object properties

fm_basis()
Compute mapping matrix between mesh function space and points
fm_raw_basis()
Basis functions for mesh manifolds
fm_int()
Multi-domain integration
fm_bary()
Compute barycentric coordinates
fm_bary_loc()
Extract Euclidean Sgeometry from Barycentric coordinates
fm_bary_simplex()
Extract Simplex information for Barycentric coordinates
fm_evaluate() fm_evaluator() fm_evaluator_lattice()
Methods for projecting to/from mesh objects
fm_diameter()
Diameter bound for a geometric object
fm_bbox() fm_as_bbox() `[`(<fm_bbox>) c(<fm_bbox>)
Bounding box class
fm_vertices()
Extract vertex locations from an fm_mesh_2d
fm_centroids()
Extract triangle centroids from an fm_mesh_2d
fm_contains()
Check which mesh triangles are inside a polygon
fm_is_within()
Query if points are inside a mesh
fm_manifold() fm_manifold_get() fm_manifold_type() fm_manifold_dim()
Query the mesh manifold type
fm_detect_manifold() fm_crs_detect_manifold()
Detect manifold type
fm_dof()
Function spece degrees of freedom
fm_pixels()
Generate lattice points covering a mesh
fm_split_lines()
Split lines at triangle edges

Stochastic process methods

Functions for constructing stochastic PDE models

fm_fem()
Compute finite element matrices
fm_matern_precision() fm_matern_sample() fm_covariance() fm_sample() experimental
SPDE, GMRF, and Matérn process methods

Matrix helper functions

Functions for handling matrix constructions

Coordinate system tools

Functions for handling coordinate systems and conversions

Conversion to fmesher classes

Functions for converting non-fmesher objects to fmesher objects.

fm_as_fm()
Convert objects to fmesher objects
fm_as_lattice_2d() fm_as_lattice_2d_list()
Convert objects to fm_lattice_2d
fm_as_mesh_1d() fm_as_mesh_1d_list()
Convert objects to fm_segm
fm_as_mesh_2d() fm_as_mesh_2d_list()
Convert objects to fm_mesh_2d
fm_as_segm() fm_as_segm_list()
Convert objects to fm_segm
fm_as_sfc()
Conversion methods from mesh related objects to sfc
fm_as_tensor() fm_as_tensor_list()
Convert objects to fm_tensor
fm_bbox() fm_as_bbox() `[`(<fm_bbox>) c(<fm_bbox>)
Bounding box class
fm_list() fm_as_list() c(<fm_list>) `[`(<fm_list>)
Handle lists of fmesher objects
fm_spTransform() fm_has_PROJ6() fm_as_sp_crs() fm_sp_get_crs() fm_sp2segment()
Deprecated functions in fmesher

Plotting methods

Functions for plotting.

geom_fm() experimental
ggplot2 geomes for fmesher related objects
lines(<fm_mesh_2d>) plot(<fm_mesh_2d>)
Draw a triangulation mesh object
plot(<fm_segm>) lines(<fm_segm>) plot(<fm_segm_list>) lines(<fm_segm_list>)
Draw fm_segm objects.
plot_rgl() lines_rgl()
Low level triangulation mesh plotting
fm_crs_plot() fm_crs_graticule() fm_crs_tissot() experimental
Plot CRS and fm_crs objects

Printing methods

Functions for printing.

Data objects

Data objects

fmexample
Example mesh data
fmexample_sp()
Add sp data to fmexample

Direct C++ interface

Direct C++ interface methods, not intended for package users.

fmesher_bary()
Barycentric coordinate computation
fmesher_fem()
Finite element matrix computation
fmesher_globe_points()
Globe points
fmesher_rcdt()
Refined Constrained Delaunay Triangulation
fmesher_split_lines()
Split lines at triangle edges

Deprecated methods

Deprecated methods