Delaunay triangulation metrics {#meshmetrics}

data("horse_mesh", package = "stelfi")
metrics <- meshmetrics(horse_mesh)
str(metrics)

Returned is an sf object with the following geometric attributes of the user supplied Delaunay triangulation

A triangle's circumcircle (circumscribed circle) is the unique circle that passes through each of its three vertices. A triangle's incircle (inscribed circle) is the largest circle that can be contained within it (i.e., touches it's three edges).

To plot each triangle's metric of choice simply change the fill aesthetic. Simply a tool to identify "bad" triangles in the mesh.

ggplot(metrics, aes(fill = area)) +
    geom_sf() + theme_void()
ggplot(metrics, aes(fill = radius_edge)) +
    geom_sf() + theme_void()
ggplot(metrics, aes(fill = quality)) +
    geom_sf() + theme_void()


cmjt/stelfi documentation built on Oct. 25, 2023, 2:53 p.m.