def __calculate_volume(self):
volume = <NUM_LIT:0.0><EOL>for i in range(<NUM_LIT:0>, len(self.__max_corner)):<EOL><INDENT>side_length = self.__max_corner[i] - self.__min_corner[i]<EOL>if side_length != <NUM_LIT:0.0>:<EOL><INDENT>if volume == <NUM_LIT:0.0>: volume = side_length<EOL>else: volume *= side_length<EOL><DEDENT><DEDENT>return volume<EOL>
!
        @brief Calculates volume of current spatial block.
        @details If empty dimension is detected (where all points has the same value) then such dimension is ignored
                  during calculation of volume.

        @return (double) Volume of current spatial block.