Description Usage Arguments Value
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).
1 | projectIntoHeight(p, hmin, hmax, dnum = 3)
|
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. |
Chopped polygon or NULL if there is no intersection.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.