The invention discloses a method for generating a GLTF based on coordinate information of three-dimensional building components, and the method comprises the following steps: S1, obtaining three-dimensional coordinate data of a building, including coordinate information of walls, columns, column caps, beams and floors; s2, generating a 3D
building model according to the coordinate information of the wall component; s3, generating a 3D
building model according to the coordinate information of the column component; s4, generating a 3D
building model according to the coordinate information of the column cap component; s5, generating a 3D building model according to the coordinate information of the beam component; s6, generating a 3D building model according to the information coordinates of the floor components; s7, summarizing component node information generated in the steps S2-S6 to form a complete three-dimensional model of the building, generating a GLTF file containing all components, and integrating and optimizing the model; and S8, the generated GLTF file is verified, and the final GLTF file is generated and stored. According to the method, through an
automatic processing flow, an efficient and accurate modeling process is realized from acquisition of the three-dimensional coordinate data to generation of the 3D building model to generation of the GLTF file.