Three-dimensional model generation method and device
By obtaining the first vector map data of the specified area selected by the user in the two-dimensional map area and generating closed surface data, the problem of difficulty in realizing high-precision three-dimensional modeling in the prior art is solved, and a three-dimensional model that accurately maps with the real world is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202510113416.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-16
AI Technical Summary
It is difficult for the prior art to realize high-precision large-scale three-dimensional modeling based on map data, and users' demand for map services tends to be more intuitive, interactive and real experience.
By obtaining the first vector map data of a specified area of any shape selected by the user in the two-dimensional map area, the closed surface data corresponding to the cutting face of the building body is generated, and three-dimensional modeling is performed based on the first vector map data and the closed surface data to generate a three-dimensional model accurately mapped with the real world.
It realizes the accurate mapping between the three-dimensional model and the real world, provides richer visual effects, improves user experience, and obtains a three-dimensional model that integrates with real scenes.
Smart Images

Figure CN120014194A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic maps, and in particular to a three-dimensional model generation method and device. Background Art
[0002] With the rapid development and popularization of computer graphics processing technology and artificial intelligence (AI) algorithms, creating high-precision, large-scale three-dimensional (3D) models has become more feasible and cost-effective. And with the continuous development of smartphones and the Internet, users' demand for map services is no longer just satisfied with basic positioning and route planning, but tends to be more intuitive, interactive and realistic. Therefore, considering three-dimensional modeling based on map data, how to achieve three-dimensional modeling based on map data is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the present disclosure provides a three-dimensional model generation method and device, the main purpose of which is to generate closed surface data for the cut surface of the building body cut therein based on the first vector map data of a designated area of any shape selected by a user in a two-dimensional map area, and perform three-dimensional modeling based on the first vector map data and the closed surface data, so as to achieve accurate mapping of the three-dimensional model with the real world, obtain a three-dimensional model integrated with the real scene, provide richer visual effects, and enhance the user experience.
[0004] In order to solve the above problems, the present disclosure mainly provides the following technical solutions:
[0005] In a first aspect, the present disclosure provides a three-dimensional model generation method, including: obtaining a specified area of any shape selected by a user in a two-dimensional map area; obtaining first vector map data of the specified area; wherein there is a cut building at the edge of the specified area in the first vector map data; generating closed surface data corresponding to the cut surface of the building; performing three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model.
[0006] In a second aspect, the present disclosure also provides a three-dimensional model generating device, comprising: an area acquisition unit, used to acquire a designated area of any shape selected by a user in a two-dimensional map area; a data acquisition unit, used to acquire first vector map data of the designated area; wherein, in the first vector map data, there is a cut building at the edge of the designated area; a first processing unit, used to generate closed surface data corresponding to the cut surface of the building; and a modeling processing unit, used to perform three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model.
[0007] In a third aspect, the present disclosure further provides a storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the three-dimensional model generation method as described above.
[0008] In a fourth aspect, the present disclosure further provides a processor, which is used to run a program, wherein the program executes the three-dimensional model generation method as described above when running.
[0009] In a fifth aspect, the present disclosure further provides an electronic device, comprising at least one processor; the storage medium is used to store a program executed by the processor and data required by the processor in the process of executing the program;
[0010] The processor is used to run a program, wherein the program executes the three-dimensional model generation method as described above when running.
[0011] The three-dimensional model generation method and device provided by the present disclosure obtain a designated area of any shape selected by a user in a two-dimensional map area; obtain the first vector map data of the designated area; wherein there is a cut building at the edge of the designated area in the first vector map data; generate closed surface data corresponding to the cut surface of the building; perform three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model. In this way, accurate mapping between the three-dimensional model and the real world can be achieved, and a three-dimensional model integrated with the real scene can be obtained, providing richer visual effects and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0013] Figure 1 A flowchart of a three-dimensional model generation method provided by an embodiment of the present disclosure is shown;
[0014] Figure 2 A schematic diagram of a designated area provided by an embodiment of the present disclosure is shown;
[0015] Figure 3 A schematic diagram showing a top view of vector data of a designated area provided by an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of a cut building body provided by an embodiment of the present disclosure is shown;
[0017] Figure 5A schematic diagram of a cut building body after closing provided by an embodiment of the present disclosure is shown;
[0018] Figure 6 A schematic diagram of a building to be expanded provided by an embodiment of the present disclosure is shown;
[0019] Figure 7 A schematic diagram of adding a map element to a three-dimensional model provided by an embodiment of the present disclosure is shown;
[0020] Figure 8 A schematic diagram of a target three-dimensional model provided by an embodiment of the present disclosure is shown;
[0021] Fig. 9 A schematic diagram showing a target three-dimensional model output provided by an embodiment of the present disclosure is shown;
[0022] Fig.10 A structural diagram of a three-dimensional model generating device provided by an embodiment of the present disclosure is shown;
[0023] Fig.11 A structural diagram of a modeling processing unit in a three-dimensional model generating device provided by an embodiment of the present disclosure is shown;
[0024] Fig.12 A structural diagram of another three-dimensional model generating device provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0025] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0026] In the related technologies, how to realize three-dimensional modeling based on map data is an urgent problem to be solved.
[0027] Based on this, the embodiment of the present disclosure provides a method and device for generating a three-dimensional model, wherein the method includes: obtaining a designated area of any shape selected by a user in a two-dimensional map area; obtaining first vector map data of the designated area; wherein there is a cut building at the edge of the designated area in the first vector map data; generating closed surface data corresponding to the cut surface of the building; performing three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model. In this way, accurate mapping of the three-dimensional model with the real world can be achieved, and a three-dimensional model integrated with the real scene can be obtained, providing richer visual effects and improving the user experience.
[0028] The present disclosure provides a method for generating a three-dimensional model. Figure 1 As shown, the method includes:
[0029] S1: Obtain a specified area of any shape selected by a user in a two-dimensional map area.
[0030] It should be noted that the three-dimensional model generating method of the embodiment of the present disclosure can be executed by an electronic device.
[0031] Among them, the electronic device can install and run the map generation program, and the electronic device can include but is not limited to smart phones, tablet computers, computers and other hardware devices with various operating systems.
[0032] In the disclosed embodiment, the two-dimensional map area may be a two-dimensional map area of a specific region, wherein the specific region may be any region, or any latitude and longitude region.
[0033] In the disclosed embodiment, after the map data corresponding to the two-dimensional map area is acquired, the two-dimensional map area may be displayed to the user so that the user can select a designated area in the two-dimensional map area.
[0034] In some embodiments, the designated area is an area of any shape, such as a regular graphic area (eg, a triangular area, a quadrilateral area, etc.), an irregular graphic area (eg, a heart-shaped area, a flower-shaped area, a cloud-shaped area, etc.).
[0035] In some embodiments, before obtaining a specified area of any shape selected by a user in a two-dimensional map area, it also includes: obtaining initial vector map data; generating second vector map data under specified map coordinates based on the initial vector map data; obtaining two-dimensional map data in the second vector map data; and displaying a two-dimensional map area based on the two-dimensional map data.
[0036] In the disclosed embodiment, initial vector map data is obtained, wherein the initial vector map data may be vector map data of a specific region, wherein the specific region may be any region, or any latitude and longitude region.
[0037] Optionally, vector data of a vector map in related art is used as initial vector map data.
[0038] It is understandable that the vector map data may be vector tile map data, wherein the vector tile map data exists in vector form, which means that they store the geometry and attribute information of geographic features, rather than pre-rendered pixel images. Among them, the data compression volume of the vector tile map data is small, it can be highly compressed, and the storage space occupied is much smaller than that of the raster tile, which makes the data transmission volume small and the cost of map update small. And it is flexible: it is more flexible than raster images and can access vector features in a more fine-grained manner. In addition, the data information of the vector tile map data is close to lossless, but the volume is smaller, and the information of the requested specified object can be obtained directly on the client without requesting the server again. The style of the vector tile map data is customizable: the vector tile can be rendered on the client or server, or it can be rendered in the style assigned by the user. The data update speed of the vector tile map data is fast, and it can even be said to be real-time. When the spatial data in the database changes, the data requested again is the updated data.
[0039] In the disclosed embodiment, after the initial vector map data is acquired, designated map coordinates may be constructed based on the initial vector map data to generate second vector map data at the designated map coordinates.
[0040] In some embodiments, the initial vector map data is map data using longitude, latitude and altitude as coordinates.
[0041] In the disclosed embodiment, based on the initial vector map data, any form of map coordinates can be selected as needed to construct specified map coordinates. For example, a location point in the map is selected as the center point, a direction in the plane where the ground is located is the direction of the first coordinate axis, the direction perpendicular to the first coordinate axis in the plane where the ground is located is the direction of the second coordinate axis, and the direction perpendicular to the plane where the ground is located is the direction of the third coordinate axis, so as to obtain the second vector map data under the specified map coordinates.
[0042] In the disclosed embodiment, second vector map data at specified map coordinates are generated based on the initial vector map data, and the initial vector map data can be scaled as needed to obtain second vector map data that meets the needs.
[0043] In the disclosed embodiment, after obtaining the second vector map data at the specified map coordinates, two-dimensional map data in the second vector map data can be obtained, wherein the second vector map data includes data in three coordinate axes, and the two-dimensional map data may be data in the first coordinate axis and the second coordinate axis of the plane where the ground is located.
[0044] In the embodiment of the present disclosure, when two-dimensional map data is obtained, a two-dimensional map area can be displayed to the user based on the two-dimensional map data, so that the user can select a specified area in the two-dimensional map area.
[0045] In the disclosed embodiment, the user can select a coordinate range in the two-dimensional map area, and then the designated area can be determined according to the coordinate range selected by the user.
[0046] Exemplarily, the user selects a designated area through a touch operation, such as selecting a shape and a size of the designated area, and then determines a coordinate range according to the selected shape and size, thereby determining the designated area.
[0047] Of course, the above examples are for illustration only and are not intended to be specific limitations on the embodiments of the present disclosure. For example, a user may also draw an area of a certain shape through touch operation to determine a coordinate range based on the area drawn by the user, and then determine a designated area.
[0048] S2: Acquire first vector map data of a specified area.
[0049] In the disclosed embodiment, after determining that the designated area selected by the user is an arbitrary shape, first vector map data of the designated area is acquired.
[0050] In some embodiments, obtaining first vector map data of a designated area includes: obtaining vector map data corresponding to the designated area in the second vector map data to obtain the first vector map data.
[0051] In the disclosed embodiment, the user can select a designated area of any shape, which can meet the user's customized needs and enhance the user experience.
[0052] For example, Figure 2 As shown, the first vector map data of the specified area is obtained, and the specified area is a quadrilateral, an irregular shape, or a heart shape.
[0053] In the disclosed embodiment, second vector map data at specified map coordinates are generated based on initial vector map data, two-dimensional map data in the second vector map data are obtained, and a specified area is determined based on two-dimensional map basic data, so that a user can select a specified area of any shape to obtain first vector map data of the specified area, and three-dimensional modeling is implemented based on the first vector map data of the specified area of any shape selected by the user, which can meet the user's customization needs and enhance the user experience.
[0054] It is understandable that since the designated area may be an irregular graphic area, or the distribution of buildings in the second vector map data is not considered when determining the designated area, the buildings at the edge of the designated area may be partially missing due to cutting.
[0055] There are cut-off buildings at the edge of the designated area in the first vector map data.
[0056] For example, Figure 3 As shown, the direction indicated by the blue arrow is the direction of the first coordinate axis, and the direction indicated by the red arrow is the direction of the second coordinate axis. Figure 3 The figure shows a top view of the first vector map data of the designated area on the ground, wherein the map data includes at least one building, and the building located at the edge of the designated area is partially missing due to being cut.
[0057] In some embodiments, the building includes at least one of a building, a road, a green space, a water system, a bridge, a railway, etc.
[0058] In some embodiments, the cut building body can be directly deleted, or the cut surface of the building body can be completed to ensure the integrity of the single building body.
[0059] In the embodiment of the present disclosure, in a building body that is partially missing due to cutting, if the missing portion is greater than a first threshold, it can be determined that the building body is deleted.
[0060] In the disclosed embodiment, in a building body that is partially missing due to cutting, if the missing portion is smaller than a first threshold, it can be determined that the cut surface of the building body needs to be completed to ensure the integrity of the single building body.
[0061] In some embodiments, the first threshold is 60%, 75%, 80%, etc.
[0062] It is understandable that after a part of a building is cut, the cut surface may be a closed polygon, or may be a line, some points, a complete plane, etc.
[0063] In the embodiment of the present disclosure, in a building that is partially missing due to cutting, if the cutting surface is not a closed polygon, it means that the building only retains some point data and surface data and cannot constitute a complete building. In this case, it can be determined to delete the building, that is, to delete the redundant point data and surface data of the building.
[0064] In the disclosed embodiment, in a building that is partially missing due to cutting, if the cutting surface is a closed polygon, it can be determined that the cutting surface of the building needs to be completed to ensure the integrity of the single building.
[0065] In some embodiments, when it is determined that the cut surface of the building needs to be completed, the polygons of the cut surface of the building may be smoothed first, and then the polygons of the cut surface after the smoothing may be completed.
[0066] S3: Generate closed surface data corresponding to the cut surface of the building.
[0067] In the embodiment of the present disclosure, when it is determined that the cut surface of the building needs to be completed, closed surface data corresponding to the cut surface of the building may be generated.
[0068] In some embodiments, before generating closed surface data corresponding to the cut surface of the building, it also includes: determining the vertex positions of the cut surface of the building, and the point positions between adjacent vertex positions; and determining the cut surface of the building based on the vertex positions and the point positions.
[0069] It can be understood that the cutting surface of the building body is a polygon, the vertices of the polygon are the vertex positions of the cutting surface, and the point between two adjacent vertices in the polygon is the point position between the adjacent vertex positions.
[0070] In the disclosed embodiment, when it is determined that the cut surface of a building needs to be completed, the polygons of the cut surface of the building can be smoothed, the vertex positions of the smoothed polygons can be calculated, adjacent points can be judged, the point positions between adjacent vertex positions can be determined, and the cut surface of the building can be determined based on the vertex positions and the point positions. The surface gaps can be automatically supplemented, thereby ensuring the structural integrity of a single building.
[0071] For example, Figure 4 As shown, the building selected by the red box in the left figure and the building selected by the orange box in the right figure have complete cutting surfaces. The cutting surfaces can be closed to generate closed surface data of the cutting surfaces. In the right figure, the direction indicated by the blue arrow is the direction of the first coordinate axis, the direction indicated by the red arrow is the direction of the second coordinate axis, and the direction indicated by the green arrow is the direction of the third coordinate axis. The building for which closed surface data is generated is shown in the right figure.
[0072] For example, Figure 5 As shown, it is determined that the cutting surface of the building is complete, and the surface closing processing can be performed according to the cutting surface to generate the closed surface data of the cutting surface. After the building is closed, the building with the closed surface data is generated as shown in FIG. Figure 5 shown.
[0073] S4: Perform three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model.
[0074] In the disclosed embodiment, after generating closed surface data corresponding to the cut surface of the building, the closed surface data can be added to the first vector map data, and then three-dimensional modeling is performed based on the data after adding the closed surface data to the first vector map data to generate a three-dimensional model.
[0075] In some embodiments, S4: performing three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model, including: determining the building to be expanded in the specified area, and generating the expansion data of the building to be expanded; generating the base data of the specified area; performing three-dimensional modeling based on the first vector map data, the closed surface data, the expansion data and the base data to generate a three-dimensional model.
[0076] It is understandable that the designated area includes at least one building. Since the road width in real map data may be wider and the distribution of buildings is more scattered, the generated three-dimensional model may not be beautiful enough during three-dimensional modeling. Therefore, the more dispersed buildings are expanded outward to increase the distribution density of the buildings, which can further improve the aesthetics of the generated three-dimensional model.
[0077] It can also be understood that in the first vector map data, the ground is only plane point data, and direct three-dimensional modeling is insufficient to support the building. Therefore, it is necessary to further generate a base in the designated area to support the building.
[0078] In some embodiments, determining a building to be expanded in a specified area and generating expansion data for the building to be expanded include: determining the building to be expanded and the expansion level based on the distance between different buildings in the specified area; and generating the expansion data for the building to be expanded based on the expansion level of the building to be expanded.
[0079] In the embodiment of the present disclosure, the building to be expanded and the expansion level are determined based on the distances between different buildings in a designated area.
[0080] In the disclosed embodiment, by classifying the buildings to be expanded, different grades of the buildings to be expanded correspond to different expansion parameters, and the buildings to be expanded are expanded according to the expansion parameters corresponding to the buildings to be expanded.
[0081] In some embodiments, the accuracy of the buildings to be expanded in the first vector map data is graded, wherein the accuracy of the buildings to be expanded that are landmark buildings is higher, and the accuracy of the buildings to be expanded that are ordinary houses is lower.
[0082] In the disclosed embodiment, different expansion parameters are respectively corresponding to the buildings to be expanded with different precisions.
[0083] For example, for a building to be expanded with a higher precision, the expansion parameter is 100 meters, and for a building to be expanded with a lower precision, the expansion parameter is 50 meters.
[0084] Of course, the above examples are for illustration only. For a building to be expanded with higher precision, the expansion parameter may also be 80 meters. The embodiments of the present disclosure do not impose any specific limitation on this.
[0085] In some embodiments, the distribution of the buildings to be expanded in the first vector map data is graded. For example, the distribution density of the buildings to be expanded is low and the distances to other surrounding buildings are relatively far; or the distribution density of the buildings to be expanded is high and the distances to other surrounding buildings are relatively close.
[0086] In the embodiment of the present disclosure, different expansion coefficients correspond to different distribution densities of the building to be expanded.
[0087] For example, for a building to be expanded with a low distribution density, the expansion parameter is 100 meters, and for a building to be expanded with a high distribution density, the expansion parameter is 50 meters.
[0088] Of course, the above examples are for illustration only. For buildings to be expanded with low distribution density, the expansion parameter can also be 80 meters. The embodiments of the present disclosure do not impose specific restrictions on this.
[0089] It can be understood that the outward expansion treatment for the building to be expanded can be to expand the entire building to be expanded, for example, to expand the entire building outward by 100 meters to increase the density of the building.
[0090] For example, Figure 6 As shown, the direction indicated by the blue arrow is the direction of the first coordinate axis, and the direction indicated by the red arrow is the direction of the second coordinate axis. Figure 6 It shows a bird's-eye view of the first vector map data of the specified area on the ground. The building to be expanded selected by the blue box needs to be expanded as a whole to the position of the blue box.
[0091] In the disclosed embodiment, a base of a specified area is generated, a three-dimensional base can be generated below the specified area, and the thickness of the three-dimensional base can be extended downward according to the edge of the specified area to form a three-dimensional base by combining surface information.
[0092] In the embodiment of the present disclosure, to generate a base in a specified area, the base side data can be generated by extending the specified thickness from the boundary of the specified area to the side away from the building body, and then the base bottom data is supplemented according to the base side data to generate the base data. The specified thickness is the base thickness.
[0093] In some embodiments, the thickness of the three-dimensional base is 3 cm, 5 cm, 10 cm, 1 meter, etc.
[0094] In the present disclosure, Figure 4 and 5 As shown, a base is generated below the specified area.
[0095] In the disclosed embodiment, after the closed surface data, the outward expansion data and the base data are determined, three-dimensional modeling can be performed based on the first vector map data, the closed surface data, the outward expansion data and the base data to generate a three-dimensional model.
[0096] In some embodiments, a polygon regularized three-dimensional modeling technology is used to automatically generate a three-dimensional model of the specified area based on the first vector map data, closed surface data, external expansion data and base data of the specified area.
[0097] The three-dimensional model may be a Level of Detail 3 (LOD3) high-precision model or a Level of Detail 4 (LOD4) high-precision model.
[0098] It can be understood that three-dimensional modeling is performed based on the data after adding closed surface data, building expansion data and base data to the first vector map data, thereby ensuring the integrity of individual buildings in the generated three-dimensional model, improving the distribution density of buildings, and ensuring that buildings can be distributed based on the three-dimensional base, so that the generated three-dimensional model is more beautiful.
[0099] In some embodiments, after generating the three-dimensional model, the method further includes:
[0100] Determine the building type of the building model in the three-dimensional model;
[0101] Determine the corresponding exterior pattern for each building type;
[0102] Add corresponding appearance patterns on the surface of the building model;
[0103] Determine the map elements to be added and the location coordinates to be added in the 3D model;
[0104] According to the location coordinates, map elements are added to the 3D model to generate the target 3D model.
[0105] In the disclosed embodiment, after the three-dimensional model is obtained, the three-dimensional model may be beautified to generate a target three-dimensional model, thereby obtaining a more beautiful and practical target three-dimensional model.
[0106] In some embodiments, beautifying the three-dimensional model includes at least one of the following:
[0107] Supplement the pattern of the building model in the three-dimensional model;
[0108] Supplement map elements to the 3D model.
[0109] In some embodiments, a part or all of the building model in the three-dimensional model is supplemented with patterns.
[0110] It can be understood that the architectural model can be a building model, a mountain model, a bridge model, a green space model, a road model, etc. In the embodiment of the present disclosure, patterns are supplemented to part or all of the architectural models in the three-dimensional model, and patterns can be added to the surface of the architectural model.
[0111] In some embodiments, for different building models, when pattern supplementation is performed, the same or different patterns are supplemented on their surfaces respectively.
[0112] In some embodiments, pattern supplementation is performed on a building model in a three-dimensional model, including: determining a building type of the building model in the three-dimensional model; determining an appearance pattern corresponding to each building type; and adding a corresponding appearance pattern to a surface of the building model.
[0113] In the disclosed embodiment, by dividing the building models in the three-dimensional model into different building types, different appearance patterns are respectively corresponding to the building models of different building types, and appearance patterns are added to the surface of the building models according to the appearance patterns corresponding to the building models.
[0114] In some embodiments, the types are divided into: commercial building models, medical building models, educational building models, residential building models, and public facility building models.
[0115] In some embodiments, the types are divided into: house model, mountain model, water system model, and green space model.
[0116] In the embodiment of the present disclosure, a pattern set with different textures and colors can be provided, and the user can select the appearance pattern to be added to the surface of the building model from the pattern set. For example, different appearance patterns can be selected for building models of different building types, which can provide richer visual effects, meet the user's customization needs, and enhance the user experience.
[0117] In some embodiments, map elements include points of information (POI), people, vehicles, vegetation, etc.
[0118] In the embodiment of the present disclosure, one or more map elements may be added to the three-dimensional model.
[0119] In some embodiments, supplementing a three-dimensional model with map elements includes: determining map elements to be added and location coordinates to be added in the three-dimensional model; adding map elements to the three-dimensional model according to the location coordinates to generate a target three-dimensional model.
[0120] In the disclosed embodiment, the map elements to be added and the position coordinates of the map elements to be added in the three-dimensional model are determined; and the map elements are added to the three-dimensional model according to the coordinate positions.
[0121] In some embodiments, a new coordinate system is constructed for the three-dimensional model, the coordinate position of the map element to be added in the coordinate system is determined, and the map element is added to the three-dimensional model.
[0122] For example, Figure 7 As shown in the figure, it is a schematic diagram of adding map elements in the 3D model.
[0123] In the disclosed embodiment, the map elements in the three-dimensional model can be personalized based on the coordinate adsorption capability, which can provide richer visual effects, meet the user's customized needs, and enhance the user experience.
[0124] For example, Figure 8 As shown, a schematic diagram of the generated target three-dimensional model.
[0125] In some embodiments, the three-dimensional model generation method provided by the embodiments of the present disclosure also includes: determining the target size and target format of the target three-dimensional model output; adjusting the target three-dimensional model to the target size, converting it into the target format, and sending it to the output device.
[0126] In the disclosed embodiment, after the target 3D model is generated, the target size and target format of the target 3D model output may be determined, the target 3D model may be adjusted to the target size, converted to the target format, and sent to the output device.
[0127] In some embodiments, the output device is a 3D printing device, or a holographic projection device.
[0128] Exemplarily, the target three-dimensional model is adjusted to a target size, and the size of the target three-dimensional model can be adjusted to an overall height of 30 cm, or 60 cm, and a length and width of 60 cm*60 cm.
[0129] Exemplarily, the target three-dimensional model is converted into a target format, and the target three-dimensional model may be converted into a Glb format, an obj format, an fbx format, or the like.
[0130] For example, Fig. 9 As shown, the target three-dimensional model is adjusted to the target size, converted into the target format, and sent to the output device, and the target three-dimensional model is 3D printed, which is a schematic diagram of the solid model. Fig. 9 The wood grain carrier shown may be pre-configured by the user for the physical model, and is not specifically limited here.
[0131] In the disclosed embodiments, the generated target three-dimensional model can be sent to a holographic projection device or a 3D printing device, and combined with augmented reality (AR) technology, it can become a bridge connecting the real and virtual worlds, providing users with an immersive tour experience, or assisting teaching in the field of education, making learning lively and interesting.
[0132] The three-dimensional model generation method provided by the embodiment of the present disclosure can support 3D city generation and has the ability to automatically select, cut, and close the map area. This ability supports the generation of regional models of arbitrary shapes and can be combined and matched with water bodies, roads, green spaces, etc. to achieve a complete 3D map model. At the same time, according to the coordinate adsorption ability, the combination generation of multiple map elements such as POI, people, vehicles, and vegetation can be customized and integrated with the application scenarios of 3D modeling and manufacturing machines and 3D virtualization. It can not only enrich the expression of maps in real scenes, but also greatly expand its application potential in multiple fields, promote map services from positioning and navigation to provide more diversified value-added services to the outside world, and increase user stickiness.
[0133] Based on the above method embodiment, the present disclosure also provides a three-dimensional model generation device 1, such as Fig.10 As shown, the device includes: a region acquisition unit 11, a data acquisition unit 12, a first processing unit 13 and a modeling processing unit 14.
[0134] The area acquisition unit 11 is used to acquire a designated area of any shape selected by a user in the two-dimensional map area.
[0135] The data acquisition unit 12 is used to acquire first vector map data of the designated area; wherein, in the first vector map data, there are cut-off buildings at the edge of the designated area.
[0136] The first processing unit 13 is used to generate closed surface data corresponding to the cut surface of the building body.
[0137] The modeling processing unit 14 is used to perform three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model.
[0138] In some embodiments, the region acquisition unit 11 is further used to: acquire initial vector map data;
[0139] Generate second vector map data at specified map coordinates according to the initial vector map data;
[0140] Acquiring two-dimensional map data in the second vector map data;
[0141] Display a 2D map area based on 2D map data.
[0142] In some embodiments, the data acquisition unit 12 is specifically used to: acquire vector map data corresponding to a specified area in the second vector map data to obtain the first vector map data.
[0143] In some embodiments, the first processing unit 13 is further used to: determine the vertex positions of the cutting surface of the building body, and the point positions between adjacent vertex positions; and determine the cutting surface of the building body based on the vertex positions and the point positions.
[0144] like Fig.11 As shown, in some embodiments, the modeling processing unit 14 includes: an external expansion processing module 141, a base generation module 142 and a modeling module 143.
[0145] The expansion processing module 141 is used to determine the building to be expanded in the designated area and generate expansion data of the building to be expanded.
[0146] The base generation module 142 is used to generate base data of a specified area.
[0147] The modeling module 143 is used to perform three-dimensional modeling based on the first vector map data, the closed surface data, the external expansion data and the base data to generate a three-dimensional model.
[0148] In some embodiments, the expansion processing module 141 is specifically used to determine the building to be expanded and the expansion level based on the distance between different buildings in the specified area; and generate expansion data of the building to be expanded based on the expansion level of the building to be expanded.
[0149] like Fig.12 As shown, in some embodiments, the device further includes: a beautification processing unit 15.
[0150] The beautification processing unit 15 is used to determine the building type of the building model in the three-dimensional model; determine the appearance pattern corresponding to each building type; add the corresponding appearance pattern on the surface of the building model; determine the map elements to be added and the position coordinates to be added in the three-dimensional model; add the map elements to the three-dimensional model according to the position coordinates to generate the target three-dimensional model.
[0151] like Fig.12 As shown, in some embodiments, the device further includes: a format determination unit 16 and an output processing unit 17.
[0152] The format determination unit 16 is used to determine the target size and target format of the 3D model output.
[0153] The output processing unit 17 is used to adjust the three-dimensional model to a target size, convert it into a target format, and send it to an output device.
[0154] It should be noted that, for the relevant description of each functional unit and functional module of the three-dimensional model generating device in the embodiment of the present disclosure, reference can be made to the description in the method embodiment, and will not be repeated here.
[0155] It should also be noted that the beneficial effects achieved by the three-dimensional model generation device in the embodiment of the present disclosure are the same as those achieved by the three-dimensional model generation method, and will not be repeated here.
[0156] The present disclosure also provides a storage medium, which includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method as described above.
[0157] The present disclosure also provides a processor, which is used to run a program, wherein the program executes the method as described above when running.
[0158] The present disclosure also provides an electronic device, comprising at least one processor; the storage medium is used to store a program executed by the processor and data required by the processor in the process of executing the program;
[0159] The processor is used to run a program, wherein the program executes the method described above when it is run.
[0160] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0161] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0165] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0166] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0167] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0168] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0169] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.
Claims
1. A three-dimensional model generation method, characterized in that: include: Get the specified area of any shape selected by the user in the two-dimensional map area; Acquire first vector map data of the designated area; wherein the first vector map data includes cut-off buildings at the edge of the designated area; Generate closed surface data corresponding to the cut surface of the building body; Three-dimensional modeling is performed based on the first vector map data and the closed surface data to generate a three-dimensional model.
2. The method according to claim 1, characterized in that Before obtaining the designated area of any shape selected by the user in the two-dimensional map area, the method further includes: Get initial vector map data; Generating second vector map data at specified map coordinates according to the initial vector map data; Acquire two-dimensional map data in the second vector map data; Based on the two-dimensional map data, the two-dimensional map area is displayed.
3. The method according to claim 2, characterized in that The obtaining of the first vector map data of the designated area includes: The vector map data corresponding to the designated area in the second vector map data is obtained to obtain the first vector map data.
4. The method according to any one of claims 1 to 3, characterized in that Before generating the closed surface data corresponding to the cut surface of the building body, the method further includes: Determining the vertex positions of the cutting surface of the building body and the point positions between adjacent vertex positions; Based on the vertex position and the point position, a cutting surface of the building body is determined.
5. The method according to any one of claims 1 to 3, characterized in that The performing three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model includes: Determine the building to be expanded in the designated area, and generate expansion data of the building to be expanded; Generate base data of the designated area; Three-dimensional modeling is performed based on the first vector map data, the closed surface data, the external expansion data and the base data to generate a three-dimensional model.
6. The method according to claim 5, characterized in that The step of determining the building to be expanded in the designated area and generating expansion data of the building to be expanded includes: Determining the building to be expanded and the expansion level based on the distances between different buildings in the designated area; Based on the expansion level of the building to be expanded, the expansion data of the building to be expanded is generated.
7. The method according to any one of claims 1 to 3, characterized in that After generating the three-dimensional model, the method further includes: Determining the building type of the building model in the three-dimensional model; Determine the corresponding exterior pattern for each building type; Adding the corresponding appearance pattern on the surface of the building model; Determining the map elements to be added and the location coordinates of the map elements to be added in the three-dimensional model; According to the position coordinates, the map elements are added to the three-dimensional model to generate a target three-dimensional model.
8. The method according to claim 7, characterized in that The method further comprises: Determining a target size and a target format for outputting the target three-dimensional model; The target three-dimensional model is adjusted to the target size, converted into the target format, and sent to the output device.
9. A three-dimensional model generating device, characterized in that: include: An area acquisition unit, used to acquire a designated area of any shape selected by a user in a two-dimensional map area; A data acquisition unit, configured to acquire first vector map data of the designated area; wherein the first vector map data includes cut-off buildings at the edge of the designated area; A first processing unit, used to generate closed surface data corresponding to the cut surface of the building body; A modeling processing unit is used to perform three-dimensional modeling based on the first vector map data and the closed surface data to generate a three-dimensional model.
10. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.