CN111104700A - Method, device and equipment for three-dimensional modeling of overpass and readable storage medium - Google Patents

Method, device and equipment for three-dimensional modeling of overpass and readable storage medium Download PDF

Info

Publication number
CN111104700A
CN111104700A CN201811176499.6A CN201811176499A CN111104700A CN 111104700 A CN111104700 A CN 111104700A CN 201811176499 A CN201811176499 A CN 201811176499A CN 111104700 A CN111104700 A CN 111104700A
Authority
CN
China
Prior art keywords
line data
line
data
overpass
dimensional model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811176499.6A
Other languages
Chinese (zh)
Other versions
CN111104700B (en
Inventor
向振伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201811176499.6A priority Critical patent/CN111104700B/en
Publication of CN111104700A publication Critical patent/CN111104700A/en
Application granted granted Critical
Publication of CN111104700B publication Critical patent/CN111104700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a device, equipment and a readable storage medium for three-dimensional modeling of a overpass, wherein the method comprises the following steps: acquiring line data of the overpass to be processed and a spatial connection relation between the line data; constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relation between the line data; and rendering the line data in the initial three-dimensional model of the line segment into surface data so as to construct a three-dimensional model of the overpass. The three-dimensional model of the overpass can be constructed, and if the three-dimensional model of the overpass is put into the electronic map, the three-dimensional effect of the overpass can be displayed in the electronic map. The user can directly distinguish whether a certain street crossing road is an overpass or a sidewalk according to the road pattern in the electronic map, and the driving experience of the user is improved.

Description

Method, device and equipment for three-dimensional modeling of overpass and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of modeling, in particular to a method, a device, equipment and a readable storage medium for three-dimensional modeling of an overpass.
Background
The electronic map provides great help for people going out, and the provided information comprises but is not limited to road information, building information and the like. In the current electronic map, the display mode of the overpass is a passable road, the stereoscopic effect is not displayed, and a user cannot directly distinguish whether a certain overpass is an overpass or a sidewalk according to the style of the road in the map.
Therefore, a method for three-dimensional modeling of the overpass is urgently needed to realize the three-dimensional display effect of the overpass. Therefore, the user can visually identify whether a certain passing road in the electronic map is the overpass or not so as to improve the driving experience of the user.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for three-dimensional modeling of a street overpass and a readable storage medium, and the method solves the problems that the street overpass in an electronic map does not display the three-dimensional effect of the street overpass in the prior art because no three-dimensional modeling method of the street overpass exists, and a user cannot directly distinguish whether a certain street road is the overpass or a sidewalk according to the style of the road in the electronic map, so that the driving experience of the user is poor.
In a first aspect, an embodiment of the present invention provides a method for three-dimensional modeling of an overpass, including: acquiring line data of the overpass to be processed and a spatial connection relation between the line data; constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relation between the line data; rendering the line data in the line segment initial three-dimensional model into surface data so as to construct the three-dimensional model of the overpass.
In a second aspect, an embodiment of the present invention provides an apparatus for three-dimensional modeling of an overpass, including: the acquisition module is used for acquiring the line data of the overpass to be processed and the spatial connection relation between the line data; the line segment initial three-dimensional model building module is used for building a line segment initial three-dimensional model of the overpass to be processed according to the line data and the space connection relation between the line data; and the overpass three-dimensional model building module is used for rendering the line data in the line segment initial three-dimensional model into surface data so as to build the overpass three-dimensional model.
In a third aspect, an embodiment of the present invention provides a terminal device, including: a memory, a processor, and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method according to any one of the first aspect.
The embodiment of the invention provides a method, a device and equipment for three-dimensional modeling of an overpass, and a readable storage medium, wherein the method comprises the steps of obtaining line data and a spatial connection relation between the line data of the overpass to be processed; constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relation between the line data; and rendering the line data in the initial three-dimensional model of the line segment into surface data so as to construct a three-dimensional model of the overpass. The three-dimensional model of the overpass can be constructed, and if the three-dimensional model of the overpass is put into the electronic map, the three-dimensional effect of the overpass can be displayed in the electronic map. The user can directly distinguish whether a certain street crossing road is an overpass or a sidewalk according to the road pattern in the electronic map, and the driving experience of the user is improved.
It should be understood that what is described in the summary above is not intended to limit key or critical features of embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for three-dimensional modeling of an overpass according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a spatial connection relationship between line data and line data of an overpass to be processed according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for three-dimensional modeling of an overpass according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of constructing a line segment initial three-dimensional model of a overpass to be processed in the second embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating the rendering of the horizontal bridge deck line data or the slope deck line data into the plane data in step 305 according to the second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for three-dimensional modeling of an overpass according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for three-dimensional modeling of an overpass according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for three-dimensional modeling of an overpass according to an embodiment of the present invention, and as shown in fig. 1, an execution subject of the embodiment is an apparatus for three-dimensional modeling of an overpass, and the apparatus for three-dimensional modeling of an overpass may be integrated on a terminal device. The terminal equipment can be a computer, a notebook computer, a tablet computer and the like. The method for three-dimensional modeling of the overpass provided by the embodiment comprises the following steps.
Step 101, obtaining line data of the overpass to be processed and a spatial connection relation between the line data.
Specifically, in the present embodiment, the line data of the overpass is stored in the database of the overpass, which is referred to as a storage database. The storage database stores the two-dimensional line data and the spatial connection relation of the line data of each overpass in a certain area. And acquiring the spatial connection relation of the line data and the line data of the same overpass from the storage database as the spatial connection relation between the line data and the line data of the overpass to be processed.
The certain area may be a city, a province or a national area, which is not limited in this embodiment.
It can be understood that the overpass to be processed is the overpass needing three-dimensional modeling.
Wherein the line data includes: the planar size and type of line data. The plane size of each line data is the length of the line data. The types of line data may include: horizontal bridge surface line data, slope surface line data and step line data. Wherein the type of line data can be distinguished by an additional field kid value.
Fig. 2 is a schematic diagram of line data and a spatial connection relationship between the line data of the overpass to be processed according to the first embodiment of the present invention. As shown in fig. 2, a line segment denoted by 21 represents horizontal bridgewire data, a line segment denoted by 22 represents slope face line data or step line data, and a represents that the horizontal bridgewire data and the slope face line data or the step line data have a spatial connection relationship, which is an intersection point of the horizontal bridgewire data and the slope face line data or the step line data.
And 102, constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the space connection relation between the line data.
Specifically, in the present embodiment, the line data and the spatial connection relationship in the storage database are the line data and the spatial connection relationship of the plane. Therefore, before constructing the initial three-dimensional model of the line segment of the overpass to be processed, the included angle between each line datum and the three-dimensional coordinate axis is set. For example, the three-dimensional coordinate axis takes a plane parallel to the horizontal bridge surface as a plane formed by an X axis and a Y axis, and an axis vertical to the horizontal bridge surface as a Z axis. The included angle between the horizontal bridge plane line data and the X axis is set to be 0 degree, the included angle between the horizontal bridge plane line data and the Y axis is set to be 90 degrees, and the included angle between the horizontal bridge plane line data and the Z axis is set to be 90 degrees. The included angles of the slope surface line data or the step line data with the X axis and the Y axis are both 45 degrees, and the included angle with the Z axis is 75 degrees. As shown in fig. 2, since the slope surfaces or steps on both sides of the horizontal bridge deck of most overpasses are symmetrical, the included angles between the data of the slope surfaces or steps on both sides and the three-dimensional coordinate axis can be set to be the same.
In this embodiment, the manner of setting the included angle between each line datum and the three-dimensional coordinate axis may be other manners, which is not limited in this embodiment.
Specifically, in this embodiment, according to the line data and the spatial connection relationship between the line data, constructing the initial three-dimensional model of the line segment of the overpass to be processed may be: determining three-dimensional coordinates of intersection points between the line data and the line data according to the spatial connection relation between the line data and a preset included angle between each line data and a three-dimensional coordinate axis; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
In this embodiment, before the initial three-dimensional model of the line segment of the overpass to be processed is constructed, a virtual altitude line segment of the overpass to be processed is created, and the size of the altitude line segment and the included angle between the altitude line segment and the line data are set. Then, according to the line data and the spatial connection relationship between the line data, constructing the initial three-dimensional model of the line segment of the overpass to be processed may be: and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
In this embodiment, the method for constructing the initial three-dimensional model of the line segment of the overpass to be processed according to the line data and the spatial connection relationship between the line data may also be other methods, which is not limited in this embodiment.
The initial three-dimensional model of the line segment is a model formed by the line segment and the space connection relation between the line segments.
And 103, rendering the line data in the line segment initial three-dimensional model into surface data to construct a three-dimensional model of the overpass.
Specifically, in this embodiment, each line data in the line segment initial three-dimensional model is rendered into plane data, and a three-dimensional model of the overpass is constructed. Because the types of the line data are different, rendering in different manners can be performed according to the different types of the line data in the line segment initial three-dimensional model, and a specific rendering method is not limited in this embodiment.
The method for three-dimensional modeling of the overpass provided by the embodiment obtains the spatial connection relationship between the line data and the line data of the overpass to be processed; constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relation between the line data; and rendering the line data in the initial three-dimensional model of the line segment into surface data so as to construct a three-dimensional model of the overpass. The three-dimensional model of the overpass can be constructed, and if the three-dimensional model of the overpass is put into the electronic map, the three-dimensional effect of the overpass can be displayed in the electronic map. The user can directly distinguish whether a certain street crossing road is an overpass or a sidewalk according to the road pattern in the electronic map, and the driving experience of the user is improved.
Example two
Fig. 3 is a flowchart of a method for three-dimensional modeling of a street overpass according to a second embodiment of the present invention, and as shown in fig. 3, the method for three-dimensional modeling of a street overpass according to the second embodiment of the present invention is further detailed in step 102 and step 103 on the basis of the method for three-dimensional modeling of a street overpass according to the first embodiment of the present invention, and further includes screening out error line data in a storage database; the method comprises the steps of determining the spatial connection relation of line data and line data of the same overpass according to the spatial connection relation of all the line data in a storage database, and setting a three-dimensional model of the overpass into an electronic map. The method for three-dimensional modeling of the overpass provided by the embodiment comprises the following steps.
Step 301, screening out error line data in the storage database.
Further, in this embodiment, the storage database includes data that does not have a connection relationship with any other line data, this part of data is referred to as "line data of two different types," line data of two different types "is error line data, and this part of data is filtered out.
And step 302, determining the spatial connection relation of the line data and the line data of the same overpass according to the spatial connection relation of all the line data in the storage database.
Further, in this embodiment, in the storage database, the line data having the spatial connection relationship is the line data of the same overpass. Therefore, the spatial connection relation of the line data and the line data of the same overpass is determined according to the spatial connection relation of all the line data.
And 303, acquiring the spatial connection relation between the line data of the overpass to be processed and the line data.
Further, in this embodiment, the spatial connection relationship between the line data and the line data of the overpass to be processed is obtained from the spatial connection relationship between the line data and the line data of the same overpass.
Further, in this embodiment, the line data includes: the plane size of the line data and the type of line data. The line data types include: horizontal bridge surface line data, slope surface line data and step line data.
Wherein, the plane size of the line data is: the length of the line data. The plane sizes of the line data as in fig. 2 are all the lengths of the line data.
And 304, constructing an initial three-dimensional model of the line segment of the overpass to be processed according to the line data and the spatial connection relation between the line data.
Further, in this embodiment, the building of the line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relationship between the line data specifically includes:
first, an intersection point between line data is determined according to a spatial connection relationship of the line data.
And secondly, extending a virtual height line segment of the overpass to be processed from the intersection point between the line data.
And thirdly, setting the size of the virtual height line segment and the included angle between the virtual height line segment and the line data.
And finally, determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
Specifically, in this embodiment, fig. 4 is a schematic diagram of constructing a line segment initial three-dimensional model of the overpass to be processed in the second embodiment of the present invention. As shown in fig. 4, first, an intersection point between line data is determined as a based on the spatial connection relationship of the line data. And a virtual height line segment extending from the intersection point between the line data to the overpass to be processed is AO. And setting the height size of the virtual height line segment AO and the included angle between the virtual height line segment AO and each line data. The height of the set virtual height segment AO is H, and only the included angle between the virtual height segment and the slope surface data or the step line data on the Z axis is shown in fig. 4, and the included angle may be 35 degrees. Or other degrees of included angle. And finally, determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed. In fig. 4, the size of the oblique side AB is the planar size of the slope data or the step data.
Or, in this embodiment, the building of the initial three-dimensional model of the line segment of the overpass to be processed according to the line data and the spatial connection relationship between the line data specifically includes:
first, an intersection point between line data is determined according to a spatial connection relationship of the line data.
And secondly, determining the three-dimensional coordinates of the intersection points of the line data and the line data according to the plane size of the line data and the preset included angle between each line data and the three-dimensional coordinate axis.
And finally, determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
Specifically, in this embodiment, the included angle between each line data and the three-dimensional coordinate axis is preset, that is, the included angle between each line data and the X axis, the Y axis, and the Z axis is respectively preset. And determining the three-dimensional coordinates of the line data and the intersection points between the line data according to the plane size of the line data and the preset included angle between each line data and the three-dimensional coordinate axis. And setting the intersection point between the line data and the line data in a three-dimensional coordinate system, determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data, and further constructing the initial three-dimensional model of the line segment of the overpass to be processed.
And 305, rendering the line data in the initial three-dimensional model of the line segment into surface data to construct a three-dimensional model of the overpass.
Further, in this embodiment, if the line data is horizontal bridge surface line data or slope surface line data, rendering the line data in the initial three-dimensional model of the line segment into surface data specifically includes:
and rendering the horizontal bridge surface line data or the slope surface line data in the initial three-dimensional model of the line segment towards two sides parallel to the line by taking the line as a center line to form horizontal bridge surface data or slope surface data.
Specifically, in this embodiment, fig. 5 is a schematic structural diagram illustrating rendering of the horizontal bridge deck line data or the slope deck line data into the plane data in step 305 in the second embodiment of the present invention. As shown in fig. 5, the horizontal bridge deck surface line data or the slope surface line data in the segment initial three-dimensional model is rendered to two sides parallel to the line with the line as a center line to form horizontal bridge deck surface data or slope surface data. The rendered centerline of the surface data is a line segment corresponding to the horizontal bridge surface line data or the slope surface line data. The arrow direction in fig. 5 is the direction in which rendering is performed.
Further, in this embodiment, if the line data is step line data, rendering the line data in the line segment initial three-dimensional model as surface data specifically includes:
firstly, rendering the step line data in the line segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal step surface data.
Next, the height of each step line data and the order of the step are set.
And thirdly, constructing vertical step surface data which are vertical to and intersected with the data of the two adjacent horizontal step surfaces according to the height of the step line data for the two adjacent steps.
And finally, determining the horizontal step surface data and the vertical step surface data corresponding to each step as the surface data of each step.
Specifically, in this embodiment, the step data and the slope line data in the line data of the overpass to be processed are consistent and are both data corresponding to one line segment. The three-dimensional step comprises two planes, one is a horizontal step surface, and the other is a vertical step surface. Therefore, the step line data in the line segment initial three-dimensional model is rendered to two sides parallel to the line by taking the line as the center line in a manner similar to the rendering of the horizontal bridge deck data or the slope data to form the horizontal step data. Next, the height of each step line data and the order of the step are set. The height can be 15 cm or 20 cm, or other values, and the step number can be 40 steps or 30 steps, or other steps. And then constructing vertical step surface data which are vertical to and intersected with the data of the two adjacent horizontal step surfaces. Wherein, the height of the vertical step surface data is the same as the height of the step line data. And finally, determining the horizontal step surface data and the vertical step surface data corresponding to each step as the surface data of each step.
And step 306, matching the three-dimensional model of the overpass with the original overpass data in the electronic map.
Further, in this embodiment, when the three-dimensional model of the overpass is matched with the original overpass data in the electronic map, the three-dimensional model of the overpass may be converted into a model corresponding to the plane line data, and then the model corresponding to the plane line data is matched with the original overpass data.
The matching algorithm is not limited in this embodiment, and a shape matching or numerical matching mode may be adopted.
And 307, if the three-dimensional model of the overpass is matched with the original overpass data in the electronic map, deleting the original overpass data in the electronic map, and setting the matched three-dimensional model of the overpass to the position of the original overpass data in the electronic map.
Further, if the three-dimensional model of the overpass is matched with the original data of the overpass in the electronic map, the overpass in the electronic map is replaced into a three-dimensional model. Specifically, the original overpass data in the electronic map is deleted, and the matched three-dimensional model of the overpass is set to the position of the original overpass data in the electronic map. When the user drives the vehicle to go out by adopting the electronic map, the three-dimensional model of the overpass can be displayed in the electronic map, and the user is guided to drive above the overpass or under the overpass. The driving road can be correctly determined, and the wrong road can be prevented.
In the method for three-dimensional modeling of an overpass, provided by this embodiment, the spatial connection relationship between line data and line data of the same overpass is determined according to the spatial connection relationship between all line data in the storage database by screening out wrong line data in the storage database. The method can eliminate the error data and obtain more accurate spatial connection relation between the data of the overpass to be processed and the line data.
According to the method for three-dimensional modeling of the overpass, when a line segment initial three-dimensional model of the overpass to be processed is constructed according to the spatial connection relation between line data and the line data, the intersection point between the line data is determined according to the spatial connection relation of the line data; extending a virtual height line segment of the overpass to be processed from the intersection point between the line data; setting the size of the virtual height line segment and the included angle between the virtual height line segment and the line data; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed. Or determining the intersection point between the line data according to the spatial connection relation of the line data; determining a three-dimensional coordinate of an intersection point between the line data and the line data according to the plane size of the line data and a preset included angle between each line data and a three-dimensional coordinate axis; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed. The constructed initial three-dimensional model of the line segment comprises the real size information of the plane line data of the overpass, so that the finally established three-dimensional model of the overpass is more accurate, and preparation is made for matching with the original overpass data in the electronic map.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a device for three-dimensional modeling of an overpass according to a third embodiment of the present invention, and as shown in fig. 6, the device 60 for three-dimensional modeling of an overpass according to the third embodiment of the present invention includes: the method comprises an obtaining module 61, a line segment initial three-dimensional model building module 62 and an overpass three-dimensional model building module 63.
The obtaining module 61 is configured to obtain line data of the overpass to be processed and a spatial connection relationship between the line data. And the line segment initial three-dimensional model building module 62 is used for building a line segment initial three-dimensional model of the overpass to be processed according to the line data and the space connection relation between the line data. And the overpass three-dimensional model building module 63 is configured to render the line data in the line segment initial three-dimensional model into surface data, so as to build a three-dimensional model of the overpass.
The device for three-dimensional modeling of an overpass provided by this embodiment may implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and technical effect thereof are similar, and are not described herein again.
Example four
Fig. 7 is a schematic structural diagram of a device for three-dimensional modeling of an overpass according to a fourth embodiment of the present invention, and as shown in fig. 7, the device 70 for three-dimensional modeling of an overpass according to the present embodiment is based on the device for three-dimensional modeling of an overpass according to a third embodiment of the present invention, and further includes: a screening module 71, a determination module 72, a matching module 73 and a replacement module 74.
Further, the line data includes: the plane size of the line data and the type of the line data;
the line data types include: horizontal bridge surface line data, slope surface line data and step line data.
Further, the segment initial three-dimensional model building module 62 is specifically configured to:
determining the intersection point between the line data according to the spatial connection relation of the line data; extending a virtual height line segment of the overpass to be processed from the intersection point between the line data; setting the size of the virtual height line segment and the included angle between the virtual height line segment and the line data; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
Or, further, the segment initial three-dimensional model building module 62 is specifically configured to:
determining the intersection point between the line data according to the spatial connection relation of the line data; determining a three-dimensional coordinate of an intersection point between the line data and the line data according to the plane size of the line data and a preset included angle between each line data and a three-dimensional coordinate axis; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
Further, if the line data is horizontal bridge surface line data or slope surface line data, the overpass three-dimensional model building module 63 is specifically configured to: and rendering the horizontal bridge surface line data or the slope surface line data in the initial three-dimensional model of the line segment towards two sides parallel to the line by taking the line as a center line to form horizontal bridge surface data or slope surface data.
Further, if the line data is step line data, the overpass three-dimensional model building module 63 is specifically configured to: rendering step line data in the line segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal step surface data; setting the height of each step line data and the step order; for two adjacent steps, constructing vertical step surface data which is vertical to and intersected with the data of the two adjacent horizontal step surfaces according to the height of the step line data; and determining the horizontal step surface data and the vertical step surface data corresponding to each step as the surface data of each step.
Further, the screening module 71 is configured to screen out error line data in the storage database. And the determining module 72 is configured to determine the spatial connection relationship between the line data and the line data of the same overpass according to the spatial connection relationship between all the line data in the storage database.
Further, the matching module 73 is configured to match the three-dimensional model of the overpass with the original overpass data in the electronic map. And the replacing module 74 is used for deleting the original overpass data in the electronic map and setting the three-dimensional model of the matched overpass to the position of the original overpass data in the electronic map if the three-dimensional model of the overpass is matched with the original overpass data in the electronic map.
The device for three-dimensional modeling of an overpass provided by this embodiment may execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and technical effect thereof are similar, and are not described herein again.
EXAMPLE five
Fig. 8 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present invention, and as shown in fig. 8, a terminal device 80 according to this embodiment includes: a memory 81, a processor 82 and a computer program.
Wherein the computer program is stored in the memory 81 and configured to be executed by the processor 82 to implement the method for three-dimensional modeling of an overpass provided by the first embodiment of the invention or the method for three-dimensional modeling of an overpass provided by the second embodiment of the invention.
The related description may be understood by referring to the related description and effect corresponding to the step in fig. 1 or fig. 3, and will not be described herein again.
EXAMPLE six
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for three-dimensional modeling of an overpass according to the first embodiment of the present invention or the method for three-dimensional modeling of an overpass according to the second embodiment of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (18)

1. A method for three-dimensional modeling of an overpass is characterized by comprising the following steps:
acquiring line data of the overpass to be processed and a spatial connection relation between the line data;
constructing a line segment initial three-dimensional model of the overpass to be processed according to the line data and the spatial connection relation between the line data;
rendering the line data in the line segment initial three-dimensional model into surface data so as to construct the three-dimensional model of the overpass.
2. The method of claim 1, wherein the line data comprises: the plane size of the line data and the type of the line data;
the line data types include: horizontal bridge surface line data, slope surface line data and step line data.
3. The method according to claim 2, wherein the constructing of the initial three-dimensional model of the line segment of the overpass to be processed according to the line data and the spatial connection relationship between the line data specifically comprises:
determining the intersection point between the line data according to the spatial connection relation of the line data;
extending a virtual height line segment of the overpass to be processed from the intersection point between the line data;
setting the size of the virtual height line segment and the included angle between the virtual height line segment and the line data;
and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
4. The method according to claim 2, wherein the constructing of the initial three-dimensional model of the line segment of the overpass to be processed according to the line data and the spatial connection relationship between the line data specifically comprises:
determining the intersection point between the line data according to the spatial connection relation of the line data;
determining three-dimensional coordinates of the line data and intersection points between the line data according to the plane size of the line data and a preset included angle between each line data and a three-dimensional coordinate axis;
and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
5. The method according to claim 3 or 4, wherein if the line data is horizontal bridge face line data or slope face line data, the rendering the line data in the segment-initiated three-dimensional model as face data specifically comprises:
rendering the horizontal bridge surface line data or the slope surface line data in the segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal bridge surface data or slope surface data.
6. The method according to claim 3 or 4, wherein if the line data is step line data, the rendering the line data in the line segment initial three-dimensional model as surface data specifically comprises:
rendering the step line data in the line segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal step surface data;
setting the height of each step line data and the step order;
for two adjacent steps, constructing vertical step surface data which is vertical to and intersected with the data of the two adjacent horizontal step surfaces according to the height of the step line data;
and determining the horizontal step surface data and the vertical step surface data corresponding to each step as the surface data of each step.
7. The method according to claim 1, wherein before obtaining the line data of the overpass to be processed and the spatial connection relationship between the line data, the method further comprises:
screening out error line data in a storage database;
and determining the spatial connection relation of the line data and the line data of the same overpass according to the spatial connection relation of all the line data in the storage database.
8. The method of claim 1, wherein after rendering the line data in the initial three-dimensional model of line segments into surface data to construct the three-dimensional model of the overpass, further comprising:
matching the three-dimensional model of the overpass with the original overpass data in the electronic map;
and if the three-dimensional model of the overpass is matched with the original overpass data in the electronic map, deleting the original overpass data in the electronic map, and setting the matched three-dimensional model of the overpass to the position of the original overpass data in the electronic map.
9. A device for three-dimensional modeling of an overpass is characterized by comprising:
the acquisition module is used for acquiring the line data of the overpass to be processed and the spatial connection relation between the line data;
the line segment initial three-dimensional model building module is used for building a line segment initial three-dimensional model of the overpass to be processed according to the line data and the space connection relation between the line data;
and the overpass three-dimensional model building module is used for rendering the line data in the line segment initial three-dimensional model into surface data so as to build the overpass three-dimensional model.
10. The apparatus of claim 9, wherein the line data comprises: the plane size of the line data and the type of the line data;
the line data types include: horizontal bridge surface line data, slope surface line data and step line data.
11. The apparatus of claim 10, wherein the line segment initial three-dimensional model building module is specifically configured to:
determining the intersection point between the line data according to the spatial connection relation of the line data; extending a virtual height line segment of the overpass to be processed from the intersection point between the line data; setting the size of the virtual height line segment and the included angle between the virtual height line segment and the line data; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the plane size of the line data, the size of the virtual height line segment and the included angle between the virtual height line segment and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
12. The apparatus of claim 10, wherein the line segment initial three-dimensional model building module is specifically configured to:
determining the intersection point between the line data according to the spatial connection relation of the line data; determining three-dimensional coordinates of the line data and intersection points between the line data according to the plane size of the line data and a preset included angle between each line data and a three-dimensional coordinate axis; and determining the position of the intersection point between the line data and the line data in the initial three-dimensional model of the line segment according to the three-dimensional coordinates of the intersection point between the line data and the line data so as to construct the initial three-dimensional model of the line segment of the overpass to be processed.
13. The apparatus according to claim 11 or 12, wherein if the line data is horizontal bridge face line data or slope face line data, the overpass three-dimensional model building module is specifically configured to:
rendering the horizontal bridge surface line data or the slope surface line data in the segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal bridge surface data or slope surface data.
14. The apparatus according to claim 11 or 12, wherein if the line data is step line data, the overpass three-dimensional model building module is specifically configured to:
rendering the step line data in the line segment initial three-dimensional model to two sides parallel to the line by taking the line as a center line to form horizontal step surface data; setting the height of each step line data and the step order; for two adjacent steps, constructing vertical step surface data which is vertical to and intersected with the data of the two adjacent horizontal step surfaces according to the height of the step line data; and determining the horizontal step surface data and the vertical step surface data corresponding to each step as the surface data of each step.
15. The apparatus of claim 9, further comprising:
the screening module is used for screening error line data in the storage database;
and the determining module is used for determining the spatial connection relation of the line data and the line data of the same overpass according to the spatial connection relation of all the line data in the storage database.
16. The apparatus of claim 9, further comprising:
the matching module is used for matching the three-dimensional model of the overpass with the original overpass data in the electronic map;
and the replacing module is used for deleting the original overpass data in the electronic map and setting the three-dimensional model of the matched overpass to the position of the original overpass data in the electronic map if the three-dimensional model of the overpass is matched with the original overpass data in the electronic map.
17. A terminal device, comprising:
a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-8.
18. A computer-readable storage medium, on which a computer program is stored, which computer program is executable by a processor to implement the method according to any one of claims 1-8.
CN201811176499.6A 2018-10-10 2018-10-10 Method, device, equipment and readable storage medium for three-dimensional modeling of overpass Active CN111104700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811176499.6A CN111104700B (en) 2018-10-10 2018-10-10 Method, device, equipment and readable storage medium for three-dimensional modeling of overpass

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811176499.6A CN111104700B (en) 2018-10-10 2018-10-10 Method, device, equipment and readable storage medium for three-dimensional modeling of overpass

Publications (2)

Publication Number Publication Date
CN111104700A true CN111104700A (en) 2020-05-05
CN111104700B CN111104700B (en) 2024-01-05

Family

ID=70417535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811176499.6A Active CN111104700B (en) 2018-10-10 2018-10-10 Method, device, equipment and readable storage medium for three-dimensional modeling of overpass

Country Status (1)

Country Link
CN (1) CN111104700B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011007755A (en) * 2009-06-29 2011-01-13 Victor Co Of Japan Ltd Navigation device and navigation method
CN103196452A (en) * 2013-04-23 2013-07-10 易图通科技(北京)有限公司 Expressing method and expressing device for relative height of land bridge on true three-dimensional navigation map
CN104807467A (en) * 2014-01-24 2015-07-29 高德信息技术有限公司 Display method and system of navigation map
CN105139750A (en) * 2015-09-30 2015-12-09 百度在线网络技术(北京)有限公司 Display method and apparatus of electronic map
CN105719343A (en) * 2016-01-19 2016-06-29 上海杰图天下网络科技有限公司 Method for constructing virtual streetscape map
CN106127855A (en) * 2016-08-29 2016-11-16 四川华控图形科技有限公司 A kind of magnanimity road network becomes more meticulous three-dimensional modeling and rendering intent in real time
CN106920278A (en) * 2017-03-03 2017-07-04 合肥工业大学 A kind of viaduct three-dimensional modeling method based on Reeb figures
CN107705363A (en) * 2017-10-20 2018-02-16 北京世纪高通科技有限公司 A kind of road Visualization Modeling method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011007755A (en) * 2009-06-29 2011-01-13 Victor Co Of Japan Ltd Navigation device and navigation method
CN103196452A (en) * 2013-04-23 2013-07-10 易图通科技(北京)有限公司 Expressing method and expressing device for relative height of land bridge on true three-dimensional navigation map
CN104807467A (en) * 2014-01-24 2015-07-29 高德信息技术有限公司 Display method and system of navigation map
CN105139750A (en) * 2015-09-30 2015-12-09 百度在线网络技术(北京)有限公司 Display method and apparatus of electronic map
CN105719343A (en) * 2016-01-19 2016-06-29 上海杰图天下网络科技有限公司 Method for constructing virtual streetscape map
CN106127855A (en) * 2016-08-29 2016-11-16 四川华控图形科技有限公司 A kind of magnanimity road network becomes more meticulous three-dimensional modeling and rendering intent in real time
CN106920278A (en) * 2017-03-03 2017-07-04 合肥工业大学 A kind of viaduct three-dimensional modeling method based on Reeb figures
CN107705363A (en) * 2017-10-20 2018-02-16 北京世纪高通科技有限公司 A kind of road Visualization Modeling method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王晶晶等: "城市立交桥虚拟现实系统研究", 《建筑科学》 *
胡碧松等: "大型立交桥三维建模方法研究", 《测绘科学》 *

Also Published As

Publication number Publication date
CN111104700B (en) 2024-01-05

Similar Documents

Publication Publication Date Title
KR102293479B1 (en) An intersection drawing method, an apparatus, a server and a storage medium
TW550521B (en) Method for re-building 3D model of house in a semi-automatic manner using edge segments of buildings
KR100970790B1 (en) Method of generating a computer readable model
CN107564077B (en) method and device for drawing road network
CN113390407A (en) Method, device and equipment for constructing lane-level navigation map and storage medium
CN110657804B (en) Indoor location service
CN107084740A (en) A kind of air navigation aid and device
CN114818065A (en) Three-dimensional roadway model building method and device, electronic equipment and storage medium
CN114066917B (en) Cleaning method, cleaning device, electronic equipment and storage medium
CN105354878A (en) Electronic map data making method and apparatus
CN112324095B (en) Method and system for intelligently assembling building space
Forlani et al. Building reconstruction and visualization from lidar data
CN111104700A (en) Method, device and equipment for three-dimensional modeling of overpass and readable storage medium
CN112906092A (en) Mapping method and mapping system
CN114663612B (en) High-precision map construction method and device and electronic equipment
CN111383334B (en) System and method for rendering objects
CN114528305A (en) Vector data updating range determining method and device, electronic equipment and storage medium
CN114092932A (en) Method and device for identifying chamfered surface, electronic equipment and storage medium
CN114373051A (en) Map updating method and device, electronic equipment and storage medium
CN114580044A (en) Building outer surface data acquisition method, building outer surface data acquisition device, computer equipment and medium
KR102156336B1 (en) Method for reconstructing three-dimensional shape
CN111311745A (en) Model placing method and device
KR100782152B1 (en) Method for obtaining 3-dimensional building data from aerial photograph db
CN117576255B (en) Method, device, computer equipment and storage medium for determining working area
CN113761990B (en) Road boundary detection method, device, unmanned vehicle and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant