Skip to contents

The rectangle is defined by {x|a <= x <= b} where a is the minimum values and b is the maximum values.

Usage

plotRectangle3D(a, b, ...)

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:

Value

Object ids (invisible).

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()


# pop3d(id = ids) remove last object
# }