Triangle Meshes and Related Geometry Tools
Overview
Generate planar and spherical triangle meshes, compute finite element calculations for 1-, 2-, and 3-dimensional flat and curved manifolds with associated basis function spaces, methods for lines and polygons, and transparent handling of coordinate reference systems and coordinate transformation, including 'sf' and 'sp' geometries. The core 'fmesher' library code was originally part of the 'INLA' package, and implements parts of "Triangulations and Applications" by Hjelle and Daehlen (2006) doi:10.1007/3-540-33261-8.
Improved features
- Make
ccthe canonical name for the most suitable 0th order mass matrix for allfm_fem()implementations, so that higher order basis functions can be used without "mass lumping", and the callers, such asINLA::inla.spde2.pcmatern()don't need to handle the logic themselves. (0.7.0.9001) - Speed up polygon integration by precomputing and storing
vtvertex-to-triangle information in multiple formats (0.7.0.9002) - Speed up multi-polygon integration by moving work out of the blockwise loop. (
0.7.0.9003) - Add
multiargument with defaultFALSEtofm_diameter()for multi-domain spaces (fm_tensorandfm_collect) so that only user code that needs to be aware of per-domain diameters need to handle the multi-domain case. (0.7.0.9004)
Show all changes in 0.8.0Hide the rest of the changes in 0.8.0
- Add
fm_int<fm_collect>method of integration onfm_collectspaces (0.7.0.9005)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
Show 6 earlier changesHide 6 earlier changes
- OK13 OK2026-05-02
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-29
- ERROR11 OK, 2 NOTE, 1 ERROR2026-03-25
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 108 (33 internal)includes a package overview page
- Examples that run
- 98%102 run in a plain check (4 of them under a condition) · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
16 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/inlabru-org/fmesher on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow
pkgdown site last built 2026-06-23
Show all practicesHide 3 practices
Dependencies
Installing fmesher adds 26 packages (19 with compiled code, 26 MB of source tarballs). Heaviest: sf 9.3 MB, sp 4.3 MB, s2 2.8 MB.
Show all 25 packagesHide all 25 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.8.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.7.02026-02-19 · diff ↗
- 0.6.12025-12-12 · diff ↗ ·
removed 5 exports
fm_CRS_as_list, fm_CRSargs, fm_CRSargs_as_list, fm_list_as_CRS, fm_spTransformadded 6 exports
fm_subset, fm_zm, fm_zm_input, fm_zm_target, fmesher_spherical_harmonics, new_fm_int - 0.5.0
- 0.4.02025-06-12 · diff ↗ ·
removed 5 exports
fm_as_sp_crs, fm_crs_get_wkt, fm_has_PROJ6, fm_identical_CRS, fm_sp_get_crsadded 6 exports
fm_as_collect, fm_as_collect_list, fm_collect, fm_hexagon_lattice, fm_mesh_components, fm_sizes - RR 4.5.0 released · 2025-04-11
- 0.3.02025-03-18 · diff ↗ ·
removed 4 exports
fm_as_inla_mesh, fm_as_inla_mesh_segment, fm_evaluator_mesh_1d, fm_evaluator_mesh_2dadded 14 exports
fm_as_bbox_list, fm_as_lattice_Nd, fm_as_lattice_Nd_list, fm_as_mesh_3d, fm_as_mesh_3d_list, fm_assess, fm_bary_loc, fm_bary_simplex, fm_delaunay_3d, fm_lattice_Nd, fm_mesh_3d, fm_qinv, fmesher_bary3d, fmesher_mesh3d - 0.2.02024-11-06 · diff ↗ ·
removed 8 exports
old_globeproj, old_graticule, old_limits, old_outline, old_project, old_tissot, plot_PolySet, plot_globeprojadded 7 exports
fm_basis_mesh_1d, fm_basis_mesh_2d, fm_crs_graticule, fm_crs_plot, fm_crs_tissot, fm_manifold_get, fmexample_sp - 0.1.7
- 0.1.6
- RR 4.4.0 released · 2024-04-24
- 0.1.52023-12-20 · diff ↗
- 0.1.42023-10-29 · diff ↗
- 0.1.32023-10-18 · diff ↗
- 0.1.22023-08-25 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 0.1.12023-08-18
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-18
- Total releases
- 14 / 3 yrs
- License
- MPL-2.0 OSI
- Copyright
- 2010-2026 Finn Lindgren, except src/predicates.cc by Jonathan Richard Shewchuk, 1996
- Minimum R
- ≥ 4.1.0
- Bundled data
- 19 KB / 2 files
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fmesher")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.