menpo/shape/pointcloud.py
def bounding_box(self):
        r"""
        Return the bounding box of this PointCloud as a directed graph.
        The the first point (0) will be nearest the origin for an axis aligned
        Pointcloud.
        In the case of an image, this ordering would appear as:

        ::

            0<--3
            |   ^
            |   |
            v   |
            1-->2

        Returns
        -------
        bounding_box : :map:`PointDirectedGraph`
            The axis aligned bounding box of the PointCloud.
        """
        from .graph import PointDirectedGraph
        min_p, max_p = self.bounds()
        return PointDirectedGraph(np.array([min_p, [max_p[0], min_p[1]],
                                            max_p, [min_p[0], max_p[1]]]),
                                  np.array([[0, 1], [1, 2], [2, 3], [3, 0]]),
                                  copy=False)
r"""
        Return the bounding box of this PointCloud as a directed graph.
        The the first point (0) will be nearest the origin for an axis aligned
        Pointcloud.
        In the case of an image, this ordering would appear as:

        ::

            0<--3
            |   ^
            |   |
            v   |
            1-->2

        Returns
        -------
        bounding_box : :map:`PointDirectedGraph`
            The axis aligned bounding box of the PointCloud.
        
r"""
Return the bounding box of this PointCloud as a directed graph.
The the first point (0) will be nearest the origin for an axis aligned
Pointcloud.
In the case of an image, this ordering would appear as.
r " " " Return the bounding box of this PointCloud as a directed graph . The the first point ( 0 ) will be nearest the origin for an axis aligned Pointcloud . In the case of an image this ordering would appear as .
def bounding_box(self):
        from .graph import PointDirectedGraph
        min_p, max_p = self.bounds()
        return PointDirectedGraph(np.array([min_p, [max_p[0], min_p[1]],
                                            max_p, [min_p[0], max_p[1]]]),
                                  np.array([[0, 1], [1, 2], [2, 3], [3, 0]]),
                                  copy=False)
def bounding_box ( self ) : from . graph import PointDirectedGraph min_p , max_p = self . bounds ( ) return PointDirectedGraph ( np . array ( [ min_p , [ max_p [ 0 ] , min_p [ 1 ] ] , max_p , [ min_p [ 0 ] , max_p [ 1 ] ] ] ) , np . array ( [ [ 0 , 1 ] , [ 1 , 2 ] , [ 2 , 3 ] , [ 3 , 0 ] ] ) , copy = False )
r"""
Return the bounding box of this PointCloud as a directed graph.
r " " " Return the bounding box of this PointCloud as a directed graph .
r"""
        Return the bounding box of this PointCloud as a directed graph.
        The the first point (0) will be nearest the origin for an axis aligned
        Pointcloud.
        In the case of an image, this ordering would appear as:

        ::

            0<--3
            |   ^
            |   |
            v   |
            1-->2

        Returns
        -------
        bounding_box : :map:`PointDirectedGraph`
            The axis aligned bounding box of the PointCloud.
        """
self
0<--3
:map:`PointDirectedGraph`
The axis aligned bounding box of the PointCloud.
: map : ` PointDirectedGraph ` The axis aligned bounding box of the PointCloud .