The rectangle is defined by {x|a <= x <= b} where a is the minimum values and b is the maximum values.
Arguments
- a
A vector of length 3.
- b
A vector of length 3.
- ...
Further arguments passed on the the RGL plotting functions. This must be done as lists (see examples). Currently the following arguments are supported:
argsPlot3d
: A list of arguments forrgl::plot3d
.argsSegments3d
: A list of arguments forrgl::segments3d
.argsPolygon3d
: A list of arguments forrgl::polygon3d
.argsShade3d
: A list of arguments forrgl::shade3d
.
Examples
# \donttest{
ini3D()
plotRectangle3D(c(0,0,0), c(1,1,1))
plotRectangle3D(c(1,1,1), c(4,4,3), drawPoints = TRUE, drawLines = FALSE,
argsPlot3d = list(size=2, type="s", alpha=0.3))
ids <- plotRectangle3D(c(2,2,2), c(3,3,2.5), argsPolygon3d = list(alpha = 1) )
finalize3D()
3D plot
# pop3d(id = ids) remove last object
# }