The three-dimensional organic growth features of buildings have been given more and more attention according to the unique view representation regulations of the indoor construction industry, in order to optimize the usage and allocation efficiency of building space. To explore the configuration structure of building function space, the three-dimensional box dimension algorithm is used to measure the fractal dimension of the indoor and outdoor form of building space, and the two-dimensional and three-dimensional fractal characteristics of building space are compared and analyzed; the method of the second derivative is utilized for the automatic recognition of fractal scale-free areas, aiming at the imprecise problem of the artificial judgment of scale-free areas in earlier fractal research of interior and outdoor forms of architectural space. The experimental results show that the second derivative method can effectively and automatically identify the scale-free region. The coefficients of linear fitting are above 0.990, and the indoor and outdoor forms of architectural space have clear fractal characteristics. After applying the method, the three-dimensional fractal dimension grows, indicating that the interior and outdoor form usage of architectural space in this area is generally effective and compact.