Get the simplified cell shape from junction points

cell_simplify(cell, cell.junctions, snap.tolerance)

Arguments

cell

Obect of class sf; the original cell

cell.junctions

Dataframe with two columns containing all junction points between cells.

snap.tolerance

Numeric. Value to buffer each cell to identify junction points.

Value

An ordered matrix containing the x and y coordinates defining the simplified cell.

Details

The returned matrix has n+1 rows (the first and last rows are the same, so points can be joined up to form a closed polygon).