poly2gpc: Converts a polygon to a gpclib polygon.

Description Usage Arguments Value See Also Examples

View source: R/polygon.R

Description

The R package gpclib provides a few algorithms that are useful but it has an internal (very general) representation of polygons. This function converts a simple polygon of class polygon to a gpclib polygon.

Usage

1

Arguments

p

A polygon.

Value

A gpclib polygon.

See Also

newPolygon, gpc2poly

Examples

1
2
3
p <- newPolygon(c(0,1,2,1,2,0), c(0,0,1,2,3,3))
g <- poly2gpc(p)
plot(g)

tunelipt/model3d documentation built on Nov. 5, 2019, 10:59 a.m.