The application relates to a method for generating a multi-stage slope of earthwork of a
building model, which comprises the following steps: acquiring a bottom
contour line of an earthwork entity and multi-stage slope data corresponding to each side, determining the outward expansion distance of each side at different heights based on the multi-stage slope data, for any target side, if there is a slope at a certain height on the other side except the target side, the outward expansion distance of the target side at the height is calculated through linear interpolation, the bottom
contour line is outwardly expanded layer by layer according to the outward expansion distance corresponding to each height, a plurality of planar contours at different heights are obtained, a slope surface corresponding to each side is generated based on the planar contours of adjacent heights, and the intersecting surfaces in the slope surface are
cut to obtain a complete earthwork slope model. Through the application, the problem of topological error under different numbers of steps is solved, the outward expansion values of different slope sides at the same height are supplemented through linear interpolation, self-intersection is eliminated, and surface
cutting is performed, so that the slope surfaces are continuously connected, without gaps and misplacement.