A low-level constructor for wkpool_tri objects: a vector of triangles
whose corners are vertex ids into a shared vertex pool, the same pool
structure a wkpool uses for segments.
Usage
new_wkpool_tri(
vertices,
vx0,
vx1,
vx2,
feature = NULL,
part = NULL,
paths = NULL,
crs = NULL,
geodesic = FALSE
)Arguments
- vertices
A data.frame with columns
.vx(integer vertex ids),x,y, and optionallyz.- vx0, vx1, vx2
Integer vectors of triangle corner vertex ids, each value present in
vertices$.vx.- feature
Optional integer vector of feature ids, one per triangle.
- part
Optional integer vector of part ids, one per triangle (the polygon within a multipolygon feature, as identified by
wk::wk_coords()).- paths
Optional data.frame describing the input paths (see
pool_paths()), carried from the segment pool.- crs
A CRS object (commonly an authority string such as "EPSG:4326"), carried but never interpreted, per wk's CRS propagation model. Use
NULLfor none, orwk::wk_crs_inherit().- geodesic
TRUEif segments should be interpreted as geodesics when coordinates are spherical,FALSEotherwise,NAto inherit.