create_S: Create the S matrix for RTriangle::pslg() for a single...

Description Usage Arguments Details

View source: R/decompose.R

Description

pslg = Planar Straight Line Graph object. A collection of vertices and segments.

Usage

1
create_S(polygon_df)

Arguments

polygon_df

data.frame containing a single polygon. Must have 'vidx' column

Details

The 'S' matrix is: A 2-column matrix of segments in which each row is a segment. Segments are edges whose endpoints are vertices in the PSLG, and whose presence in any mesh generated from the PSLG is enforced. Each segment refers to the indices in V of the endpoints of the segment. By default the segments are not specified (NA), in which case the convex hull of the vertices are taken to be the segments. Any vertices outside the region enclosed by the segments are eaten away by the triangulation algorithm. If the segments do not enclose a region the whole triangulation may be eaten away.


coolbutuseless/triangular documentation built on Oct. 9, 2020, 9:39 p.m.