public void setFromPointCloud ( Iterable < ? extends Point3D > pointCloud ) { Vector3f r = new Vector3f ( ) ; Vector3f s = new Vector3f ( ) ; Vector3f t = new Vector3f ( ) ; Point3f c = new Point3f ( ) ; double [ ] extents = new double [ 3 ] ; computeOBBCenterAxisExtents ( pointCloud , r , s , t , c , extents ) ; set ( c . getX ( ) , c . getY ( ) , c . getZ ( ) , r . getX ( ) , r . getY ( ) , r . getZ ( ) , s . getX ( ) , s . getY ( ) , s . getZ ( ) , extents [ 0 ] , extents [ 1 ] , extents [ 2 ] ) ; }
Set the oriented box from a could of points .