pc4bims/slope.py
def defineBoundary(self):
        '''Method to obtain the coordinates of the boundary vertices of the
        slope and plot it if it is wanted.

        The origin of the coordinates is in the corner of the bottom with the\
        back of the slope. The coordinates define a close polygon, ie, the\
        first pair of coordinates is the same than the last one.

        Returns:
            (`numpy.ndarray`): Coordinates of the boundary vertices of the\
                slope.

        Examples:
            >>> slopeGeometry = AnthropicSlope(12, [1, 1.5], 10, 10)
            >>> slopeGeometry.defineBoundary()
            array([[  0.        ,   0.        ],
                   [ 28.        ,   0.        ],
                   [ 28.        ,   4.57142857],
                   [ 18.        ,   4.57142857],
                   [ 10.        ,  16.57142857],
                   [  0.        ,  16.57142857],
                   [  0.        ,   0.        ]])
        '''

        # Slope-face horizontal projection (horizontal distance)
        slopeDist = self.slopeHeight * self.slopeDip[0] / self.slopeDip[1]
        # Creating the contour
        boundCoords = np.array(
                [[0, 0],
                 [self.crownDist + slopeDist + self.toeDist, 0],
                 [self.crownDist + slopeDist + self.toeDist, self.maxDepth],
                 [self.crownDist + slopeDist, self.maxDepth],
                 [self.crownDist, self.maxDepth + self.slopeHeight],
                 [0, (self.maxDepth + self.slopeHeight)],
                 [0, 0]])
        # Setting the attribute to the instanced object.
        setattr(self, 'boundCoords', boundCoords)

        return boundCoords
Method to obtain the coordinates of the boundary vertices of the
        slope and plot it if it is wanted.

        The origin of the coordinates is in the corner of the bottom with the\
        back of the slope. The coordinates define a close polygon, ie, the\
        first pair of coordinates is the same than the last one.

        Returns:
            (`numpy.ndarray`): Coordinates of the boundary vertices of the\
                slope.

        Examples:
            >>> slopeGeometry = AnthropicSlope(12, [1, 1.5], 10, 10)
            >>> slopeGeometry.defineBoundary()
            array([[  0.        ,   0.        ],
                   [ 28.        ,   0.        ],
                   [ 28.        ,   4.57142857],
                   [ 18.        ,   4.57142857],
                   [ 10.        ,  16.57142857],
                   [  0.        ,  16.57142857],
                   [  0.        ,   0.        ]])
        
Method to obtain the coordinates of the boundary vertices of the
slope and plot it if it is wanted.

The origin of the coordinates is in the corner of the bottom with the\
back of the slope. The coordinates define a close polygon, ie, the\
first pair of coordinates is the same than the last one.
Method to obtain the coordinates of the boundary vertices of the slope and plot it if it is wanted . The origin of the coordinates is in the corner of the bottom with the \ back of the slope . The coordinates define a close polygon ie the \ first pair of coordinates is the same than the last one .
def defineBoundary(self):
        slopeDist = self.slopeHeight * self.slopeDip[0] / self.slopeDip[1]
        boundCoords = np.array(
                [[0, 0],
                 [self.crownDist + slopeDist + self.toeDist, 0],
                 [self.crownDist + slopeDist + self.toeDist, self.maxDepth],
                 [self.crownDist + slopeDist, self.maxDepth],
                 [self.crownDist, self.maxDepth + self.slopeHeight],
                 [0, (self.maxDepth + self.slopeHeight)],
                 [0, 0]])
        setattr(self, 'boundCoords', boundCoords)
        return boundCoords
def defineBoundary ( self ) : slopeDist = self . slopeHeight * self . slopeDip [ 0 ] / self . slopeDip [ 1 ] boundCoords = np . array ( [ [ 0 , 0 ] , [ self . crownDist + slopeDist + self . toeDist , 0 ] , [ self . crownDist + slopeDist + self . toeDist , self . maxDepth ] , [ self . crownDist + slopeDist , self . maxDepth ] , [ self . crownDist , self . maxDepth + self . slopeHeight ] , [ 0 , ( self . maxDepth + self . slopeHeight ) ] , [ 0 , 0 ] ] ) setattr ( self , 'boundCoords' , boundCoords ) return boundCoords
Method to obtain the coordinates of the boundary vertices of the
slope and plot it if it is wanted.
Method to obtain the coordinates of the boundary vertices of the slope and plot it if it is wanted .
'''Method to obtain the coordinates of the boundary vertices of the
        slope and plot it if it is wanted.

        The origin of the coordinates is in the corner of the bottom with the\
        back of the slope. The coordinates define a close polygon, ie, the\
        first pair of coordinates is the same than the last one.

        Returns:
            (`numpy.ndarray`): Coordinates of the boundary vertices of the\
                slope.

        Examples:
            >>> slopeGeometry = AnthropicSlope(12, [1, 1.5], 10, 10)
            >>> slopeGeometry.defineBoundary()
            array([[  0.        ,   0.        ],
                   [ 28.        ,   0.        ],
                   [ 28.        ,   4.57142857],
                   [ 18.        ,   4.57142857],
                   [ 10.        ,  16.57142857],
                   [  0.        ,  16.57142857],
                   [  0.        ,   0.        ]])
        ''' # Slope-face horizontal projection (horizontal distance) # Creating the contour # Setting the attribute to the instanced object.
Coordinates of the boundary vertices of the\
slope.
Coordinates of the boundary vertices of the \ slope .
(`numpy.ndarray`)
self
examples
None