CN107481321A - A kind of threedimensional model generation method and threedimensional model generation system - Google Patents

A kind of threedimensional model generation method and threedimensional model generation system Download PDF

Info

Publication number
CN107481321A
CN107481321A CN201710703847.XA CN201710703847A CN107481321A CN 107481321 A CN107481321 A CN 107481321A CN 201710703847 A CN201710703847 A CN 201710703847A CN 107481321 A CN107481321 A CN 107481321A
Authority
CN
China
Prior art keywords
dimensional
trigonometric ratio
target
data
outdoor scene
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
CN201710703847.XA
Other languages
Chinese (zh)
Other versions
CN107481321B (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.)
City Life (beijing) Information Co Ltd
Original Assignee
City Life (beijing) Information 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 City Life (beijing) Information Co Ltd filed Critical City Life (beijing) Information Co Ltd
Priority to CN201710703847.XA priority Critical patent/CN107481321B/en
Publication of CN107481321A publication Critical patent/CN107481321A/en
Application granted granted Critical
Publication of CN107481321B publication Critical patent/CN107481321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Landscapes

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

Abstract

The present invention discloses a kind of threedimensional model generation method and system, and methods described includes obtaining the two-dimensional position data of two-dimentional key element and the terrain data of target outdoor scene element corresponding to target outdoor scene element;According to the two-dimensional position data and terrain data, generation target outdoor scene element corresponds to the three-dimensional location data of required target three-dimensional;Trigonometric ratio is carried out to the two-dimentional key element corresponding to target outdoor scene element;The three-dimensional location data and trigonometric ratio result are based ultimately upon, generates target three-dimensional corresponding to target outdoor scene element.It can be seen that, the invention provides the scheme that a kind of two-dimensional position data and terrain data according to reality automatically generates threedimensional model, with higher data creating efficiency and less model data amount, and due to data source of the present invention using actual two-dimensional position data and terrain data as threedimensional model, so as to which the threedimensional model generated has higher location matches degree with outdoor scene element, and then improve the reference value of electronic three-dimensional map.

Description

A kind of threedimensional model generation method and threedimensional model generation system
Technical field
The invention belongs to the model construction techniques field of electronic map, more particularly to a kind of threedimensional model generation method and three Dimension module generates system.
Background technology
Electronic three-dimensional map, it can provide the user map inquiry by intuitively geographical outdoor scene analog representation mode, go out The map retrieval functions such as row navigation, it has also become the new highlight of Internet service development now.
, it is necessary to a large amount of threedimensional model corresponding with real world outdoor scene element in electronic three-dimensional map, for example, with road Road model, greenery patches model, fence model etc. corresponding to the difference such as road, greenery patches, fence, because model value is larger, so that Generating rate as efficient as possible, model data amount as small as possible are required when generating these models, in addition, to ensure three The reference value of electronic map is tieed up, also requires that the threedimensional model of generation matches as far as possible with the position of outdoor scene element.
It is general at present that threedimensional model is generated using mode of making by hand or carried out using correlation techniques such as oblique photographs three-dimensional Model automatically generates, however, the production efficiency for making mode by hand is relatively low, model data amount has human factor, it is difficult to tight Lattice control;Based on the automatic generation of the correlation techniques such as oblique photograph, the above mentioned problem of the mode of making by hand is overcome, but Due to data source of this method using the data obtained by the actual 2-D data manually gathered and oblique photograph as threedimensional model, Two kinds of data standard differences, cause the error of built threedimensional model larger, so as to which the threedimensional model of generation is difficult to and outdoor scene element Position match, have impact on the reference value of electronic three-dimensional map.
The content of the invention
In view of this, it is an object of the invention to provide a kind of threedimensional model generation method and threedimensional model to generate system, To cause generated threedimensional model and outdoor scene element that there is higher location matches degree, and then lift the ginseng of electronic three-dimensional map Examine value.
Therefore, the present invention is disclosed directly below technical scheme:
A kind of threedimensional model generation method, including:
Obtain the two-dimensional position data of the two-dimentional key element corresponding to target outdoor scene element, and the ground figurate number of target outdoor scene element According to;
According to the two-dimensional position data and the terrain data, generate the target outdoor scene element and correspond to required target The three-dimensional location data of threedimensional model;
Trigonometric ratio is carried out to the two-dimentional key element corresponding to the target outdoor scene element;
Based on the trigonometric ratio result obtained by the three-dimensional location data and the trigonometric ratio, the target outdoor scene element is generated Corresponding target three-dimensional.
Optionally, the two-dimensional position data of the two-dimentional key element includes the position coordinates of two-dimentional key element, the terrain data Include the elevation Value Data of the target outdoor scene element;
It is then described according to the two-dimensional position data and the terrain data, generate the target outdoor scene element it is corresponding needed for Target three-dimensional three-dimensional location data, including:
According to the position coordinates each put in the two-dimentional key element, the elevation of each point is obtained from the terrain data It is worth, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element;
Position coordinates and height value according to corresponding to each being put in the two-dimentional key element, generate the three-dimensional of target three-dimensional Position data.
Optionally, the two-dimentional key element to corresponding to the target outdoor scene element carries out trigonometric ratio, including:
According to the type of the two-dimentional key element and the type for the target three-dimensional that need to be generated, corresponding trigonometric ratio side is utilized Formula carries out trigonometric ratio to the two-dimentional key element;Wherein, the trigonometric ratio mode include the undirected trigonometric ratio in face, the oriented trigonometric ratio in face, The horizontal trigonometric ratio of line and the vertical trigonometric ratio of line.
Optionally, the trigonometric ratio result obtained by based on the three-dimensional location data and the trigonometric ratio, described in generation The target three-dimensional of target outdoor scene element, including:
Based on trigonometric ratio result, the model framework of target three-dimensional is obtained, the model framework includes trigonometric ratio result Corresponding each tri patch;And add attached dough sheet in the corresponding tri patch that model framework includes;
Calculate the texture coordinate and normal direction of each model vertices of the model framework;
Based on each model vertices in the attached dough sheet and model framework added in the three-dimensional location data, model framework Texture coordinate and normal direction, obtain target three-dimensional.
Optionally, methods described also includes:
When the generation demand to the threedimensional model of predefined type in two-dimensional surface be present, given birth in two-dimensional surface with face random point The threedimensional model of predefined type is generated into mode.
A kind of threedimensional model generates system, including:
Acquisition module, for obtaining the two-dimensional position data of the two-dimentional key element corresponding to target outdoor scene element, and target reality The terrain data of scape element;
Three-dimensional location data generation module, for according to the two-dimensional position data and the terrain data, described in generation Target outdoor scene element corresponds to the three-dimensional location data of required target three-dimensional;
Trigonometric ratio module, for carrying out trigonometric ratio to the two-dimentional key element corresponding to the target outdoor scene element;
Threedimensional model generation module, for the trigonometric ratio knot obtained by based on the three-dimensional location data and the trigonometric ratio Fruit, generate target three-dimensional corresponding to the target outdoor scene element.
Optionally, the two-dimensional position data of the two-dimentional key element includes the position coordinates of two-dimentional key element, the terrain data Include the elevation Value Data of the target outdoor scene element;
The then three-dimensional location data generation module, including:
Assignment unit, for according to the position coordinates each put in the two-dimentional key element, being obtained from the terrain data The height value each put, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element;
Three-dimensional location data generation unit, for position coordinates and elevation according to corresponding to each point in the two-dimentional key element Value, generate the three-dimensional location data of target three-dimensional.
Optionally, the trigonometric ratio module, is specifically used for:According to the type of the two-dimentional key element and the target three that need to be generated The type of dimension module, trigonometric ratio is carried out to the two-dimentional key element using corresponding trigonometric ratio mode;Wherein, the trigonometric ratio mode Including the undirected trigonometric ratio in face, the oriented trigonometric ratio in face, the horizontal trigonometric ratio of line and the vertical trigonometric ratio of line.
Optionally, the threedimensional model generation module, including:
Dough sheet adding device, for based on trigonometric ratio result, obtaining the model framework of target three-dimensional, the model frame Frame includes each tri patch corresponding to trigonometric ratio result;And added in the corresponding tri patch that model framework includes attached Dough sheet;
Computing unit, the texture coordinate and normal direction of each model vertices for calculating the model framework;
Threedimensional model generation unit, for the texture based on each model vertices in the three-dimensional location data and model framework Coordinate and normal direction, obtain target three-dimensional.
Optionally, the system, in addition to:
Face random point generation module, for when existing in two-dimensional surface to the generation demand of the threedimensional model of predefined type, The threedimensional model of predefined type is generated with face random point generating mode in two-dimensional surface.
From above scheme, threedimensional model generation method and system provided by the invention, target outdoor scene element institute is obtained The two-dimensional position data of corresponding two-dimentional key element, and the terrain data of target outdoor scene element;According to the two-dimensional position data and Terrain data, generation target outdoor scene element correspond to the three-dimensional location data of required target three-dimensional;To target outdoor scene element Corresponding two-dimentional key element carries out trigonometric ratio;The three-dimensional location data and the trigonometric ratio result obtained by trigonometric ratio are based ultimately upon, Generate target three-dimensional corresponding to target outdoor scene element.It can be seen that the invention provides a kind of two-dimensional position number according to reality According to and terrain data automatically generate the scheme of threedimensional model, there is higher data creating efficiency and less model data amount, And due to data source of the present invention using actual two-dimensional position and the actual landform data of outdoor scene element as threedimensional model, so that For the automatic generation based on oblique photograph correlation technique, threedimensional model and outdoor scene element that the present invention is generated With higher location matches degree, and then improve the reference value of electronic three-dimensional map.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of threedimensional model generation method provided in an embodiment of the present invention;
Fig. 2 is another schematic flow sheet of threedimensional model generation method provided in an embodiment of the present invention;
Fig. 3 is main surface and the schematic diagram of side in the undirected trigonometric ratio in face provided in an embodiment of the present invention;
Fig. 4 is the signal for generating tri patch in the horizontal trigonometric ratio of line provided in an embodiment of the present invention according to width and broken line Figure;
Fig. 5 is another schematic flow sheet of threedimensional model generation method provided in an embodiment of the present invention;
Fig. 6-Fig. 9 is the structural representation of threedimensional model generation system provided in an embodiment of the present invention.
Embodiment
For the sake of quoting and understanding, the technical term that hereinafter uses, write a Chinese character in simplified form or summary of abridging is explained as follows:
Elevation:Certain puts the distance along plumb line direction to absolute datum, is referred to as the absolute elevation of the point, abbreviation elevation.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of threedimensional model generation method, and this method can apply in electronic three-dimensional map, A kind of schematic flow sheet of threedimensional model generation method with reference to shown in figure 1, methods described may comprise steps of:
S101:The two-dimensional position data of two-dimentional key element corresponding to acquisition target outdoor scene element, and target outdoor scene element Terrain data.
When the target outdoor scene element can be the threedimensional model generation that greenery patches, road, fence, water etc. carry out electronic map The required modeling object being directed to.The two-dimentional key element can be that two-dimentional point, line, surface corresponding to the target outdoor scene element etc. will Element, so that the target outdoor scene element is greenery patches, road, fence, water etc. as an example, the two-dimentional key element of the target outdoor scene element is relative It can be two-dimentional greenery patches face, road surface, fence line, water surface etc. to answer ground.
The present invention uses the two-dimensional position data and target of two-dimentional key element corresponding to the target outdoor scene element actually measured The terrain data of outdoor scene element, as the data source needed for generation threedimensional model.
In practical application, it can obtain various target outdoor scene elements by manual measurement etc. mode and (such as greenery patches, road, enclose Column, water, tree etc.) two-dimentional key element two-dimensional position data and terrain data, be embodied as generate electronic three-dimensional map three Dimension module provides data foundation.
S102:According to the two-dimensional position data and terrain data, generate the target outdoor scene element and correspond to required mesh Mark the three-dimensional location data of threedimensional model.
Obtaining the two-dimensional position data of two-dimentional key element and the ground of target outdoor scene element corresponding to target outdoor scene element On the basis of graphic data, using the two-dimensional position data and Combining with terrain data, generation target outdoor scene element corresponds to required The three-dimensional location data of target three-dimensional, to enable the physical location and height of generated threedimensional model and outdoor scene element Journey value preferably matches.
S103:Trigonometric ratio is carried out to the two-dimentional key element corresponding to the target outdoor scene element.
In electronic map, the generation of complete three-dimensional modeling data, except needing to carry out necessary three-dimensional location data Generation outside, it is also necessary to perform some other processing procedures, for example the two-dimentional key element corresponding to target outdoor scene element carried out Trigonometric ratio, and calculating of model vertices texture coordinate and normal direction etc. is carried out based on trigonometric ratio result.
Wherein, specifically phase can be utilized according to the type of the two-dimentional key element and the type for the target three-dimensional that need to be generated The trigonometric ratio mode answered carries out trigonometric ratio to the two-dimentional key element, and this partial content will be explained in detail in ensuing embodiment State.
S104:Based on the trigonometric ratio result obtained by the three-dimensional location data and the trigonometric ratio, it is real to generate the target Target three-dimensional corresponding to scape element.
After handling to obtain trigonometric ratio result by trigonometric ratio, such as including of obtaining generating on the basis of trigonometric ratio is each , can be by continuing executing with other necessary processing steps in threedimensional model generating process (as counted after the model framework of tri patch Calculate texture coordinate and normal direction of model vertices etc.), finally, with reference to the result data of various processes, generate target outdoor scene element Corresponding target three-dimensional, such as three-dimensional greenery patches model, three-dimensional traverse, three corresponding to generation greenery patches, road, fence etc. Tie up fence model etc..
From above scheme, threedimensional model generation method provided in an embodiment of the present invention, target outdoor scene element institute is obtained The two-dimensional position data of corresponding two-dimentional key element, and the terrain data of target outdoor scene element;According to the two-dimensional position data and Terrain data, generation target outdoor scene element correspond to the three-dimensional location data of required target three-dimensional;To target outdoor scene element Corresponding two-dimentional key element carries out trigonometric ratio;The three-dimensional location data and the trigonometric ratio result obtained by trigonometric ratio are based ultimately upon, Generate target three-dimensional corresponding to target outdoor scene element.It can be seen that the invention provides a kind of two-dimensional position number according to reality According to and terrain data automatically generate the scheme of threedimensional model, there is higher data creating efficiency and less model data amount, And due to data source of the present invention using the actual two-dimensional position data and terrain data corresponding to outdoor scene element as threedimensional model, So as to the threedimensional model and outdoor scene that for the automatic generation based on oblique photograph correlation technique, the present invention is generated Element has higher location matches degree, and then improves the reference value of electronic three-dimensional map.
In the ensuing another embodiment of the present invention, the above method is illustrated in more detail.Shown with reference to figure 2 Threedimensional model generation method another schematic flow sheet, methods described can be realized by following steps:
S201:The two-dimensional position data of two-dimentional key element corresponding to acquisition target outdoor scene element, and target outdoor scene element Terrain data.
Wherein, the two-dimensional position data of the two-dimentional key element includes the position coordinates each put in two-dimentional key element, such as can With including two-dimentional greenery patches face, two-dimentional road surface or the first-class two-dimensional coordinate each put of two-dimensional level etc., the two-dimensional coordinate can be with It is latitude and longitude coordinates, or can also is the xy coordinates in common plane right-angle coordinate, this is not limited by the present invention.
The terrain data of the target outdoor scene element can include but is not limited to the altitude data of target outdoor scene element, described Altitude data can specifically include what is each put in the two-dimentional key element of each point or target outdoor scene element on target outdoor scene element Height value etc..
S202:According to the position coordinates each put in the two-dimentional key element, each point is obtained from the terrain data Height value, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element.
The position coordinates each put in the two-dimentional key element for obtaining target outdoor scene element, and the landform of target outdoor scene element On the basis of altitude data, this step obtains each point in two-dimentional key element according to the position coordinates of two-dimentional key element from terrain data Height value, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element, it is with this so that each in two-dimentional key element Point is also equipped with elevation information except possessing the two-dimensional position information to match with the real space position of target outdoor scene element, from And solid space three-dimensional location data required when being embodied as threedimensional model generation provides foundation.
S203:According to position coordinates and height value corresponding to each point in the two-dimentional key element, target three-dimensional is generated Three-dimensional location data.
Specifically, can be according to the two-dimensional position coordinate each put in two-dimentional key element, and height value corresponding to each point is come Respective two-dimensional face or the line corresponding three-dimensional coordinate in three-dimensional space in threedimensional model are generated, such as, by taking greenery patches as an example, The actual two-dimensional position coordinate value that will can be each put in two-dimentional greenery patches face, the greenery patches included directly as three-dimensional greenery patches model The horizontal plane two axial coordinate value each put on face, will height value corresponding to each point in two-dimentional greenery patches face, directly as three-dimensional green Vertical axes coordinate value each put on the greenery patches face that ground model includes etc..So as to may be such that the threedimensional model of generation and outdoor scene member Element matches on two-dimensional position and landform altitude.
S204:According to the type of the two-dimentional key element and the type for the target three-dimensional that need to be generated, corresponding three are utilized Angling mode carries out trigonometric ratio to the two-dimentional key element.
In electronic three-dimensional map, the inscape of threedimensional model except including three-dimensional location data described above it Outside, in addition to the information such as the texture coordinate on each summit of trigonometric ratio tectonic information, model of model and normal direction.In consideration of it, this step By carrying out trigonometric ratio to the two-dimentional key element of target outdoor scene element, to obtain the trigonometric ratio tectonic information of target three-dimensional.
Wherein, the type of the type of two-dimentional key element and the target three-dimensional that need to be generated is different, then two-dimentional key element uses Trigonometric ratio mode is also corresponding different, so as to be selected according to the type of two-dimentional key element and the type for the target three-dimensional that need to be generated Select corresponding trigonometric ratio mode and trigonometric ratio is carried out to the two-dimentional key element.The type of the two-dimentional key element such as can be greenery patches class Type, road surface type, fence type etc., the type of the target three-dimensional can be accordingly then three-dimensional greenery patches mould The types such as type, three-dimensional traverse, three-dimensional fence model.The trigonometric ratio mode can include but is not limited to the undirected triangle in face Change, the oriented trigonometric ratio in face, the horizontal trigonometric ratio of line and the vertical trigonometric ratio of line.
Below will to different types of model used by different trigonometric ratio modes illustrate.
1) the undirected trigonometric ratio in face:
Specifically, the trigonometric ratio tectonic information of certain form of threedimensional model needs to generate by the trigonometric ratio in face, and this The trigonometric ratio in faces is direction-free a bit, such as the type such as greenery patches, road, water.For these types, when carrying out trigonometric ratio, Trigonometric ratio is carried out to the two-dimensional surface (two-dimensional surface corresponding to i.e. two-dimentional key element) of the target outdoor scene element of these types first, such as can be right Two-dimentional greenery patches face or the two-dimentional water surface carry out undirected trigonometric ratio in face etc., to generate the main surface of threedimensional model, then generate side, root Type according to the model of generation is different, and the generating mode of side is different, as shown in figure 3, such as greenery patches needs main surface to move up, so Vertical fence face is added around afterwards, water then needs main surface to move down, and around generates vertical fence etc..
2) the oriented trigonometric ratio in face:
The trigonometric ratio in some faces is directive, such as crossing, by taking crossing as an example, crossing three-dimensional mould The trigonometric ratio tectonic information of type to the crossing face of two dimension by carrying out trigonometric ratio generation, due to zebra stripes in crossing Display is directive, it is necessary to row is among road, thus it requires the crossing face of 2-D data must be quadrangle, And there are obvious long short side, long short side near normal.On this basis, the trigonometric ratio processing procedure of this type coplanar undirected three The processing procedure of angling is identical, no longer elaborates herein.
3) the horizontal trigonometric ratio of line:
The trigonometric ratio tectonic information of certain form of threedimensional model needs the horizontal trigonometric ratio realization by line, i.e. trigonometric ratio The tri patch of generation is parallel to horizontal plane, yellow line, lane line among the edge line of such as road, road, for this type, With reference to figure 4, the width and broken line of the two-dimensional line of the invention with specific reference to target outdoor scene element are (in general, in edge line, road Between yellow line, lane line etc. a certain degree of bending in its longitudinal direction often be present, and can recognize in the absence of the two-dimensional line of bending To be a kind of special broken line) generate tri patch.For example specifically driveway line can be entered according to the width and broken line of lane line The generation of tri patch etc..
4) the vertical trigonometric ratio of line,
The trigonometric ratio tectonic information of the threedimensional model of some types is realized by the vertical trigonometric ratio of line, i.e. triangle Metaplasia into tri patch perpendicular to horizontal plane, such as enclosure wall, railing, the triangular facet of class model generation be all it is two-sided, with Make it possible to two-sided viewing.
S205:Based on trigonometric ratio result, the model framework of target three-dimensional is obtained, the model framework includes trigonometric ratio As a result corresponding each tri patch, and add attached dough sheet in the corresponding tri patch that model framework includes.
After trigonometric ratio is carried out to the two-dimentional key element of target outdoor scene element, the trigonometric ratio construction letter of threedimensional model can obtain Breath, i.e., tri patch one by one, on this basis, can obtain threedimensional model based on the trigonometric ratio tectonic information of threedimensional model Model framework, afterwards, actual model requirements can be directed to, on the corresponding tri patch of model, such as specifically in three-dimensional green Attached dough sheet of the addition with different display features on the side tri patch of ground model or three-dimensional traverse.
S206:Calculate the texture coordinate and normal direction of each model vertices of the model framework.
Model framework of this step based on gained after trigonometric ratio, the texture coordinate and normal direction on each summit on computation model.
Wherein, for the model obtained by the undirected trigonometric ratio mode in face, the texture coordinate on each summit, can be pressed in model It is allocated according to coordinate value (such as x, y-axis coordinate value) of the summit in the axial direction of horizontal plane two, that is, by the picture where summit Tiling, its coordinate value in vertical axial direction is not considered, to carry out texture coordinate distribution, for example directly can sit x, the y on summit Scale value is assigned to u in texture coordinate, v coordinate etc. respectively, or, can also be by x, the y on summit in order to save memory space After coordinate value translation, then by result is translated it is assigned to u in texture coordinate, v coordinate etc..And it is based on the undirected trigonometric ratio mode institute in face The normal direction on each summit in the model obtained, then it can pass through its normal direction weighted average acquisition for abutting triangle.
For based on the model obtained by the oriented trigonometric ratio mode in face, the generation of the normal direction on its each summit, coplanar nothing Into trigonometric ratio mode, the normal direction generating mode of model vertices is identical.And the generation of texture coordinate is relative complex, press first more than Mode is tiled, and the rotation amount of texture coordinate needs is calculated according to long side direction, then by the water on each summit of model The axial coordinate of plane two is multiplied by the rotation amount, just obtains the texture coordinate on each summit.
It is corresponding according to it for the model obtained by the horizontal trigonometric ratio mode of line, the texture coordinate on each of which summit Length residing for the summit of broken line obtains, and specifically refers to shown in Fig. 4.And the normal direction on each summit is then abutted by it in model The normal direction weighted average of triangle obtains.
For the model obtained by the vertical trigonometric ratio mode of line, the generating mode of its model vertices texture coordinate and normal direction Generation method in collinear horizontal trigonometric ratio mode is similar, specifically refers to texture coordinate and normal direction in the horizontal trigonometric ratio mode of line Generating mode, be no longer described in detail herein.
S207:Based on each model in the attached dough sheet and model framework added in the three-dimensional location data, model framework The texture coordinate and normal direction on summit, obtain target three-dimensional.
Each inscape data needed for generation threedimensional model are being obtained, as obtained in three-dimensional location data, model framework The attached dough sheet of addition, in model framework on the basis of each factor data such as the texture coordinate of each model vertices and normal direction, can base In each inscape data of acquisition, target three-dimensional corresponding to target outdoor scene element is ultimately generated.
The threedimensional model generation method of the present embodiment, realize a kind of two-dimensional position data and terrain data according to reality The scheme of threedimensional model is automatically generated, there is higher data creating efficiency and less model data amount, and due to the present invention Data source using actual two-dimensional position data and the actual landform data corresponding to outdoor scene element as threedimensional model, so as to phase Have than the threedimensional model that for the automatic generation based on oblique photograph correlation technique, the present invention is generated with outdoor scene element There is higher location matches degree, and then improve the reference value of electronic three-dimensional map.
In another embodiment of the present invention, the schematic flow sheet of the threedimensional model generation method with reference to shown in figure 5 is described Method can also include:
S105:When existing in two-dimensional surface to the generation demand of the threedimensional model of predefined type, in two-dimensional surface with face with Machine point generating mode generates the threedimensional model of predefined type.
The generation of some threedimensional models by generating at random in two-dimensional surface, such as the generation set.More specifically, than Generate a series of tree-model at random if desired in two-dimentional greenery patches face, then the present embodiment specifically by the way of the random point of face, To realize the generation of the threedimensional model of tree.
Specifically,, can be first using the face random point generating mode still exemplified by generating tree-model in two-dimentional greenery patches face First generate some points at random in two-dimentional greenery patches face, and height value is assigned for these points, then add one on the position of these points The tree-model made in advance being consistent a bit with assigned height value, the normal direction and texture coordinate of tree in the tree-model of pre-generatmg Through existing.Wherein, tree is divided into three kinds:Point-like tree, wire tree, planar tree, the difference of three are sparse (the i.e. quantity of point-like tree Less, sparse several tree-models form the tree region of point-like), (i.e. quantity is more, a system of comparatively dense for planar tree comparatively dense Row tree-model forms the tree region of planar), wire tree is distributed near certain line.
And according to the difference of tree type, the algorithm generated at random is also different., can be in two-dimensional surface for point-like tree and planar tree Generation point, and point-like or planar are controlled by the different generating probabilities of set-point at random in (such as two-dimentional greenery patches face), Wherein, the corresponding point generating probability of point-like tree is smaller, and point generating probability is larger corresponding to planar tree, then by between setting tree Every to remove random point closer to the distance;Specifically, for planar tree, it can at random generate a little along the border in face, then set The interval of tree removes random point closer to the distance.
The present invention provides a kind of threedimensional model generation system, the three-dimensional mould with reference to shown in figure 6 in ensuing embodiment Type generates the structural representation of system, and the system includes:
Acquisition module 100, for obtaining the two-dimensional position data of the two-dimentional key element corresponding to target outdoor scene element, and target The terrain data of outdoor scene element;Three-dimensional location data generation module 200, for according to the two-dimensional position data and ground figurate number According to generating the three-dimensional location data that the target outdoor scene element corresponds to required target three-dimensional;Trigonometric ratio module 300, use In to the two-dimentional key element progress trigonometric ratio corresponding to the target outdoor scene element;Threedimensional model generation module 400, for based on institute Three-dimensional location data and the trigonometric ratio result obtained by the trigonometric ratio are stated, it is three-dimensional to generate target corresponding to the target outdoor scene element Model.
In an embodiment of the embodiment of the present invention, with reference to figure 7, three-dimensional location data generation module in the system 200 include:Assignment unit 210, for according to the position coordinates each put in the two-dimentional key element, being obtained from the terrain data The height value each put is obtained, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element;Three-dimensional location data generates Unit 220, for position coordinates and height value according to corresponding to each point in the two-dimentional key element, generate target three-dimensional Three-dimensional location data.
In an embodiment of the embodiment of the present invention, the trigonometric ratio module 300, it is specifically used for:According to the two dimension The type of the type of key element and the target three-dimensional that need to be generated, the two-dimentional key element is carried out using corresponding trigonometric ratio mode Trigonometric ratio;Wherein, it is vertical to include the undirected trigonometric ratio in face, the oriented trigonometric ratio in face, the horizontal trigonometric ratio of line and line for the trigonometric ratio mode Trigonometric ratio.
In an embodiment of the embodiment of the present invention, with reference to figure 8, the threedimensional model generation module 400, including:Face Piece adding device 410, for based on trigonometric ratio result, obtaining the model framework of target three-dimensional, the model framework includes Each tri patch corresponding to trigonometric ratio result;And add attached dough sheet in the corresponding tri patch that model framework includes; Computing unit 420, the texture coordinate and normal direction of each model vertices for calculating the model framework;Threedimensional model generation unit 430, for texture coordinate and normal direction based on each model vertices in the three-dimensional location data and model framework, obtain target three Dimension module.
In an embodiment of the embodiment of the present invention, with reference to figure 9, the system also includes:Face random point generation module 500, for when the generation demand to the threedimensional model of predefined type in two-dimensional surface be present, being given birth in two-dimensional surface with face random point The threedimensional model of predefined type is generated into mode.
For threedimensional model generation system disclosed in the embodiment of the present invention, due to its with various embodiments above disclosed in Threedimensional model generation method is corresponding, so description is fairly simple, related similarity is referred to three in various embodiments above The explanation of dimension module generation method part, is no longer described in detail herein.
In summary, the embodiments of the invention provide a kind of threedimensional model generation method and system, methods described and system Threedimensional model is automatically generated according to the two-dimensional position data of reality and terrain data, there is higher data creating efficiency and less Model data amount, and due to the present invention using the actual two-dimensional position data and terrain data corresponding to outdoor scene element as three-dimensional The data source of model, so as to which for the automatic generation based on oblique photograph correlation technique, the present invention is generated Threedimensional model and outdoor scene element there is higher location matches degree, and then improve the reference value of electronic three-dimensional map.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For convenience of description, describe to be divided into various modules when system above or device with function or unit describes respectively. Certainly, the function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment (can be personal computer, server, either network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
Finally, it is to be noted that, herein, the relational terms of such as first, second, third and fourth or the like It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires or imply these Any this actual relation or order be present between entity or operation.Moreover, term " comprising ", "comprising" or its is any Other variants are intended to including for nonexcludability, so that process, method, article or equipment including a series of elements Not only include those key elements, but also the other element including being not expressly set out, or also include for this process, side Method, article or the intrinsic key element of equipment.In the absence of more restrictions, limited by sentence "including a ..." Key element, it is not excluded that other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. threedimensional model generation method, it is characterised in that including:
    Obtain the two-dimensional position data of the two-dimentional key element corresponding to target outdoor scene element, and the terrain data of target outdoor scene element;
    According to the two-dimensional position data and the terrain data, generate the target outdoor scene element and correspond to required target three-dimensional The three-dimensional location data of model;
    Trigonometric ratio is carried out to the two-dimentional key element corresponding to the target outdoor scene element;
    Based on the trigonometric ratio result obtained by the three-dimensional location data and the trigonometric ratio, it is corresponding to generate the target outdoor scene element Target three-dimensional.
  2. 2. according to the method for claim 1, it is characterised in that the two-dimensional position data of the two-dimentional key element includes two dimension will The position coordinates of element, the terrain data include the elevation Value Data of the target outdoor scene element;
    It is then described according to the two-dimensional position data and the terrain data, generate the target outdoor scene element and correspond to required mesh The three-dimensional location data of threedimensional model is marked, including:
    According to the position coordinates each put in the two-dimentional key element, the height value of each point is obtained from the terrain data, and The height value of acquisition is accordingly assigned to each point in two-dimentional key element;
    Position coordinates and height value according to corresponding to each being put in the two-dimentional key element, generate the three-dimensional position of target three-dimensional Data.
  3. 3. according to the method for claim 1, it is characterised in that the two dimension to corresponding to the target outdoor scene element will Element carries out trigonometric ratio, including:
    According to the type of the two-dimentional key element and the type for the target three-dimensional that need to be generated, corresponding trigonometric ratio mode pair is utilized The two-dimentional key element carries out trigonometric ratio;Wherein, the trigonometric ratio mode includes the undirected trigonometric ratio in face, the oriented trigonometric ratio in face, line water The flat vertical trigonometric ratio of trigonometric ratio and line.
  4. 4. according to the method for claim 1, it is characterised in that described to be based on the three-dimensional location data and the trigonometric ratio The trigonometric ratio result of gained, the target three-dimensional of the target outdoor scene element is generated, including:
    Based on trigonometric ratio result, the model framework of target three-dimensional is obtained, it is right that the model framework includes trigonometric ratio result institute The each tri patch answered;And add attached dough sheet in the corresponding tri patch that model framework includes;
    Calculate the texture coordinate and normal direction of each model vertices of the model framework;
    Texture based on each model vertices in the attached dough sheet and model framework added in the three-dimensional location data, model framework Coordinate and normal direction, obtain target three-dimensional.
  5. 5. according to the method described in claim any one of 1-4, it is characterised in that methods described also includes:
    When the generation demand to the threedimensional model of predefined type in two-dimensional surface be present, with face random point generation side in two-dimensional surface Formula generates the threedimensional model of predefined type.
  6. 6. a kind of threedimensional model generates system, it is characterised in that including:
    Acquisition module, for obtaining the two-dimensional position data of the two-dimentional key element corresponding to target outdoor scene element, and target outdoor scene member The terrain data of element;
    Three-dimensional location data generation module, for according to the two-dimensional position data and the terrain data, generating the target Outdoor scene element corresponds to the three-dimensional location data of required target three-dimensional;
    Trigonometric ratio module, for carrying out trigonometric ratio to the two-dimentional key element corresponding to the target outdoor scene element;
    Threedimensional model generation module, it is raw for the trigonometric ratio result obtained by based on the three-dimensional location data and the trigonometric ratio Into target three-dimensional corresponding to the target outdoor scene element.
  7. 7. system according to claim 6, it is characterised in that the two-dimensional position data of the two-dimentional key element includes two dimension will The position coordinates of element, the terrain data include the elevation Value Data of the target outdoor scene element;
    The then three-dimensional location data generation module, including:
    Assignment unit, for according to the position coordinates each put in the two-dimentional key element, being obtained from the terrain data each The height value of point, and the height value of acquisition is accordingly assigned to each point in two-dimentional key element;
    Three-dimensional location data generation unit, for position coordinates and height value according to corresponding to each point in the two-dimentional key element, Generate the three-dimensional location data of target three-dimensional.
  8. 8. system according to claim 6, it is characterised in that the trigonometric ratio module, be specifically used for:According to the two dimension The type of the type of key element and the target three-dimensional that need to be generated, the two-dimentional key element is carried out using corresponding trigonometric ratio mode Trigonometric ratio;Wherein, it is vertical to include the undirected trigonometric ratio in face, the oriented trigonometric ratio in face, the horizontal trigonometric ratio of line and line for the trigonometric ratio mode Trigonometric ratio.
  9. 9. system according to claim 6, it is characterised in that the threedimensional model generation module, including:
    Dough sheet adding device, for based on trigonometric ratio result, obtaining the model framework of target three-dimensional, the model framework bag Include each tri patch corresponding to trigonometric ratio result;And add supplementary face in the corresponding tri patch that model framework includes Piece;
    Computing unit, the texture coordinate and normal direction of each model vertices for calculating the model framework;
    Threedimensional model generation unit, for the texture coordinate based on each model vertices in the three-dimensional location data and model framework And normal direction, obtain target three-dimensional.
  10. 10. according to the system described in claim any one of 6-9, it is characterised in that also include:
    Face random point generation module, for when existing in two-dimensional surface to the generation demand of the threedimensional model of predefined type, two The threedimensional model of predefined type is generated in dimension face with face random point generating mode.
CN201710703847.XA 2017-08-16 2017-08-16 Three-dimensional model generation method and three-dimensional model generation system Active CN107481321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710703847.XA CN107481321B (en) 2017-08-16 2017-08-16 Three-dimensional model generation method and three-dimensional model generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710703847.XA CN107481321B (en) 2017-08-16 2017-08-16 Three-dimensional model generation method and three-dimensional model generation system

Publications (2)

Publication Number Publication Date
CN107481321A true CN107481321A (en) 2017-12-15
CN107481321B CN107481321B (en) 2021-02-26

Family

ID=60598906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710703847.XA Active CN107481321B (en) 2017-08-16 2017-08-16 Three-dimensional model generation method and three-dimensional model generation system

Country Status (1)

Country Link
CN (1) CN107481321B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108230424A (en) * 2018-02-09 2018-06-29 城市生活(北京)资讯有限公司 A kind of lines display methods and lines display system
CN109064542A (en) * 2018-06-06 2018-12-21 链家网(北京)科技有限公司 Threedimensional model surface hole complementing method and device
CN110136184A (en) * 2018-02-02 2019-08-16 云南电网有限责任公司保山供电局 A method of it is modeled using oblique photograph and carries out substation site selection
CN110738734A (en) * 2019-10-14 2020-01-31 北京代码乾坤科技有限公司 Three-dimensional landform model generation method and device, processor and electronic device
CN111047682A (en) * 2019-11-22 2020-04-21 佛山科学技术学院 Three-dimensional lane model generation method and system
CN113870428A (en) * 2021-09-29 2021-12-31 北京百度网讯科技有限公司 Scene map generation method, related device and computer program product
CN114155346A (en) * 2021-11-19 2022-03-08 埃洛克航空科技(北京)有限公司 Data processing method and device for terrain matching
CN115797506A (en) * 2022-12-16 2023-03-14 江苏泽景汽车电子股份有限公司 Method and device for drawing lane line object, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740256A (en) * 2014-12-09 2016-07-06 高德信息技术有限公司 Generation method and generation device of three-dimensional map
CN105976426A (en) * 2016-04-27 2016-09-28 中国电子科技集团公司第二十八研究所 Rapid three-dimensional ground object model construction method
CN106780736A (en) * 2017-01-09 2017-05-31 网易(杭州)网络有限公司 Map data processing method and device, three-dimensional map generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740256A (en) * 2014-12-09 2016-07-06 高德信息技术有限公司 Generation method and generation device of three-dimensional map
CN105976426A (en) * 2016-04-27 2016-09-28 中国电子科技集团公司第二十八研究所 Rapid three-dimensional ground object model construction method
CN106780736A (en) * 2017-01-09 2017-05-31 网易(杭州)网络有限公司 Map data processing method and device, three-dimensional map generation method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110136184A (en) * 2018-02-02 2019-08-16 云南电网有限责任公司保山供电局 A method of it is modeled using oblique photograph and carries out substation site selection
CN110136184B (en) * 2018-02-02 2022-11-29 云南电网有限责任公司保山供电局 Method for site selection of transformer substation by oblique photography modeling
CN108230424B (en) * 2018-02-09 2021-11-02 城市生活(北京)资讯有限公司 Line display method and line display system
CN108230424A (en) * 2018-02-09 2018-06-29 城市生活(北京)资讯有限公司 A kind of lines display methods and lines display system
CN109064542A (en) * 2018-06-06 2018-12-21 链家网(北京)科技有限公司 Threedimensional model surface hole complementing method and device
CN110738734A (en) * 2019-10-14 2020-01-31 北京代码乾坤科技有限公司 Three-dimensional landform model generation method and device, processor and electronic device
CN110738734B (en) * 2019-10-14 2023-05-30 北京代码乾坤科技有限公司 Three-dimensional topography model generation method and device, processor and electronic device
CN111047682A (en) * 2019-11-22 2020-04-21 佛山科学技术学院 Three-dimensional lane model generation method and system
CN111047682B (en) * 2019-11-22 2023-04-25 佛山科学技术学院 Three-dimensional lane model generation method and system
CN113870428A (en) * 2021-09-29 2021-12-31 北京百度网讯科技有限公司 Scene map generation method, related device and computer program product
CN114155346A (en) * 2021-11-19 2022-03-08 埃洛克航空科技(北京)有限公司 Data processing method and device for terrain matching
CN114155346B (en) * 2021-11-19 2022-10-11 埃洛克航空科技(北京)有限公司 Data processing method and device for terrain matching
CN115797506A (en) * 2022-12-16 2023-03-14 江苏泽景汽车电子股份有限公司 Method and device for drawing lane line object, terminal equipment and storage medium
CN115797506B (en) * 2022-12-16 2023-11-17 江苏泽景汽车电子股份有限公司 Method, device, terminal equipment and storage medium for drawing lane line object

Also Published As

Publication number Publication date
CN107481321B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN107481321A (en) A kind of threedimensional model generation method and threedimensional model generation system
US9336629B2 (en) Coordinate geometry augmented reality process
CN109186551B (en) Method and device for extracting characteristic points of oblique photogrammetry building and storage medium
CN104835202A (en) Quick three-dimensional virtual scene constructing method
KR101994317B1 (en) Navigation device, method of determining a height coordinate and method of generating a database
CN104778744B (en) Extensive three-dimensional forest Visual Scene method for building up based on Lidar data
CN109269472B (en) Method and device for extracting characteristic line of oblique photogrammetry building and storage medium
KR101551739B1 (en) Method for locating of structure data on 3D geomorphic data
CN110675496A (en) Mesh subdivision and visualization method and system based on three-dimensional urban geological model
CN103065361A (en) Three-dimensional (3d) island sandbox achieving method
CN108776745A (en) A kind of complex topography wind field analogy method and device based on WRF and Fluent couplings
CN107895048A (en) It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN108375985A (en) A kind of soil three-dimensional planning and designing platform and its design method
CN103971414A (en) Method and system for making visualized true three-dimensional map
CN107403459A (en) Real terrain fast modeling method and landslide visualization technique
CN111353681A (en) BIM technology-based high-precision calculation method for in-site earth and stone engineering quantity
CN108733711A (en) Distribution line space length acquisition methods based on three-dimension GIS technology
JP4619504B2 (en) 3D digital map generator
CN109059864A (en) Unmanned plane large scale topographical map house alien invasion mapping method, device and medium
CN103236083B (en) Real-time three-dimensional measuring method based on stereo image library
CN113610973A (en) Three-dimensional map generation method and system
CN105865413A (en) Method and device for acquiring building height
CN116662473A (en) Space database establishment method, device, equipment and storage medium
Vichrová et al. Digital Terrain Model of the Second Military Survey–Part of the Military Training Area Brdy
CN115408750A (en) Power transmission line measurement finished product diagram generation method, device, equipment 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