Learn R Programming

Morpho (version 2.12)

meshcube: calculate the corners of a mesh's bouning box

Description

calculate the corners of a mesh's bouning box

Usage

meshcube(x)

Value

returns a 8 x 3 matrix with the coordinates of the corners of the bounding box.

Arguments

x

object of class 'mesh3d'

Examples

Run this code

require(rgl)
data(boneData)
mc <- meshcube(skull_0144_ch_fe.mesh)
if (FALSE) {
spheres3d(mc)
wire3d(skull_0144_ch_fe.mesh)
}

Run the code above in your browser using DataLab