Description Usage Arguments Value XYZ Manipulation Examples
Apply transformations to the XYZ axes of a point cloud.
1 2 3 4 5 6 | tlsTransform(
las,
xyz = c("X", "Y", "Z"),
bring_to_origin = FALSE,
rotate = FALSE
)
|
las |
|
xyz |
|
bring_to_origin |
|
rotate |
|
LAS
object.
The xyz
argument can take a few different forms. It is useful for shifting axes positions in a point cloud or
to mirror an axis' coordinates. All axes characters can be entered in lower or uppercase and also be preceded
by a minus sign ('-') to reverse its coordinates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file)
bbox(tls)
range(tls$Z)
### swap the Y and Z axes
zy = tlsTransform(tls, c('x', 'z', 'y'))
bbox(zy)
range(zy$Z)
### return an upside down point cloud
ud = tlsTransform(tls, c('x', 'y', '-z'))
bbox(ud)
range(ud$Z)
plot(zy)
### mirror all axes, then set the point cloud's starting point as the origin
rv = tlsTransform(tls, c('-x', '-y', '-z'), bring_to_origin=TRUE)
bbox(rv)
range(rv$Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.