Method for determining topological airspace based on digital model, terminal and storage medium
By optimizing and converting the initial three-dimensional model of urban modeling into point cloud data, and combining it with the algorithm of the CGAL library for triangulation and comparison, the automation of urban modeling and data processing is realized, solving the high labor cost and high labor cost of traditional methods. The problem of low efficiency is solved and the modeling quality and processing efficiency are improved.
Patent Information
- Application Number
- CN202410728563.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional urban modeling and spatial data processing require a lot of manual operations, resulting in high labor and time costs and low efficiency.
Optimize by obtaining the initial three-dimensional model of the target city and convert it into point cloud data in PCD format, perform urban airspace triangulation or compare channel triangles with point cloud data of other cities, using Alpha in the CGAL library shape and Delaunay triangulation algorithms to automate the entire process from urban modeling to data processing.
It improves the quality and accuracy of the three-dimensional model, reduces labor costs and time costs, improves the efficiency and scalability of data processing, and provides important data support for urban planning.
Smart Images

Figure CN118747786A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of modeling technology, and in particular to a method, a terminal and a storage medium for determining a topological airspace based on a digital model. Background Art
[0002] Three-dimensional modeling of cities can provide reliable and comprehensive data support for urban planning, infrastructure design and other fields, which is conducive to urban construction and promotes sustainable urban development.
[0003] Traditional urban modeling and spatial data processing often require a lot of manual operation and processing, resulting in high labor and time costs and low efficiency. Summary of the invention
[0004] The embodiments of the present invention provide a method, a terminal and a storage medium for determining a topological airspace based on a digital model, so as to solve the problems of high labor cost and time cost and low efficiency of the existing methods.
[0005] In a first aspect, an embodiment of the present invention provides a method for determining a topological airspace based on a digital model, comprising:
[0006] Obtain an initial three-dimensional model of the target city;
[0007] Optimizing the initial three-dimensional model of the target city to obtain an optimized target city model;
[0008] Convert the optimized target city model into point cloud data in PCD format of the target city;
[0009] Based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, urban airspace channel triangulation surfaces are compared to obtain comparison results.
[0010] In a possible implementation, the initial three-dimensional model of the target city is optimized to obtain an optimized target city model, including:
[0011] Retopologically retopologically the initial three-dimensional model of the target city to obtain a retopologically retopological target city model;
[0012] A sectioning operation is performed on the retopological target city model to obtain a sectioned target city model, and the sectioned target city model is used as an optimized target city model.
[0013] In a possible implementation, after performing a slice operation on the retopologically restructured target city model to obtain the sliced target city model, the method further includes:
[0014] Performing facet retopology on the faceted target city model to obtain the facet retopology target city model, and using the facet retopology target city model as the optimized target city model.
[0015] In a possible implementation, the initial three-dimensional model of the target city is retopologically modified to obtain a retopological target city model, including:
[0016] Based on ZBrush, the initial 3D model of the target city is retopologically modified to obtain the retopological target city model.
[0017] In a possible implementation, a sectioning operation is performed on the retopological target city model to obtain the sectioned target city model, including:
[0018] Based on 3ds Max, Boolean operations are performed on the retopological target city model to obtain the target city model after sectioning.
[0019] In a possible implementation, the optimized target city model is a model of the target city in OBJ format;
[0020] Convert the optimized target city model into point cloud data in PCD format of the target city, including:
[0021] Convert the OBJ format model of the target city into PCL point cloud data;
[0022] The PCL point cloud data is converted into a format to obtain the point cloud data of the target city in PCD format.
[0023] In a possible implementation, based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city, including:
[0024] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in PCD format of the target city is triangulated to obtain the urban airspace triangulation result of the target city.
[0025] In a possible implementation, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, the urban airspace channel triangulation is compared to obtain the comparison results, including:
[0026] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities are compared in terms of urban airspace channel triangles to obtain the comparison results.
[0027] In a second aspect, an embodiment of the present invention provides a device for determining a topological space based on a digital model, including:
[0028] An initial modeling module is used to obtain an initial three-dimensional model of the target city;
[0029] An optimization processing module is used to optimize the initial three-dimensional model of the target city to obtain an optimized target city model;
[0030] A conversion module, used to convert the optimized target city model into point cloud data in PCD format of the target city;
[0031] The application module is used to perform urban airspace triangulation based on the point cloud data in PCD format of the target city to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, perform urban airspace channel triangulation comparison to obtain comparison results.
[0032] In a third aspect, an embodiment of the present invention provides a terminal comprising a memory and a processor, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method for determining a topological airspace based on a digital model as described in the first aspect or any possible implementation of the first aspect.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the method for determining a topological airspace based on a digital model as described in the first aspect or any possible implementation method of the first aspect.
[0034] The embodiment of the present invention provides a method, terminal and storage medium for determining topological airspace based on a digital model. The method obtains an initial three-dimensional model of a target city and optimizes the initial three-dimensional model of the target city, so that the quality and accuracy of the three-dimensional model of the target city are higher; the optimized target city model is converted into point cloud data in PCD format of the target city, so that the model can be converted into data that is more suitable for storage and processing, and the efficiency and scalability of data processing can be improved; based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, urban airspace channel triangulation is compared to obtain a comparison result, which can provide important data support for urban planning; the method combines urban three-dimensional modeling and automated processing, and can realize full process automation from urban modeling to data processing, reduce labor costs and time costs, and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 It is a flowchart of a method for determining a topological airspace based on a digital model provided by an embodiment of the present invention;
[0037] Figure 2 is a flow chart of a method for determining a topological airspace based on a digital model provided by another embodiment of the present invention;
[0038] Figure 3 It is a structural schematic diagram of a device for determining a topological airspace based on a digital model provided by an embodiment of the present invention;
[0039] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a flowchart of the implementation of the method for determining topological airspace based on a digital model provided by an embodiment of the present invention. The execution subject of the method for determining topological airspace based on a digital model may be a terminal.
[0043] The above-mentioned method for determining the topological airspace based on the digital model may include:
[0044] In S101, an initial three-dimensional model of a target city is obtained.
[0045] In this embodiment, the initial modeling of the target city can be performed by using relevant modeling software, such as SketchUp, Blender or 3ds Max, etc., based on the geographic data and architectural information of the real world, to obtain an initial three-dimensional model of the target city. Specifically, the three-dimensional modeling of the buildings, roads, terrain and other elements of the target city can be included. In the three-dimensional modeling process, it may be necessary to combine map data, satellite images and the like for reference.
[0046] When there are multiple cities, corresponding initial three-dimensional models can be created for the multiple cities one by one.
[0047] In S102, the initial three-dimensional model of the target city is optimized to obtain an optimized target city model.
[0048] This embodiment can improve the quality and accuracy of the three-dimensional model of the target city by optimizing the initial three-dimensional model of the target city.
[0049] In some embodiments, the above S102 may include:
[0050] Retopologically retopologically the initial three-dimensional model of the target city to obtain a retopologically retopological target city model;
[0051] A sectioning operation is performed on the retopological target city model to obtain a sectioned target city model, and the sectioned target city model is used as an optimized target city model.
[0052] In some embodiments, retopologically ...
[0053] Based on ZBrush, the initial 3D model of the target city is retopologically modified to obtain the retopological target city model.
[0054] In this embodiment, the initial 3D model of the target city can be imported into ZBrush, and the topology optimization tool can be used to perform retopology optimization on the model. Specific optimization operations based on ZBrush can include removing unnecessary details, reducing the number of polygons, etc., to improve the performance and editability of the model, and facilitate subsequent processing and rendering.
[0055] Topological optimization (TO) refers to the adjustment of geometric structures to improve their performance or adapt to specific application requirements. In urban spatial data processing, topological optimization is used to optimize the topological structure of urban models and improve the efficiency and accuracy of data processing.
[0056] In some embodiments, performing a slice operation on the retopologically restructured target city model to obtain the sliced target city model includes:
[0057] Based on 3ds Max, Boolean operations are performed on the retopological target city model to obtain the target city model after sectioning.
[0058] Import the retopological target city model into 3ds Max and use Boolean operation tools, such as Boolean, to merge the overlapping parts to create a more complete model. For example, merge the overlapping parts of buildings and roads.
[0059] In some embodiments, after performing the above-mentioned sectioning operation on the retopologically restructured target city model to obtain the sectioned target city model, the above-mentioned S102 further includes:
[0060] Performing facet retopology on the faceted target city model to obtain the facet retopology target city model, and using the facet retopology target city model as the optimized target city model.
[0061] Among them, the optimized target city model is the OBJ format model of the target city
[0062] This step is optional. You can determine whether to perform facet retopology and topology optimization again based on actual conditions.
[0063] In this embodiment, 3ds Max can be used to perform section retopology on the sectioned target city model to ensure that the topological structure of the model is clear and concise, thereby improving the quality and performance of the model and improving the efficiency of subsequent processing.
[0064] The embodiment of the present application can perform high-detailed 3D urban modeling through ZBrush, and perform retopology and section processing through 3ds Max, and finally generate an optimized OBJ model file for application in urban planning and virtual reality fields. The combination of ZBrush and 3ds Max can greatly improve the modeling efficiency and accuracy, especially when dealing with urban details and complex structures. The present application can better retain details and optimize the performance of the model, providing a more reliable model foundation for urban planning and virtual reality applications; it can not only provide high-quality 3D model support for urban planning and architectural design, but also bring more realistic and detailed urban scenes to virtual reality applications.
[0065] In S103, the optimized target city model is converted into point cloud data of the target city in PCD (Point Cloud Data) format.
[0066] Point cloud data refers to a data set consisting of a large number of discrete points, each of which contains spatial location and other attribute information. In urban spatial data processing, point cloud data is used to represent terrain surfaces, building outlines, etc.
[0067] The PCD format is a point cloud data file format that stores point coordinates, colors, normals and other information in text or binary form.
[0068] The embodiment of the present application converts the model into point cloud data, which helps to perform more flexible operations in subsequent processing.
[0069] In some embodiments, the optimized target city model is a model of the target city in OBJ format;
[0070] The above S103 may include:
[0071] Convert the OBJ format model of the target city into PCL (Point Cloud Library) point cloud data; OBJ is a 3D model file format used to share and convert model data between different modeling software.
[0072] The PCL point cloud data is converted into a format to obtain the point cloud data of the target city in PCD format.
[0073] Through 3D modeling software or specialized point cloud processing tools, points on the model surface can be sampled and saved as point cloud data, so that the OBJ format model of the target city can be converted into PCL point cloud data. Then the PCL point cloud data is converted into PCD format point cloud data for subsequent processing and analysis.
[0074] In S104, based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, urban airspace channel triangulation surfaces are compared to obtain a comparison result.
[0075] The point cloud data of other cities in PCD format can be obtained through the same steps. You can also get the OBJ model of other cities through your mobile phone and convert it into point cloud data in PCD format, and so on.
[0076] Triangulation refers to the process of decomposing a polygon or a set of polygons into a set of triangles, which is used to represent and process complex geometric shapes. In urban spatial data processing, it is often used to generate terrain surface models, building models, etc.
[0077] Channel Triangular Mesh Comparison (CTMC) is a method for comparing the differences and similarities between two or more three-dimensional models. In urban spatial data processing, it is used to evaluate the similarities and differences of geometric shapes, structures and other features between different urban models.
[0078] The embodiment of the present application obtains an initial three-dimensional model of the target city and optimizes the initial three-dimensional model of the target city, so that the quality and accuracy of the three-dimensional model of the target city are higher; the optimized target city model is converted into point cloud data in PCD format of the target city, so that the model can be converted into data that is more suitable for storage and processing, which can improve the efficiency and scalability of data processing; based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, the urban airspace channel triangulation surface is compared to obtain a comparison result, which can provide important data support for urban planning; the method combines urban three-dimensional modeling and automated processing, and can realize the automation of the entire process from urban modeling to data processing, reduce labor costs and time costs, and improve efficiency.
[0079] In some embodiments, the above-mentioned urban airspace triangulation is performed based on the point cloud data in PCD format of the target city to obtain the urban airspace triangulation result of the target city, including:
[0080] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in PCD format of the target city is triangulated to obtain the urban airspace triangulation result of the target city.
[0081] In some embodiments, the above-mentioned point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities are compared to obtain the comparison results of the urban airspace channel triangulation, including:
[0082] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL (Computational Geometry Algorithms Library), the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities are compared in terms of urban airspace channel triangles to obtain the comparison results.
[0083] Using the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the PCD format point cloud data of the target city can be processed to generate a geometric representation of the urban airspace, such as the boundaries and internal structures of the urban airspace. Alpha shape can be used to extract the geometric shape of the point cloud, and the Delaunay triangulation algorithm can be used to connect the point cloud into a triangular mesh to form a smooth terrain surface.
[0084] According to the needs, urban airspace triangulation can be performed to generate Delaunay triangulation results of the urban airspace of the target city for terrain analysis, visualization, etc.; or channel triangulation surfaces can be compared with other cities to obtain comparative results for urban planning, road network design, etc. The triangulation results and comparative results can provide important data support for urban planners and decision makers, helping them to better understand and use urban spatial data and promote sustainable urban development.
[0085] The embodiments of the present application can process large-scale urban spatial data and generate results with practical application value through innovations in automated processes, optimization algorithms, data format conversion and application of results, thereby achieving efficient processing and application of urban spatial data and adapting to the needs and development trends of future urban data processing.
[0086] For example, the overall process of the method provided in this application is as follows: Figure 2 The detailed description of each step can be found in the above related description, which will not be repeated here.
[0087] When the city model is huge, it contains a large number of triangular faces. It takes a lot of computing resources and time to compare, which is inefficient. Some comparison technologies may have insufficient precision and accuracy when dealing with complex scenes or specific situations, which may lead to missed detections and false detections. The city model formats used by different software or data sources may be different, which adds additional complexity and possible errors. Therefore, this application adopts OBJ format to PCL point cloud, and converts the city model in OBJ format to PCL point cloud format, which solves the compatibility problem between different data formats and provides a unified data representation method for subsequent processing. Convert the PCL point cloud format to PCD point cloud format, which is a universal format for storing point cloud data, which is convenient for subsequent processing and analysis. Use the Alpha Shape and Delaunay triangulation algorithms in CGAL to convert the point cloud data into a triangular mesh, which solves the conversion problem from point cloud to triangular representation and provides a standard data representation for comparison. Compare the urban airspace channel models processed by Alpha Shape and Delaunay triangulation to verify the consistency between models of different versions or sources, check the quality and accuracy of the models, and solve the technical problems of urban airspace channel model comparison.
[0088] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0089] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0090] Figure 3 A schematic diagram of the structure of a device for determining a topological airspace based on a digital model provided by an embodiment of the present invention is shown. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:
[0091] like Figure 3 As shown, the device 20 for determining a topological space based on a digital model may include: an initial modeling module 21 , an optimization processing module 22 , a conversion module 23 and an application module 24 .
[0092] An initial modeling module 21 is used to obtain an initial three-dimensional model of a target city;
[0093] The optimization processing module 22 is used to optimize the initial three-dimensional model of the target city to obtain an optimized target city model;
[0094] A conversion module 23, used to convert the optimized target city model into point cloud data in PCD format of the target city;
[0095] Application module 24 is used to perform urban airspace triangulation based on the point cloud data in PCD format of the target city to obtain the urban airspace triangulation result of the target city; and / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, perform urban airspace channel triangulation comparison to obtain comparison results.
[0096] In a possible implementation, the optimization processing module 22 may be specifically used to:
[0097] Retopologically retopologically the initial three-dimensional model of the target city to obtain a retopologically retopological target city model;
[0098] A sectioning operation is performed on the retopological target city model to obtain a sectioned target city model, and the sectioned target city model is used as an optimized target city model.
[0099] In a possible implementation, the optimization processing module 22 may also be used to:
[0100] After performing a sectioning operation on the retopologically retopologically targeted city model to obtain the sectioned targeted city model, sectioning retopology is performed on the sectioned targeted city model to obtain the sectioned retopologically retopologically targeted city model, and the sectioned retopologically retopologically retopologically targeted city model is used as the optimized targeted city model.
[0101] In a possible implementation, in the optimization processing module 22, the initial three-dimensional model of the target city is retopologically retopologically obtained to obtain the retopologically retopological target city model, including:
[0102] Based on ZBrush, the initial 3D model of the target city is retopologically modified to obtain the retopological target city model.
[0103] In a possible implementation, in the optimization processing module 22, a sectioning operation is performed on the retopologically restructured target city model to obtain the sectioned target city model, including:
[0104] Based on 3ds Max, Boolean operations are performed on the retopological target city model to obtain the target city model after sectioning.
[0105] In a possible implementation, the optimized target city model is a model of the target city in OBJ format;
[0106] The conversion module 23 is specifically used for:
[0107] Convert the OBJ format model of the target city into PCL point cloud data;
[0108] The PCL point cloud data is converted into a format to obtain the point cloud data of the target city in PCD format.
[0109] In a possible implementation, in the application module 24, based on the point cloud data in the PCD format of the target city, the urban airspace triangulation is performed to obtain the urban airspace triangulation result of the target city, including:
[0110] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in PCD format of the target city is triangulated to obtain the urban airspace triangulation result of the target city.
[0111] In a possible implementation, in the application module 24, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, the urban airspace channel triangulation is compared to obtain the comparison results, including:
[0112] Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities are compared in terms of urban airspace channel triangles to obtain the comparison results.
[0113] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 4 As shown, the terminal 4 of this embodiment includes: a processor 40 and a memory 41. The memory 41 is used to store a computer program 42, and the processor 40 is used to call and run the computer program 42 stored in the memory 41 to perform the steps in the above-mentioned method embodiments for determining a topological airspace based on a digital model, such as Figure 1 Alternatively, the processor 40 is used to call and run the computer program 42 stored in the memory 41 to implement the functions of each module / unit in the above-mentioned device embodiments, for example Figure 3 Functions of the modules / units 21 to 24 are shown.
[0114] Exemplarily, the computer program 42 may be divided into one or more modules / units, which are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into Figure 3 Modules / units 21 to 24 are shown.
[0115] The terminal 4 may be a computing device such as a computer or a server, or other devices that can implement the above method. The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.
[0116] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0117] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used to store the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0118] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0124] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments for determining the topological airspace based on the digital model can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.
[0125] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for determining a topological space based on a digital model, characterized in that: include: Obtain an initial three-dimensional model of the target city; Optimizing the initial three-dimensional model of the target city to obtain an optimized target city model; Converting the optimized target city model into point cloud data in PCD format of the target city; Based on the point cloud data in PCD format of the target city, urban airspace triangulation is performed to obtain an urban airspace triangulation result of the target city; And / or, based on the point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities, a comparison of the triangulated surfaces of the urban airspace channels is performed to obtain a comparison result.
2. The method for determining topological space based on a digital model according to claim 1, characterized in that: The step of optimizing the initial three-dimensional model of the target city to obtain an optimized target city model includes: Retopologically retopologically the initial three-dimensional model of the target city to obtain a retopologically retopological target city model; A sectioning operation is performed on the retopologically restructured target city model to obtain a sectioned target city model, and the sectioned target city model is used as the optimized target city model.
3. The method for determining topological space based on a digital model according to claim 2, characterized in that: After performing a sectioning operation on the retopologically restructured target city model to obtain the sectioned target city model, the method further includes: Performing section retopology on the sectioned target city model to obtain the section retopology target city model, and using the section retopology target city model as the optimized target city model.
4. The method for determining topological space based on digital model according to claim 2, characterized in that: The retopology of the initial three-dimensional model of the target city to obtain a retopology target city model includes: Based on ZBrush, the initial three-dimensional model of the target city is retopologically modified to obtain a retopologically modified target city model.
5. The method for determining topological space based on digital model according to claim 2, characterized in that: The performing a sectioning operation on the retopologically restructured target city model to obtain the sectioned target city model includes: Based on 3ds Max, Boolean operation is performed on the retopological target city model to obtain the target city model after sectioning.
6. The method for determining topological space based on digital model according to claim 1, characterized in that: The optimized target city model is a model of the target city in OBJ format; The step of converting the optimized target city model into point cloud data in PCD format of the target city includes: Convert the OBJ format model of the target city into PCL point cloud data; The PCL point cloud data is format converted to obtain point cloud data of the target city in PCD format.
7. The method for determining topological airspace based on a digital model according to any one of claims 1 to 6, characterized in that: The step of performing urban airspace triangulation based on the point cloud data in PCD format of the target city to obtain the urban airspace triangulation result of the target city includes: Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in the PCD format of the target city is triangulated to obtain the urban airspace triangulation result of the target city.
8. The method for determining topological airspace based on a digital model according to any one of claims 1 to 6, characterized in that: The point cloud data in PCD format of the target city and the point cloud data in PCD format of other cities are compared with each other on the urban airspace channel triangulation surface to obtain the comparison results, including: Based on the Alpha shape and Delaunay triangulation algorithms in the CGAL library, the point cloud data in the PCD format of the target city and the point cloud data in the PCD format of other cities are compared in terms of urban airspace channel triangles to obtain comparison results.
9. A terminal, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method for determining a topological airspace based on a digital model as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for determining a topological space based on a digital model as claimed in any one of claims 1 to 8 are implemented.
