Tunnel modeling method, device, electronic equipment, medium and product
By generating and connecting the connecting arch surfaces of the tunnel model, the problem of incoherent connections at bifurcations or confluences in existing tunnel modeling methods is solved, and the aesthetics and realism of the three-dimensional electronic map are improved.
Patent Information
- Application Number
- CN202210302715.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-24
AI Technical Summary
Existing tunnel modeling methods have incoherent connections at bifurcations or confluences, affecting the aesthetics and realism of the model.
By obtaining the graphic data of the main tunnel and branch tunnels, the main arch is generated on the main tunnel, and the corresponding arch is generated on the branch tunnel. Connection points are generated based on the tunnel width, and the main arch is divided into partial arches to generate connections. Arches are connected to form connecting arches and rendered to produce a coherent tunnel model.
It improves the aesthetics and realism of the three-dimensional electronic map, improves the connection effect of the tunnel model at the intersection, and enhances the user experience.
Smart Images

Figure CN114969885B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of electronic maps, and in particular to a tunnel modeling method, device, electronic device, medium and product. Background Art
[0002] With the widespread use of lane-level navigation, it is necessary to display more detailed and beautiful road elements on electronic maps to complement it. As a more obvious building on the road, the presentation of its modeling style is an important component of the refined expression of lane-level navigation. At present, when modeling tunnels, multiple parallel arches are simulated on each tunnel. For tunnels of different widths, the simulated arch height remains unchanged and only horizontal stretching is performed. The corresponding connection points on the front and rear arches can be constructed into a surface, and the corresponding texture is attached to the surface, and the tunnel modeling is completed. Common tunnels are only in a single road direction, but there are also some tunnels that have bifurcations or confluences. If the tunnel modeling is still carried out in the above manner, then at the intersection of each bifurcated tunnel and the main tunnel, the arch of the main tunnel and the arch of each bifurcated tunnel will intersect, and the connection of the formed tunnel model at the intersection is very incoherent, which seriously affects the beauty of the tunnel model. Summary of the invention
[0003] Embodiments of the present disclosure provide a tunnel modeling method, device, electronic device, medium and product.
[0004] In a first aspect, a tunnel modeling method is provided in an embodiment of the present disclosure.
[0005] Specifically, the tunnel modeling method includes:
[0006] Acquire graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect;
[0007] Generating a main arch at a position on the main tunnel that is a preset distance away from the intersection;
[0008] Generate each fork arch on each fork tunnel;
[0009] Based on the tunnel width of each branch road tunnel, a plurality of connection points are generated on the main arch, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one;
[0010] At least one connecting arch is generated between two adjacent fork arches in each fork arch, one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches;
[0011] Connecting a portion of the bifurcated arch with its corresponding partial arch, and connecting another portion of the bifurcated arch with at least one connecting arch on both sides thereof to form a connecting arch surface between the bifurcated arch and the main arch;
[0012] The connecting arch surface is rendered to obtain a connecting tunnel model between the main arch and each branch arch.
[0013] In combination with the first aspect, in a first implementation of the first aspect of the present disclosure, the method further includes:
[0014] The highest point position of the main arch is determined based on the tunnel width of each branch tunnel.
[0015] In combination with the first aspect and the above various implementation methods of the first aspect, the present disclosure discloses, in a second implementation method of the first aspect, wherein the main tunnel corresponds to two branch tunnels, the highest point of the main arch is the connection point on the main arch, and the main arch includes a first partial arch and a second partial arch divided by the connection point.
[0016] In combination with the first aspect and the above various implementations of the first aspect, in a third implementation of the first aspect of the present disclosure, wherein generating at least one connecting arch between two adjacent forked arches in each forked arch comprises:
[0017] The connecting arch is obtained by rotating the first part of the arch by a preset angle.
[0018] In combination with the first aspect and the above various implementations of the first aspect, in a fourth implementation of the first aspect of the present disclosure, the step of rotating the first partial arch by a preset angle to obtain the connected arch includes:
[0019] When the at least one connecting arch includes an odd number of connecting arches, the first part of the arches is rotated 90 degrees to obtain the middle connecting arch, the first part of the arches is rotated (90-i*N) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*N) degrees to obtain the i-th connecting arch on the other side;
[0020] When the at least one connecting arch includes an even number of connecting arches, the first part of the arches is rotated (90-i*M) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*M) degrees to obtain the i-th connecting arch on the other side;
[0021] Wherein, i is an integer greater than or equal to 0, and M and N are greater than or equal to 0.
[0022] In combination with the first aspect and the above various implementations of the first aspect, in a fifth implementation of the first aspect of the present disclosure, the first partial arch, the second partial arch and the connecting arches have the same number of connection points, and the main arch has the same number of connection points as the branch arches; the method of connecting a part of the branch arch with its corresponding partial arch and connecting another part of the branch arch with at least one connecting arch on both sides thereof to form a connecting arch surface between the branch arch and the main arch includes:
[0023] Connecting some of the connection points of the bifurcated arches to the connection points of the corresponding first part of the arches in a one-to-one correspondence;
[0024] Connecting the connection points of at least one connecting arch between any two adjacent branch arches in a one-to-one correspondence;
[0025] Another part of the connection points of the branch arches are connected to the connection points of the nearest connecting arch in at least one connecting arch in a one-to-one correspondence.
[0026] In combination with the first aspect and the above various implementation methods of the first aspect, in the sixth implementation method of the first aspect of the present disclosure, the connection points on the first partial arch, the second partial arch and the each connecting arch are evenly distributed, and the connection points on the each branch arch are evenly distributed.
[0027] In a second aspect, a tunnel modeling device is provided in an embodiment of the present disclosure.
[0028] Specifically, the tunnel modeling device includes:
[0029] An acquisition module is configured to acquire graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect;
[0030] A first generating module is configured to generate a main arch at a position on the main tunnel that is a preset distance away from the intersection;
[0031] A second generation module is configured to generate each branch road arch on each branch road tunnel;
[0032] A third generation module is configured to generate a plurality of connection points on the main arch based on the tunnel width of each branch road tunnel, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one;
[0033] A fourth generating module is configured to generate at least one connecting arch between two adjacent fork arches in each fork arch, wherein one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches;
[0034] A connection module is configured to connect a part of the bifurcated arch with its corresponding partial arch, and to connect another part of the bifurcated arch with the at least one connecting arch on both sides thereof, so as to form a connecting arch surface between the bifurcated arch and the main arch;
[0035] The rendering module is configured to render the connecting arch surface to obtain a connecting tunnel model between the main arch and each branch arch.
[0036] In combination with the second aspect, in a first implementation of the second aspect of the present disclosure, the device further includes:
[0037] The determination module is configured to determine the highest point position of the main arch based on the tunnel width of each branch tunnel.
[0038] In combination with the second aspect and the above various implementation methods of the second aspect, the present disclosure discloses, in a second implementation method of the second aspect, wherein the main tunnel corresponds to two branch tunnels, the highest point of the main arch is the connection point on the main arch, and the main arch includes a first partial arch and a second partial arch divided by the connection point.
[0039] In combination with the second aspect and the above various implementations of the second aspect, in a third implementation of the second aspect of the present disclosure, the third generating module is configured as follows:
[0040] The connecting arch is obtained by rotating the first part of the arch by a preset angle.
[0041] In combination with the second aspect and the above various implementations of the second aspect, in a fourth implementation of the second aspect of the present disclosure, the part of the third generating module that obtains the connected arch by rotating the first partial arch by a preset angle is configured as follows:
[0042] When the at least one connecting arch includes an odd number of connecting arches, the first part of the arches is rotated 90 degrees to obtain the middle connecting arch, the first part of the arches is rotated (90-i*N) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*N) degrees to obtain the i-th connecting arch on the other side;
[0043] When the at least one connecting arch includes an even number of connecting arches, the first part of the arches is rotated (90-i*M) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*M) degrees to obtain the i-th connecting arch on the other side;
[0044] Wherein, i is an integer greater than or equal to 0, and M and N are greater than or equal to 0.
[0045] In combination with the second aspect and the above various implementations of the second aspect, in a fifth implementation of the second aspect of the present disclosure, the number of connection points on the first partial arch, the second partial arch and each connecting arch is the same, and the connection module is configured as follows:
[0046] Connecting some of the connection points of the bifurcated arches to the connection points of the corresponding first part of the arches in a one-to-one correspondence;
[0047] Connecting the connection points of at least one connecting arch between any two adjacent branch arches in a one-to-one correspondence;
[0048] Another part of the connection points of the branch arches are connected to the connection points of the nearest connecting arch in at least one connecting arch in a one-to-one correspondence.
[0049] In combination with the second aspect and the above various implementation methods of the second aspect, the present disclosure is in a sixth implementation method of the second aspect, wherein the connection points on the first partial arch, the second partial arch and the each connecting arch are evenly distributed, and the connection points on the each branch arch are evenly distributed.
[0050] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions that support a tunnel modeling device to execute the above-mentioned tunnel modeling method, and the processor is configured to execute the computer instructions stored in the memory. The tunnel modeling device may also include a communication interface for the tunnel modeling device to communicate with other devices or a communication network.
[0051] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by a tunnel modeling device, which includes computer instructions involved in the tunnel modeling device for executing the above-mentioned tunnel modeling method.
[0052] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program / instructions, wherein the computer program / instructions, when executed by a processor, implement the steps in the above-mentioned tunnel modeling method.
[0053] In a sixth aspect, an embodiment of the present disclosure provides a navigation method, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on an electronic map, navigation guidance is performed based on the navigation route, and the display of a tunnel model on the electronic map is implemented based on any one of the above-mentioned tunnel modeling methods.
[0054] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0055] The above technical solution can use a prediction model to move the main tunnel model back a certain distance, reserving space to establish a connecting tunnel model connecting the main tunnel model and each branch tunnel model. The connection of the tunnel models formed in this way can achieve a coherent effect at the intersection, thereby improving the aesthetics and realism of the three-dimensional electronic map, thereby improving the user experience.
[0056] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Other features, purposes and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0058] Figure 1A A schematic diagram showing the structure of a tunnel model in the prior art is shown;
[0059] Figure 1B A schematic diagram showing a usage scenario of tunnel modeling according to an embodiment of the present disclosure is shown;
[0060] Figure 2 A flow chart showing a tunnel modeling method according to an embodiment of the present disclosure;
[0061] Figure 3 A schematic diagram showing a main arch and each branch arch according to an embodiment of the present disclosure;
[0062] Figure 4 A schematic diagram showing the position of a connection point according to an embodiment of the present disclosure;
[0063] Figure 5 A schematic structural diagram of a connecting arch surface according to an embodiment of the present disclosure is shown;
[0064] Figure 6 A schematic diagram of the structure of a connection tunnel model according to an embodiment of the present disclosure is shown;
[0065] Figure 7 A structural block diagram of a tunnel modeling device according to an embodiment of the present disclosure is shown;
[0066] Figure 8 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0067] Fig. 9 It is a structural schematic diagram of a computer system suitable for implementing a tunnel modeling method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0068] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0069] In the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof existing or being added.
[0070] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0071] As mentioned above, with the widespread use of lane-level navigation, it is necessary to display more detailed and beautiful road elements on electronic maps to complement it. Tunnels are more obvious buildings on the road, and the presentation of their modeling style is an important component of the refined expression of lane-level navigation. At present, when modeling tunnels, multiple parallel arches are simulated on each tunnel. For tunnels of different widths, the height of the simulated arches remains unchanged and only horizontal stretching is performed. The corresponding connection points on the front and rear arches can be connected to form a surface, and the corresponding texture is attached to the surface, and the tunnel modeling is completed. Common tunnels are only in a single road direction, but there are also some tunnels that have bifurcations or convergences. If the tunnel modeling is still performed in the above manner, then at the intersection of each bifurcated tunnel and the main tunnel, the arch of the main tunnel and the arch of each bifurcated tunnel will intersect, such as Figure 1A As shown, the main arch 11 of the main tunnel and the bifurcated arches 12 and 13 of the two bifurcated tunnels may intersect, and the connection of the formed tunnel model at the intersection is very incoherent, which seriously affects the appearance of the tunnel model.
[0072] In view of the above problems, the present disclosure proposes a tunnel modeling method, which can retreat the main tunnel model for a certain distance, and reserve space to establish a connecting tunnel model connecting the main tunnel model and each branch tunnel model. The tunnel model formed in this way can achieve a coherent effect at the intersection, thereby improving the aesthetics and realism of the three-dimensional electronic map, and thus improving the user experience.
[0073] The tunnel modeling solution provided by the present disclosure can be used in a rendering display scene of a three-dimensional map, such as Figure 1B As shown, in a scenario where a user is using a navigation device such as a car-mounted navigation device or a user's mobile terminal for navigation, the navigation device receives a command from the user to display a three-dimensional map for navigation, and the navigation device can send the current location to a server, and the server feeds back road data corresponding to the current location to the navigation device for navigation display for the user. When the navigation device receives the graphic data of the main tunnel, at least two branch tunnels, and the intersection where the main tunnel and the branch tunnel intersect sent by the server for tunnel display, the tunnel modeling scheme provided by the present disclosure can be used to generate a main tunnel model, a branch tunnel model, and a connecting tunnel model of the main tunnel model and each branch tunnel model to display the three-dimensional tunnel model.
[0074] Or, if Figure 1B As shown, the tunnel modeling scheme provided by the present disclosure can also be used in the production scene of three-dimensional maps. When the cloud server produces maps, it can obtain the collected data through crowdsourcing vehicles or professional data collection vehicles. When the graphic data of the main tunnel, at least two branch road tunnels, and the intersection where the main tunnel and the branch road tunnel intersect are obtained based on the collected data, the tunnel modeling scheme provided by the present disclosure can be used to generate the main tunnel model, the branch road tunnel model, and the connecting tunnel model of the main tunnel model and each branch road tunnel model. When a client requests three-dimensional map data for display, the tunnel model can be sent to the client for display.
[0075] Figure 2 A flow chart of a tunnel modeling method according to an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the tunnel modeling method includes the following steps S201-S207:
[0076] In step S201, graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect are obtained;
[0077] In step S202, a main arch is generated at a position on the main tunnel that is a preset distance away from the intersection;
[0078] In step S203, each fork arch is generated on each fork tunnel;
[0079] In step S204, based on the tunnel width of each branch road tunnel, a plurality of connection points are generated on the main arch, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one;
[0080] In step S205, at least one connecting arch is generated between two adjacent fork arches in each fork arch, one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches;
[0081] In step S206, a part of the bifurcated arch is connected to its corresponding partial arch, and another part of the bifurcated arch is connected to the at least one connecting arch on both sides thereof, so as to form a connecting arch surface between the bifurcated arch and the main arch;
[0082] In step S207, the connecting arch surface is rendered to obtain a connecting tunnel model between the main arch and each branch arch.
[0083] In one embodiment of the present disclosure, the tunnel modeling method may be applicable to electronic devices such as computers, computing devices, electronic devices, servers, service clusters, etc. that can perform tunnel modeling.
[0084] In one embodiment of the present disclosure, one main tunnel may be connected to two or more branch tunnels, and the location where the main tunnel is connected to each branch tunnel is the intersection where the main tunnel and each branch tunnel intersect. Graphic data of the main tunnel, at least two branch tunnels, and the intersection where the main tunnel and the branch tunnel intersect may be first obtained to obtain the positional relationship between the main tunnel and its at least two branch tunnels.
[0085] In one embodiment of the present disclosure, unlike the prior art, the present embodiment does not generate a main arch at the intersection, but Figure 3 As shown, a main arch 311 is generated at a position on the main tunnel 31 at a preset distance from the intersection, and then a left fork arch 321 is generated on the left fork tunnel 32, and a right fork arch 331 is generated on the right fork tunnel 33. Each fork arch can be located at the connection end of the fork tunnel connected to the main tunnel, that is, at the intersection, or as shown in FIG. Figure 3 It is shown as being located near the connection end and spaced a certain distance from the intersection, but this is not a limitation.
[0086] In one embodiment of the present disclosure, the tunnel widths of the branch tunnels may be the same or different. A connection point may be generated on the main arch according to the tunnel widths of the branch tunnels. The connection point may divide the main arch into partial arches corresponding to the branch arches one by one. For example, if there are two branch arches, a connection point may be generated, and the connection point may divide the main arch into two partial arches. Each of the connection points may correspond to two adjacent branch arches in the branch arches. For example, if the main tunnel corresponds to two branch tunnels, namely the left branch tunnel A1 and the right branch tunnel A2, the width of the branch tunnel A1 is 12 m, and the width of the branch tunnel A2 is 8 m. Figure 4 As shown in the middle left figure, a connection point 411 can be generated on the main arch 41, and the projection 412 of the connection point is located at the 1 / 3 position on the right side of the main arch projection 42. The connection point 411 corresponds to the adjacent left-side branch tunnel A1 and right-side branch tunnel A2 in each branch arch. The connection point 411 can divide the main arch 41 into a first partial arch on the left and a second partial arch on the right. The longer first partial arch on the left corresponds to the branch arch of the wider branch tunnel A1 on the left, and the shorter first partial arch on the right corresponds to the branch arch of the narrower branch tunnel A2 on the right. Or, for example, assuming that the main tunnel corresponds to three branch tunnels, namely, three branch tunnels B1, B2 and B3 from left to right, the width of the left branch tunnel B1 is 8m, the width of the middle branch tunnel B2 is 8m, and the width of the right branch tunnel B2 is also 8m; then Figure 4 As shown in the middle right figure, two connection points, namely a first connection point 421 and a second connection point 422, can be generated on the main arch 41. The first connection point 421 corresponds to the two adjacent branch arches of the branch tunnels B1 and B2, and the second connection point 422 corresponds to the two adjacent branch arches of the branch tunnels B2 and B3. The first connection point 421 and the second connection point 422 are generated according to the widths of the three branch tunnels B1, B2 and B3. The projections of the first connection point 421 and the second connection point 422 divide the main arch projection 42 into three parts. The first connection point 411 and the second connection point 412 can divide the main arch 41 into a first partial arch, a second partial arch and a third partial arch. The first partial arch, the second partial arch and the third partial arch correspond to the three branch arches of the three branch tunnels B1, B2 and B3 respectively.
[0087] In a possible implementation, there is a connection point corresponding to every two adjacent fork arches. Based on this connection point, one or more connecting arches can be generated between the two adjacent fork arches. One end of these connecting arches between the two adjacent fork arches is connected to the connection point, and the other end is distributed between the two adjacent fork arches and connected to the road between the two adjacent fork arches.
[0088] In a possible implementation, when the fork arch is a fork arch located at the left or right edge of the tunnel, only one side of the fork arch has a connecting arch; when the fork arch is a fork arch located between two fork arches, both sides of the fork arch have connecting arches.
[0089] In a possible implementation, the partial arch corresponding to the fork arch can be connected to the fork arch. When there is a connecting arch on each side of the fork arch, the connecting arch can be connected to other parts of the fork arch. When there are two or more connecting arches on each side of the fork arch, the adjacent connecting arches on each side can be connected first, and the connecting arch closest to the fork arch can be connected to other parts of the fork arch. It should be noted here that the more connecting arches there are on one side of the fork arch, the smoother the connecting arch surface formed after connecting the connection points. Preferably, the number of connecting arches on one side of the fork arch can be 3.
[0090] In a possible implementation, the connection lines between the forked road arch and the corresponding partial arch and the connecting arch will form a plurality of connecting arch surfaces. These connecting arch surfaces are rendered and filled with preset textures to obtain a connecting tunnel model between the main arch and each forked road arch. One end of the connecting tunnel model is connected to the main tunnel model, and the other end is connected to each forked road tunnel model. The generation process of the main tunnel model can be to first generate a plurality of parallel main arches on the main tunnel, and then connect the front and rear main arches to form a surface, and then attach a preset texture to the surface to obtain the main tunnel model. The generation process of the forked road tunnel model is similar to that of the main tunnel model, and also to first generate a plurality of parallel forked road arches on the forked road tunnel, and then connect the front and rear forked road arches to form a surface, and then attach a preset texture to the surface to obtain the forked road tunnel model.
[0091] For example, Figure 5As shown, the main tunnel 51 corresponds to connecting two left-side branch tunnels 52 and right-side branch tunnels 53 of equal width. The main arch 511 on the main tunnel 51 is located at a position on the main tunnel 51 at a preset distance from the intersection. A left-side branch arch 521 is generated on the left-side branch tunnel 52, and a right-side branch arch 531 is generated on the right-side branch tunnel 53. Since the tunnel widths of the branch tunnel 52 and the branch tunnel 53 are the same, a connecting point 5111 corresponding to the two branch arches can be generated at the center position of the main arch 511. The partial arch on the left side of the connecting point 5111 corresponds to the left-side branch arch 521, and the partial arch on the right side of the connecting point 5111 corresponds to the right-side branch arch 531. A connecting arch 541 is generated between the adjacent branch arches 521 and 531. One end of the connecting arch 541 is connected to the connecting point 5111, and the other end is located on the road between the two adjacent fork arches. For the fork arch 521 on the left, the partial arch corresponding to the fork arch 521 can be connected to the left part of the fork arch 521, and the connecting arch 541 on the right side of the fork arch 521 is connected to the right part of the fork arch 521 to form a connecting arch surface between the left fork arch 521 and the main arch 511; the partial arch corresponding to the fork arch 531 on the right is connected to the right part of the right fork arch 531, and the connecting arch 541 on the left side of the fork arch 531 is connected to the left part of the right fork arch 531, so as to form a connecting arch surface between the right fork arch 531 and the main arch 511; a preset texture is attached to the connecting arch surface, such as Figure 6 As shown, a connecting tunnel model 61 between the main arch and each branch arch can be obtained, which can be displayed on a three-dimensional electronic map. Figure 6 The connecting tunnel model 61 is shown.
[0092] In the above implementation manner, a main arch can be generated at a position on the main tunnel that is a preset distance away from the intersection, and each branch road arch can be generated on each branch road tunnel, so that a certain space is reserved between the main arch and each branch road arch to generate a connection tunnel model; the generation process of the connection tunnel model can be to first generate a plurality of connection points on the main arch based on the tunnel width of each branch road tunnel, and based on the connection points, at least one connection arch is generated between two adjacent branch road arches in each branch road arch, so that the partial arch corresponding to the branch road arch and the two sides of the branch road arch are connected. The connecting arch on the side is connected to the branch road arch to form a connecting arch surface, and a preset texture is attached to the connecting arch surface, so that the connecting tunnel model between the main arch and the branch road arches can be obtained and displayed. The main arch on the connecting tunnel model is connected to the main tunnel model, and the branch road arches on the connecting tunnel model are connected to the tunnel models. The connection is very coherent, and the connecting tunnel model is also a smooth model. Therefore, the connection of the formed tunnel model at the intersection can achieve a coherent effect, which improves the aesthetics and realism of the three-dimensional electronic map, thereby improving the user experience.
[0093] In one embodiment of the present disclosure, the tunnel modeling method further includes:
[0094] The highest point position of the main arch is determined based on the tunnel width of each branch tunnel.
[0095] In this embodiment, the tunnel widths of the branch tunnels may be the same or different, and the highest point position of the main arch may be determined according to the tunnel widths of the branch tunnels. Figure 5 As shown, the main tunnel 51 corresponds to two branch tunnels, namely the left branch tunnel 52 and the right branch tunnel 53. The tunnel widths of the left branch tunnel 52 and the right branch tunnel 53 are the same, and the highest point of the main arch 511 is located in the middle of the main arch 511; if the tunnel widths of the left branch tunnel and the right branch tunnel are different, and the ratio of the tunnel widths of the left branch tunnel and the right branch tunnel is P1:P2, the projection of the highest point of the main arch is located at P1 / (P1+P2) on the left side of the main arch projection.
[0096] In one embodiment of the present disclosure, in the above-mentioned tunnel modeling method, the main tunnel corresponds to two branch tunnels, the highest point of the main arch is the connection point on the main arch, and the main arch includes a first partial arch and a second partial arch divided by the connection point.
[0097] For example, Figure 5As shown, the main tunnel 51 is connected to two branch tunnels 52 and 53 of equal width, and the highest point of the main arch 511 is located in the middle of the main arch 511, that is, the above-mentioned connection point. The main arch 511 includes a first part of the arch on the left and a second part of the arch on the right divided by the connection point. Alternatively, the main tunnel corresponds to two branch tunnels, namely the left branch tunnel A1 and the right branch tunnel A2, the width of the left branch tunnel A1 is 12m, and the width of the right branch tunnel A2 is 8m, then the projection of the highest point of the main arch is located at the 1 / 3 position on the right side of the main arch projection, that is, the above-mentioned connection point. That is, when the main tunnel corresponds to two branch tunnels, the highest point and the connection point are located at the same position, and the connection arch surface formed by the connection arch generated in this way is smoother.
[0098] In one embodiment of the present disclosure, step S205 in the tunnel modeling method, i.e., generating at least one connecting arch between two adjacent fork arches in each fork arch, includes:
[0099] The connecting arch is obtained by rotating the first part of the arch by a preset angle.
[0100] In this embodiment, the at least one connecting arch can be formed by rotating the first part of the arch by at least one angle, and a connecting arch can be obtained by rotating by one angle. In this way, the shape of at least one connecting arch is the same as the shape of the first part of the arch, so that the generation method of the connecting arch is simpler, and the generated connecting arch and the first part of the arch or the second part of the arch form a smoother connecting arch surface. For example, Figure 5 As shown, when there is a connecting arch 514 between the two forked arches, the connecting arch 514 can be a connecting arch formed by rotating the first part of the arch on the left side by 90 degrees clockwise. Of course, the connecting arch 514 can be a connecting arch formed by rotating the second part of the arch on the right side by 90 degrees counterclockwise, which is not limited here.
[0101] In one embodiment of the present disclosure, the step S205 of the tunnel modeling method described above of rotating the first partial arch by a preset angle to obtain the connected arch can be implemented as follows:
[0102] When the at least one connecting arch includes an odd number of connecting arches, the first part of the arches is rotated 90 degrees to obtain the middle connecting arch, the first part of the arches is rotated (90-i*N) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*N) degrees to obtain the i-th connecting arch on the other side;
[0103] When the at least one connecting arch includes an even number of connecting arches, the first part of the arch is rotated (90-i*M) degrees to obtain the i-th connecting arch on one side, and the first part of the arch is rotated (90+i*M) degrees to obtain the i-th connecting arch on the other side; wherein i is an integer greater than or equal to 0, and M and N are greater than or equal to 0.
[0104] For example, when a connecting arch is generated between two adjacent forked arches, the connecting arch is the middle connecting arch obtained by rotating the first part of the arch by 90 degrees. When two connecting arches are generated between two adjacent forked arches, the two connecting arches can be a connecting arch on one side obtained by rotating the first part of the arch by (90-i*N)=(90-1*1)=89 degrees, and a connecting arch on the other side obtained by rotating the first part of the arch by (90+i*N)=(90+1*1)=91 degrees. When three connecting arches are generated between two adjacent forked arches, the three connecting arches can be a middle connecting arch obtained by rotating the first part of the arch by 90 degrees, a connecting arch on one side obtained by rotating the first part of the arch by (90-i*N)=(90-1*1)=89 degrees, and a connecting arch on the other side obtained by rotating the first part of the arch by (90+i*N)=(90+1*1)=91 degrees.
[0105] The connecting arches generated in this embodiment can be evenly distributed on both sides of the direction perpendicular to the main arch, so that the two sides of the bifurcation of the connecting tunnel model formed in this way are symmetrical, and the model is more beautiful.
[0106] In one embodiment of the present disclosure, the first partial arch, the second partial arch and the connecting arches have the same number of connection points, and the main arch has the same number of connection points as the branch arches; the step of connecting a part of the branch arch with its corresponding partial arch, and connecting another part of the branch arch with at least one connecting arch on both sides thereof to form a connecting arch surface between the branch arch and the main arch includes:
[0107] Connecting some of the connection points of the bifurcated arches to the connection points of the corresponding first part of the arches in a one-to-one correspondence;
[0108] Connecting the connection points of at least one connecting arch between any two adjacent branch arches in a one-to-one correspondence;
[0109] Another part of the connection points of the branch arches are connected to the connection points of the nearest connecting arch in at least one connecting arch in a one-to-one correspondence.
[0110] For example, the number of connection points on the first partial arch, the second partial arch and the connecting arch is the same, which is 10. The number of connection points on the main arch is the sum of the number of connection points on the first partial arch and the number of connection points on the second partial arch, which is 20. The number of connection points on each branch arch is the same as the number of connection points on the main arch, which is also 20. In this way, the number of connection points on the left branch arch (i.e. 20) will be equal to the sum of the number of connection points on the first partial arch on the left (i.e. 10) and the number of connection points on the connecting arch (i.e. 10), and the number of connection points on the right branch arch (i.e. 20) will be equal to the sum of the number of connection points on the second partial arch on the right (i.e. 10) and the number of connection points on the connecting arch (i.e. 10). In this way, the left 10 connection points of the 20 connection points on the left fork arch can be connected to the 10 connection points on the first part of the arch on the left side in a one-to-one correspondence, and the left 10 connection points of the 20 connection points on the left fork arch can be connected to the 10 connection points of the nearest connecting arch in at least one connecting arch between the two; the 10 connection points of each connecting arch are connected in a one-to-one correspondence. The right 10 connection points of the 20 connection points on the right fork arch can be connected to the 10 connection points on the second part of the arch on the right side in a one-to-one correspondence, and the left 10 connection points of the 20 connection points on the right fork arch can be connected to the 10 connection points of the nearest connecting arch in at least one connecting arch between the two.
[0111] In one embodiment of the present disclosure, the connection points on the first partial arch, the second partial arch and the connecting arch are evenly distributed, and the connection points on each branch arch are evenly distributed.
[0112] In this embodiment, if the first partial arch is longer than the second partial arch, the distance between adjacent connection points on the first partial arch is greater than the distance between adjacent connection points on the second partial arch.
[0113] In this embodiment, the uniform distribution of the connection points on each arch can make the formed connecting arch surface smoother.
[0114] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.
[0115] Figure 7 FIG. 1 shows a structural block diagram of a tunnel modeling device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 7 As shown, the tunnel modeling device includes:
[0116] The acquisition module 701 is configured to acquire graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect;
[0117] A first generating module 702 is configured to generate a main arch at a position on the main tunnel that is a preset distance away from the intersection;
[0118] The second generation module 703 is configured to generate each fork arch on each fork tunnel;
[0119] The third generation module 704 is configured to generate a plurality of connection points on the main arch based on the tunnel width of each branch road tunnel, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one;
[0120] The fourth generating module 705 is configured to generate at least one connecting arch between two adjacent fork arches in each fork arch, wherein one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches;
[0121] A connection module 706 is configured to connect a portion of the bifurcated arch with its corresponding partial arch, and to connect another portion of the bifurcated arch with the at least one connecting arch on both sides thereof, so as to form a connecting arch surface between the bifurcated arch and the main arch;
[0122] The rendering module 707 is configured to render the connecting arch surface to obtain a connecting tunnel model between the main arch and each branch arch.
[0123] In one embodiment of the present disclosure, the tunnel modeling device may be applicable to electronic devices such as computers, computing devices, mobile terminals, servers, service clusters, etc. that can perform tunnel modeling.
[0124] In one embodiment of the present disclosure, one main tunnel may be connected to two or more branch tunnels, and the location where the main tunnel is connected to each branch tunnel is the intersection where the main tunnel and each branch tunnel intersect. Graphic data of the main tunnel, at least two branch tunnels, and the intersection where the main tunnel and the branch tunnel intersect may be first obtained to obtain the positional relationship between the main tunnel and its at least two branch tunnels.
[0125] In one embodiment of the present disclosure, unlike the prior art, the present embodiment does not generate a main arch at the intersection, but Figure 3As shown, a main arch 311 is generated at a position on the main tunnel 31 at a preset distance from the intersection, and then a left fork arch 321 is generated on the left fork tunnel 32, and a right fork arch 331 is generated on the right fork tunnel 33. Each fork arch can be located at the connection end of the fork tunnel connected to the main tunnel, that is, at the intersection, or as shown in FIG. Figure 3 It is shown as being located near the connection end and spaced a certain distance from the intersection, but this is not a limitation.
[0126] In one embodiment of the present disclosure, the tunnel widths of each branch tunnel can be the same or different. According to the tunnel widths of each branch tunnel, a connection point can be generated on the main arch, and the connection point can divide the main arch into partial arches corresponding to each branch arch. For example, if there are two branch arches, a connection point will be generated, and the connection point will divide the main arch into two partial arches; each of the connection points corresponds to two adjacent branch arches among the branch arches.
[0127] In a possible implementation, there is a connection point corresponding to every two adjacent fork arches. Based on this connection point, one or more connecting arches can be generated between the two adjacent fork arches. One end of these connecting arches between the two adjacent fork arches is connected to the connection point, and the other end is distributed between the two adjacent fork arches and connected to the road between the two adjacent fork arches.
[0128] In a possible implementation, when the fork arch is a fork arch located at the left or right edge of the tunnel, only one side of the fork arch has a connecting arch; when the fork arch is a fork arch located between two fork arches, both sides of the fork arch have connecting arches.
[0129] In a possible implementation, the partial arch corresponding to the fork arch can be connected to the fork arch. When there is a connecting arch on each side of the fork arch, the connecting arch can be connected to other parts of the fork arch. When there are two or more connecting arches on each side of the fork arch, the adjacent connecting arches on each side can be connected first, and the connecting arch closest to the fork arch can be connected to other parts of the fork arch. It should be noted here that the more connecting arches there are on one side of the fork arch, the smoother the connecting arch surface formed after connecting the connection points. Preferably, the number of connecting arches on one side of the fork arch can be 3.
[0130] In a possible implementation, the connection lines between the forked road arch and the corresponding partial arch and the connecting arch will form a plurality of connecting arch surfaces. These connecting arch surfaces are rendered and filled with preset textures to obtain a connecting tunnel model between the main arch and each forked road arch. One end of the connecting tunnel model is connected to the main tunnel model, and the other end is connected to each forked road tunnel model. The generation process of the main tunnel model can be to first generate a plurality of parallel main arches on the main tunnel, and then connect the front and rear main arches to form a surface, and then attach a preset texture to the surface to obtain the main tunnel model. The generation process of the forked road tunnel model is similar to that of the main tunnel model, and also to first generate a plurality of parallel forked road arches on the forked road tunnel, and then connect the front and rear forked road arches to form a surface, and then attach a preset texture to the surface to obtain the forked road tunnel model.
[0131] In the above implementation manner, a main arch can be generated at a position on the main tunnel that is a preset distance away from the intersection, and each branch road arch can be generated on each branch road tunnel, so that a certain space is reserved between the main arch and each branch road arch to generate a connection tunnel model; the generation process of the connection tunnel model can be to first generate a plurality of connection points on the main arch based on the tunnel width of each branch road tunnel, and based on the connection points, at least one connection arch is generated between two adjacent branch road arches in each branch road arch, so that the partial arch corresponding to the branch road arch and the two sides of the branch road arch are connected. The connecting arch on the side is connected to the branch road arch to form a connecting arch surface, and a preset texture is attached to the connecting arch surface, so that the connecting tunnel model between the main arch and the branch road arches can be obtained and displayed. The main arch on the connecting tunnel model is connected to the main tunnel model, and the branch road arches on the connecting tunnel model are connected to the tunnel models. The connection is very coherent, and the connecting tunnel model is also a smooth model. Therefore, the connection of the formed tunnel model at the intersection can achieve a coherent effect, which improves the aesthetics and realism of the three-dimensional electronic map, thereby improving the user experience.
[0132] In a possible implementation, the device further includes:
[0133] The determination module is configured to determine the highest point position of the main arch based on the tunnel width of each branch tunnel.
[0134] In this embodiment, the tunnel widths of the branch tunnels may be the same or different, and the highest point position of the main arch may be determined according to the tunnel widths of the branch tunnels. Figure 5As shown, the main tunnel 51 corresponds to two branch tunnels, namely the left branch tunnel 52 and the right branch tunnel 53. The tunnel widths of the left branch tunnel 52 and the right branch tunnel 53 are the same, and the highest point of the main arch 511 is located in the middle of the main arch 511; if the tunnel widths of the left branch tunnel and the right branch tunnel are different, and the ratio of the tunnel widths of the left branch tunnel and the right branch tunnel is P1:P2, the projection of the highest point of the main arch is located at P1 / (P1+P2) on the left side of the main arch projection.
[0135] In a possible implementation manner, the main tunnel corresponds to two branch tunnels, the highest point of the main arch is a connection point on the main arch, and the main arch includes a first partial arch and a second partial arch divided by the connection point.
[0136] For example, Figure 5 As shown, the main tunnel 51 is connected to two branch tunnels 52 and 53 of equal width, and the highest point of the main arch 511 is located in the middle of the main arch 511, that is, the above-mentioned connection point. The main arch 511 includes a first part of the arch on the left and a second part of the arch on the right divided by the connection point. Alternatively, the main tunnel corresponds to two branch tunnels, namely the left branch tunnel A1 and the right branch tunnel A2, the width of the left branch tunnel A1 is 12m, and the width of the right branch tunnel A2 is 8m, then the projection of the highest point of the main arch is located at the 1 / 3 position on the right side of the main arch projection, that is, the above-mentioned connection point. That is, when the main tunnel corresponds to two branch tunnels, the highest point and the connection point are located at the same position, and the connection arch surface formed by the connection arch generated in this way is smoother.
[0137] In a possible implementation, the third generating module is configured as follows:
[0138] The connecting arch is obtained by rotating the first part of the arch by a preset angle.
[0139] In this embodiment, the at least one connecting arch can be formed by rotating the first part of the arch by at least one angle, and a connecting arch can be obtained by rotating by one angle. In this way, the shape of at least one connecting arch is the same as the shape of the first part of the arch, so that the generation method of the connecting arch is simpler, and the generated connecting arch and the first part of the arch or the second part of the arch form a smoother connecting arch surface. For example, Figure 5 As shown, when there is a connecting arch 514 between the two forked arches, the connecting arch 514 can be a connecting arch formed by rotating the first part of the arch on the left side by 90 degrees clockwise. Of course, the connecting arch 514 can be a connecting arch formed by rotating the second part of the arch on the right side by 90 degrees counterclockwise, which is not limited here.
[0140] In a possible implementation manner, the part of the third generating module that obtains the connected arch by rotating the first arch portion by a preset angle is configured as follows:
[0141] When the at least one connecting arch includes an odd number of connecting arches, the first part of the arches is rotated 90 degrees to obtain the middle connecting arch, the first part of the arches is rotated (90-i*N) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*N) degrees to obtain the i-th connecting arch on the other side;
[0142] When the at least one connecting arch includes an even number of connecting arches, the first part of the arches is rotated (90-i*M) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*M) degrees to obtain the i-th connecting arch on the other side;
[0143] Wherein, i is an integer greater than or equal to 0, and M and N are greater than or equal to 0.
[0144] For example, when a connecting arch is generated between two adjacent forked arches, the connecting arch is the middle connecting arch obtained by rotating the first part of the arch by 90 degrees. When two connecting arches are generated between two adjacent forked arches, the two connecting arches can be a connecting arch on one side obtained by rotating the first part of the arch by (90-i*N)=(90-1*1)=89 degrees, and a connecting arch on the other side obtained by rotating the first part of the arch by (90+i*N)=(90+1*1)=91 degrees. When three connecting arches are generated between two adjacent forked arches, the three connecting arches can be a middle connecting arch obtained by rotating the first part of the arch by 90 degrees, a connecting arch on one side obtained by rotating the first part of the arch by (90-i*N)=(90-1*1)=89 degrees, and a connecting arch on the other side obtained by rotating the first part of the arch by (90+i*N)=(90+1*1)=91 degrees.
[0145] The connecting arches generated in this embodiment can be evenly distributed on both sides of the direction perpendicular to the main arch, so that the two sides of the bifurcation of the connecting tunnel model formed in this way are symmetrical, and the model is more beautiful.
[0146] In a possible implementation manner, the first partial arch, the second partial arch, and each connecting arch have the same number of connection points, and the connection module is configured as follows:
[0147] Connecting some of the connection points of the bifurcated arches to the connection points of the corresponding first part of the arches in a one-to-one correspondence;
[0148] Connecting the connection points of at least one connecting arch between any two adjacent branch arches in a one-to-one correspondence;
[0149] Another part of the connection points of the branch arches are connected to the connection points of the nearest connecting arch in at least one connecting arch in a one-to-one correspondence.
[0150] In this embodiment, it is assumed that the number of connection points on the first partial arch, the second partial arch and the connecting arch is the same, which is 10. The number of connection points on the main arch is the sum of the number of connection points on the first partial arch and the number of connection points on the second partial arch, which is 20. The number of connection points on each branch arch is the same as the number of connection points on the main arch, which is also 20. In this way, the number of connection points on the left branch arch (i.e. 20) will be equal to the sum of the number of connection points on the first partial arch on the left (i.e. 10) and the number of connection points on the connecting arch (i.e. 10), and the number of connection points on the right branch arch (i.e. 20) will be equal to the sum of the number of connection points on the second partial arch on the right (i.e. 10) and the number of connection points on the connecting arch (i.e. 10). In this way, the left 10 connection points of the 20 connection points on the left fork arch can be connected to the 10 connection points on the first part of the arch on the left side in a one-to-one correspondence, and the left 10 connection points of the 20 connection points on the left fork arch can be connected to the 10 connection points of the nearest connecting arch in at least one connecting arch between the two; the 10 connection points of each connecting arch are connected in a one-to-one correspondence. The right 10 connection points of the 20 connection points on the right fork arch can be connected to the 10 connection points on the second part of the arch on the right side in a one-to-one correspondence, and the left 10 connection points of the 20 connection points on the right fork arch can be connected to the 10 connection points of the nearest connecting arch in at least one connecting arch between the two.
[0151] In a possible implementation manner, the connection points on the first partial arch, the second partial arch and the connecting arches are evenly distributed, and the connection points on the branch arches are evenly distributed.
[0152] In this embodiment, if the first partial arch is longer than the second partial arch, the distance between adjacent connection points on the first partial arch is greater than the distance between adjacent connection points on the second partial arch.
[0153] In this embodiment, the uniform distribution of the connection points on each arch can make the formed connecting arch surface smoother.
[0154] The disclosed embodiment also discloses a navigation service, wherein, based on the above-mentioned tunnel modeling method, a display result of a tunnel model of the area where a navigated object is located is obtained, and based on the display result of the tunnel model, a navigation guidance service of a corresponding scene is provided for the navigated object. The corresponding scene is a combination of one or more of AR navigation, elevated navigation, or main and auxiliary road navigation.
[0155] The disclosed embodiment also discloses a navigation method, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on an electronic map, navigation guidance is performed based on the navigation route, and display of a tunnel model on the electronic map is achieved based on any one of the above methods.
[0156] like Figure 1B As shown, the tunnel modeling method can be applied to navigation devices such as mobile phones, pads, IoT (Internet of Things) devices, vehicle-mounted terminals, etc. that can display electronic maps. When the navigation device receives the graphic data of the main tunnel, at least two fork tunnels, and the intersection where the main tunnel and the fork tunnel intersect, the tunnel modeling scheme provided by the present disclosure can be used to generate the main tunnel model, the fork tunnel model, and the connecting tunnel model of the main tunnel model and each fork tunnel model to display the three-dimensional tunnel model. Alternatively, the tunnel modeling method can be applied to a server. When the server is making a map, the tunnel modeling scheme provided by the present disclosure can be used to generate the main tunnel model, the fork tunnel model, and the connecting tunnel model of the main tunnel model and each fork tunnel model. When a mobile terminal such as a mobile phone, pad, IoT (Internet of Things) device, vehicle-mounted terminal, etc. that can display electronic maps requests three-dimensional map data for display, the tunnel model can be sent to the mobile terminal for display.
[0157] The present disclosure also discloses an electronic device, which may be the above-mentioned navigation device or server. Figure 8 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 8 As shown, the electronic device 800 includes a memory 801 and a processor 802; wherein,
[0158] The memory 801 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 802 to implement the above method steps.
[0159] Fig. 91 is a schematic diagram of a computer system suitable for implementing a tunnel modeling method according to an embodiment of the present disclosure. The computer system may be a computer system of a navigation device or a computer system of a server.
[0160] like Fig. 9 As shown, the computer system 900 includes a processing unit 901, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The processing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0161] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed. Among them, the processing unit 901 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.
[0162] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the tunnel modeling method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 909, and / or installed from a removable medium 911.
[0163] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the road map or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0164] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0165] As another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present disclosure.
[0166] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A tunnel modeling method, wherein: include: Acquire graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect; Generating a main arch at a position on the main tunnel that is a preset distance away from the intersection; Generate each fork arch on each fork tunnel; Based on the tunnel width of each branch road tunnel, a plurality of connection points are generated on the main arch, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one; At least one connecting arch is generated between two adjacent fork arches in each fork arch, one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches; Connecting a portion of the bifurcated arch with its corresponding partial arch, and connecting another portion of the bifurcated arch with at least one connecting arch on both sides thereof to form a connecting arch surface between the bifurcated arch and the main arch; The connecting arch surface is rendered to obtain a connecting tunnel model between the main arch and each branch arch.
2. The method according to claim 1, wherein: The method further comprises: The highest point position of the main arch is determined based on the tunnel width of each branch tunnel.
3. The method according to claim 1, wherein: The main tunnel corresponds to two branch tunnels, the highest point of the main arch is a connection point on the main arch, and the main arch includes a first partial arch and a second partial arch divided by the connection point.
4. The method according to claim 3, wherein: The step of generating at least one connecting arch between two adjacent forked arches in each forked arch comprises: The connecting arch is obtained by rotating the first part of the arch by a preset angle.
5. The method according to claim 4, wherein: The step of rotating the first portion of the arch by a preset angle to obtain the connected arch comprises: When the at least one connecting arch includes an odd number of connecting arches, the first part of the arches is rotated 90 degrees to obtain the middle connecting arch, the first part of the arches is rotated (90-i*N) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*N) degrees to obtain the i-th connecting arch on the other side; When the at least one connecting arch includes an even number of connecting arches, the first part of the arches is rotated (90-i*M) degrees to obtain the i-th connecting arch on one side, and the first part of the arches is rotated (90+i*M) degrees to obtain the i-th connecting arch on the other side; Wherein, i is an integer greater than or equal to 0, and M and N are greater than or equal to 0.
6. The method according to claim 3, wherein: The first partial arch, the second partial arch and each connecting arch have the same number of connection points, and the main arch has the same number of connection points as each bifurcated arch; the method of connecting a part of the bifurcated arch with its corresponding partial arch, and connecting another part of the bifurcated arch with at least one connecting arch on both sides thereof to form a connecting arch surface between the bifurcated arch and the main arch includes: Connecting some of the connection points of the bifurcated arches to the connection points of the corresponding first part of the arches in a one-to-one correspondence; Connecting the connection points of at least one connecting arch between any two adjacent branch arches in a one-to-one correspondence; Another part of the connection points of the branch arches are connected to the connection points of the nearest connecting arch in at least one connecting arch in a one-to-one correspondence.
7. The method according to claim 6, wherein: The connection points on the first part arch, the second part arch and the connecting arches are evenly distributed, and the connection points on the branch arches are evenly distributed.
8. A tunnel modeling device, wherein: include: An acquisition module is configured to acquire graphic data of a main tunnel, at least two branch tunnels, and an intersection where the main tunnel and the branch tunnel intersect; A first generating module is configured to generate a main arch at a position on the main tunnel that is a preset distance away from the intersection; A second generation module is configured to generate each branch road arch on each branch road tunnel; A third generation module is configured to generate a plurality of connection points on the main arch based on the tunnel width of each branch road tunnel, each of the connection points corresponds to two adjacent branch road arches among the branch road arches, and the connection points divide the main arch into partial arches corresponding to each branch road arch one by one; A fourth generating module is configured to generate at least one connecting arch between two adjacent fork arches in each fork arch, wherein one end of the connecting arch is connected to the connecting point corresponding to the two adjacent fork arches, and the other end is connected to the road between the two adjacent fork arches; A connection module is configured to connect a part of the bifurcated arch with its corresponding partial arch, and to connect another part of the bifurcated arch with the at least one connecting arch on both sides thereof, so as to form a connecting arch surface between the bifurcated arch and the main arch; The rendering module is configured to render the connecting arch surface to obtain a connecting tunnel model between the main arch and each branch arch.
9. An electronic device, characterized in that: The method comprises a memory and at least one processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the at least one processor to implement the method steps described in any one of claims 1 to 7.
10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
12. A navigation method, wherein: A navigation route calculated based on at least a starting point, an end point and road conditions is obtained based on an electronic map, and navigation guidance is performed based on the navigation route. The display of the tunnel model on the electronic map is achieved based on any one of the methods described in claims 1-7.
Citation Information
Patent Citations
Tunnel inverted arch structure verifying method, device, memory and processing unit
CN109538254A
Map data processing method and device, readable medium and electronic equipment
CN113838207A
Tunnel inspection system comprising individually driven rail-guided vehicle and inertia navigation system
WO2018008808A1
