plot3D.x3p.file: 3D plot of a surface in X3P format

Description Usage Arguments Details Value References Examples

View source: R/plot3D.x3p.file.R View source: R/plot3D.x3p.file_mod.R

Description

3D plot of a surface in X3P format

Usage

1
2
plot3D.x3p.file(x3p.surf.file.info, num.x.pts = NULL, num.slices = NULL,
  aspect = c(1, 0.3, 0.2), plot.type = "points")

Arguments

x3p.surf.file.info

information read in by read.x3p

num.x.pts

number of points desired in the x-direction.

num.slices

number of points desired in the y-direction.

aspect

aspect ratios

plot.type

"points" or "surface"

Details

3D plot of a surface in X3P format. Some type of decimation is usually required so that the surface can be rendered fast. The arguments num.x.pts and num.slices allow the user to subsample the surface down to the desited size. If the number of points is still potentially large, the function will prompt the user if they want to continue.

Value

a plot.

References

http://open-gps.sourceforge.net/

Examples

1
2
3
file.path <- system.file("extdata", "glock.x3p", package="x3pr")
glock.x3p.info <- read.x3p(file.path)
plot3D.x3p.file(glock.x3p.info, 1024, 80, aspect=c(1,3,0.4), plot.type="surface")

npetraco/x3pr documentation built on May 23, 2019, 9:33 p.m.