plotHexahedron: Plot hexahedron

View source: R/hexahedron.R

plotHexahedronR Documentation

Plot hexahedron

Description

Plot a hexahedron with rgl.

Usage

plotHexahedron(hexahedron, alpha = 1)

Arguments

hexahedron

a hexahedron given by a 3 times 8 matrix; see makeHexahedron

alpha

opacity, a number between 0 and 1

Value

No returned value, called for plotting.

Examples

library(uniformly)
hexahedron <- makeHexahedron(
  p0 = c(0, 0, 0),
  p1 = c(2, 0, 0),
  p2 = c(2, 2, 0),
  p3 = c(0, 2, 0),
  p4 = c(0.5, 1.5, 2),
  p5 = c(0.5, 0.5, 2),
  p6 = c(1.5, 0.5, 2),
  p7 = c(1.5, 1.5, 2)
)
plotHexahedron(hexahedron)

stla/uniformly documentation built on July 29, 2023, 4:35 p.m.