3D modeling of city has become a hot research topic in the field of GIS, it has very important significance in terms of urban construction, management and planning. Building model is an important sector of 3D city model, after analyzing the traditional algorithm of building modeling, a combined algorithm based on CSG and SketchUp is proposed in this paper. Using CSG model, the regular buildings are constructed firstly, then using SketchUp software, the irregular buildings are constructed. Finally, all building models are combined into a continuous building. The paper uses parts of the actual data to verify the feasibility of this modeling approach in the paper.