projectIntoHeight: Chops a polygon at two different heights.

Description Usage Arguments Value

View source: R/split-height.R

Description

Given a polygon and two levels, this function chops the polygon, returning a polygon that is the intersection between the original polygon and a strip from the lower height to the upper height. If there is not intersection this function returns NULL. The height can be any coordinate axis: x -> 1, y -> 2 and z -> 3 (default).

Usage

1
  projectIntoHeight(p, hmin, hmax, dnum = 3)

Arguments

p

Polygon, a matrix where the rows are x, y, z coordinates of the vertices.

hmin

Minimum height to chop the polygon.

hmax

Maximum height to chop the polygon.

dnum

Axis along which the heights are defined.

Value

Chopped polygon or NULL if there is no intersection.


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