OEGeom3DGetCenterAndExtents

OEGeom3DGetCenterAndExtents(xyz: OEFloatArray, ncoord: int,
                            center: OEFloatArray,
                            extents: OEFloatArray) -> None
OEGeom3DGetCenterAndExtents(xyz: OEDoubleArray, ncoord: int,
                            center: OEDoubleArray,
                            extents: OEDoubleArray) -> None

Determines the bounding box that can encompass all the points defined by xyz and ncoord. The length of each side of the box output in the 3-element array extents. The geometric center of the box is output to the center parameter.

Note

The center of the box is different from the center-of-mass.