gpc2poly: Converts a gpclib polygon to a simple polygon.

Description Usage Arguments Value See Also Examples

View source: R/polygon.R

Description

This function Assumes that the polygon is simple and has no holes.

Usage

1
  gpc2poly(gpc)

Arguments

p

A gpclib polygon

Value

A polygon of class polygon

See Also

newPolygon, poly2gpc

Examples

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

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