Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

TRI

TRI model, triangulations


Description

TRI creates a constrained triangulation using 'ear-cutting', or 'ear-clipping' of polygons. The model is a 'relational' form in that the underlying tables are linked implicitly by unique identifiers. Ear-cutting is inherently path-based, so this model is only available for path-based structures, like simple features, PATH(), PATH0() and ARC().

Usage

TRI(x, ...)

## S3 method for class 'sfc_GEOMETRYCOLLECTION'
TRI(x, ...)

## S3 method for class 'TRI'
plot(x, ..., add = FALSE)

Arguments

x

object understood by silicate (sf, sp, a silicate model, etc.)

...

current unused

add

logical create new plot (default), or add to existing

Value

TRI model with tables 'object', 'triangle', 'vertex'

Examples

tri <- TRI(minimal_mesh)
plot(tri)

silicate

Common Forms for Complex Hierarchical and Relational Data Structures

v0.7.0
GPL-3
Authors
Michael D. Sumner [aut, cre], John Corbett [ctb] (the original inspiration), Simon Wotherspoon [ctb], Kent Johnson [dtc], Mark Padgham [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.