Method and apparatus for efficient building footprint determination
By identifying and mapping edges and vertices in the grid data of the 3D structure to generate coverage areas, the problem of accuracy and efficiency in determining the 2D coverage area of 3D buildings in the existing technology is solved, achieving high efficiency and accuracy under limited processing capabilities. result.
Patent Information
- Application Number
- CN201910187646.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-03-14
- Filing Date
- 2019-03-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-03-13
AI Technical Summary
When the existing technology determines the 2D coverage area of a 3D building, it is difficult to achieve accuracy and efficiency on hardware with limited processing capabilities. Especially when processing input data containing separated buildings, the method is often efficient but inaccurate or accurate but It is not efficient and cannot meet the needs of both efficiency and accuracy.
By receiving mesh data of a 3D structure, identifying vertices with height values less than a threshold, mapping edges and their vertices to a 2D plane, determining candidate nodes and candidate lines, generating coverage areas, using connection graphs and adjacency lists, selecting candidate nodes and candidate Line combinations generate the coverage area of the 3D structure.
It achieves efficient and accurate determination of the 2D coverage area of 3D structures on devices with limited processing capabilities, and is able to process input data including separate buildings, improving the operational efficiency and accuracy of the computing system.
Smart Images

Figure CN110276835B_ABST
Abstract
Description
Technical Field
[0001] The methods and apparatus disclosed in this document relate to three-dimensional rendering, and more particularly, to efficient determination of two-dimensional building footprints based on three-dimensional building data. Background Art
[0002] Unless otherwise indicated herein, the materials described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.
[0003] Many modern software applications display three-dimensional representations of objects and scenes as part of their user interface. Three-dimensional (3D) graphics are used in a wide range of applications including video games, simulations, virtual reality applications, geospatial information applications, and applications for mapping and navigation. In many applications, 3D graphics are more useful than two-dimensional (2D) graphics in depicting real-world environments and locations because natural human interactions with the real world occur in three dimensions.
[0004] 3D graphics are typically generated as multiple polygons that form the shapes of objects and other structures in a 3D virtual environment. In modern 3D graphics, the final display typically includes additional graphical details beyond the simple rendering of the polygons to provide additional details and realism. Specifically, modern 3D graphics typically include many graphical effects, including but not limited to lighting effects, textures, and shadow effects that the processor applies to the polygons to display the 3D environment. For example, the rendered polygons typically receive one or more textures that simulate the appearance of materials (such as wood, stone, metal, cloth, and many other materials) in the real world. The appearance of the scene is also seriously affected by the virtual light source that illuminates the scene and forms the basis for the shadow effect. Finally, since most computing devices only display graphics with a two-dimensional (2D) display, 3D graphics are converted into a rasterized 2D pixel array for display. A 2D display depicts parts of a 3D scene in a manner similar to how a camera takes a 2D photo of a 3D scene in the real world.
[0005] One particularly useful application for 3D graphics is in 3D navigation map applications, such as those available on smartphones, tablet computers, and in-car infotainment systems. 3D building mesh data is often provided as a data set for such 3D navigation map applications. Figure 1 An exemplary polygon mesh 10 used by a 3D navigation map application to render a 3D building 12 is illustrated. However, the datasets used in such 3D navigation map applications typically do not include 2D footprints for the 3D buildings, or only provide overly simplified 2D footprints for some 3D buildings. 2D footprints are very useful in 3D navigation map applications due to several features.
[0006] However, accurate determination of 2D footprints faces several challenges. First, the method generally needs to work at runtime on hardware with relatively weak processing power and using existing datasets (such as those that may be commercially available) so as not to introduce additional effort in compiling the dataset and to minimize the impact on the existing dataset update process. However, many footprint generation methods are either efficient and inaccurate or accurate and inefficient, so that there is a trade-off between accuracy and performance. Second, the method generally needs to work with input data containing separated buildings. However, many existing methods cannot handle input data containing separated buildings. Therefore, it would be advantageous to provide a method for determining 2D footprints that is both accurate and efficient. In addition, it would be even more advantageous if the method could handle input data containing separated buildings. Summary of the invention
[0007] A method for determining a two-dimensional (2D) footprint of a three-dimensional (3D) structure in a virtual environment is disclosed. The method includes the following steps: receiving mesh data for at least one 3D structure using a processor, the mesh data including positions of a plurality of vertices connected by a plurality of edges to form a plurality of polygons, the plurality of polygons forming the at least one 3D structure; determining a connection graph including a plurality of candidate nodes and a plurality of candidate lines using the processor by: (i) identifying all edges having vertices less than a threshold height value from the plurality of edges, and (ii) determining a plurality of candidate lines and a plurality of candidate nodes by mapping the identified edges and their vertices onto a 2D plane; determining an adjacency list using the processor, the adjacency list indicating, for each candidate node from the plurality of candidate nodes, which other candidate nodes from the plurality of candidate nodes are connected to the corresponding candidate node through a candidate line from the plurality of candidate lines; and generating a footprint of the at least one 3D structure based on the connection graph and the adjacency list using the processor, the footprint including vertices corresponding to a selected group of candidate nodes from the plurality of candidate nodes and edges corresponding to a selected group of candidate lines from the plurality of candidate lines.
[0008] A graphic display system is also disclosed. The graphic display system includes: a display device; a memory; and a processor operatively connected to the display device and the memory. The processor is configured to: receive mesh data for at least one three-dimensional (3D) structure, the mesh data including positions of a plurality of vertices connected by a plurality of edges to form a plurality of polygons, the plurality of polygons forming the at least one 3D structure; determine a connection graph including a plurality of candidate nodes and a plurality of candidate lines by: (i) identifying all edges having vertices less than a threshold height value among the plurality of edges, and (ii) determining a plurality of candidate lines and a plurality of candidate nodes by mapping the identified edges and their vertices onto a two-dimensional (2D) plane; determine an adjacency list, the adjacency list indicating, for each candidate node among the plurality of candidate nodes, which other candidate nodes among the plurality of candidate nodes are connected to the corresponding candidate node through a candidate line among the plurality of candidate lines; and generate a footprint of the at least one 3D structure based on the connection graph and the adjacency list, the footprint including vertices corresponding to a selected candidate node group from the plurality of candidate nodes and including edges corresponding to a selected candidate line group from the plurality of candidate lines. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The foregoing aspects and other features of the method and apparatus are explained in the following description taken in conjunction with the accompanying drawings.
[0010] Figure 1 An exemplary polygonal mesh and corresponding rendered 3D building are shown.
[0011] Figure 2 is a schematic diagram of a computing device configured to determine a two-dimensional (2D) footprint of a 3D building.
[0012] Figure 3 A method for determining a footprint of a 3D structure in a virtual environment is shown.
[0013] Figure 4 Shows the use of Figure 3 The footprint for an exemplary 3D structure determined by the method.
[0014] Figure 5 The diagram shows that Figure 3 An exemplary mesh data representation used by the method.
[0015] Figure 6 An exemplary process for determining a connection graph is shown.
[0016] Figure 7 An exemplary simplification of an initialization connection diagram is illustrated.
[0017] Figure 8 The diagram shows Figure 7 An exemplary correction of the simplified connection diagram of .
[0018] Fig. 9 Shows Figure 8 An exemplary completion of the corrected connection diagram.
[0019] Fig.10 Shown for Fig. 9 An example adjacency list for a completed connected graph.
[0020] Fig.11 An exemplary process for generating a 2D footprint of at least one 3D structure based on a connectivity graph and an adjacency list is shown.
[0021] Fig.12 Shown according to Fig. 9 Exemplary determination of the 2D footprint of a completed connectivity graph.
[0022] Fig.13 Exemplary post-processing of the generated 2D footprint is shown. DETAILED DESCRIPTION
[0023] For the purpose of promoting an understanding of the principles of the present disclosure, reference will now be made to the embodiments illustrated in the accompanying drawings and described in the following written description. It should be understood that no limitation of the scope of the present disclosure is thereby intended. It should also be understood that the present disclosure includes any changes and modifications to the illustrated embodiments and includes additional applications of the principles of the present disclosure as would normally occur to a person skilled in the art to which the present disclosure relates.
[0024] As used herein, the term "object" or "3D object" refers to data corresponding to a plurality of vertices that form polygons in a virtual environment to depict a model of a single object in a larger virtual environment. As used herein, the term "structure" or "3D structure" refers to an object having polygons that are positioned and oriented in a 3D virtual environment to stand on a virtual representation of the ground or the earth's surface. Common examples of structures include representations of man-made objects such as buildings, bridges, monuments, and other artificial structures. Natural structures include representations of trees and vegetation, cliffs, rock outcrops, and other objects corresponding to natural features. Structures in a 3D virtual environment extend from the surface of the virtual representation of the ground. The polygons defining each structure provide a shape for the structure, and the structure is also oriented in a predetermined manner to appear from the ground in an expected manner. In one embodiment of a computing device using software and hardware compatible with the OpenGL 3D graphics standard, a rotation matrix is used to specify the orientation of the structure to orient the structure, wherein the base of the structure engages the ground and other polygons in the structure extend from the ground. For example, a 3D object representing a building includes a base corresponding to the foundation of the building that engages the ground in the virtual environment. The polygons in a structure that extend upward from the ground are called "walls", although the polygons do not necessarily have to depict the walls of a building.
[0025] As used herein, the term "footprint" as applied to a structure refers to a set of polygonal vertices in the structure corresponding to the outermost coordinates for the structure (as viewed from above in the same manner as in a conventional two-dimensional map) that intersect a ground surface or ground plane in a corresponding virtual environment. For example, if the structure is a simple cube resting on the ground of the virtual environment, the footprint is defined by the locations of the four base corners and sides of the cube as viewed from above. The footprint does not include outermost polygonal vertices that are above or below ground level, such as structures formed with overhangs and other protrusions that extend from the center of the building as viewed from above but do not touch the ground, or such as structures formed with underground portions that extend beyond the ground level of the structure.
[0026] Computing System
[0027] Figure 2 A computing system 104 (which may also be referred to herein as a "graphics display system") is depicted that generates a graphical display of a 3D virtual environment that includes a representation of a ground surface (such as the surface of the Earth) with ground lighting textures or shading textures applied to areas surrounding structures and polygons depicting walls of the structures. The computing system 104 includes a processor 108, a memory 120, a display 144, an optional positioning system 148, and an optional network device 152. Hardware embodiments of the computing system 104 include, but are not limited to, personal computer (PC) hardware, embedded system hardware including embedded computing hardware for use in motor vehicles, and mobile electronic devices including smart phones and tablet computing devices.
[0028] In computing system 104, processor 108 includes one or more integrated circuits that implement the functionality of central processing unit (CPU) 112 and graphics processing unit (GPU) 116. In some embodiments, the processor is a system on chip (SoC) that integrates the functionality of CPU 112 and GPU 116 and optional other components including memory 120, network device 152 and positioning system 148 into a single integrated device. In one embodiment, the CPU is a commercially available central processing device that implements an instruction set such as one of the x86, ARM, Power or MIPs instruction set families. The GPU includes hardware and software for display of both 2D and 3D graphics. In one embodiment, processor 108 executes a software driver and includes hardware functionality in GPU 116 to generate 3D graphics using OpenGL, OpenGL ES or Direct3D graphics application programming interface (API). For example, GPU 116 includes one or more hardware execution units that implement fragment shaders and vertex shaders for processing and display of 2D and 3D graphics. During operation, the CPU 112 and GPU 116 execute stored programming instructions 140 retrieved from the memory 120. In one embodiment, the stored programming instructions 140 include operating system software and one or more software applications that generate 3D graphics, including mapping and navigation applications, virtual reality applications, gaming applications, simulation applications, and any other software configured to generate 3D graphics. In at least one embodiment, the processor 108 executes the mapping and navigation program and generates 2D and 3D graphical outputs corresponding to the map and map features through the display device 144. The processor is configured with software and hardware functionality by storing programming instructions in one or more memories operatively connected to the processor and operatively connecting hardware functionality to the processor and / or other electronic, electromechanical or mechanical components to provide data from sensors or data sources to enable the processor to implement the process and system embodiments discussed below.
[0029] The memory 120 includes both non-volatile memory and volatile memory. Non-volatile memory includes solid-state memory such as NAND flash memory, magnetic and optical storage media, or any other suitable data storage device that retains data when the computing system 104 is disabled or loses power. Volatile memory includes static and dynamic random access memory (RAM) that stores software and data including graphics data and map feature data during operation of the computing system 104. In addition to the programming instructions 140, the memory 120 also includes virtual environment data 124, structure model polygon data 128, and texture data 132. The virtual environment data 124 includes a model of the virtual environment, which includes ground terrain information, coordinate and orientation data for multiple 3D objects positioned in the virtual environment, and additional environment data including virtual light sources that illuminate the virtual environment. The structure model polygon data 128 includes multiple models for three-dimensional structures formed by multiple polygons. The data includes vertices with three-dimensional coordinates that define a series of interconnected polygons (such as triangles) that form the shape of the structure in the 3D virtual environment. The processor 108 is configured to adjust the relative size and orientation of each structure model to place the model in the 3D virtual environment, and the 3D virtual environment may include many copies and variations of a single structure model. The texture data 132 includes a plurality of textures, typically 2D images, which are mapped to the surface of the structure in the 3D virtual environment to provide a more realistic appearance for the polygonal structure model.
[0030] The computing system 104 includes an optional network device 152 that is configured to send and receive data from an external computing system over a data network (not shown). Examples of network device 152 include wired network adapters such as Ethernet and Universal Serial Bus (USB) adapters, and wireless network adapters such as 3G or 4G wireless wide area network (WWAN), 802.11 or Bluetooth wireless local area network (WLAN) adapters. In some embodiments, processor 108 retrieves virtual environment data 124, structural model polygon data 128, and texture data 132 from an external network for storage in memory 120. In some embodiments, memory 120 caches graphics data and processor 108 stores additional graphics data received through network device 152 to update the contents of memory 120.
[0031] The computing system 104 includes an optional positioning system device 148 operatively connected to the processor 108. Examples of positioning systems include a global positioning system (GPS) receiver, a radio triangulation receiver that identifies the location of the computing system 104 with respect to fixed wireless transmitters, and an inertial navigation system. During operation, the processor 108 executes a mapping and navigation software application that retrieves location information from the positioning system 148 to identify the geographic location of the computing system 104 and adjusts the display of the virtual environment to correspond to the location of the computing system 104. In the navigation application, the processor 108 identifies the location and movement of the computing system 104 for route generation to a selected destination and display of the route in the 3D virtual environment.
[0032] In computing system 104, display 144 is an integrated display device (such as an LCD or other display device) integrated with the housing of computing system 104, or display 144 is an external display device that is operatively connected to computing system 104 via a wired or wireless interface to receive output signals from processor 108 to generate a display of the 3D virtual environment. In embodiments where computing system 104 is an onboard embedded computing device, display 144 is an LCD or other flat panel display positioned in a console of a vehicle, or display 144 is a head-up display (HUD) or other projected display that displays the 3D virtual environment on a windshield or other display surface in the vehicle.
[0033] Method for efficient building footprint determination
[0034] Various methods and processes for determining the footprint of a 3D structure are described below. In the description of the method, the statement that the method is performing a task or function refers to a controller or general processor executing programming instructions stored in a non-transitory computer-readable storage medium operatively connected to the controller or processor to manipulate data or operate one or more components in the computing system 104 to perform the task or function. Specifically, the processor 108, CPU 112 and / or GPU 116 above can be such a controller or processor, and the program instructions executed can be programming instructions 140 stored in the memory 120. In addition, the steps of the method can be performed in any feasible chronological order, regardless of the order shown in the figure or the order in which the steps are described.
[0035] Figure 3A method 200 for determining a footprint of a 3D structure in a virtual environment is shown. The method 200 improves the operation of the computing system 104 by enabling the processor 108 to execute a set of specific rules to efficiently and accurately determine the footprint of a 3D structure in a virtual environment. Specifically, the method 200 enables the processor 108 to generate a high-quality footprint of the 3D structure based on mesh data for the 3D structure. The method is efficient enough to be used on embedded devices and mobile devices that have relatively limited processing power and use 3D structure mesh data sets that lack any 2D footprint information or include only overly simplified 2D footprint information. Figure 4 A footprint 310 for an exemplary 3D structure 312 is shown that is accurately determined using the method 200. In addition, the method 200 improves the operation of the computing system 104 by enabling the processor 108 to determine the footprint of a 3D structure when the input mesh data includes any number of individual separate 3D structures. Specifically, Figure 4 Also shown is footprint 320 accurately determined using method 200 for an exemplary 3D structure 322 that includes a segment 324 physically separated from a main segment 326. In this manner, method 200 is superior to many prior methods that fail to determine footprint when mesh data includes multiple separate 3D structures.
[0036] Return to Figure 3 , the method 200 begins with a step of receiving mesh data for at least one 3D structure (block 210). Specifically, with respect to the embodiments described in detail herein, the processor 108 is configured to receive mesh data for at least one 3D structure. The mesh data includes values for a plurality of vertices connected by a plurality of edges to form a plurality of polygons, the plurality of polygons forming the at least one 3D structure. In one embodiment, the processor 108 is configured to read the mesh data, in particular the structure model polygon data 128, from the memory 120. However, in some embodiments, the mesh data and / or the structure model polygon data 128 are streamed to the processor 108 from a remote server via the network device 152 on an as-needed basis.
[0037] The mesh data can take a wide variety of forms, using any of a variety of known data representations for vertices, edges, etc. corresponding to polygonal meshes, such as face-vertex meshes, wing-edge meshes, half-edge meshes, quad-edge meshes, corner tables, vertex-vertex meshes, and rendered dynamic meshes. Figure 5An exemplary mesh data representation that can be used by method 200 is illustrated. Specifically, the mesh data includes a 3D vertex position array: [V0; V1; V2; V3], where each vertex is represented by a position vector such as (x, y, z). In addition, the mesh data includes a primitive index array: [0, 1, 2, 0, 2, 3], which indicates how to construct primitives (in this case triangles) from the vertices. As shown in Figure 5 As can be seen in the example, four vertices V0, V1, V2, and V3 are connected by edges to form two triangles.
[0038] Return to Figure 3 , the method 200 continues with a step of determining a connection graph based on the mesh data (block 230). Specifically, the processor 108 is configured to determine a plurality of candidate nodes and a plurality of candidate lines, some of which may form edges and vertices of a footprint of the 3D structure. A "connection graph" includes a plurality of candidate nodes and a plurality of candidate lines. In some embodiments, the candidate nodes and candidate lines may correspond to intersections of polygons of at least one 3D structure with a ground plane of the virtual environment, to near intersections of polygons of at least one 3D structure with a ground plane of the virtual environment (i.e., the edge intersects the ground or appears within a predefined distance of the intersection with the ground), and / or to edges of polygons having any portion less than a predetermined height value (i.e., the edge appears close to the ground, intersects the ground, or is below the ground). In some embodiments, the processor 108 is configured to simplify, correct, or otherwise process the connection graph in various ways, typically changing the number of candidate nodes and candidate lines to enable more efficient and effective execution of subsequent steps.
[0039] Figure 6An exemplary implementation of step 230 in which a connection graph is determined is shown. The exemplary implementation of step 230 begins with the following steps: Initialize the connection graph with a plurality of candidate nodes and a plurality of candidate lines, the plurality of candidate lines corresponding to all edges having any portion below a predefined threshold height value or within a predefined threshold distance from the ground of the virtual environment (block 232). Specifically, in one embodiment, the processor 108 is configured to identify all edges having end positions or vertices below a predefined threshold height value in the mesh data for at least one 3D structure. Specifically, since the ultimate goal is to generate a footprint from the input mesh data, it is not necessary to consider edges far above the ground. In another embodiment, the processor 108 is configured to identify all edges having any portion within a predefined threshold distance from the ground of the virtual environment in the mesh data for at least one 3D structure. Specifically, in some cases, it is not necessary to consider edges far below the ground. Next, the processor 108 is configured to map all identified edges and their vertices to a 2D plane corresponding to the ground of the virtual environment. The processor 108 is configured to initialize a plurality of candidate nodes as vertices mapped to the identified edges on the 2D plane, and initialize a plurality of candidate lines as vertices mapped to the identified edges on the 2D plane.
[0040] Figure 7 An exemplary initialized connection graph 400 is shown, which includes ten candidate nodes N0 to N9 and nine candidate lines L0 to L8. Specifically, candidate line L0 extends between candidate nodes N0 and N1, candidate line L1 extends between candidate nodes N1 and N2, candidate line L2 extends between candidate nodes N2 and N3, candidate line L3 extends between candidate nodes N3 and N0, candidate line L4 extends between candidate nodes N4 and N5, candidate line L5 extends between candidate nodes N5 and N6, candidate line L6 extends between candidate nodes N6 and N7, candidate line L7 extends between candidate nodes N7 and N4, and candidate line L8 extends between candidate nodes N8 and N9.
[0041] Return to Figure 6, the exemplary implementation of step 230 continues with the following steps: simplifying the connection graph by merging any candidate nodes that are close to each other and / or merging any candidate lines that are substantially parallel to each other and close to each other (block 234). Specifically, the processor 108 is configured to merge any candidate nodes within a predetermined distance from each other and / or merge any candidate lines that are within a predetermined distance from each other and within a predetermined angle with respect to each other. Since all identified edges are mapped to the 2D ground plane, it is likely that many candidate nodes are very close to each other and many candidate lines are substantially parallel and very close to each other. By merging such nodes and lines, the connection graph can be greatly simplified, thereby improving the efficiency and accuracy of the later steps of method 200. In at least one embodiment, the nodes or lines to be merged are merged to the outermost position of the nodes or lines to be merged (such as viewed from a height in the same manner as in a conventional two-dimensional map). In another embodiment, the nodes or lines to be merged are merged to the average of the positions of the nodes or lines to be merged.
[0042] Figure 7 An exemplary simplification 410 of the initialized connection graph 400 is illustrated. Specifically, as can be seen, candidate line L8 is substantially parallel to and close to candidate line L0. Similarly, candidate nodes N8 and N9 are very close to candidate nodes N0 and N1, respectively. In the simplified connection graph 410, candidate line L8 is removed and / or merged with candidate line L0. Similarly, candidate nodes N8 and N9 are removed and / or merged with candidate nodes N0 and N1, respectively.
[0043] Return to Figure 6 , the exemplary implementation of step 230 continues with the following steps: moving the candidate node close to the corresponding candidate line onto the corresponding candidate line, thereby dividing the corresponding candidate line into two candidate lines, each candidate line having an end at the corresponding candidate node (block 236). Specifically, the processor 108 is configured to move any candidate node within a predetermined distance from the corresponding candidate line to the closest position on the candidate line. In addition, the processor 108 is configured to divide the corresponding candidate line into two candidate lines, each candidate line having an end at the moved corresponding candidate node. The original 3D mesh data set may contain some modeling errors, such as two adjacent polygons not sharing the same edge or the polygons are slightly misaligned in other ways. Therefore, the simplified connection graph will typically contain some open gaps between nodes and lines. By correcting these errors in the connection graph, the accuracy of method 200 is improved.
[0044] Figure 8An exemplary correction 420 to a simplified connection graph 410 is illustrated. Specifically, as can be seen, candidate node N4 is very close to candidate line L1 but not directly on candidate line L1, which suggests a possible modeling error. In the corrected connection graph 420, candidate node N4 is moved to the closest position on candidate line L1. In addition, candidate line L1 extending between candidate nodes N1 and N2 is divided into two candidate lines L8 and L9. Candidate line L8 extends between candidate node N1 and the moved candidate node N4. Similarly, candidate line L9 extends between candidate node N2 and the moved candidate node N4. Finally, as a result of the new position for candidate node N4, candidate lines L4 and L7 connected to candidate node N4 are adjusted in length and orientation.
[0045] Return to Figure 6 , the exemplary implementation of step 230 continues with the following steps: generating a new candidate node positioned at any intersection of two candidate lines, and splitting each of the corresponding two candidate lines into two new candidate lines, each of which has an end at the corresponding new candidate node (block 238). Specifically, the processor 108 is configured to identify any candidate lines that intersect each other and have no candidate nodes at their intersections. Next, for each set of intersecting candidate lines, the processor 108 is configured to calculate the intersection points of the intersecting candidate lines and generate new candidate nodes at the calculated intersection points. In addition, the processor 108 is configured to split each corresponding intersecting candidate line into two candidate lines, each of which has an end at the newly created candidate node. In one embodiment, the processor 108 is configured to remove any candidate nodes that are only connected to a single other candidate node or are not connected to other candidate nodes, and also remove candidate lines connected to the removed candidate nodes. Since these intersections can be vertices of the 2D footprint, if the candidate nodes are included at the intersections, the connection graph is more complete, and the accuracy of the method 200 is thereby improved.
[0046] Fig. 9 An exemplary completion 430 of the corrected connection graph 420 is shown. Specifically, as can be seen, candidate line L6 and candidate line L9 intersect each other, but no candidate node is located at the intersection. In the completed connection graph 430, a new candidate node N8 is generated at the intersection of candidate line L6 and candidate line L9. In addition, candidate line L9 extending between candidate nodes N2 and N4 is divided into two candidate lines L10 and L11, and candidate line L6 extending between candidate nodes N6 and N7 is divided into two candidate lines L12 and L13. Candidate line L10 extends between candidate node N2 and new candidate node N8. Candidate line L11 extends between candidate node N4 and new candidate node N8. Candidate line L12 extends between candidate node N6 and new candidate node N8. Finally, candidate line L13 extends between candidate node N7 and new candidate node N8.
[0047] Return to Figure 3 , the method 200 continues with a step of determining an adjacency list based on the connection graph (block 250). Specifically, after determining the connection graph, the processor 108 is configured to determine, for each candidate node of the connection graph, which other candidate nodes are connected to the corresponding node via candidate lines. In one embodiment, the processor 108 is configured to determine, for each candidate node of the connection graph, which candidate lines include the corresponding candidate node and then generate an array including an index of another candidate node included in each corresponding candidate line. The "adjacency list" includes the generated array of connected nodes paired with each candidate node of the connection graph.
[0048] Fig.10 An exemplary adjacency list for a completed connection graph is shown, illustrated in the form of table 500. As shown in table 500, it is determined that candidate node N0 is connected to candidate nodes N1 and N3, candidate node N1 is connected to candidate nodes N0 and N4, candidate node N2 is connected to candidate nodes N3 and N8, candidate node N3 is connected to candidate nodes N0 and N2, candidate node N4 is connected to candidate nodes N1, N5, N7, and N8, candidate node N5 is connected to candidate nodes N4 and N6, candidate node N6 is connected to candidate nodes N5 and N8, candidate node N7 is connected to candidate nodes N4 and N8, and candidate node N8 is connected to candidate nodes N2, N4, N6, and N7.
[0049] Return to Figure 3 , the method 200 continues with a step of generating at least one 2D footprint of the at least one 3D structure based on the connectivity graph and the adjacency list (block 270). Specifically, the processor 108 is configured to identify vertices and edges of the 2D footprint of the at least one 3D structure corresponding to the mesh data, the identified vertices and edges being selected from the candidate nodes and candidate lines of the connectivity graph based on the determined adjacency list.
[0050] Fig.11 A method for implementing step 270 in which at least one 2D footprint of at least one 3D structure is identified is shown. An exemplary implementation of step 270 begins with a step of selecting a candidate node of the connection graph as a starting node (block 272). Specifically, the processor 108 is configured to select a candidate node of the connection graph to serve as an initial starting node n s In one embodiment, the processor 108 is configured to remove the initial starting node n from the connection graph. sThe rightmost candidate node is selected (as viewed from a high position in the same manner as in a conventional two-dimensional map). However, in other embodiments, the processor 108 is configured to select (as viewed from a high position in the same manner as in a conventional two-dimensional map) the leftmost candidate node, the topmost candidate node, the bottommost candidate node, or any random outermost candidate node as the initial starting node n. s .exist Fig.12 In the example shown in FIG. 4 , the rightmost candidate node N3 of the completed connection graph 430 is selected as the initial starting node n. s .
[0051] Return to Fig.11 , the exemplary implementation of step 270 continues with the step of selecting the next node adjacent to the starting node from the candidate nodes, the next node being the most counter-clockwise adjacent node of the starting node, the starting node being the rightmost node of the algorithm's completed connection graph (block 274). Specifically, the processor 108 is configured to determine which candidate nodes are adjacent to the initial starting node n based on the adjacency list. s Next, the processor 108 is configured to select an initial starting node n s The most counterclockwise adjacent candidate node is selected as the next node n next In one embodiment, the processor 108 is configured to select adjacent candidate nodes that satisfy the following equation:
[0052]
[0053] In other words, for the adjacent nodes To the initial starting node n s The next node n next For each possible selection of n, the processor 108 is configured to select the next node n except the selected next All adjacent nodes except Determine: (1) equal to the next node n next The position vector minus the initial starting node n s The first intermediate 2D vector of the position vector is equal to the corresponding adjacent node n with (2) p The position vector minus the initial starting node n s The processor 108 is configured to select an adjacent node that satisfies the condition This counterclockwise oriented selection process generates nodes that move in a clockwise rotation starting from the selected starting node. In some embodiments, a clockwise oriented selection process may be used, and the above process and equations may be appropriately modified for clockwise oriented selection. Fig.12In the example shown in FIG. 4 , the candidate node N2 for completing the connection graph 430 is selected as the node from the initial starting node n. s The next node n next .
[0054] Return to Fig.11 , the exemplary implementation of step 270 continues with the following steps: Continue to select the next node that is adjacent to the previously selected node and is the most counterclockwise of the previously selected node (block 276) until the selected next node is the starting node (block 278). Specifically, for each currently selected node n current The processor 108 is configured to determine which candidate nodes are adjacent to the currently selected node n based on the adjacency list. current Next, the processor 108 is configured to select a node n with respect to the currently selected node n. current and the previously selected node n prev The most counterclockwise adjacent candidate node in the orientation is taken as the next node n next In one embodiment, the processor 108 is configured to select adjacent candidate nodes such that the 2D vector and 2D vector Counterclockwise value between O In one embodiment, the value is calculated according to the following equation O :
[0055]
[0056] In other words, for the adjacent nodes To the currently selected node n current The next node n next For each possible choice, the processor 108 is configured to calculate the value O For each value to be calculated O , the processor 108 is configured to calculate the 2D vector and 2D vector Next, for each value to be calculated O , if the 2D vector V 1 and 2D vectors V 0 is less than zero, the processor 108 is configured to convert the value O Calculate as a vector V Negative 1 and vector V 0 minus one. Otherwise, if the vector V 1 and vector V 0 is not less than zero, the processor 108 is configured to convert the value O Calculate as a vector V 1 and vector VThe processor 108 is configured to select the counterclockwise orientation value for which O The largest adjacent candidate node is selected as the next node n next The processor 108 is configured to repeat for the next node n next until the next node selected is the initial starting node n s In some embodiments, a clockwise oriented selection process may be used, and the above process and equations may be appropriately modified for clockwise oriented selection. Fig.12 In the example shown in , the sequence of node selection from the completed connection graph 430 includes N3→N2→N8→N6→N5→N4→N1→N0→N3. When the selection process returns to the starting node N3, the selection process stops.
[0057] Return to Fig.11 Once the node selection process has returned to the starting node, the exemplary implementation of step 270 continues with the following steps: generating a footprint of the 3D structure having vertices including all selected nodes and having edges including candidate lines connecting each selected node to the next selected node (block 280). Specifically, the processor 108 is configured to generate a footprint of the 3D structure for the mesh data, the footprint having vertices at the locations of all selected candidate nodes and having edges corresponding to candidate lines connecting each selected candidate node to the next selected candidate node. Fig.12 In the example shown in , a coverage area 440 is generated, which has vertices V0-V7 corresponding to the selected candidate nodes N3, N2, N8, N6, N5, N4, N1 and N0 of the sequence, and edges E0-E7 corresponding to candidate lines L2, L10, L12, L5, L4, L8, L0 and L3, respectively.
[0058] Return to Fig.11 , the exemplary implementation of step 270 continues with the following steps: removing the selected node of the coverage area or all candidate nodes connected to the selected node of the coverage area from the connection graph (block 282). Specifically, the processor 108 is configured to remove the selected node of the coverage area or all candidate nodes connected to the selected candidate node for forming the coverage area from the connection graph through one or more candidate lines and nodes. Fig.12 In the example shown in , all candidate nodes are removed, including candidate node N7 that is not used to form a coverage area because it is connected to a node that is used to form a coverage area. However, in many cases, the connection graph includes several clusters of candidate nodes and lines that are isolated from each other and generally correspond to separate 3D structures of mesh data.
[0059] Next, if there are any candidate nodes remaining in the connection graph, the exemplary implementation of step 270 repeats steps 272-282 (block 284). Specifically, the processor 108 is configured to check whether there are any remaining candidate nodes in the connection graph, such as clusters of candidate nodes and lines that are isolated from the nodes and lines included in the generated footprint. If so, the processor 108 is configured to repeat the process described above to generate additional footprints of additional 3D structures in the mesh data.
[0060] Finally, once there are no remaining candidate nodes in the connection graph, the exemplary implementation of step 270 continues with the following steps: post-processing the coverage area by removing duplicate connected edges corresponding to vertices of the coverage area (block 286). Specifically, the processor 108 is configured to remove any duplicate connected edges corresponding to vertices in the coverage area, thereby dividing the coverage area into two or more coverage areas. As an example, Fig.13 A footprint 600 is illustrated that is formed by a sequence of vertices A→B→C→D→E→F→D→C→A. Based on this sequence, the footprint includes the edge C→D and also includes the edge D→C. Since this connection between the two vertices C and D is a duplicate, all edges corresponding to this path are removed from the footprint, resulting in a decomposition 610 in which the footprint is divided into two footprints—A→B→C→A and D→E→F→D.
[0061] Finally, return to Figure 3 , the method 200 continues with a step of outputting the generated footprint of at least one 3D structure (block 290). Specifically, the processor 108 is configured to output the generated footprint and / or store the generated footprint in a memory. In one embodiment, the processor 108 is also configured to render a 2D or 3D graphic using the generated footprint of at least one 3D structure of the mesh data. In one embodiment, the processor 108 is configured to use the determined footprint to render a 2D preview of a map area including the 3D structure shown as a 2D footprint. In one embodiment, the processor 108 is configured to use the determined footprint to render a context-aware map visualization solution (e.g., time and environment awareness). In one embodiment, the processor 108 is configured to use the determined footprint to perform an occupancy test for the map area. In one embodiment, the processor 108 is configured to use the determined footprint to implement a soft shadow simulation for rendering soft shadows. In one embodiment, the processor 108 is configured to use the determined footprint to render a 2D or 3D graphic with a variable display detail level.
[0062] Although the present disclosure has been illustrated and described in detail in the drawings and foregoing description, it should be considered illustrative rather than restrictive in nature. It should be understood that only preferred embodiments have been given and that all changes, modifications and additional applications that fall within the spirit of the present disclosure are desired to be protected.
Claims
1. A method for determining a two-dimensional footprint of a three-dimensional structure in a virtual environment, the method comprising: receiving, with a processor, mesh data for at least one three-dimensional structure, the mesh data comprising positions of a plurality of vertices connected by a plurality of edges to form a plurality of polygons, the plurality of polygons forming the at least one three-dimensional structure; Determining, with a processor, a connection graph including a plurality of candidate nodes and a plurality of candidate lines by: (i) identifying all edges of a plurality of edges having vertices with a height value less than a threshold value, and (ii) determining a plurality of candidate lines and a plurality of candidate nodes by mapping the identified edges and their vertices onto a two-dimensional plane; determining, with a processor, an adjacency list indicating, for each candidate node in the plurality of candidate nodes, which other candidate nodes in the plurality of candidate nodes are connected to the corresponding candidate node via a candidate line in the plurality of candidate lines; as well as A footprint of the at least one three-dimensional structure is generated, with a processor, based on the connectivity graph and the adjacency list, the footprint including vertices corresponding to the selected set of candidate nodes from the plurality of candidate nodes and including edges corresponding to the selected set of candidate lines from the plurality of candidate lines.
2. The method according to claim 1, wherein the determining of the connection graph further comprises at least one of the following operations: merging candidate nodes among the plurality of candidate nodes that are within a predetermined distance of each other; and Candidate lines of the plurality of candidate lines that are within a predetermined distance from each other and at less than a predetermined angle with respect to each other are merged.
3. The method according to claim 1, wherein the determining of the connection graph further comprises: moving a candidate node from among the plurality of candidate nodes and within a predetermined distance from a corresponding candidate line from among the plurality of candidate lines to the corresponding candidate line; as well as The corresponding candidate line is split into two candidate lines, each candidate line having an end at the moved candidate node.
4. The method according to claim 1, wherein the determining of the connection graph further comprises: generating a new candidate node located at the intersection of two corresponding candidate lines among the plurality of candidate lines; as well as Each of the two corresponding candidate lines is split into two new candidate lines, each of which has an end at the generated new candidate node.
5. The method according to claim 1, wherein the determining of the connection graph further comprises: removing a candidate node from the plurality of candidate nodes that is one of the following: (i) connected only to a single other candidate node from the plurality of candidate nodes, and (ii) not connected to other candidate nodes from the plurality of candidate nodes; as well as Any candidate line among the plurality of candidate lines that is connected to the removed candidate node is removed.
6. The method of claim 1, wherein generating the footprint of the at least one three-dimensional structure further comprises: Selecting a starting candidate node from a plurality of candidate nodes; as well as A first sequence of candidate nodes is selected from a plurality of candidate nodes in sequence, a first candidate node in the first sequence of candidate nodes is connected to the starting candidate node, and each candidate node in the first sequence of candidate nodes except the first candidate node is connected to a previous corresponding candidate node in the first sequence of candidate nodes, The selected candidate node group includes a second sequence candidate node formed by the selected starting candidate node and the selected first sequence candidate node, and The selected candidate line group includes first-sequence candidate lines that are sequentially connected to second-sequence candidate nodes among the plurality of candidate lines. 7 . The method according to claim 6 , wherein the positions of the candidate nodes of the second sequence of candidate nodes are moved in a clockwise rotation starting from the selected starting candidate node.
8. The method according to claim 6, further comprising: removing, with a processor, (i) the selected candidate node group and any candidate nodes connected to the selected candidate node group from a plurality of candidate nodes of the connection graph, and (ii) removing the selected candidate line group and any candidate lines connected to the selected candidate line group from a plurality of candidate lines of the connection graph; as well as In response to candidate nodes remaining in the plurality of candidate nodes and candidate lines remaining in the plurality of candidate lines after the removal, generating, with the processor, an additional footprint of the at least one three-dimensional structure based on the connectivity graph and the adjacency list.
9. The method of claim 6, wherein the generating of the footprint of the at least one three-dimensional structure further comprises: Edges are removed from the coverage area, the edges corresponding to candidate lines that are repeated in the first sequence of candidate lines that sequentially connect the second sequence of candidate nodes.
10. The method according to claim 1, further comprising: rendering, with a processor, graphics using the generated footprint of the at least one three-dimensional structure; The rendered three-dimensional graphics are displayed on a display device operatively connected to the processor.
11. A graphic display system comprising: Display devices; Memory; as well as A processor operatively connected to the display device and the memory, the processor being configured to: receiving mesh data for at least one three-dimensional structure, the mesh data comprising positions of a plurality of vertices connected by a plurality of edges to form a plurality of polygons, the plurality of polygons forming the at least one three-dimensional structure; Determining a connection graph including a plurality of candidate nodes and a plurality of candidate lines by: (i) identifying all edges having vertices with a height value less than a threshold value from among the plurality of edges, and (ii) determining a plurality of candidate lines and a plurality of candidate nodes by mapping the identified edges and their vertices onto a two-dimensional plane; determining an adjacency list, the adjacency list indicating, for each candidate node in the plurality of candidate nodes, which other candidate nodes in the plurality of candidate nodes are connected to the corresponding candidate node through a candidate line in the plurality of candidate lines; as well as Based on the connectivity graph and the adjacency list, a footprint of the at least one three-dimensional structure is generated, the footprint including vertices corresponding to the selected set of candidate nodes from the plurality of candidate nodes and including edges corresponding to the selected set of candidate lines from the plurality of candidate lines.
12. The graphic display system according to claim 11, wherein the processor is further configured to: merging candidate nodes among the plurality of candidate nodes that are within a predetermined distance of each other; and Candidate lines of the plurality of candidate lines that are within a predetermined distance from each other and at less than a predetermined angle with respect to each other are merged.
13. The graphic display system according to claim 11, wherein the processor is further configured to: moving a candidate node from among the plurality of candidate nodes and within a predetermined distance from a corresponding candidate line from among the plurality of candidate lines to the corresponding candidate line; and The corresponding candidate line is split into two candidate lines, each candidate line having an end at the moved candidate node.
14. The graphic display system according to claim 11, wherein the processor is further configured to: generating a new candidate node positioned at an intersection of two corresponding candidate lines among the plurality of candidate lines; and Each of the two corresponding candidate lines is split into two new candidate lines, each of which has an end at the generated new candidate node.
15. The graphic display system according to claim 11, wherein the processor is further configured to: removing candidate nodes from the plurality of candidate nodes that are either: (i) connected only to a single other candidate node from the plurality of candidate nodes, and (ii) not connected to other candidate nodes from the plurality of candidate nodes; and Any candidate line among the plurality of candidate lines that is connected to the removed candidate node is removed.
16. The graphic display system according to claim 11, wherein the processor is further configured to: Selecting a starting candidate node from a plurality of candidate nodes; and A first sequence of candidate nodes is selected from a plurality of candidate nodes in sequence, a first candidate node in the first sequence of candidate nodes is connected to the starting candidate node, and each candidate node in the first sequence of candidate nodes except the first candidate node is connected to a previous corresponding candidate node in the first sequence of candidate nodes, The selected candidate node group includes a second sequence candidate node formed by the selected starting candidate node and the selected first sequence candidate node, and The selected candidate line group includes first-sequence candidate lines that are sequentially connected to second-sequence candidate nodes among the plurality of candidate lines.
17. The graphic display system of claim 16, wherein the positions of the candidate nodes of the second sequence of candidate nodes are moved in a clockwise rotation starting from the selected starting candidate node.
18. The graphic display system according to claim 16, wherein the processor is further configured to: (i) removing the selected candidate node group and any candidate nodes connected to the selected candidate node group from the plurality of candidate nodes of the connection graph, and (ii) removing the selected candidate line group and any candidate lines connected to the selected candidate line group from the plurality of candidate lines of the connection graph; and In response to candidate nodes remaining in the plurality of candidate nodes and candidate lines remaining in the plurality of candidate lines after the removal, an additional footprint of the at least one three-dimensional structure is generated based on the connectivity graph and the adjacency list.
19. The graphic display system according to claim 16, wherein the processor is further configured to: Edges are removed from the coverage area, the edges corresponding to candidate lines that are repeated in the first sequence of candidate lines that sequentially connect the second sequence of candidate nodes.
20. The graphic display system of claim 11, wherein the processor is further configured to: rendering a graphic using the generated footprint of the at least one three-dimensional structure; A display device is operated to display the rendered three-dimensional graphics.
